How to solve this problem about compile?

i am facing this error when i compile "tf_conv3p_compile_.sh". kindly guide me if i am doing something wrong?
$chmod a+x *
$ ./tf_conv3p_compile_.sh
/home/sarshad/.local/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
gcc: error: .cu: No such file or directory
gcc: warning: ‘-x c++’ after last input file has no effect
gcc: fatal error: no input files
compilation terminated.
g++: error: .cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
g++: error: .cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
In file included from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/mutex.h:31:0,
from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/framework/op.h:32,
from tf_conv3p_grid.cpp:1:
/usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/default/mutex.h:25:22: fatal error: nsync_cv.h: No such file or directory
compilation terminated.
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/mutex.h:31:0,
from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/framework/op.h:32,
from tf_conv3p_naive_ctxmem.cu:1:
/usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/default/mutex.h:25:22: fatal error: nsync_cv.h: No such file or directory
compilation terminated.
In file included from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/mutex.h:31:0,
from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/framework/op.h:32,
from register_op.cpp:1:
/usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/default/mutex.h:25:22: fatal error: nsync_cv.h: No such file or directory
compilation terminated.
g++: error: tf_conv3p.so_cuda.o: No such file or directory
g++: error: tf_conv3p.so_cpu.o: No such file or directory
rm: cannot remove 'tf_conv3p.so_cpu.o': No such file or directory
rm: cannot remove 'tf_conv3p.so_cuda.o': No such file or directory

What is your Tensorflow version? You might want to try this instead:
https://github.com/scenenn/pointwise/blob/master/tf_ops/conv3p/tf_conv3p_compile_tf14.sh

What is your Tensorflow version? You might want to try this instead:
https://github.com/scenenn/pointwise/blob/master/tf_ops/conv3p/tf_conv3p_compile_tf14.sh

tensorflow                         1.13.1
tensorflow-gpu                     1.9.0
When I try conv3p/tf_conv3p_compile_tf14.sh to compile,I meet the same problem,what wrong with me ?

Have you solved the issue?

No,I can't solve this problem about compile.so I can't run your code.
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年7月24日(星期三) 下午2:16
收件人<EMAIL_ADDRESS>抄送: "longma"1442342449<EMAIL_ADDRESS>主题: Re: [scenenn/pointwise] How to solve this problem about compile?(#12)
Have you solved the issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

No,I can't solve this issue
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年7月24日(星期三) 下午2:16
收件人<EMAIL_ADDRESS>抄送: "longma"1442342449<EMAIL_ADDRESS>主题: Re: [scenenn/pointwise] How to solve this problem about compile?(#12)
Have you solved the issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I also meet this error, i think different version result this problem. so i create a new environment with tensorflow 1.9, CUDA 9.0 and it works.


Update README.md

Most shells don't support hyphens in variable names unless using env command. Changed these for more compatibility.

Won't we need to change the TF variable names too in order to match the underscores instead of the hypens?
BTW just commented this with @manuelbcd but I prefer the approach of writing the values in a .tfvars file and providing that file to the terraform plan / terraform apply via a flag instead of setting all variables via environment variables.


Compute block reward

Decide if we need a separate function for computing the block reward (e.g. compute_block_reward in the app/node directory OR if calling trace_block on a node is sufficient.
Relevant links:

https://ethereum.stackexchange.com/questions/5958/how-to-query-the-amount-of-mining-reward-from-a-certain-block
https://ethereum.stackexchange.com/questions/76259/how-to-know-the-current-block-reward-in-ethereum

The trace_block function only returns the static part of the Block reward as it turned out and not the whole Block Reward:
In order to get the Block Reward we have to calculate:
Static Reward + Total Transaction Fees  + Uncle Reward  - Burnt Fees
Static Reward: We can get with the trace function
Uncle Reward: #uncles * (static Reward/32)
Burnt Fees = Gas Used(whole Block) * Gas Limit (whole Block)
The only remaining problem ist the Total Transaction Fees which we get by calculating each transaction fee of every transaction in the Block ( gasPrice * gasUsed) and sum it up, which would work and I tested it.
But our current set up is not really built for that because we are consuming the transactions independent from each other!
So probably we need to use an alternative solution which includes Redis.

Closing as not planned due to https://github.com/uzh-eth-mp/app/pull/38#issuecomment-1517730881

[ ] add call to block reward and check if it works https://github.com/uzh-eth-mp/app/blob/45f6bf93416ed5a80e1386452d990d51d2cbe1df/src/data_collection/app/producer.py#L123-L126
[ ] remove https://github.com/uzh-eth-mp/app/blob/45f6bf93416ed5a80e1386452d990d51d2cbe1df/src/data_collection/app/producer.py#L238-L239


Add support for Window Controls Overlay for Web

Use case
Web application can look more native with the window controls api.
https://web.dev/window-controls-overlay/
https://wicg.github.io/window-controls-overlay/
Proposal
Add support for adding content in the titlebar-area.

Windows snap layouts apparently has some relationship to this needed implementation
https://github.com/bitsdojo/bitsdojo_window/issues/262
Currently we don't have any way to customize the title bar (draw custom widgets) while keeping the window's system's default behaviour for buttons (minimize, maximize, close)

This is related to the web platform, see https://web.dev/articles/window-controls-overlay.
But a nice windows implementation would also be nice but I would track this in a different issue


add Copyright to pkg/utils/resources.go

This pr is to add Copyright to the Apache License of pkg/utils/resources.go.

/assign @trafalgarzzz


lego: 3.7.0 -> 3.8.0

Semi-automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/lego/versions.
meta.description for lego is: "Let's Encrypt client and ACME library written in Go"
meta.homepage for lego is: "https://go-acme.github.io/lego/"
meta.changelog for lego is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.8.0 with grep in /nix/store/39kv5cs8da5x56vk9iksrz2m4jdcs4p8-lego-3.8.0

directory tree listing: https://gist.github.com/f3fed09eadb450639847e95c7fd9f4f1

du listing: https://gist.github.com/090816ee1f06cbd2640f0d6f4ffcc922

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
lego

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/39kv5cs8da5x56vk9iksrz2m4jdcs4p8-lego-3.8.0 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A lego https://github.com/r-ryantm/nixpkgs/archive/30bb085b3720c0c9216465b9d668f3af7f34a97d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/39kv5cs8da5x56vk9iksrz2m4jdcs4p8-lego-3.8.0
ls -la /nix/store/39kv5cs8da5x56vk9iksrz2m4jdcs4p8-lego-3.8.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:
- lego

Maintainer pings
cc @aanderse @andrew-d @arianvp @emilazy @flokli @m1cr0man @kalbasit for testing.

Changelog looks reasonable.

@arianvp @m1cr0man is this good to merge?

Run command now supports running hooks. Which might be interesting to us?


plugins/floaterm: move to mkVimPlugin

Chunky one, sorry.

Want to cleanup the entry like in https://github.com/nix-community/nixvim/pull/2681

Want to cleanup the entry like in #2681

Done

@mergifyio queue


Address okwme comments

This addresses all outstanding comments in the various PRs submitted by @okwme
Thanks for the deep review of the tutorial.

I finally installed a spellcheck plugin to VSCode. Something I should have done years ago


"Courses of population" to follow filters

At the moment "Courses of population" table is static and needs user input to be updated (and to follow filters). It'd be useful to have this table dynamic.

This is not feasible in all populations without heavy reworking and optimisations on back-end calculations.


removal captcha solver as not work

We hope this message finds you well. We kindly request the removal of CapSolver from your software at your earliest convenience. Your cooperation in this matter is greatly appreciated.
Thank you for your understanding and assistance.

Thanks for you feedback. I will try to replace capsolver with something else as soon as I can.

I can confirm CapSolver is replaced with other free solution - nopecha.

We hope this message finds you well. We kindly request the removal of CapSolver from your software at your earliest convenience. Your cooperation in this matter is greatly appreciated.
Thank you for your understanding and assistance.

I can confirm CapSolver is replaced with other free solution - nopecha.


rknn_toolkit_lite2-1.4.0-cp38-cp38-linux_aarch64.whl needed for Ubuntu

Can you supply a wheel for ubuntu as you have
rknn_toolkit_lite2-1.4.0-cp37-cp37m-linux_aarch64.whl
rknn_toolkit_lite2-1.4.0-cp39-cp39-linux_aarch64.whl
Which is ok for Debian but no whl for Ubuntu?

用lite版本可以推理

Hi
I met the same issue on Armbian. How could it be resolved?

There are two parts and its a bit weird but the run time and toolkit are separate
Toolkit runs only on x86
Runtime is arch64 and likely you have the wrong python version as cp37 python 3.7, cp39 python 3.9


Remove helm chart promotion to public ECR in staging and prod release

Description of changes:
This PR remove unnecessary helm charts promotion to public ECR registry in staging and prod release jobs as we now handle that in the ECR replication job. It also refactors the script to call the generate and push bundle functions in a single loop over kubernetes versions and update the comments to reflect what the job actually does.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve


File name illegal on target file system

Is there a way around this error?

This is actually new - previously this would either not give the reason for the error, or sometimes even crash the app.
This is supposed to happen when one of the files or sub-folders inside your folder have a name that is illegal on Windows.
If other files are transferred without issues, then this error is correct.
Whenever you select files that have illegal chars in their name, a message will pop up in the top right corner specifying where these names are illegal.

@Alex4SSB
That's a cool and useful feature, but I can't even find such file, could we get an absolute path in the error?
Also what happens when an error of these is encountered? Does the file transfer stop or it will keep transfering other compatible files? What if multiple files are illegal?

This error is reported by ADB, and that's all the information it gives in this case. Regarding the completion of the operation - usually, the files before that one got transferred. I see now that I should change the Validate button to enable validation of failed operations for cases like this, to get a list of files that are missing or corrupt.
Have you tried searching for a file with that string in the name? Sadly, the app does not support searching yet (just filtering, in the current folder). If you're unable to find the file using the app, you can use the terminal to access ADB directly:
adb shell find /sdcard/ -iname "*httpscdn.liftoff-*"

I'll try to search like that on Monday when I'm back at home (no PC at the moment), thanks!
I'm not even sure I need this Android folder backed up, but I managed to solve the general problem (backing up the rest of phone's data) by transferring with your app wirelessly, then with MTP and just skip duplicates. Saved a ton of time for sure, because my phone has faster wi-fi (866 Mbps) than usb (480Mbps) port and mtp hasn't been very reliable from past experiences.

Glad to hear that.
This folder does have things you might want to backup, for example /sdcard/Android/media/com.whatsapp/WhatsApp/Media


Some suggestions

1. Error handling can be improved
Nodejs provides easy to use callback/promise mechanisms for error handling.
e.g. while starting server you can use following code so that you know exactly what went wrong when some error occurs. app.listen(3000).on('error', console.log);
2. Sending http statuses
Sending appropriate statuses makes debugging a lot easier in such projects, where services talk to each other in a chain structure.
e.g. if the sending a mail fails, you can send 500 to let the consumer service know that something went wrong on the server side. Instead, if the email was null, you can send 400 stating that it was a bad request and nothing wrong with the server, so consumer can take action accordingly.
In Nodejs we can set status using res.status(200).send(message_to_send);.
3. Null checks
You should use plenty of these to make your system as robust as possible.
e.g. Consider email service. Since each service is independent, you cannot guarantee that each consumer of email service will send correct parameters in the request. It's the service's responsibility to validate all the input parameters. If anything is missing, you can simply send 400. With this implemented adding new services to the systems is lot easier since you get immediate feedback when you miss some parameters.
4. I think the else block in transporter.sendMail should have parentheses around it.
Also, when some error occurs and you are not handling it, pass it to the consumer using http status.

Thanks Bhushan for pointing out the improvements that we can do in our application. We will definitely take care of these above-mentioned points in our project and will improve our application.


bgfx & instancing

bgfx instancing is quite limited. See https://github.com/BabylonJS/BabylonNative/pull/990
Something should be done to be less restrictive.
c/c other possibilities:

modify bgfx to allow instance divisor per stream. It would be in sync with webGL. This tiny bit of work cover a change in API contract and also reimplementing instances for a few platforms (D3D11, D3D12, Metal, OpenGL, Vulkan) while keeping the backward compatibility. This also implies discussing the work with Branimir before.
discard HW instancing and add loop on instance instead. As many submit call as mesh to render. Instance attributes need to be replaced by uniform. This means some work in Shader Traversers and also some questions: if a vertex buffer is used with a divisor ==1, how is it known when compiling shader that 1 (or more) particular attribute must be replaced by a uniform? Then, what's the performance will be? Especially on mobile.

Another issue brought up in this PR : https://github.com/BabylonJS/BabylonNative/pull/1092
Instances are CPU mem only and we need to know if being able to move to GPU instead would improve perf.

Closing for now. Reopen if we want to support this feature fully.


bugfix(harmony-deps) : bind the function to prevent the this keyword …

see https://github.com/webpack/webpack/issues/8794
What kind of change does this PR introduce?
bugfix
Did you add tests for your changes?
no
Does this PR introduce a breaking change?
no
What needs to be documented once your changes are merged?
nothing

Please sign the CLA, I can continue with tests and linting.

I think i did already :

You have signed the CLA for webpack/webpack

But i don't know why the label is still "not signed yet"...

email in commit is not the same as you accept

Ok I figured it out : the email linked with commit wasn't registered in my github account. It should be fine now.

@rgranger please fix lint problem with prettier

Thanks


Append audio from mp3 file to mp4 file

Hi all.
I'm have an issue that need append audio ( from mp3 file) to a none music mp4 file.
Can you give an example to do that?
I have read an method is use aac file and h264 file to do that , but i can't convert mp3 file to aac and
mp4 to h264. if can , please send me some example to do that.
Thank you very much. Sorry if my question is stupid

You need ‘lame’ to convert mp3 to wav file，and then use an aac encoder to encode wav file to AAC file.
lame
*lame decoder
https://github.com/timsu/android-aac-enc

thank you for quick reply.
how about convert from mp4 file to h264 file

public static void createFinalVideoWithSoundFile(Context context, String inputVideoPath,
String inputAudioPath, String outputPath) {
	String outputFile = "";

	try {

		File file = new File(outputPath);
		file.createNewFile();
		outputFile = file.getAbsolutePath();

		MediaExtractor videoExtractor = new MediaExtractor();
		videoExtractor.setDataSource(inputVideoPath);

		MediaExtractor audioExtractor = new MediaExtractor();
		audioExtractor.setDataSource(inputAudioPath);
		Log.d(TAG,
				"Video Extractor Track Count "
						+ videoExtractor.getTrackCount());
		Log.d(TAG,
				"Audio Extractor Track Count "
						+ audioExtractor.getTrackCount());

		MediaMuxer muxer = new MediaMuxer(outputFile,
				MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4);

		videoExtractor.selectTrack(0);
		MediaFormat videoFormat = videoExtractor.getTrackFormat(0);
		int videoTrack = muxer.addTrack(videoFormat);

		audioExtractor.selectTrack(0);
		MediaFormat audioFormat = audioExtractor.getTrackFormat(0);
		int audioTrack = muxer.addTrack(audioFormat);

		Log.d(TAG, "Video Format " + videoFormat.toString());
		Log.d(TAG, "Audio Format " + audioFormat.toString());

		boolean sawEOS = false;
		int frameCount = 0;
		int offset = 100;
		int sampleSize = 256 * 1024;
		ByteBuffer videoBuf = ByteBuffer.allocate(sampleSize);
		ByteBuffer audioBuf = ByteBuffer.allocate(sampleSize);
		BufferInfo videoBufferInfo = new BufferInfo();
		BufferInfo audioBufferInfo = new BufferInfo();

		videoExtractor.seekTo(0, MediaExtractor.SEEK_TO_CLOSEST_SYNC);
		audioExtractor.seekTo(0, MediaExtractor.SEEK_TO_CLOSEST_SYNC);

		muxer.start();

		while (!sawEOS) {
			videoBufferInfo.offset = offset;
			audioBufferInfo.offset = offset;

			videoBufferInfo.size = videoExtractor.readSampleData(videoBuf,
					offset);
			audioBufferInfo.size = audioExtractor.readSampleData(audioBuf,
					offset);

			if (videoBufferInfo.size < 0 || audioBufferInfo.size < 0) {
				Log.d(TAG, "saw input EOS.");
				sawEOS = true;
				videoBufferInfo.size = 0;
				audioBufferInfo.size = 0;
			} else {
				try {
					videoBufferInfo.presentationTimeUs = videoExtractor
							.getSampleTime();
					videoBufferInfo.flags = videoExtractor.getSampleFlags();
					muxer.writeSampleData(videoTrack, videoBuf, videoBufferInfo);
					videoExtractor.advance();
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

				try {
					audioBufferInfo.presentationTimeUs = audioExtractor
							.getSampleTime();
					audioBufferInfo.flags = audioExtractor.getSampleFlags();
					muxer.writeSampleData(audioTrack, audioBuf, audioBufferInfo);
					audioExtractor.advance();
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}

				frameCount++;

			}
		}
		muxer.stop();
		muxer.release();

	} catch (IOException e) {
		Log.d(TAG, "Mixer Error 1 " + e.getMessage());
	} catch (Exception e) {
		Log.d(TAG, "Mixer Error 2 " + e.getMessage());
	}
	return;
}

Hello everyone,I am very grateful to the contributors of MP4Parser.I want to mux one .mp3 file and .mp4 file but the MP3TrackImpl is not working correctly for some songs.So I was trying to convert .mp3 song file to .aac file using java code for android.Please help me .I am in a big trouble.I don't want to use any software tool.

if (videoBufferInfo.size < 0 || audioBufferInfo.size < 0) {
==>  if (videoBufferInfo.size < 0 && audioBufferInfo.size < 0) {
the number of audio samples  is much more the video, so when the video sample is consume fully ,you just get a little number of audio .

Hello everybody I want to pick the audio and video from the mobile using onactivityresult() and merge them
any help?!


MultiGPU training fails

When using more than one GPU to train a model, the calculation seems to fail when the patience is reached (around epoch 160) and a new train is readily started on the same task. The error message of the calculation is attached, any idea of what could be going wrong?
Hereafter the relevant section of my script:
    fn_model = path_output / 'initial_model'
    if fn_model.exists():
        model = load_model(fn_model)
    else:
        fn_model.mkdir()
        model = MACE(
            r_max=6.5,
            max_L=2,
            num_channels=16,
            energy_weight=200,
            batch_size=16,
            lr=0.005,
            num_radial_basis=10,
            patience=10,
            max_num_epochs=200, # needed for multi-gpu training to replace max_training_time
        )

        model.add_atomic_energy('H', -13.69342004905324)
        model.add_atomic_energy('O', -432.28051880713264)
        model.add_atomic_energy('Al', -53.149911193312)
        model.add_atomic_energy('Si', -102.66598056598866)

        train, valid = data.split(0.9, shuffle=True)
        model.initialize(train)
        model.train(train, valid)
        model.save(fn_model)

Thanks,
Massimo
task_0125_train.txt

This is actually a bug in the train loop within MACE. It see it has been fixed in the most recent version of MACE at https://github.com/acesuit/mace but is apparently still present in the version pinned by psiflow.
As a workaround, you can "trick" MACE into thinking you'll use SWA but only enable it at max_num_epochs such that in practice it's still not used. I.e, try and instantiate your model as follows:
        model = MACE(
            r_max=6.5,
            max_L=2,
            num_channels=16,
            energy_weight=200,
            batch_size=16,
            lr=0.005,
            num_radial_basis=10,
            patience=10,
            max_num_epochs=200,
            swa=True,
            start_swa=200,  # same as max_num_epochs
        )

But for the record; SWA reduces overfitting and improves generalization considerably so I'd strongly recommend to use it anyway.

Got it, thanks a lot for the tip!


[@yearn/web-lib Feature] New Component - StatisticGroup

What
Adding a new StatisticGroup Component to handle a group of statistic, similar to the one available on the yearn.finance app.
This should take the StatisticCard as inspiration
This should accept a variant with a title and a chevron with a callback on click.

Will work on this one as well if it's not taken


POC: FHIR Event Handling in non-CDC Azure subscription

The goal of this POC is to demonstrate the Eventing system built into the Azure Health Data service to be used by the FHIR service and solution. For this POC the event handling infrastructure will be deployed along with an Event listener.

In the initial POC, an Azure Data Factory resource was deployed with a Trigger to run the pipeline when an Event is received on the Event Grid Topic. However, the Azure Health Data Service sends event to a System Topic by design which cannot be changed. Azure Data Factory supports custom event triggers, but can only listen on custom Topics and not System Topics. Therefore, this design for handling FHIR events was removed.

The POC was updated to use a stateful Azure Logic App resource to process events published by the FHIR service. The Logic App was initially configured to Trigger off the Event Grid Topic directly (reactive pattern). To improve future scalability, an Event Hub was created as the Event Grid subscription endpoint, and the Logic App was configured to Trigger off the Event Hub. The Logic App will orchestrate the Event handling operations, such as retrieving resource data from FHIR service and exporting data to EDAV.


Length cannot be less than zero. (Parameter 'length')

When trying to import a dump TXT issues an error. Where can I see what line is the problem?
Something went wrong when reading the dump file:
Length cannot be less than zero. (Parameter 'length')

Found on its own. The problem was in the missing ”


"Start Timer" and "Seconds Left" changes timer circle size

Timer is correct size with "Start Timer" but then increases in size to accommodate the "Seconds Left" copy

"Seconds left" should be made smaller to keep timer consistent

I actually remade this design as well, and we will most likely rebuild this when they are ready to go.

Timer is now up-to-date with the current design except for one thing: the white stroke line around the timer is still half the width of the blue stroke. I was not able to figure out a way to fix this while still keeping the design. Will return to do this later on, @jpailthorpe confirmed this is not priority


Update to use drools_jpy 0.1.7

Updated setup.cfg to point to the new version

Support for new temporal AST changes
The rule engine logs are written to stdout/stderr

@ttuffin This is need for the logging issue from the rules engine


Update conda activation scripts

I assume the following is related to this issue:
When running tests through the test discovery apparatus, they are not initialised in the Conda environment. For example:
import subprocess
subprocess.check_output(["which", "pandoc"])

returns /usr/local/bin/pandoc not //anaconda/envs/lsr/bin/pandoc.
This is not the case if the test is run in the terminal.

Fixed in #3998


Implementing a cache mechanism

We need to implement a caching mechanism that allows us to check only the changed files. For example, writing information to .aglintcache as ESLint does. See https://eslint.org/docs/latest/use/command-line-interface#caching
In addition, we can introduce a cache for the parser, so that, for example, we don't have to parse CSS from scratch every time. In the new v2 version of AGTree, the CSS parsing will change to a faster and simpler implementation, but in AGLint, full CSS parsing by ECSSTree is still required to fully validate the syntax, and this can be accelerated by the cache.
Cache settings should also be available from the CLI.

For workflows, we should take a look at https://github.com/actions/cache


Bug: Test fails if executed independently 'ngContext={[Function Number]}' vs 'ngContext="0"'

Description of the bug
from https://stackoverflow.com/q/73307975/7987318:

I'm currently facing a strange behavior on my Angular (14) shallow rendering snapshots in unit tests (Jest 28).

Sometimes my snapshot tests are failing, depending if I run them individually or as bundle. The reason of failure is the difference between ngContext={[Function Number]} and ngContext="0".

// hello.component.ts
import {Component, Input} from '@angular/core';

@Component({
  selector: 'hello',
  template: `<h1>Hello {{name}}!</h1>`
})
export class HelloComponent  {
  @Input()
  name: string;
}

// hello.component.spec.ts
describe('HelloComponent', () => {
  beforeEach(() => {
    return MockBuilder(HelloComponent, AppModule);
  });

  it('should render component correctly with Joe', () => {
    const fixture = MockRender(HelloComponent, {name: 'Joe'});
    expect(fixture).toMatchSnapshot()
  });

  it('should render component correctly with other name', () => {
    const fixture = MockRender(HelloComponent, {name: 'Jane'});
    expect(fixture).toMatchSnapshot()
  });
});

An example of the bug
reproduction steps
First clone my reproduction repo: https://github.com/jones1008/ng-mocks-snapshot-test-bug
To reproduce the bug follow these steps:
npm install
npm run test
npm run single-test-fail

See that when running npm run test the tests pass, and when running npm run single-test-fail the test fails with the following error:
 FAIL  src/app/components/hello.component.spec.ts
  HelloComponent
    ✕ should render component correctly with other name (66 ms)
    ○ skipped should render component correctly with Joe

  ● HelloComponent › should render component correctly with other name

    expect(received).toMatchSnapshot()

    Snapshot name: `HelloComponent should render component correctly with other name 1`

    - Snapshot  - 1
    + Received  + 1

    @@ -1,7 +1,7 @@
      <mock-render
    -   __ngContext__={[Function Number]}
    +   __ngContext__="0"
      >
        <hello>
          <h1>
            Hello Jane!
          </h1>

      15 |   it('should render component correctly with other name', () => {
      16 |     const fixture = MockRender(HelloComponent, {name: 'Jane'});
    > 17 |     expect(fixture).toMatchSnapshot()
         |                     ^
      18 |   });
      19 | });
      20 |

      at src/app/components/hello.component.spec.ts:17:21

Notes:

npm run single-test-fail executes jest -t 'HelloComponent should render component correctly with other name' and therefore the second test in the hello-component.spec.ts file
npm run single-test-fail executes jest -t 'HelloComponent should render component correctly with Joe' and therefore the first test in the hello-component.spec.ts file. Strangely this test passes!
I couldn't make a StackBlitz because I was getting some StackBlitz-related error when executing npm run test

Hi @jones1008,
thank you for the report.
However, it looks like an issue in Angular or jest, but not in ng-mocks.
The next test without ng-mocks fails in the same way:
import {HelloComponent} from "./hello.component";
import {TestBed} from "@angular/core/testing";

describe('HelloComponent', () => {
  beforeEach(() => TestBed.configureTestingModule({
    declarations: [HelloComponent],
  }).compileComponents());

  it('should render component correctly with Joe', () => {
    const fixture = TestBed.createComponent(HelloComponent);
    fixture.componentInstance.name = 'Joe';
    fixture.detectChanges();
    expect(fixture).toMatchSnapshot()
  });

  it('should render component correctly with other name', () => {
    const fixture = TestBed.createComponent(HelloComponent);
    fixture.componentInstance.name = 'Jane';
    fixture.detectChanges();
    expect(fixture).toMatchSnapshot()
  });
});

It looks like, the very first call of TestBed.createComponent uses a pure number, whereas the second and following use it as a Number object.
I would suggest to report the issue to Angular / jest, not sure which of them convert the number to an object.

It looks like, I found a way to remove __ngContext__ from the final snapshot.
Could you check if it works well in your project?
The build: ng-mocks.zip

@satanTime Yes this works!
Does it make sense to ship this fix? Do we need __ngContext__ in our snapshot files? Is it maybe even good if we remove it?
Also when you ship this, all the snapshot tests that were setup with ng-mocks will fail. So is this a breaking change?

Nice! I'm glad to hear that.
I wouldn't expect a need of __ngContext__, it's an internal attribute for angular core and its value shouldn't influence on your tests.
I'll ship it as it is with a note that __ngContext__ will be removed from snapshots and it might require to update them.

Great! Thanks for the quick answers and fix!

v14.3.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.


Add workspace support to rss/elfeed

I basically looked at the calendar app and copy/pasted the code into the rss app.
I tested it on my machine and it worked.

Sorry for the late response. Thanks for the help!


Document collection subscriptions

Navigation and Presentation will soon be rolling out email subscriptions for document collections.
The required behaviour for these subscriptions is: When a user subscribes to notifications on a document collection, they will be notified when the document collection is updated AND when any of the documents belonging to that collection are updated.
The relationship between a document collection and the documents it contains is stored as a reverse link.
This PR adds support for reverse link style lists in the future (See here for a list of reverse link types), but currently only allows these new lists to be created for document collections.
Related work: https://github.com/alphagov/email-alert-service/pull/583
Trello: https://trello.com/c/tJvdhfdd/1455-support-topic-like-subscriptions-for-document-collections-email-alert-api-m
⚠  This repo is Continuously Deployed: make sure you follow the guidance ⚠

@kevindew I've made the changes requested - in the absence of Leena and Kelv, are you happy for me to merge this?


Brownian motion classes accept pytrees for shape and dtype arguments

This changes the argument shape for classes VirtualBrownianTree and UnsafeBrownianPath, and adds an additional argument dtype as per the dicussion in #180.

I decided upon shape: Pytree[Tuple[int, ...] instead of shape: Union[Tuple[int, ...], PyTree[jax.ShapeDtypeStruct]]. It's unclear what to do with named_shape in jax.ShapeDtypeStruct -- I don't know if there is a way to sample Brownian motion via named shapes. But if you feel strongly about this and give me some pointers, I can reimplement.
To allow specifying dtypes, dtype argument specifies them as a pytree and has to be a prefix tree of shape.
I added __init__ methods to both classes since I was not sure how to have dtype=None without it.
Added some helper functions that I use in misc.py, hope that's the right location to place them.
Used jtu.tree_map instead of jax.vmap -- was not sure how to supply is_leaf to jax.vmap. Happy to change this as well, with some pointers.
Changed the test_brownian.py:test_shape to test pytree shapes and dtypes. Just noticed that formatting made it look pretty bad, not sure if that's a big deal.
Tests pass locally.

Let me know what you think. Thanks!

I think it should be fine to just ignore the named_shape field. Most of the time a jax.ShapeDtypeStruct is just meant as a way to hold a shape and a dtype together, and it can be called as just. ShapeDtypeStruct(shape, dtype). In particular I think you should find that this approach means that many of the new helper functions are unnecessary.
I'm not too worried about the funny-looking formatting. It's not that elegant, but the occasional oddity is the price of using autoformatters.
We should probably add a check that the dtypes are floating-point. (jnp.issubdtype(dtype, jnp.inexact)

I've changed to shape: Union[Tuple[int, ...], PyTree[jax.ShapeDtypeStruct]] and added a check for floating point dtypes.

Thanks for the review! I added the changes.
One last thing -- the tests I said pass were run on python 3.10. I've tried this PR on another server which has python 3.8 and throws the following error when testing:
___________________________________________________________________________________________________________ ERROR collecting test/test_brownian.py ____________________________________________________________________________________________________________
test/test_brownian.py:3: in <module>
    import diffrax
diffrax/__init__.py:1: in <module>
    from .adjoint import (
diffrax/adjoint.py:9: in <module>
    from .misc import implicit_jvp, nondifferentiable_output, ω
diffrax/misc/__init__.py:9: in <module>
    from .misc import (
diffrax/misc/misc.py:167: in <module>
    def split_by_tree(key, tree, is_leaf: Optional[Callable[PyTree, bool]] = None):
/usr/lib/python3.8/typing.py:813: in __getitem__
    raise TypeError(f"Callable[args, result]: args must be a list."
E   TypeError: Callable[args, result]: args must be a list. Got <class 'diffrax.custom_types.PyTree'>

which I guess is either difference in python or typing versions. I can fix this error, but would also want to test this PR more systematically. I'm not sure how to do this -- i.e. what versions of python or other packages should I test this with?

The error is that it should be Callable[[PyTree], bool]. The first argument to Callable should be a list of the arguments it accepts.

Yes, my question was more about how to test this more systematically, but I didn't notice that the tests are run on 3 different versions of python. Should be good now.

Not sure why it's failing -- that test passes on my machine. Package versions agree as well
(env) [ao464@csic41 diffrax]$ pip list
Package             Version Location
------------------- ------- ------------------------------------------
absl-py             1.3.0
attrs               22.1.0
chex                0.1.5
diffrax             0.2.1<EMAIL_ADDRESS>dm-tree             0.1.7
equinox             0.9.0
etils               0.9.0
exceptiongroup      1.0.1
importlib-resources 5.10.0
iniconfig           1.1.1
jax                 0.3.24
jaxlib              0.3.24
jaxtyping           0.2.7
numpy               1.23.4
opt-einsum          3.3.0
optax               0.1.3
packaging           21.3
pip                 20.0.2
pkg-resources       0.0.0
pluggy              1.0.0
psutil              5.9.3
pyparsing           3.0.9
pytest              7.2.0
scipy               1.9.3
setuptools          44.0.0
tomli               2.0.1
toolz               0.12.0
typeguard           2.13.3
typing-extensions   4.4.0
wheel               0.38.1
zipp                3.10.0
(env) [ao464@csic41 diffrax]$ JAX_PLATFORM_NAME=cpu pytest test/test_adjoint.py::test_adjoint_seminorm
===================================================================================================================== test session starts =====================================================================================================================
platform linux -- Python 3.8.10, pytest-7.2.0, pluggy-1.0.0
rootdir<EMAIL_ADDRESS>plugins: typeguard-2.13.3, jaxtyping-0.2.7
collected 1 item

test/test_adjoint.py .                                                                                [100%]

====================================================================================================================== 1 passed in 0.96s ======================================================================================================================

From https://docs.python.org/3/library/sys.html#sys.modules
sys.modules
[...]. If you want to iterate over this global dictionary always use sys.modules.copy() or tuple(sys.modules) to avoid exceptions as its size may change during iteration as a side effect of code or activity in other threads.

Should I add the change to this PR?

Ah! I've recently had to fix this locally on my own (as-yet-unreleased) PRs. I'm not sure why it ever ran before.
Go ahead and add that in here.

This is ready to be tested again

Alright, LGTM! Thank you for contributing.


Cancel cluster expansion event based on condition

Hi !
Same as Issue 1101 I wanted to cancel the expansion of cluster based on condition.
But it seems like i cannot stop the propagation of the events.
I tried the solution "attach the event handler before any layer is added to L.MarkerClusterGroup" but the cluster keeps expanding. Maybe there is something I dont understand about leaflet layer and event.

How to reproduce

Leaflet version I'm using: 1.9.4
Leaflet.MarkerCluster version I'm using: 1.4.1
Browser (with version) I'm using: Latest firefox
OS/Platform (with version) I'm using: Macos

What behaviour I'm expecting and which behaviour I'm seeing
Im expecting the cluster to not open while clicking and another condition (in my example command key). I already logged, I'm entering the condition
Im seing the cluster to expand and the map to zoom
Minimal example reproducing the issue
jsFiddle

[x] this example is as simple as possible
[ ] this example does not rely on any third party code

I followed the step here https://github.com/Leaflet/Leaflet.markercluster/blob/master/CONTRIBUTING.md to generate the js source file from master. It's not an official version of this plugin, but since I saw a commit related to this issue. I tried my luck and it seems like working as intended and the event is blocked.


Video with GPUImageChromaKeyFilter has tint when played in transparent GPUImageView

I have a video with solid green background, that I am trying to make transparent with GPUImageChromaKeyFilter.
When I have clear colour for the player view, the result is that the video is no really transparent, but tints the background:
![Tint on clear]
(http://i.imgur.com/b96y9tX.png)
When I change the background to white, the green background is gone, but obviously the view is not transparent:
![No tint on white]
(http://i.imgur.com/MaKqd4x.png)
Is something wrong on my end?
My code is:
let movie = GPUImageMovie(URL: url)

let filter = GPUImageChromaKeyFilter()
filter.setColorToReplaceRed(0, green: 1, blue: 0)
movie.addTarget(filter)

let playerView = GPUImageView()
playerView.backgroundColor = UIColor.clearColor()

let trinity = (movieFile, filter, playerView)

filter.addTarget(playerView)
movie.startProcessing()

I am storing the movie, filter and view to avoid ARC releasing them when scope is exited and I add the view to the correct superview and position it with auto layout.
The video I am using is an h264 video - https://dl.dropboxusercontent.com/u/1400954/Coin.mp4

GPUImageView does not have great support for transparency, so if you're trying to use that to overlay on something it may not work. Generally, you have to do the blending within the GPUImage pipeline. You could try tweaking GPUImageView's OpenGL ES layer to support transparency, which I've been meaning to do for a while.

When I modified my initial attempt to have red instead of white or clear in the GPUImageView, the video turned it to yellow and when using blue background, it is cyan.
![Yellow background when GPUImageView background is red]
(http://i.imgur.com/QfYtEBz.png)
If using green background, it stays green.
And finally, when using magenta (red + blue) background, it turns white. Effectively, it merges the GPUImageView background colour withe the removed video background. I have not tried making a video with blue background, but I expect similar behaviour.
Is this unexpected behaviour from GPUImageChromaKeyFilter or am I not understanding it correctly? I have very little experience with OpenGL ES, but will try to have a look in the code later.
As for my goal of playing transparent video, I actually got it working with GPUImageChromaKeyBlendFilter and transparent background image.
The only changes to my code is that I use GPUImageChromaKeyBlendFilter and make a GPUImagePicture with transparent image that targets it.
![Working with ChromaKeyBlend]
(http://i.imgur.com/EoI17R9.png)


Make fixity web pages

There needs to be a way to display fixity status information. I envision a unique id field added to each fixity record and the following routes
GET /fixity

parameters start defaults to midnight today, end defaults to midnight tomorrow. display all fixity records with a scheduled time in the given range. Other sort parameters: item= only display records with the given item id, status= only display records with the given status id.
The start or end value of * gives an open ended range.
GET /fixity/:id

return the information for a given fixity record.
POST /fixity

Create a new fixity record. data in parameters can be item, the item to be checked, when the time of the scheduled check. defaults to now.
PUT /fixity/:id

Update a given fixity record. parameters can be when so long as the record still has a status of "scheduled".
DELETE /fixity/:id

can only be deleted if the time is in the future and the record has a status of "scheduled"
A fixity record has the following fields
id: the record's id number
item: the item the record is about
when: when the fixity happened or is scheduled to happen
status: one of "scheduled" or "error" or "mismatch"
notes: contains more details for errors and mismatches.

This issue seems related to #44.

Notes from #44:

[There should be] a web interface which shows all fixity errors sorted from most recent to least recent. The web interface also allows for adding that item to be rechecked.

I would like just enough interface so that we could write a cron job to poll and send emails on error. I don't want bendo sending emails---that would make its configuration too difficult.

As this is designed, it would be useful to consider JSON-API as the data structure http://jsonapi.org/
Go library for JSON-API

Don has several outstanding issues with the SQL queries.


Presentation RFC for DataBricks conference: DataFusion and Arrow

Overview
@Dandandan and I are working on a presentation about DataFusion at conference at the end of June 2022. In the spirit of open collaboration, we would like to solicit community feedback / crowd source some of the content prior to doing so.
I hope / expect some of the content from this talk (like "why use datafusion") may make it back into the main https://arrow.apache.org/datafusion/ documentation
Also, part of this presentation is about how DataFusion is used by downstream projects and we want to ensure our presentation is

Technically Accurate
Allowed by the downstream project to mention them and their use of DataFusion

Since most of the projects we have listed are open source, I don't think it will be a problem, but before we present I want an explicit signoff from people involved in the projects.
As an aside, it is very cool to see what others are doing with DataFusion
Talk Details:
Conference details https://databricks.com/dataaisummit/north-america-2022/agenda
Talk Description:
DATA ENGINEERING
DataFusion and Arrow: Supercharge Your Data Analytical Tool with a Rusty Query Engine
Learn how Rust, the Apache Arrow project, and the Data Fusion Query Engine are increasingly being used to accelerate the creation of modern data stacks.
Presentation: https://docs.google.com/presentation/d/1q1bPibvu64k2b7LPi7Yyb0k3gA1BiUYiUbEklqW1Ckc
And so with that, please leave us comments !

Thanks for including Coralogix on the slides :-) we'd be happy for that to stay on; would it be alright if we provide the text for the Overview and Use of Datafusion sections?

Thanks for including Coralogix on the slides :-) we'd be happy for that to stay on; would it be alright if we provide the text for the Overview and Use of Datafusion sections?

Yeah, that would be great 👏

@alamb It looks like these two presentations linked to from the main presentation are not publicly accessible:

https://docs.google.com/presentation/d/1owNlmpNpC2-eBd-jEYRCt0L8_sW4PWYx70gqnFC0twM/edit?usp=sharing
https://docs.google.com/presentation/d/1lXsYsPjeowey7H9wIOQUnUjsCo_282Zv/edit#slide=id.p1

@yjshen (blaze-rs) @houqp (roapi, delta-lake) @jonmmease (VegaFusion) @gangliao (Flock) @paveltiunov/@ovr (Cube.js) @andygrove (dask-sql, Ballista), @rdettai (loudfuse Buzz)
As I think (one of) the main authors of those projects, would you be able to review or contribute the content of your project, or maybe help us finding someone who can?

@alamb It looks like these two presentations linked to from the main presentation are not publicly accessible:

@andygrove  thank you for pointing that out -- given how the permissions are setup I can't make them publically accessable  iin general but I can share them explicitly with inviduals
They are also on slideshare https://www.slideshare.net/AndrewLamb32/presentations
https://www.slideshare.net/AndrewLamb32/a-rusty-introduction-to-apache-arrow-and-how-it-applies-to-a-time-series-database
https://www.slideshare.net/AndrewLamb32/2021-0420-apache-arrow-and-its-impact-on-the-database-industrypptx
https://www.slideshare.net/AndrewLamb32/2021-1013-i-ox-query-processing

nice, great presentation


Issue using CPM

So I'm trying to build everest-core using CPM (I know it's recommended to use edm) anyway, I have already added mqttc to my CPM because it is a dependency on this repository(everest-framework), so this conflict will always happen in your find-mqttc.cmake because it will try to add_library(mqttc STATIC IMPORTED) again.
Is kind of a forced error since i have to add mqttc to continue but inside your repository it will conflict because it tries to add again.

We stumbled across same issue by building without  of usage of EDM.
Further investigation uncovered that it begins with Line 92 in CMakeLists.txt
https://github.com/EVerest/everest-framework/blob/1f8bce3405a5bf38d55ac3048de8346054bf5398/CMakeLists.txt#L82-L93
and continuous with confession in find-mqttc.cmake
https://github.com/EVerest/everest-framework/blob/1f8bce3405a5bf38d55ac3048de8346054bf5398/cmake/find-mqttc.cmake#L1-L14
I wonder why include is used instead of find_package like few lines above?
The find_package allows to separate the declaration/definition of the target from the expression of dependency to this target and solves in particular the issue we observe here.
Our current solution is to replace the include(find-mqttc.cmake) by find_package(mqttc REQUIRED) and we are done. The declaration of the target mqttc is already accomplished in the overall CMakeLists.txt outside of this repository by using CPM
CPMAddPackage(
  NAME mqttc
  GIT_REPOSITORY https://github.com/LiamBindle/MQTT-C.git
  GIT_TAG v1.1.6
  GIT_PROGRESS TRUE
  OPTIONS
  "MQTT_C_EXAMPLES OFF"
  "CMAKE_POSITION_INDEPENDENT_CODE ON"
)

@corneliusclaussen what is your opinion to, can we proceed with PR!

how about guarding this
https://github.com/EVerest/everest-framework/blob/1f8bce3405a5bf38d55ac3048de8346054bf5398/CMakeLists.txt#L92
with
if(NOT TARGET mqttc)
and using find_package in the else branch of that? this way we could keep the find-mqttc intact as well

For sure I can try it, but before I do it I would like to know, how can I ensure that the fix does not break existing solution.

Did it ever work?

I still have doubts that it would be right solution in comparison to pure find_package which is supporting the principle inversion of control.

@hikinggrass do you know whether the existing solution (the include(find-mqttc)) was working, because this is only executed in case EDM is disabled?

It works in combination with the yocto build with this pretty simple recipe: https://github.com/EVerest/meta-everest/tree/kirkstone/recipes-connectivity/mqttc
The patch there might be relevant


Has 1.3 some issues more than 1.3 RC2 ?

Hi, installing the 1.3 release I had some trouble with the music apps, it seems that was difficult start spotify and change to others app like simple radio or amazon music. In the previous relrase (1.3 RC2) I had no issue changing from music app to another. Anyone experimented the same? The app icon always show the rotating image as it is loading and does not stop. I removed the app and reinstalled it again, but my feeling is taht is not working as it was in the RC2. Did I something wrong? Incredible job by the way!!

Hi MarcLeo66,  I installed 1.3 (and 1.3-2) yesterday, but moved back to 1.3.RC2-56. 1.3 would start ok, but I would loose control after 5-10 mins, no more access to the search (libraries, next/previous song), also my buttons would no longer work to change tracks.
But now also 1.3rc2-56 seems to be a bit more sluggish to me, works far better than 1.3, but it takes way longer to start Spotify ... I did notice that MyBMW is now at V1.5.1, maybe a coincidence , but could well be that V1.5.1 causes these issues .... my 2 cents ...
Marc2480

I'm sorry to hear that! I did discover that my naming scheme means that 1.3 itself is considered older than 1.3rc2 and so Android uninstalls and resets all your settings when installing the new version, and I wonder if some previous power management settings that you had applied were also wiped away?
The rotating icon tells me that the car triggered the AM event but it did not reach the end where it resets the icon back to normal.
Would you be able to share an adb logcat to help me understand what's happening?

Hi Walter,
In fact I had to uninstall the 1.3 RC2 to install the 1.3, android did not allow me to install it over the RC2.
I will be happy to help you, just let me know how to send you the adb logcat.
Best regards.
Marco
De: Walter Huf @.>
Enviado el: jueves, 29 de julio de 2021 17:20
Para: hufman/AndroidAutoIdrive @.>
CC: MarcoLeo66 @.>; Author @.>
Asunto: Re: [hufman/AndroidAutoIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
I'm sorry to hear that! I did discover that my naming scheme means that 1.3 itself is considered older than 1.3rc2 and so Android uninstalls and resets all your settings when installing the new version, and I wonder if some previous power management settings that you had applied were also wiped away?
The rotating icon tells me that the car triggered the AM event https://github.com/hufman/AndroidAutoIdrive/blob/7189fc38020924823ca6ce337ed08fc47bc0a2d6/app/src/main/java/me/hufman/androidautoidrive/carapp/music/MusicApp.kt#L296  but it did not reach the end where it resets the icon back to normal.
Would you be able to share an adb logcat to help me understand what's happening?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/hufman/AndroidAutoIdrive/issues/356#issuecomment-889235580 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AVAOZUXNBXBGIKUFSH2BSSTT2FWSRANCNFSM5BGGLHLA .  https://github.com/notifications/beacon/AVAOZUVOBB6QS7GHJSGVRMLT2FWSRA5CNFSM5BGGLHLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGUAKQ7A.gif

The main piece you'll need is the ADB command itself, which comes as part of the Android SDK or Android Studio IDE. After installing that and plugging in your phone, check that you can run adb logcat in a terminal and see logging output from your phone. Normal phone activity is relatively busy, and so it might not remember the last time you were out in the car.
With that ready, go out to the car and try some tests, and then go back to your computer and run adb logcat -d > logcat.txt and email that to me.

It seems the mail was to big, how can I send youy the pictures?
De: @.*** @.>
Enviado el: viernes, 30 de julio de 2021 10:21
Para: 'hufman/AndroidAutoIdrive' @.>; 'hufman/AndroidAutoIdrive' @.>
CC: 'Author' @.>
Asunto: RE: [hufman/AndroidAutoIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
Hi Walter,
After reinstalling 1.3 I found the following:
Starting Spotify OK
Switching to Simple Radio was also Ok
But when I tried to switch back to Spotify it was not longer working (still hearing Simple Radio), even if it appear as the selected app, see pictures
Back to 1.3 RC2 same issues
Back to 1.3 again, after selecting an app, all music apps appeared under a new windows “Apps” and they worked well (only the amazon app does not start automatically and I had to start it manually in the phone), see pictures
I’ll try the logcat later.
Best regards.
Marco
De: Walter Huf @.*** @.> >
Enviado el: jueves, 29 de julio de 2021 21:03
Para: hufman/AndroidAutoIdrive @. @.> >
CC: MarcoLeo66 @. @.> >; Author @. @.***> >
Asunto: Re: [hufman/AndroidAutoIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
The main piece you'll need is the ADB command itself, which comes as part of the Android SDK or Android Studio IDE. After installing that and plugging in your phone, check that you can run adb logcat in a terminal and see logging output from your phone. Normal phone activity is relatively busy, and so it might not remember the last time you were out in the car.
With that ready, go out to the car and try some tests, and then go back to your computer and run adb logcat -d > logcat.txt and email that to me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/hufman/AndroidAutoIdrive/issues/356#issuecomment-889386216 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AVAOZUTTCXTY3I6AYGUJ4ZDT2GQV3ANCNFSM5BGGLHLA .  https://github.com/notifications/beacon/AVAOZUXEPRTFBVQDAEY2PU3T2GQV3A5CNFSM5BGGLHLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGUBPJ2A.gif

Let’s try with a smaller images.
BR
De: @.*** @.>
Enviado el: viernes, 30 de julio de 2021 10:23
Para: 'hufman/AndroidAutoIdrive' @.>; 'hufman/AndroidAutoIdrive' @.>
CC: 'Author' @.>
Asunto: RE: [hufman/AndroidAutoIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
It seems the mail was to big, how can I send youy the pictures?
De: @.*** @.>  @. @.> >
Enviado el: viernes, 30 de julio de 2021 10:21
Para: 'hufman/AndroidAutoIdrive' @. @.> >; 'hufman/AndroidAutoIdrive' @. @.> >
CC: 'Author' @. @.***> >
Asunto: RE: [hufman/AndroidAutoIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
Hi Walter,
After reinstalling 1.3 I found the following:
Starting Spotify OK
Switching to Simple Radio was also Ok
But when I tried to switch back to Spotify it was not longer working (still hearing Simple Radio), even if it appear as the selected app, see pictures
Back to 1.3 RC2 same issues
Back to 1.3 again, after selecting an app, all music apps appeared under a new windows “Apps” and they worked well (only the amazon app does not start automatically and I had to start it manually in the phone), see pictures
I’ll try the logcat later.
Best regards.
Marco
De: Walter Huf @.*** @.> >
Enviado el: jueves, 29 de julio de 2021 21:03
Para: hufman/AndroidAutoIdrive @. @.> >
CC: MarcoLeo66 @. @.> >; Author @. @.***> >
Asunto: Re: [hufman/AndroidAutoIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
The main piece you'll need is the ADB command itself, which comes as part of the Android SDK or Android Studio IDE. After installing that and plugging in your phone, check that you can run adb logcat in a terminal and see logging output from your phone. Normal phone activity is relatively busy, and so it might not remember the last time you were out in the car.
With that ready, go out to the car and try some tests, and then go back to your computer and run adb logcat -d > logcat.txt and email that to me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/hufman/AndroidAutoIdrive/issues/356#issuecomment-889386216 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AVAOZUTTCXTY3I6AYGUJ4ZDT2GQV3ANCNFSM5BGGLHLA .  https://github.com/notifications/beacon/AVAOZUXEPRTFBVQDAEY2PU3T2GQV3A5CNFSM5BGGLHLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGUBPJ2A.gif

I don't think emailing GitHub supports pictures, use the web interface. You can also upload so a hosting service like imgur and send a link that way.

I believe MyBMW upgraded over the weekend, do you see any change in behavior?

Hi Walter,
correct, now on version 1.5.2 (8932 Europe), running it with 1.3RC2-56, smooth as before, so possibly V1.5.1 had some issues of its own.
Marc2480

Hi everybody,
I'm on V 1.5.2 but no way to run the app like before, 1.3 or 1.3 RC2 are working in the same way. Starting Simple Radio the rotating icon never stop and change to Spotify was only possible selecting it manually in the app. Switching with the idrive menu to Simple Radio was not always working. I guess that when I intalled the app for the first time, with the old BMW app, all was working flawlessly. Now I'm not able to run the app like before. Maybe the new BMW app is the problem.

Can you check if the new MyBMW app has background execution restricted? Perhaps its BclWorker thread is dying, and so the traffic from the car isn't making it through MyBMW to AAI. Does the app work properly and then stop working after a few minutes? Do the icons disappear from the car if you force-close AAI? If they stick around, then MyBMW is holding on to the connection incorrectly and its power settings might need investigation. Did you check whether AAI is missing some previously-configured power settings?
The Simple Radio icon should trigger the music source to switch to Simple Radio and trigger the UI to switch and to reset the icon to the regular app icon. Similarly, pushing the Media button pushes the Audioplayer/Spotify main app icon (which is not the kind that spins) but the car still expects AAI to acknowledge the click before continuing to the UI. As a sign that messages from the car can make it to the app, does the Simple Radio icon successfully switch playback even if it doesn't otherwise change the UI? If the UI shows up, does it properly update the information shown in the car?
The Notifications app runs on a separate connection, and so the Notifications entry in the Office section and the empty book in Online Services are the same as the Simple Radio and Spotify icons from the Music app, but might respond even if the Music thread has crashed for some reason. Do you encounter the same behavior with the Notifications app?
As another test, does the Car Information tab show car information, and does it update when you roll the windows up and down? This is purely one-way, the car doesn't expect any response after it sends an update. However, some information (like the car speed and gear and sports mode, and interior/exterior temperature) will unsubscribe/resubscribe depending on whether Car Information is visible, so that might test communication towards the car too.

	Hi Walter,The MyBmw app has no restriction, the app does not stop after a few minutes.I started Simple Radio and was ok, If I close the app the normal way the icons remain the same, (rotating icon on Simple radio) and Spotify appear as selected. If I try to switch to Spotify not always work. All the above is using the Media/Radio main menu. Now, if I use the menu “Apps” switching from apps it’s not a problem. Amazon music never start if I do not start the app on the phone, then is working well, but always from the “Apps” menu. In the main  Media/Radio menu Simple Radio and Amazon music both have the spinning icon.I’m also using the eSound app, AAI does not recognize it at the beginning, but if I start it manually in the phone then it appear both in the Media/Radio and “Apps” menus and work correctly.If I force close AAI all the icons disappears.The notifications app it seems to work well.The car information works very well, that’s why I suggested you to build a graphic BMW car dashboard in a small/insufficient donation I made few weeks ago as<EMAIL_ADDRESS>hope this can help, best regards.Marco
	Obtener Outlook para iOS

De: Walter Huf @.***>Enviado: domingo, agosto 15, 2021 11:21 p. m.Para: hufman/AndroidAutoIdriveCC: MarcoLeo66; AuthorAsunto: Re: [hufman/AndroidAutoIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
Can you check if the new MyBMW app has background execution restricted? Perhaps its BclWorker thread is dying, and so the traffic from the car isn't making it through MyBMW to AAI. Does the app work properly and then stop working after a few minutes? Do the icons disappear from the car if you force-close AAI? If they stick around, then MyBMW is holding on to the connection incorrectly and its power settings might need investigation. Did you check whether AAI is missing some previously-configured power settings?
The Simple Radio icon should trigger the music source to switch to Simple Radio and trigger the UI to switch and to reset the icon to the regular app icon. Similarly, pushing the Media button pushes the Audioplayer/Spotify main app icon (which is not the kind that spins) but the car still expects AAI to acknowledge the click before continuing to the UI. As a sign that messages from the car can make it to the app, does the Simple Radio icon successfully switch playback even if it doesn't otherwise change the UI? If the UI shows up, does it properly update the information shown in the car?
The Notifications app runs on a separate connection, and so the Notifications entry in the Office section and the empty book in Online Services are the same as the Simple Radio and Spotify icons from the Music app, but might respond even if the Music thread has crashed for some reason. Do you encounter the same behavior with the Notifications app?
As another test, does the Car Information tab show car information, and does it update when you roll the windows up and down? This is purely one-way, the car doesn't expect any response after it sends an update. However, some information (like the car speed and gear and sports mode, and interior/exterior temperature) will unsubscribe/resubscribe depending on whether Car Information is visible, so that might test communication towards the car too.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
[
{
@.": "http://schema.org",
@.": "EmailMessage",
"potentialAction": {
@.": "ViewAction",
"target": "https://github.com/hufman/AndroidAutoIdrive/issues/356#issuecomment-899111473",
"url": "https://github.com/hufman/AndroidAutoIdrive/issues/356#issuecomment-899111473",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

Hmmm that's very interesting indeed! Since you can navigate around in the app to get to the internal app list, the connection appears to still work fine, so my theory is incorrect.
I would need to see the adb logcat -d to know more. The Music App should receive an am_onAppEvent from the car with which icon was clicked, and I could imagine this spinning symptom could happen if the data is unexpected somehow. Please email the log directly to me instead of trying to attach it to the GitHub Issue, the system log is relatively personal and you probably don't want everyone to see it.

Are you running a phone with aggressive battery optimizations? It was discovered in #355 that Huawei's App Launch management was causing a similar symptom, where the Music app would be paused halfway through initialization until the phone was unlocked and AAI was brought to the foreground.
Perhaps the rc version had some previous performance customizations on your phone, and uninstalling it to upgrade to the release cleared those settings.
The changelog between those versions doesn't have very many things that would cause problems. The most relevant change enables the Foreground Notification to stay active while the app waits for the car connection, which is intended to keep the process in memory more reliably. If it's under suspicion, it would be easy for you to try a test build of the 1.3 release but with that single commit reverted.
However, it is very hard for me to debug without more information: What phone are you running, and do you have any logs and timestamps of pressing the button vs the app responding?

Hi Walter,
I had no time to exctract any log till now, my phone is a Samsung S10. The only thing I’m sure is that I have to manually start playing music in eSound and Amazon Music to use them with AAI. Once started it is posible to switch for one app to another without any problem.
Best regards.
De: Walter Huf @.>
Enviado el: sábado, 28 de agosto de 2021 18:36
Para: BimmerGestalt/AAIdrive @.>
CC: MarcoLeo66 @.>; Author @.>
Asunto: Re: [BimmerGestalt/AAIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
Are you running a phone with aggressive battery optimizations? It was discovered in #355 https://github.com/BimmerGestalt/AAIdrive/issues/355  that Huawei's App Launch management was causing a similar symptom, where the Music app would be paused halfway through initialization until the phone was unlocked and AAI was brought to the foreground.
Perhaps the rc version had some previous performance customizations on your phone, and uninstalling it to upgrade to the release cleared those settings.
The changelog between those versions https://github.com/BimmerGestalt/AAIdrive/compare/1.3rc2...1.3  doesn't have very many things that would cause problems. The most relevant change https://github.com/BimmerGestalt/AAIdrive/commit/ec49e1c0626940b50dba4547802bb3a91b083dd8  enables the Foreground Notification to stay active while the app waits for the car connection, which is intended to keep the process in memory more reliably. If it's under suspicion, it would be easy for you to try a test build of the 1.3 release but with that single commit reverted.
However, it is very hard for me to debug without more information: What phone are you running, and do you have any logs and timestamps of pressing the button vs the app responding?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/BimmerGestalt/AAIdrive/issues/356#issuecomment-907651071 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AVAOZUTQB2DFS6YNCXVKOCTT7EF6BANCNFSM5BGGLHLA .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675  or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .   https://github.com/notifications/beacon/AVAOZUUDDP6HPNEMC3JCJZDT7EF6BA5CNFSM5BGGLHLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGYM2P7Y.gif

Hi Again,
My car is a 2016 F34 with NBTevo_ID5 (converted to ID6 lite)
Best
De: Walter Huf @.>
Enviado el: sábado, 28 de agosto de 2021 18:36
Para: BimmerGestalt/AAIdrive @.>
CC: MarcoLeo66 @.>; Author @.>
Asunto: Re: [BimmerGestalt/AAIdrive] Has 1.3 some issues more than 1.3 RC2 ? (#356)
Are you running a phone with aggressive battery optimizations? It was discovered in #355 https://github.com/BimmerGestalt/AAIdrive/issues/355  that Huawei's App Launch management was causing a similar symptom, where the Music app would be paused halfway through initialization until the phone was unlocked and AAI was brought to the foreground.
Perhaps the rc version had some previous performance customizations on your phone, and uninstalling it to upgrade to the release cleared those settings.
The changelog between those versions https://github.com/BimmerGestalt/AAIdrive/compare/1.3rc2...1.3  doesn't have very many things that would cause problems. The most relevant change https://github.com/BimmerGestalt/AAIdrive/commit/ec49e1c0626940b50dba4547802bb3a91b083dd8  enables the Foreground Notification to stay active while the app waits for the car connection, which is intended to keep the process in memory more reliably. If it's under suspicion, it would be easy for you to try a test build of the 1.3 release but with that single commit reverted.
However, it is very hard for me to debug without more information: What phone are you running, and do you have any logs and timestamps of pressing the button vs the app responding?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/BimmerGestalt/AAIdrive/issues/356#issuecomment-907651071 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AVAOZUTQB2DFS6YNCXVKOCTT7EF6BANCNFSM5BGGLHLA .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675  or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .   https://github.com/notifications/beacon/AVAOZUUDDP6HPNEMC3JCJZDT7EF6BA5CNFSM5BGGLHLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGYM2P7Y.gif

Have you seen any change in behavior in recent builds? There's been a few occasional performance optimizations, and I wonder if they've helped you at all?

Hi Walter,
I am stuck to the 1.3-rc2-56 build from July 25th ... simply, this one works for me in all scenario's ... only thing I do is, whenever MyBMW is updated, is to restart my phone ...
thanks, Marc


Update swift-4.2 version

Thanks a ton for your contributing!

please let me know when you merge it so i can use ur pod into my app thanks


36 use latest approved version of metadata

added a possibility load approved or draft metadata, dependign on state of datasetStatus in settings

Codecov Report

Merging #39 (d3f8985) into master (092d865) will decrease coverage by 0.23%.
The diff coverage is 16.21%.

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


Listresources: Print quotes on empty api version

allowes for easier combination with column based tools like awk

/assign @fahlmant


Quickly manage opended app processes

Description of the new feature / enhancement
The task manager will give you all the processes currently running, but I only care about those less than 10 apps I have open.
I hope to have a function, when I press the shortcut key to pop up a list of applications, and then navigate to an application through the arrow keys, and press delete to close it.
In this list, I can disable certain apps from being connected to the Internet, I can press delete to close it, and I can also suspend it.
I tried the task manager and its downside is that it lists all the processes and I don't care about the vast majority.
Scenario when this would be used?
When I work, I can see which applications have been started in real time, so I can clearly know which software I should open. Then I use alt+space to quickly open it. When my work is over, I can clearly to know which apps should be closed, otherwise they will eat up memory while I'm gaming.
The above process can be implemented completely using the task manager, but the disadvantage of the task manager is that it is too redundant.
Supporting information
No response

I hope to have a function, when I press the shortcut key to pop up a list of applications, and then navigate to an application through the arrow keys, and press delete to close it.

This sounds like PowerToys Run. Quite literally, actually. I bet that'll be your solution :)

@yymm120 Let us know if that works for you? /needinfo


fix(config): missing CORS_ORIGIN env variable throws error

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
479

Relevant Lines:
479

💛  - Coveralls


ACS Common Generic List - Throwing exception if am trying to add more than 10 items

Required Information

[ ] AEM Version, including Service Packs, Cumulative Fix Packs, etc: AEM Cloud Version 2022.1.6228.20220123T154100Z
[ ] ACS AEM Commons Version: 5.1.2
[ ] Reproducible on Latest? YES

Expected Behavior
I should be able to add as many items using the Generic list ACS Common feature
Actual Behavior
If am trying to add more than 10 items to generic list , am getting the exception as below
aused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: org.apache.sling.api.request.TooManyCallsException: BundledScriptServlet (/libs/granite/ui/components/coral/foundation/form/field/field.jsp) 	at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInternal(JspServletWrapper.java:685) [org.apache.sling.scripting.jsp:2.5.2] 	at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:602) [org.apache.sling.scripting.jsp:2.5.2] 	at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:519) [org.apache.sling.scripting.jsp:2.5.2] 	at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:445) [org.apache.sling.scripting.jsp:2.5.2] 	at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.callJsp(JspScriptEngineFactory.java:501) [org.apache.sling.scripting.jsp:2.5.2] 	at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:586) [org.apache.sling.scripting.jsp:2.5.2] 	at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388) [org.apache.sling.scripting.core:2.3.6]
Steps to Reproduce
Create a  latest Local AEM SDK version
Deploy ACC Common 5.1.2 version
Navigate to http://localhost:4502/generic-lists.html/etc/acs-commons/lists
Create a generic list
Add more than 10 items in the list and observe the behaviour
User will see too many call exception in the error log and you will be able to view all the items in Generic list UI

did u try updating the number of calls per per request in apache Sling man servlet configuration ? Hope this helps

Apart from above option to BUMP the 'Number Of calls Per Request', the latest ACS Commons release 5.2.0 might help to resolve it. Please check...

@SachinMali I believe the 5.2.0 solution depends on generic list localization being disabled. It doesn't fix the situation if localization is desired.

I think @adamcin suggestion might be best -- otherwise I think a rewrite that simplifies the impl could be a reasonable option. (maybe something more akin to how it was originally designed - just not sure about back compat to the current version)


Lgo44 202407

update Hub V2 features

@msp1974  here is the last version of my developments
I am trying to create WindowDoor sensor but I have an issue  files Window_door.py or Bynary_sensor.py
As usual your help will be welcome. thanks in advance.
here are 2 diagnostic files for my main hause and my secondary house both equiped wit hub V2
config_entry-wiser-01J42RWFRZPZCJ6R8ATHQBMXMW.json
config_entry-wiser-04b54a69ee02ea23d613b96cb315965b (5).json


Restore AtomicDirectory non-locked good behavior.

This was broken by #1961 which did not account for the two unlocked
uses of AtomicDirectory by the pex.resolver for wheel building and
installing. Although those directories deserve a second look as
candidates for exclusive locking, we have seen no known issues with
those directories since introduction of AtomicDirectory up until #1961.
As such, this change just restores the prior behavior for those two
cases.
Fixes #1968

And the proof of the pudding using the gist offered up by @tapetersen in #1968:
Before:
(make.venv) jsirois@Gill-Windows:~/triage/pex-issues-1968 $ make -j10 pexes
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex1.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex2.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex3.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex4.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex5.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex6.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex7.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex8.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex9.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex10.pex -r requirements-ci.txt
Could not find the installation RECORD for anyio 3.6.1 under /home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/cb29b9c70620506a9a8f87a309591713446953302d7d995344d0d7c6c0c9a7be/anyio-3.6.1-py3-none-any.whl.workdir
make: *** [Makefile:10: pex2.pex] Error 1
make: *** Waiting for unfinished jobs....
Could not find the installation RECORD for anyio 3.6.1 under /home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/cb29b9c70620506a9a8f87a309591713446953302d7d995344d0d7c6c0c9a7be/anyio-3.6.1-py3-none-any.whl.workdir
[Errno 2] No such file or directory: '/home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/cb29b9c70620506a9a8f87a309591713446953302d7d995344d0d7c6c0c9a7be/anyio-3.6.1-py3-none-any.whl.workdir/.prefix/lib/pythonX.Y/site-packages'
Destination path '/home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/cb29b9c70620506a9a8f87a309591713446953302d7d995344d0d7c6c0c9a7be/anyio-3.6.1-py3-none-any.whl.workdir/.prefix/lib/lib' already exists
make: *** [Makefile:10: pex1.pex] Error 1
[Errno 2] No such file or directory: '/home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/2e3c3fc1538a094aab74fad52d6c33fc94de3dfee3ee01f187c0e0c72aec5337/exceptiongroup-1.0.0rc9-py3-none-any.whl.workdir/.prefix/lib/pythonX.Y/site-packages'
make: *** [Makefile:10: pex5.pex] Error 1
make: *** [Makefile:10: pex4.pex] Error 1
Destination path '/home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/cb29b9c70620506a9a8f87a309591713446953302d7d995344d0d7c6c0c9a7be/anyio-3.6.1-py3-none-any.whl.workdir/.prefix/lib/lib' already exists
make: *** [Makefile:10: pex6.pex] Error 1
Destination path '/home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/cb29b9c70620506a9a8f87a309591713446953302d7d995344d0d7c6c0c9a7be/anyio-3.6.1-py3-none-any.whl.workdir/.prefix/lib/lib' already exists
make: *** [Makefile:10: pex9.pex] Error 1
Could not find the installation RECORD for anyio 3.6.1 under /home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/cb29b9c70620506a9a8f87a309591713446953302d7d995344d0d7c6c0c9a7be/anyio-3.6.1-py3-none-any.whl.workdir
make: *** [Makefile:10: pex3.pex] Error 1
Could not find the installation RECORD for typing_extensions 4.4.0 under /home/jsirois/triage/pex-issues-1968/.pex/installed_wheels/16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e/typing_extensions-4.4.0-py3-none-any.whl.workdir
make: *** [Makefile:10: pex7.pex] Error 1
make: *** [Makefile:10: pex8.pex] Error 1
(make.venv) jsirois@Gill-Windows:~/triage/pex-issues-1968 $

After:
(make.venv) jsirois@Gill-Windows:~/triage/pex-issues-1968 $ pip uninstall pex
Found existing installation: pex 2.1.112
Uninstalling pex-2.1.112:
  Would remove:
    /home/jsirois/triage/pex-issues-1968/make.venv/bin/pex
    /home/jsirois/triage/pex-issues-1968/make.venv/bin/pex-tools
    /home/jsirois/triage/pex-issues-1968/make.venv/bin/pex3
    /home/jsirois/triage/pex-issues-1968/make.venv/lib/python3.10/site-packages/pex-2.1.112.dist-info/*
    /home/jsirois/triage/pex-issues-1968/make.venv/lib/python3.10/site-packages/pex/*
Proceed (Y/n)?
  Successfully uninstalled pex-2.1.112
(make.venv) jsirois@Gill-Windows:~/triage/pex-issues-1968 $ pip install ~/dev/pantsbuild/jsirois-pex
Processing /home/jsirois/dev/pantsbuild/jsirois-pex
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pex
  Building wheel for pex (pyproject.toml) ... done
  Created wheel for pex: filename=pex-2.1.112-py2.py3-none-any.whl size=2883527 sha256=e81c41ce0ba1149774a26f8747d0cc780e691f888b4af66cdfcf6998661c932e
  Stored in directory: /home/jsirois/.cache/pip/wheels/e3/ff/05/d414cebba4477298e23378392c9ad1a98bc8fb2da011bea28a
Successfully built pex
Installing collected packages: pex
Successfully installed pex-2.1.112
(make.venv) jsirois@Gill-Windows:~/triage/pex-issues-1968 $ make clean
rm -rf  pex* /home/jsirois/triage/pex-issues-1968/.pex
(make.venv) jsirois@Gill-Windows:~/triage/pex-issues-1968 $ make -j10 pexes
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex1.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex2.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex3.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex4.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex5.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex6.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex7.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex8.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex9.pex -r requirements-ci.txt
PIP_NO_INDEX=1 PIP_FIND_LINKS=wheels pex -o pex10.pex -r requirements-ci.txt
(make.venv) jsirois@Gill-Windows:~/triage/pex-issues-1968 $


API timeout - Unable to upload

CameraHandlerService
1521243452155 V/CameraManagerOld: Releasing camera
1521243452155 D/CameraManagerOld: safeStopPreview
1521243452305 D/CameraManagerOld: safeStopPreview: kali destroyed texture
1521243452547 D/GoogleLocationManager: disconnect: disconnecting google api
1521243452552 D/EventBus: unregister: GoogleLocationManager
1521243473595 D/OsvRequestResponseListener: Volley error on request. Error: com.android.volley.TimeoutError
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:168)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:133)
1521243473603 W/UploadManager: createSequence: ApiResponse{apiCode=-1, apiMessage='Unknown', httpCode=408, httpMessage='Timeout error'}
1521243473608 D/UploadManager: createSequence: creating sequence request
1521243473627 D/UploadManager: commitNextSequence: 1

seems to have come back oline finally

Hi James, checked the monitoring but couldn't find any downtime happening two days ago.
You closed this issue two minutes after opening it, but did you experience that problem for a longer time before reporting?
Thanks!

yeah was trying to upload for an hour. Tried my wifi. Tried cell data. Nothing. Eventually it worked


fix(express): converts headers into required key:value type

keploy server requires headers value type to be an array of string. Due to this response and request
header's value type was converted.

Fixes #23 issue


Projects after converting to RN v0.29 don't compile any more

After implementing app migration steps with MainApplication.java and all that (as indicated in breaking changes for release 0.29) I now get compile error when running react-native build-android:
/MainApplication.java:35: error: incompatible types:  cannot be converted to Activity
new RCTSplashScreenPackage(this),
^
My MainApplication.java after performing the migration looks like this:
package com.myreddoor;

import android.app.Application;
import android.util.Log;

import com.facebook.react.ReactApplication;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;

import com.BV.LinearGradient.LinearGradientPackage;
import com.remobile.splashscreen.*;
import android.app.Activity;
import com.facebook.react.ReactActivity;
import io.mezon.rnslider.RNSliderPackage;
import com.eguma.barcodescanner.BarcodeScannerPackage;

import java.util.Arrays;
import java.util.List;

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    protected boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          new LinearGradientPackage(),
          new RCTSplashScreenPackage(this),
          new RNSliderPackage(),
          new BarcodeScannerPackage()
      );
    }
  };

    @Override
    public ReactNativeHost getReactNativeHost() {
        return mReactNativeHost;
    }
}

Obviously RCTSplashScreenPackage excepts an instance of Activity type, hence the error.
What should the package instantiation be after upgrading to RN v0.29?
It would also be nice to update the implementation steps. They are very old.

This is how I fixed this problem - I'm sure there's a better way but this works for me:
In MainActivity.java add the following lines:
                public static MainActivity mainActivity = null;

		public MainActivity() {
			mainActivity = this;
		}

So your MainActivity.java would look something like:
package com.sdfsdfsdfsdf;

import com.facebook.react.ReactActivity;

public class MainActivity extends ReactActivity {

		public static MainActivity mainActivity = null;

		public MainActivity() {
			mainActivity = this;
		}

    /**
     * Returns the name of the main component registered from JavaScript.
     * This is used to schedule rendering of the component.
     */
    @Override
    protected String getMainComponentName() {
        return "sdfsdfsdfsdf";
    }
}

In the MainApplication.java simply change the call to:
new RCTSplashScreenPackage(MainActivity.mainActivity)
Hope this helps! :)

I've forked and rewrote (was like 80% rewritten) this package with support for later versions of react-native -- https://github.com/mehcode/rn-splash-screen

@mehcode why rewrite? What's improved?


🐛 BUG: Cannot Wrangler Dev with D1 (NuxtJS)

What version of Wrangler are you using?
wrangler@d1 0.0.0-7c228171
What operating system are you using?
Mac
Describe the Bug
As soon as I add the d1_database to my wrangler.toml I get the error No matching export in ".output/server/index.mjs" for import "default" when running npx wrangler@d1 dev
Error:
Retrieving cached values for account from node_modules/.cache/wrangler
✘ [ERROR] No matching export in ".output/server/index.mjs" for import "default"

../../../../private/var/folders/zv/hw6r8q9j365df9rl1ncgm2f80000gn/T/tmp-56345-ANj5xEsp2QnO/d1-beta-facade.entry.js:5:7:
5 │ import worker from "/Users/jjjrmy/Sites/***/.output/server/index.mjs";

wrangler.toml
d1_databases = [
  { binding="DB", database_name="***", database_id="***", preview_database_id="***" },
]

as soon as I take that out of my config file, it works

can you share the full wrangler.toml (w/o secrets) and the source code of your worker script?

@celso
name = "funnel"
workers_dev = true
compatibility_date = "2022-06-28"

main = ".output/server/index.mjs"

kv_namespaces = [
  { binding="BRANDS", id="***", preview_id="***" }
]

d1_databases = [
  { binding="DB", database_name="***", database_id="***", preview_database_id="***" },
]

[site]
bucket = ".output/public"

@JacobMGEvans how can I make a reproduction without exposing my secrets?

@JacobMGEvans how can I make a reproduction without exposing my secrets?

Fake secrets.

You must define an "export default" function

@jjjrmy I'm going to close this issue, feel free to reopen if you're still experiencing this problem!


Bert: Attention mask is required for embedding calculation on BGE model

Attention mask, as already reported here https://github.com/huggingface/candle/issues/1552 is not available.
However, that issue was closed because bert is used only for computing embeddings.
But the attention mask is required for proper calculation of many sentences at once, otherwise, results will not be correct.
I created a repository that reproduces it. https://github.com/lucasavila00/candlerepro
Main Logs: https://github.com/lucasavila00/candlerepro/blob/main/log.log
Cheking the logs of the main function shows us that if we process one item at a time, we get the right results.
Also, it shows that my implementation for batching (basically copied from the examples) adds the right padding.
And it shows that the batched implementation, if using just one item, is also correct.
However, if 2 items are used, the paddings will affect results due to missing attention mask.
The results were also checked against this Python implementation: https://github.com/lucasavila00/candlerepro/blob/main/test.ipynb
A picture of the notebook, if github can't render it:

It shows all values match, however the tokenizer in Python creates the required attention mask and passes it to the model call.

I'm reading trough transformers' code and it seems what is required for the correct calculation is this extended attention mask https://github.com/huggingface/transformers/blob/6eedfa6dd15dc1e22a55ae036f681914e5a0d9a1/src/transformers/modeling_utils.py#L877C1-L910C39
Where it is extended_attention_mask = (1.0 - extended_attention_mask) * torch.finfo(dtype).min, the rest of the function does broadcasting.
Then, this needs to be added to the attention scores, like here https://github.com/huggingface/transformers/blob/6eedfa6dd15dc1e22a55ae036f681914e5a0d9a1/src/transformers/models/bert/modeling_bert.py#L350-L352
The tokenizer also needs to output the embedding mask.
This seems like a reasonably simple change, I'll try creating a PR


Use it on pages without forcing authentication

With this update it's possible to have some pages that don't force authentication, but can still access the user object if the user is logged in.
However, now you must either write
@With( SecureSocialLogin.class )
or
@With( SecureSocialNoLogin.class )
in your controller. I'm not sure if this is the best to "improved" the code though. Perhaps something else could have been done to keep backward compatibility.

an other option would be to have a annotation property instead of two annotations

I personally think this is the most important issue that should get fixed as fast as possible

I changed the implementation of SecureSocial.getCurrentUser() and it now returns the logged in user (if there's one) in secured and unsecured controllers.  There's no need to have something like SecureSocialNoLogin.class.


fix: remove signed fetch origin & referer

What does this PR change?
Whenever we attempt to set these values explicitly LIBCURL throws the following errors:
The header Origin is managed automatically, setting it may have no effect or result in unexpected behavior.
The header Referer is managed automatically, setting it may have no effect or result in unexpected behavior.

Digging deeper it was introduced due to a specific server side check here which effectively means we are forced to "spoof" the origin rather than let the library manage the origin itself (for security purposes).
No other endpoints should reject based on origin in this way, so it should be fixed server side to ensure the guestbook works in Goerli. The CORS policies should be setup server side to ensure security to avoid CSRF attacks and allow for localhost requests but not cross-origin.
How to test the changes?

Play happy paths
Ensure mini-games work as expected and the usual progress is saved

NOTE: Guestbook will no longer work
Our Code Review Standards
https://github.com/decentraland/unity-renderer/blob/master/docs/code-review-standards.md

We link that same example scene from the docs, amongst others that also do the same checks:
https://docs.decentraland.org/creator/development-guide/sdk7/authoritative-server/#example-scenes-with-dedicated-server