[Android] Crashed: [deprecation] getApplicationInfo(String,int) in PackageManager has been deprecated

Plugin Version
environment:
sdk: '>=2.18.4 <3.0.0'
dependencies:
flutter:
sdk: flutter
google_mobile_ads: ^2.3.0

Steps to Reproduce

I have unfortunately no way to reproduce this issue, it happens every time I run flutter clean && flutter build appbundle.
I am only using native ads in my app.

Expected results:
The app is crashing.
Actual results:
The app should not crash

Logs

Launching lib/test.dart on sdk gphone x86 64 in debug mode...
/Users/admin/.pub-cache/hosted/pub.dartlang.org/google_mobile_ads-2.3.0/android/src/main/java/io/flutter/plugins/googlemobileads/FlutterRequestAgentProvider.java:31: warning: [deprecation] getApplicationInfo(String,int) in PackageManager has been deprecated
              .getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA);
              ^

/Users/admin/.pub-cache/hosted/pub.dartlang.org/google_mobile_ads-2.3.0/android/src/main/java/io/flutter/plugins/googlemobileads/FlutterAd.java:75: warning: [deprecation] get(String) in BaseBundle has been deprecated
          Object value = responseInfo.getResponseExtras().get(key);
                                                         ^
/Users/admin/.pub-cache/hosted/pub.dartlang.org/google_mobile_ads-2.3.0/android/src/main/java/io/flutter/plugins/googlemobileads/FlutterAd.java:163: warning: [deprecation] get(String) in BaseBundle has been deprecated
          adUnitMapping.put(key, responseInfo.getCredentials().get(key).toString());
                                                              ^
3 warnings

Admins-MacBook-Pro:bug admin$ flutter analyze
Analyzing bug...
No issues found! (ran in 4.2s)

[✓] Flutter (Channel stable, 3.3.8, on macOS 12.6.2 21G312 darwin-x64, locale en-ID)
    • Flutter version 3.3.8 on channel stable at /Users/admin/Documents/Flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (3 weeks ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /usr/local/share/android-sdk
    • Platform android-33, build-tools 29.0.2
    • ANDROID_HOME = /usr/local/share/android-sdk
    • ANDROID_SDK_ROOT = /usr/local/share/android-sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
    • All Android licenses accepted.

[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to
        your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed
      instructions).

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 11 (API 30) (emulator)
    • macOS (desktop)            • macos         • darwin-x64     • macOS 12.6.2 21G312 darwin-x64
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Hi @a43501
Does this issue happen with googleads-mobile-flutter sample code? (Native ads is implemented at ReusableInlineExample class)
If not so, please provide the output of flutter run -v and the affected device information. Thanks!


Connection to existing Appium server

I would like to connect to an existing appium server, because it runs on a different machine and cannot be started from the machine where the agouti tests are running.
As fas as I understand, the appium WebDriver is specified by a command and an URL (see appium/webdriver.go line 16-18):
        url := "http://{{.Address}}/wd/hub"
	command := []string{"appium", "-p", "{{.Port}}", "--log","/tmp/appium.log"}
	agoutiWebDriver := agouti.NewWebDriver(url, command, newOptions.agoutiOptions...)

If I have an running appium server, I could just supply an empty command. But I cannot change the port of the appium server. Also not its address.
Can I somehow create a WebDriver with a fixed port?

Created a pull request for this: https://github.com/sclevine/agouti/pull/199


Pretrained teacher model

Hi, where could I find the for teacher pretrained model of resnet18 wrn and mobilenetv2? Thanks!

Here's a Google Drive link containing adversarially trained WRN and ResNet-18 teacher models: https://drive.google.com/drive/folders/1h2pFKxO8Ip3vKjGxDjDZb769aDh6OFOv?usp=sharing

Actually, I mean the three teacher models without adversarial training which could achieve 0.94 acc on clean images. Thanks for your attention!

I have now updated the google drive folder to contain clean trained WRN, ResNet-18 and MobileNetV2 on CIFAR-10.  Feel free to let me know if you have any other questions!

Here's a Google Drive link containing adversarially trained WRN and ResNet-18 teacher models: https://drive.google.com/drive/folders/1h2pFKxO8Ip3vKjGxDjDZb769aDh6OFOv?usp=sharing

it is not active


Entity class added and tested (partially)

There's a lot of work to be done yet (complete entity tests and change previous character tests) but it's a good start.

Don't marge till all test passes!


[9.x] TrimString can now remove NBSP

This is a good idea, had a similar issue. This can be a time consuming bug developers have to deal with.

This is causing some issues: https://github.com/laravel/framework/issues/40577


Paragraph overrides blockquote when using overrides

Hi 👋 When using the overrides feature, paragraph overrides blockquote, not allowing to customize blockquote text differently.
Sandbox reproduction: https://codesandbox.io/s/jolly-swanson-s817n?file=/src/App.js:338-391

I'm experiencing this as well.

Any news?

Facing the same issue, any updates??

I confirm the issue too.

From the code perspective, the regular expression for blockquote is using this expression
/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/
That means a double \n\n can do the trick. That might make sense since we may need to enter a text as a new line but with the same quote.
Hopefully that can be helful info for others.

The problem is we still continue processing the inner content of the blockquote to feed into your custom component, so you end up with nested paragraph tags, the deepest one being rendered by us with the coloring from the defined override…
Perhaps a way we could get around this is to inject the compiler and raw inner content as props into your custom component so you can choose to provide different options when rendering the blockquote to get your desired result.

(This would be a breaking change, but feels like probably a good addition.)


Add checking of ASYNC jobs func pointer

This pull request is to check the function pointer passed in when resuming an async job. If the function pointer does not match the function pointer of the job being resumed then the job will not be resumed and an error will be returned.
There are two places where this check has been added:
Firstly at the async level within libcrypto. This handles the general case.
The second place is within libssl where the async jobs are used for SSL_do_handshake/SSL_read/SSL_write. These functions use a common function to pass into the job but store their specific type and function pointer within their func args. This requires a secondary check specific to that implementation to check the type and function pointer within the func args.  A new libcrypto level getter function was required to retrieve the existing func args from a job.
In a way it should be the applications responsibility to ensure the the job is resumed with the same function pointer as it was started with, but consider the following behaviour:
Currently it is possible for instance to call SSL_write, the job be paused, then the calling application decide to call SSL_shutdown without realising that a job is still in progress. If this happens then when SSL_shutdown is called then the job will resume in the SSL_write, complete the SSL_write successfully and return out of the job. To the application this will appear as if the SSL_shutdown has completed successfully but in reality no SSL_shutdown was executed. This makes the issue quite difficult to detect.
By adding the checking it forces a failure making the issue obvious and it can be addressed at the application level. By having this checking it aids people converting existing applications that might have quite complex behaviour already so that incorrect transitions are detected earlier rather than living on as undetected incorrect behaviour.
This pull request is raised against the master branch. If this fix is considered a bug fix then it could also go into 1.1.0 but I understand that it maybe considered an enhancement especially as it has added a new getter function.

Ping?  This oldie has been hanging around for a bit. @stevelinsell, would you mind responding, and rebasing on a fresher master?

Ping @stevelinsell. What is the status of this?


Fix/rename file

This PR partially fixes https://github.com/datascienceinc/notebooks-api/issues/58 by doing a file existence check in the extension side. This PR also fixes https://github.com/datascienceinc/RestfulContentManager/issues/3 and throws an error if model returned is null.
Testing.

If you have way to test RCM locally go for it.
Else build a wheel of RCM using python setup.py bdist_wheel --universal and use that wheel to isntall RCM in singleuser. Let me know if have questions.

UAT

Create a new notebook and rename it.
Create another notebook and try to rename with same name as in previous step.

:bear: this fixes both issues:

rename works
deletion no longer triggers stack trace in js console
nice.

LGTM - :shipit:


chore: upgrade projen

This PR upgrades projen to the latest version

let me fix it

duplicate https://github.com/aws-samples/aws-cdk-for-k3scluster/pull/71


Method checkPrime() is too slow

Hi.
I use ssh2 library https://github.com/mscdex/ssh2 in a browser. I have faced up with next problem.
Method checkPrime() at this code
defineError(this, checkPrime(this.__prime, generator));

works very very slowly, so I can't connect to my server. I try to connect by key with a passphrase, 'ctr' ciphers is used.
As I discovered method Red.prototype.pow  make such delays.
Thanks a lot.

so diffie-hellman arithmetic is pretty slow in general, so if you are able to use elliptical curve diffie hellman to authenticate then that is probably preferable for you.
checkPrime is simply the very first bit of big number math being done, if it can't get through that it probably won't get there the latter stuff.

I can't understand a meaning of this method. If I set another value (8, 4, 2, "any_string") instead of calling checkPrime(this.__prime, generator)), the connection to the server is work correctly.
Can you please get additional information about this method?
When code is commented, it is also useful.

In previous versions of node it would throw an error if you used an unsafe
prime but in more recent versions it just sets a property so we could
switch that to a lazily calculated getter so we only do the work if we need
to.
On Mon, Oct 26, 2015, 2:14 AM zhulduz<EMAIL_ADDRESS>wrote:

I can't understand a meaning of this method. If I set another value (8, 4,
2, "any_string") instead of calling checkPrime(this.__prime, generator)),
the connection to the server is work correctly.
Can you please get additional information about this method?
When code is commented, it is also useful.
—
Reply to this email directly or view it on GitHub
https://github.com/crypto-browserify/diffie-hellman/issues/16#issuecomment-151037148
.

Thanks a lot)


Fix broken links in api-server-authorized-ip-ranges.md

Proposed change: fix broken links.

@schaffererin
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

This is all good. Thanks, as always, for your contribution, @JoeyC-Dev! #sign-off


Validate public source embargoed flaw

An embargoed Flaw's source should not be public, thus this commit adds a
validation check for this explicit purpose.
Closes OSIDB-337

LGTM. Only one thing I realized is that as this all goes to osidb/models.py which is IMO already too big we should I think eventually split it. There are already some validators in osidb/validators.py so maybe we could make it like FlawValidator in there? I am just not sure it could use self any more or it would have to be supper class or something. We will see.

We can, if file length is a problem there is one Django pattern that we don't use in any of our projects but might be a good idea to start adopting:
Instead of having all model definitions in models.py you can have a models/ directory and have individual files per model or closely-related models, e.g.:
osidb/
├─ apps/
├─ osidb/
│  ├─ models/
│  │  ├─ flaw.py
│  │  ├─ affect.py
│  │  ├─ tracker.py
├─ collectors/

Takes more time but it's very well-organized, but shifting to validators.py is also fine

Mode-wise organization looks nice. I am all for it. The current models.py is already hard to order and navigate.


Placing Advanced Inscriber in world causes crash

Here's the error code:
https://paste.ee/p/JRqZQ
I tried a new world just placing the Advanced Inscriber with no other machines or set up, same crash. Here's the code for that world:
https://paste.ee/p/EDWmA
Cheers!

poke

Wow. I'm sorry, running the wrong file (1.12.1 version <IP_ADDRESS>) updated to 1.12.2 version <IP_ADDRESS> and all good.
Cheers!


Highlighting taxon name in Suggestions of Identify modal can close modal

From: https://forum.inaturalist.org/t/highlighting-taxon-name-in-suggestions-of-identify-modal-can-close-modal/9107
" if you go to highlight the taxon name in the Suggestions tab of the Identify Modal and release outside the drop-down, the whole modal closes."

I can replicate in Chrome, but not Firefox.

I investigated this today and I'm not sure it's worth fixing. It's due to a bug in react-bootstrap that has been fixed in more recent versions. Updating to a fixed version would mean updating Bootstrap, which seems like way more work than this is worth. I tried creating extensions of the relevant changed components (Modal and ModalDialog) and I'm running into problems with bound class variables... which don't seem like a great way to store this kind of state anyway. I suspect there's a way to make this approach work using component state or even global variables, but I'm not sure either is really worth it given how infrequent this bug must be.


Recursion doesn't work inside lambdas.

Gives an name error for example, this: f=Ba:0 Fa==0 G f(a-1);z(f(5))

This problem never existed. Apparently, 'exec' doesn't work as expected inside a class method.


New package: HoloProcessing v0.1.2

Registering package: HoloProcessing
Repository: https://github.com/rfhklwt/HoloProcessing.jl
Created by: @rfhklwt
Version: v0.1.2
Commit: 408b6895c6980b83874815da1d64b1722cd73628
Reviewed by: @rfhklwt
Reference: https://github.com/rfhklwt/HoloProcessing.jl/commit/408b6895c6980b83874815da1d64b1722cd73628#commitcomment-49537667

This PR should be closed please since the same package has been pulled request in #34083


merge the issue and pull request prompt templates into one with a new parameter

This is a tough case for codewhisper. Seems like we want to do a rename but it's failing to


load_sstable not found

Hi, thanks for your work, i download code and run , load_sstable is not found error with data_loader.py,how i fix it ？

Sorry, load_sstable should be deprecated. It's fixed now. Thanks for spotting this.

@arthurchen0518  dose eval have to execute the process code with training process, the provided eval did not run successfully,my tf version is 2.8, and i update evaluation.evaluate_repeatedly to evaluation.evaluate_once is not work. i'm looking forward to your reply,thanks very mush


Adding a bin entry into package.json

This just adds a bin entry into package.json so when you install the package, you can then do ./node_modules/.bin/api-blueprint-validator-module to run the program.

Hey @erunion
Thanks for the contribution

My pleasure!


Fix: RFC 2119 link

The link to IETF RFC 2119 is broken.
This adds a new link and changes the spelling of keywords to lowercase.

Is there a specific reason to break with the corresponding BCP 14, which consists of RFC 2119 (keyword definition) + the 2017 update RFC 8174 (spelling clarification) which demand to always use ALLCAPS?

Personally I totally missed that the lower-case keywords are intended to follow RFC 2119 when first skimming the standard -- allthough I suppose the allcaps might be confusing when unfamiliar.

Yes, all-caps is just too weird to read and thus we never did that. Thus we re-define the keywords to lowercase now, otherwise same naming as indicated.

@s9105947 is it ok if you add your name & affiliation to https://github.com/settings please ? :)
It's a bit hard otherwise for us to keep track who we email and chat on GitHub with :slightly_smiling_face:


Incompatible shapes: [3,8,50,50] vs. [3,3,50,50]

I am using code "English-to-Spanish translation with a sequence-to-sequence Transformer" to train in another language. English to Arabic.
Why do you think this error occurred?
I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: Incompatible shapes: [3,8,50,50] vs. [3,3,50,50]
[[{{node gradient_tape/transformer/transformer_encoder/multi_head_attention/softmax/add/BroadcastGradientArgs}}]]
Traceback (most recent call last):
File "/home/train.py", line 233, in
transformer.fit(train_ds, epochs=epochs, validation_data=val_ds)
File "/home/venv/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/venv/lib/python3.10/site-packages/tensorflow/python/eager/execute.py", line 52, in quick_execute
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Graph execution error:
Detected at node 'gradient_tape/transformer/transformer_encoder/multi_head_attention/softmax/add/BroadcastGradientArgs' defined at (most recent call last):
File "/home/train.py", line 233, in
transformer.fit(train_ds, epochs=epochs, validation_data=val_ds)
File "/home/venv/lib/python3.10/site-packages/keras/utils/traceback_utils.py", line 65, in error_handler
return fn(*args, **kwargs)
File "/venv/lib/python3.10/site-packages/keras/engine/training.py", line 1685, in fit
tmp_logs = self.train_function(iterator)
File "/venv/lib/python3.10/site-packages/keras/engine/training.py", line 1284, in train_function
return step_function(self, iterator)
File "/home//venv/lib/python3.10/site-packages/keras/engine/training.py", line 1268, in step_function
outputs = model.distribute_strategy.run(run_step, args=(data,))
File "/home//venv/lib/python3.10/site-packages/keras/engine/training.py", line 1249, in run_step
outputs = model.train_step(data)
File "/home/venv/lib/python3.10/site-packages/keras/engine/training.py", line 1054, in train_step
self.optimizer.minimize(loss, self.trainable_variables, tape=tape)
File "/home/venv/lib/python3.10/site-packages/keras/optimizers/optimizer.py", line 542, in minimize
grads_and_vars = self.compute_gradients(loss, var_list, tape)
File "/home/venv/lib/python3.10/site-packages/keras/optimizers/optimizer.py", line 275, in compute_gradients
grads = tape.gradient(loss, var_list)
Node: 'gradient_tape/transformer/transformer_encoder/multi_head_attention/softmax/add/BroadcastGradientArgs'
Incompatible shapes: [3,8,50,50] vs. [3,3,50,50]
[[{{node gradient_tape/transformer/transformer_encoder/multi_head_attention/softmax/add/BroadcastGradientArgs}}]] [Op:__inference_train_function_21102]
2023-05-22 16:35:46.431319: W tensorflow/core/kernels/data/cache_dataset_ops.cc:856] The calling iterator did not fully read the dataset being cached. In order to avoid unexpected truncation of the dataset, the partially cached contents of the dataset  will be discarded. This can happen if you have an input pipeline similar to dataset.cache().take(k).repeat(). You should use dataset.take(k).cache().repeat() instead.

Hi @Jalilnkh ,
I have executed the attached colab tutorial on tf-nightly and I couldn't found any error.Please refer to attached logs.
I need confirmation whether the reported behaviour arises from the same colab link attached above or whether you are using customized code. If so could you please submit the minimal code snippet required.
If you are using tf.data for pipeline whether the warning log is useful ?
This can happen if you have an input pipeline similar to dataset.cache().take(k).repeat().
You should use dataset.take(k).cache().repeat() instead.

Also if you are using dataset.batch() method can you test by passing drop_reminder=True ? For me it seems to be problem related to batching.But without code snippet I can't confirm anything.
Thanks!


chore: Remove deprecated api

Motivation
Resolves #1455.
Solution

warning
This pull request includes breaking changes.

Removes deprecated APIs for the next breaking release.

The failed cargo-deny check ci would be fixed in #1456.


KIR database

Hi,
I'm trying to run KIR imputation for a bunch of samples but I get "no solution" genotype output for all of them.
I suppose there's a problem with the blast db due to the nomenclature changes in the fasta files.
Could you please share a working example?

Hi, I just added some fasta files that were successfully used to construct blast dbs in the past (in KIRCLE/ref_files/ref_fastas/). Hope that helps!

Thanks for the swift reply.
The latest fasta files from IPD start with "KIR:" that's why there was no match.
I just renamed the contigs in these files and it worked.
I guess same results could be obtained by fixing the "KIRallele_translation.txt".
Thanks!


enhance: use LLM to summarize the confirm prompt

for https://github.com/gptscript-ai/desktop/issues/315

Will and I talked this through a bunch. This is not much of an improvement.
Not your fault...it's what i asked for, but seeing it I realize that it is not what I want.
We're going to introduce a user-level setting that turns off all prompting by default and if you turn it on, you just get the current behavior.


Implement unit tests against test vectors

I added some test vectors, again for RustCrypto/password-hashes#232. The plan is to synchronize test vectors between multiple implementations.
I am willing to set up a simple CI for this, just say the word!
I have no clue of python, any feedback is welcome.

I am coordinating another PR to add test vectors for a C implementation here:
nogoegst/balloon#2

This is great thanks! Adding you as an admin to the project btw, you'll take care of it better than I will :)


MONGO_URI forcefully expects database name

Hello,
I configure MONGO_URI as shown below:
    app.config.update(
        # Documentation says URI is preferred
        MONGO_URI="mongodb://{}:{}/".format(dbhost, int(dbport) or 27017),
        # Use OrderedDict for the documents
        MONGO_DOCUMENT_CLASS=OrderedDict,
    )
    connection = PyMongo(app)

I don't include the database name because I prefer to make a connection and get a list of the databases first.  Then I "attach" to the databases one-by-one to extract some information from them.
However, I now get a ValueError exception that: "Your URI must specify a database name".
Is there any way to not force having to supply the database name?  This used to work in versions < 2, so hoping we can get a similar behavior in the newer versions.

That seems reasonable. I've cut a new branch (https://github.com/dcrosta/flask-pymongo/tree/allow-no-db-name), and if everything looks good on the build, I'll try to cut the release later today.

Wow! Many thanks for the quick turn-around!

Thank you @dcrosta.  I'll pick it up and test it out immediately.  Just an FYI, on the below page, the 2.2.0 version is referring to Issue #114 instead of this issue (#117).

🤦♂

How can l use this feature.1 can't find example fo this.


Was the bounty claimed?

I see that there are no funds present in the bounty wallet address. This begs the question as to whether the funds were claimed or if they were moved to a different wallet in preparation for another challenge.

See this announcement

I see now, thank you.


Write test for build_test_9

As per #119; the test case for this seems to be missing and therefore requires writing.

Fixed by 86a95d2b3330b0d0928a8fefc637a89618f9d5da


Allow building of sqlite JSON1 extension when building internal sqlite library

I added cmake option to enable json1 extension when building internal sqlite library.
I added the option under the SQLITECPP_INTERNAL_SQLITE if statement so it is clear that this option is only valid when building the internal sqlite library.

Coverage remained the same at 100.0% when pulling 0d2294e36f296789edadc240f0330c5d459bc2be on zxey:feature-json1-extension into 9106e8da0a58dd57be93cbe4009f938a076a3e51 on SRombauts:master.

Hi @zxey I wasn't aware of this extension, do you know since when it exists?
Anyway, I think it's a great feature 👍
The only small change I would propose is to actually set SQLITE_ENABLE_JSON1 publicly so the client code would be able to test for this feature.

It seems that it has been available since sqlite version 3.9.0 as seen in changelog https://sqlite.org/search?s=c&q=JSON1

See PR https://github.com/SRombauts/SQLiteCpp/pull/428 for the new branch I just pushed:
I am going to remove option SQLITE_ENABLE_JSON1 since the JSON functions and operators are built into SQLite by default, as of SQLite version 3.38.0 (2022-02-22).
For us with SQLiteCpp it would be since Version 3.2.0 - 2022 September 18


embassy-{net, sync, time}: Use fmt::unwrap

This PR tries to avoid including panic strings in the binary by preferring defmt::unwrap if available.

assertion failed: down > TEST_EXPECTED_DOWNLOAD_KBPS

was that me?


Rotating iPad while viewing embedded video restarts it from beginning

Rotating an iOS device while viewing a video embedded in a feed causes the video to start playing again from the beginning.
I would expect the video to play continuously through any rotation without apparent reload of the feed page or restart of the video.

+1 on this, Kottke does a lot of embedded videos and it's especially a nuisance when AirPlaying in the background since foregrounding NNW in a different orientation interrupts the video

Another +1 here.  On the iPhone, the video stops playing exits full-screen mode, which is really frustrating.

This is also reproducible on iPhone, as mentioned above. I‘ve also noticed that the video often can’t be played again without switching to a different article and back.

+1 for this

I also find this frustrating.
It seems that the embedded contents are reloaded on rotation.
Would be nice of this could be worked around.

Oops. GitHub automatically closed this. The issue is resolved for the iPhone, but not for the iPad.

This has now also been resolved for the iPad, but won't be released until version 6.2 of the iOS app is released. Please note that the next release of NNW for iOS is version 6.1 and won't have this fix in it.


Fix quat to aa

Background: The issue with AngleAxis about theta=0 is that it is not differentiable. One can handle this one of two ways: 1.) handle theta=0 as a separate case or 2.) numerically perturb the solution. This PR takes the latter approach.
Problem: As currently written, AngleAxis(Quat(1.0, 0.0, 0.0, 0.0)) produces AngleAxis(0.0, NaN, NaN, NaN) which (although sort of correct) is generally not what people want (it also breaks unit tests in RigidBodyDynamics which is how I found it).
The numerical perturbation biases the rotation axis toward [1.0, 0.0, 0.0]. Below are ceratin cases where this effect is noticeable:
AngleAxis(Quat(1.0, 0.0, 1.0e-17, 0.0)) produces AngleAxis(0.0, 4.93038e-15, 1.0, 0.0)
AngleAxis(Quat(1.0, 0.0, 0.0, 0.0)) produces AngleAxis(0.0, 1.0, 0.0, 0.0)

Codecov Report

Merging #77 into master will not change coverage.
The diff coverage is 100%.

@@         Coverage Diff          @@
##           master   #77   +/-   ##
====================================
  Coverage      99%   99%
====================================
  Files           7     7
  Lines         504   504
====================================
  Hits          499   499
  Misses          5     5

Impacted Files
Coverage Δ

src/angleaxis_types.jl
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Seems like an acceptable approach to me. Any noticible difference to performance? (This generally affects the rotation_angle calculation, right? I guess we could special case that for performance if it was an issue for anyone)

Apologies, I broke that case in #72. Thanks for catching the sin_t2/cos_t2 variable name mixup as well. That made me wonder though, why are we even using atan to find theta from the vector part of the quaternion? Why aren't we just computing theta as 2 * acos(q.w) (https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions#Euler_axis–angle_↔_quaternion)? That would also obviate the need for the principal_value call in the end, right? It wouldn't fix the issue you brought up though, so something like this is still needed.
Note that in #72 I based this code off of Base.convert(::Type{RV}, q::Quat) where RV <: RodriguesVec, so I think that if one is changed, the other should be changed as well. Actually, maybe the Quat -> RodriguesVec conversion should just go via AngleAxis.

@andyferris This PR only affects the rotation_axis calculation. The rotation_angle should be unaffected.
I did some speed comparisons and as it is implemented here it takes between 25% and 65% more time (depending on which Quat I call the functions with). If principal value isn't called it takes the same time as previous implementations.
The function as written could be optimized to a similar speed of previous implementations by noting that theta is between -pi and pi. Alternatively principal_value could remain uncalled if negative theta are okay. This isn't a function I currently use.

@tkoolen No worries. I see your point about the overlap between the two functions. If going from Quat to RodriguesVec, can the compiler avoid explicitly creating AngleAxis? In any case, the same routine should be used for both.
I used atan because asin and acos are not numerically stable. Using acos is especially problematic because it introduces numerical inaccuracies around theta=0.

I think I'm good with this - performance concerns are secondary to correctness and we can optimize later if need be.


'list-files' and 'get-file' fail in nested directory

in 0.0.25

https://github.com/retz/retz/commit/e49509ea07650326c2e83b0dfbe40d96d91c18dd will be in 0.0.30 (or 0.1.0)


URL for Twinfresh updated

Twinfresh.no is closed down. Foris is the original retailer of the product.

Hey, just sending you the updated URL for Twinfresh.


Rationale for using X-Powered-By and Server response headers

Here's some typical responses I get from a client calling a Web API in ASP.NET Core (screenshot taken from Postman):

I'm wondering what the rationale is for including the X-Powered-By and Server header values (I understand this has been occurring long before Core was conceived). In this day and age, I wonder why we are giving the client (and anyone with bad intentions) more than they need to know. Of course, I know that the platform is very secure but it still makes me wonder.
Maybe there is a good reason - could someone fill me in or provide feedback?

@rynowak, what do you think? //cc @DamianEdwards, @blowdart

X-Powered-By comes from IIS, not ASP.NET Core. You can remove it in configuration if you wish. The Server header is required by spec. Anything other than random values there would identify the server, and even the pattern of random values might be enough to identify too.

There are other ways to work out what the web server is than just the headers too, heck I had IIS configured to say it was Apache and nmap still got it right. There's no real security risk in returning a server string, and like Damian says the specs required it.
X-Powered-By is another question, but it's easy enough to remove in web.config, as is the Server header should you be concerned.

Thanks for the quick feedback, guys. Yeah, I know how to exclude these from the response, but I was just wondering. The Server header being part of the spec makes sense. I've never been a fan of X-Powered-By as I've always seen it as advertising in a header, but I forgot it is part of IIS. Thanks again!

Hi, it looks like you are posting on a closed issue/PR/commit!
We're very likely to lose track of your bug/feedback/question unless you:

Open a new issue
Explain very clearly what you need help with
If you think you have found a bug, include detailed repro steps so that we can investigate the problem

Thanks!


keep filter when changing view

filter pods with "myservice"
change to "HPA" --> filter is gone

suggestion: keep filter "myservice" when the view is changed

Yes, it's annoying when I troubleshooting something, switching between Deployment/Pods/Service/Ingress and found myself having to type same words over and over again.
I think we can keep filter string for different views separately.

Now that Lens has tabbed interface this should be possible (tabs keep their state).


Rpy/rmagic problem:  ReferenceError: marked is not defined "ipython notebook"

Had some older notebooks. Updated to the latest IPython, and so am now into Jupyter. Opened up some notebooks and was surprised to see warnings about lack of backward compatibility. Oh well. But when I opened the notebooks with rmagic in them, I was even more surprised to see the notebooks could be opened. I got this error:
ReferenceError: marked is not defined "ipython notebook"
and a blank notebook. Thanks goodness I didn't save the blank notebook, or the data would have been gone!
Is this a known problem? Now what?

IPython 3.1 or master? Can you share any of the older notebooks? What version are you upgrading from? Are you using conda or pip? What platform, Python version, and how did you install IPython?
The r magic was removed from IPython a while ago. It's part of rpy2 now.

Linux. Using conda, which brings us to IPython 3.0.0. Just did conda update to the latest version of Anaconda.
When creating a new notebook and using %load_ext rmagic, I get this warning:
/home/jeffrey_alstott/anaconda3/lib/python3.4/site-packages/IPython/extensions/rmagic.py:693: UserWarning: The rmagic extension in IPython is deprecated in favour of rpy2.ipython. If available, that will be loaded instead.
http://rpy.sourceforge.net/
  warnings.warn("The rmagic extension in IPython is deprecated in favour of "

Unfortunately the notebooks themselves contain sensitive data, which of course adds to the consternation of not being able to access them. I may be able to find a similarly non-working notebook without sensitive data and upload it on nbviewer? Or to somewhere else?

As the warning message states, the rmagic that ships with IPython is deprecated. That functionality is now part of rpy2, available as %load_ext rpy2.ipython.
Upload wherever you are most comfortable. gists are common.  nbviewer doesn't host anything, it's just a renderer of publicly available URLs.
Can you post more of the javascript console output when it fails? Can you open the notebook in an incognito/private browsing window, and see if that works? Do you have anything in custom.js?

Good thinking on the custom.js. I do in fact have things there, and they
are throwing errors:
:8888/static/notebook/js/celltoolbarpresets/default.js?v=20150503182811:48
Default extension for cell metadata editing loaded.
:8888/static/notebook/js/celltoolbarpresets/rawcell.js?v=20150503182811:82
Raw Cell Format toolbar preset loaded.
:8888/static/notebook/js/celltoolbarpresets/slideshow.js?v=20150503182811:43
Slideshow extension for metadata editing loaded.
:8888/static/base/js/utils.js?v=20150503182811:29 Loaded extension:
usability/python-markdown
:8888/nbextensions/usability/execute_time/ExecuteTime.js?v=20150503182811:21
patching codecell to trigger ExecuteCell.ExecuteTime
:8888/nbextensions/usability/execute_time/ExecuteTime.js?v=20150503182811:178
Execute Timings loaded
:8888/static/base/js/utils.js?v=20150503182811:29 Loaded extension:
usability/execute_time/ExecuteTime
:8888/static/base/js/utils.js?v=20150503182811:37 Failed to load
extension(s): Array[1] TypeError: Cannot read property 'toLowerCase' of
undefined
:8888/static/base/js/utils.js?v=20150503182811:29 Loaded extension:
usability/codefolding/codefolding
http://localhost:8888/static/custom/usability/execute_time/ExecuteTime.css
Failed to load resource: the server responded with a status of 404 (Not
Found)
http://localhost:8888/static/components/codemirror/lib/codemirror?v=20150503182811
Failed to load resource: the server responded with a status of 404 (Not
Found)
require.js:141 Uncaught Error: Script error for:
/static/components/codemirror/lib/codemirror
http://requirejs.org/docs/errors.html#scripterror
http://localhost:8888/static/components/codemirror/addon/fold/foldcode?v=20150503182811
Failed to load resource: the server responded with a status of 404 (Not
Found)
require.js:141 Uncaught Error: Script error for:
/static/components/codemirror/addon/fold/foldcode
http://requirejs.org/docs/errors.html#scripterror
:8888/static/notebook/js/notebook.js?v=20150503182811:2119 Notebook failed
to load from JSON: ReferenceError: marked is not defined
:8888/static/services/sessions/session.js?v=20150503182811:52 Session:
kernel_created (487e0ecc-e3dc-4327-a983-4b179c5056d3)
:8888/static/services/kernels/kernel.js?v=20150503182811:436 Starting
WebSockets:
ws://localhost:8888/api/kernels/6f04d9d4-77af-4a74-b373-7b6ee96d0a40
:8888/static/services/kernels/kernel.js?v=20150503182811:97 Kernel:
kernel_connected (6f04d9d4-77af-4a74-b373-7b6ee96d0a40)
:8888/static/services/kernels/kernel.js?v=20150503182811:97 Kernel:
kernel_ready (6f04d9d4-77af-4a74-b373-7b6ee96d0a40)
http://localhost:8888/static/custom/usability/execute_time/ExecuteTime.css
Failed to load resource: the server responded with a status of 404 (Not
Found)
underscore-min.map:1 GET
http://localhost:8888/static/components/underscore/underscore-min.map 404
(Not Found)
backbone-min.map:1 GET
http://localhost:8888/static/components/backbone/backbone-min.map 404 (Not
Found)

I added these ages ago. What is the right way to turn these off with the
current Jupyter setup?
On Sun, May 3, 2015 at 11:24 PM, Min RK<EMAIL_ADDRESS>wrote:

As the warning message states, the rmagic that ships with IPython is
deprecated. That functionality is now part of rpy2, available as %load_ext
rpy2.ipython.
Upload wherever you are most comfortable. gists https://gist.github.com/
are common. nbviewer doesn't host anything, it's just a renderer of
publicly available URLs.
Can you post more of the javascript console output when it fails? Can you
open the notebook in an incognito/private browsing window, and see if that
works? Do you have anything in custom.js?
—
Reply to this email directly or view it on GitHub
https://github.com/jupyter/jupyter_notebook/issues/65#issuecomment-98494683
.

And now I've figured it out. In order to remove this problem, I just needed
to deactivate two /static/custom/custom.js extensions I had:
IPython.load_extensions('usability/execute_time/ExecuteTime')
IPython.load_extensions('usability/python-markdown')

Commenting out both of these lines fixed the problem.
On Sun, May 3, 2015 at 11:29 PM, Jeff Alstott<EMAIL_ADDRESS>wrote:

Good thinking on the custom.js. I do in fact have things there, and they
are throwing errors:
:8888/static/notebook/js/celltoolbarpresets/default.js?v=20150503182811:48
Default extension for cell metadata editing loaded.
:8888/static/notebook/js/celltoolbarpresets/rawcell.js?v=20150503182811:82
Raw Cell Format toolbar preset loaded.
:8888/static/notebook/js/celltoolbarpresets/slideshow.js?v=20150503182811:43
Slideshow extension for metadata editing loaded.
:8888/static/base/js/utils.js?v=20150503182811:29 Loaded extension:
usability/python-markdown
:8888/nbextensions/usability/execute_time/ExecuteTime.js?v=20150503182811:21
patching codecell to trigger ExecuteCell.ExecuteTime
:8888/nbextensions/usability/execute_time/ExecuteTime.js?v=20150503182811:178
Execute Timings loaded
:8888/static/base/js/utils.js?v=20150503182811:29 Loaded extension:
usability/execute_time/ExecuteTime
:8888/static/base/js/utils.js?v=20150503182811:37 Failed to load
extension(s): Array[1] TypeError: Cannot read property 'toLowerCase' of
undefined
:8888/static/base/js/utils.js?v=20150503182811:29 Loaded extension:
usability/codefolding/codefolding
http://localhost:8888/static/custom/usability/execute_time/ExecuteTime.css
Failed to load resource: the server responded with a status of 404 (Not
Found)

http://localhost:8888/static/components/codemirror/lib/codemirror?v=20150503182811
Failed to load resource: the server responded with a status of 404 (Not
Found)
require.js:141 Uncaught Error: Script error for:
/static/components/codemirror/lib/codemirror
http://requirejs.org/docs/errors.html#scripterror

http://localhost:8888/static/components/codemirror/addon/fold/foldcode?v=20150503182811
Failed to load resource: the server responded with a status of 404 (Not
Found)
require.js:141 Uncaught Error: Script error for:
/static/components/codemirror/addon/fold/foldcode
http://requirejs.org/docs/errors.html#scripterror
:8888/static/notebook/js/notebook.js?v=20150503182811:2119 Notebook failed
to load from JSON: ReferenceError: marked is not defined
:8888/static/services/sessions/session.js?v=20150503182811:52 Session:
kernel_created (487e0ecc-e3dc-4327-a983-4b179c5056d3)
:8888/static/services/kernels/kernel.js?v=20150503182811:436 Starting
WebSockets:
ws://localhost:8888/api/kernels/6f04d9d4-77af-4a74-b373-7b6ee96d0a40
:8888/static/services/kernels/kernel.js?v=20150503182811:97 Kernel:
kernel_connected (6f04d9d4-77af-4a74-b373-7b6ee96d0a40)
:8888/static/services/kernels/kernel.js?v=20150503182811:97 Kernel:
kernel_ready (6f04d9d4-77af-4a74-b373-7b6ee96d0a40)
http://localhost:8888/static/custom/usability/execute_time/ExecuteTime.css
Failed to load resource: the server responded with a status of 404 (Not
Found)
underscore-min.map:1 GET
http://localhost:8888/static/components/underscore/underscore-min.map 404
(Not Found)
backbone-min.map:1 GET
http://localhost:8888/static/components/backbone/backbone-min.map 404
(Not Found)

I added these ages ago. What is the right way to turn these off with the
current Jupyter setup?
On Sun, May 3, 2015 at 11:24 PM, Min RK<EMAIL_ADDRESS>wrote:

As the warning message states, the rmagic that ships with IPython is
deprecated. That functionality is now part of rpy2, available as %load_ext
rpy2.ipython.
Upload wherever you are most comfortable. gists
https://gist.github.com/ are common. nbviewer doesn't host anything,
it's just a renderer of publicly available URLs.
Can you post more of the javascript console output when it fails? Can you
open the notebook in an incognito/private browsing window, and see if that
works? Do you have anything in custom.js?
—
Reply to this email directly or view it on GitHub
https://github.com/jupyter/jupyter_notebook/issues/65#issuecomment-98494683
.


Support for 2nd degree relations

All the relations supported by FIND are "first" degree: a direct reference from one SCO to another.  While trying to write a hunt for DLL hijacking, I hit this:
dropper = FIND process CREATED dlls
[ERROR] UnsupportedRelation: unsupported relation "process--created--file"
check for supported relations and entity types in the documentation.

While STIX lacks and reference between process and file aside from binary_ref/image_ref, most stix-shifter connectors use the extension x-oca-event SCO, which include a process_ref and a file_ref.  Certain events, like Windows Sysmon File Create events, are likely mapped so that those 2 refs in a single x-oca-event could represent the "process--created--file" relation.  This should be true when the provider is the right Windows channel and code is the proper event ID.
There are likely lots of other 2nd degree relations, like network-traffic's src_ref and dst_ref objects (this could be a CONNECTED relation).

Good task to upgrade FIND.
We can choose to expose the 1st degree relation of process--x-oca-event and x-oca-event--file, or not to expose it for this issue.

If not, the implementation is 2nd degree relation resolution, while what users see if 1st degree (it is OK).
If exposed, this needs to involve:

Treating x-oca-event as an entity for now or starting the type of event as a first-class citizen (needed in the long run).
Thinking how to express relation process--x-oca-event, or generally, relation between entity and event.


[BUG] cf apps should report the number of desired instances for processes of a stopped app, instead of reporting 0 instances

What happened?
When I have a non-zero desired instances of a process from an App in stopped state
When I run cf apps
THEN I see the following output
name   requested state   processes   routes
node   stopped           web:0/0     node.vcap.me

Observe that when the app is running, the desired instances are reported correctly
name   requested state   processes   routes
node   started           web:1/1     node.vcap.me

What you expected to happen
I expect it to report the desired instances correctly even when the app is stopped
On CF on VMs, I get the below result
name   requested state   processes   routes
node   stopped           web:0/1     node.eggshell.cf-app.com

Acceptance Criteria
When I have a non-zero desired instances of a process from an App in stopped state
When I run cf apps
THEN I see the following output
name   requested state   processes   routes
node   stopped           web:0/1    node.vcap.me

Anything else we need to know?
Looking at CF verbose output CF on VMs, the GET processes/:guid/stats endpoint returns the below response when the App is in STOPPED state
REQUEST: [2022-01-14T15:23:55-08:00]
GET /v3/processes/86b7a446-cf03-4a58-b0b8-c563cac8afd2/stats HTTP/1.1
Host: api.eggshell.cf-app.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: cf/8.0.0+de37cbef8.2021-12-03 (go1.17.1; amd64 darwin)
[application/json Content Hidden]

RESPONSE: [2022-01-14T15:23:55-08:00]
HTTP/1.1 200 OK
Alt-Svc: clear
Content-Type: application/json; charset=utf-8
Date: Fri, 14 Jan 2022 23:23:55 GMT
Referrer-Policy: strict-origin-when-cross-origin
Server: nginx
Via: 1.1 google
X-B3-Spanid: 6d90e8cd130fde95565f5a34556626c9
X-B3-Traceid: 6d90e8cd130fde95565f5a34556626c9
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Runtime: 0.039749
X-Vcap-Request-Id: c101978b-b68c-4156-64a0-a8b3aa5661c0::5ef65b75-a7ce-4f06-b1c3-aea514e1bf99
X-Xss-Protection: 1; mode=block
{
  "resources": [
    {
      "details": null,
      "index": 0,
      "isolation_segment": null,
      "state": "DOWN",
      "type": "web",
      "uptime": 0
    }
  ]
}

On CF on K8s we send back an empty resource response
REQUEST: [2022-01-14T15:51:00-08:00]
GET /v3/processes/b81a62cd-2e27-46e8-82a2-ca2055a2ee36/stats HTTP/1.1
Host: localhost
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: cf/8.0.0+de37cbef8.2021-12-03 (go1.17.1; amd64 darwin)
[application/json Content Hidden]

RESPONSE: [2022-01-14T15:51:00-08:00]
HTTP/1.1 200 OK
Content-Length: 17
Content-Type: application/json
Date: Fri, 14 Jan 2022 23:51:00 GMT
Server: envoy
X-Envoy-Upstream-Service-Time: 6
{
  "resources": []
}

Environment
Revision of codebase: main branch 91c9c7bb3e113040dab3423e74f2ee30543f0bc9

@akrishna90 @tcdowney is there an edge case where the app has recently been set to desiredState: STOPPED and still has pods running?
Would we report:
{
  "resources": [
    {
      "details": null,
      "index": 0,
      "isolation_segment": null,
      "state": "DOWN",
      "type": "web",
      "uptime": 0
    }
  ]
}

as if the process had no pods?

Yeah, that sounds good. @gnovv
It is consistent with what CF for VMs is doing since it short-circuits and returns empty metrics:
https://github.com/cloudfoundry/cloud_controller_ng/blob/cf3a1b37483c97132d89c60762e6100f9b10f2dc/lib/cloud_controller/opi/instances_client.rb#L67
Also the output matches what I get for a STOPPED app:
cf curl /v3/processes/3bd795f2-8f50-4b75-b443-37b6e5dca393/stats
{
  "resources": [
    {
      "type": "web",
      "index": 0,
      "state": "DOWN",
      "uptime": 0,
      "isolation_segment": null,
      "details": null
    }
  ]
}

$ cf apps
Getting apps in org o / space s as<EMAIL_ADDRESS>
name   requested state   processes   routes
dora   stopped
node   started           web:1/1     node.vcap.me
$ cf stop node
Stopping app node in org o / space s as<EMAIL_ADDRESS>OK

$ cf apps
Getting apps in org o / space s as<EMAIL_ADDRESS>
name   requested state   processes   routes
dora   stopped
node   stopped           web:0/1     node.vcap.me


Minor input validations missing in LockedGold

Expected Behavior
Please describe the behavior you are expecting
Current Behavior
Missing input validation account check on:

_incrementNonvotingAccountBalance
_decrementNonvotingAccountBalance
getAccountTotalLockedGold(address account)
getAccountNonvotingLockedGold

Must check:
require(getAccounts().isAccount(msg.sender), "Unknown account")
On _decrementNonvotingAccountBalance() we can also check limit:

balances[account].nonvoting.sub(value);
require( balances[account].nonvoting >= value )

Check if are called via transactions.

Usage of _decrementNonvotingAccountBalance():
https://github.com/celo-org/celo-monorepo/blob/a975a943aeef45c139b511180d5b0937f986b947/packages/protocol/contracts/governance/Election.sol#L252


Remove from a key to end

This feature adds the ability to delete all values greater than or equal to a specified value. Its time complexity is of O(log(n)).

Bulk delete requires node shrinking (garbage collection). WIP for it.


Error in running all files

Thanks for this amazing library. Whenever I try to run any of the files in Pykin library. I get below error.

Can you please help me in resolving this error.

Hello,
pykin has been tested on python3.9. It appears that some of the code in the standard library has been modified as the python version has changed.
Could you please try solving it by inserting the code below?
try:
    from collections.abc import Iterable
except ImportError:
    from collections import Iterable```

If it still doesn't work, please tell me again.

Thank you!

Hello...
Still I get the same problem. Can you please provide me if  there is any alternative. I am using Python 3.10 version


chore: add analytics events for debugger context menu

Description
Adds an analytics event for when an option is clicked from the debugger context menu
Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Manually
Checklist:

[x] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:red_circle: Total coverage has decreased
// Code coverage diff between base branch:release and head branch: chore/context-menu-analytics

Status
File
% Stmts
% Branch
% Funcs
% Lines

:red_circle:
total
54.82 (0)
36.54 (0)
33.7 (0)
55.35 (-0.01)

:red_circle:
app/client/src/components/editorComponents/Debugger/ContextualMenu.tsx
42.7 (-2.54)
24.39 (0)
9.52 (0)
43.18 (-2.6)

/ok-to-test sha=1cff9b8


Issue 511 - Save and Restore Instance State

@peterLaurence  So this is branched from 510.  I've spend a few days on it now and I'm not clear at all about what's failing.  Version 2 worked as expected out of the box - I suspect it's the whole builder/prepare thing, but that doesn't make a ton of sense either because onCreate is firing again so the new Builder should take precedence.  I think it might have something to do with when scale is being set that's throwing off the plugins, because I can get it right with just the tiles, it's the plugins (markers, paths, most obviously) that are breaking.
Since I'd like to get all the other fixes in a release, I've applied a simple workaround: suppress config changes in each of the demo activities.  That's obviously not a long term solution but I think does buy another week or so to figure out what's wrong with save/restore.
Note that this is branched from 510, so ideally i'd merge this into 510, then 510 into master, if it passed code review.
The whole UUID and getBuilder stuff are just artifacts.  I'll clean it up before more, but they're not being used now in any way.
Thanks as always.

So its working, but with a constant shift. Let me explain:
1- I pan the map so a specific point of interest is exactly at the center of the screen, in portrait mode
2- I rotate - I'm in landscape mode - and now the POI is not at center as user would expect, but a little shifted to the bottom left
3- Alternating portrait - landscape don't show additional shift
TV2 don't have this little shift issue.

yeah TV2 has proper save and restore (see my initial comments in this PR). this is definitely not a solution but rather a temporary bandaid, so that we can get the stuff from 510 into a release.  I would immediately resume working on proper save and restore (in my feature branch, everything works except plugins - I think it's a timing issue with the new builder/prepare pattern).
So yeah to just summarize: this is only meant as a bandaid to get 510 out.  as soon as I can I would implement the proper fix (I just don't know how, at this point).

Yes, developing a fully working TileView anything but easy. This mixes view subtilities, threading, high throughput requirements,..

I know :sob:  It's been rough, I'm just hoping to drive through these last few items then let it coast for a really long time on it's own.
So are you +1 for this temporary patch, or would you prefer to handle it differently?

Oh sure, this totally acceptable and enough for most people I think

awesome, i'll merge this into 510, then 510 into master, upgrade the version, cut a release, then start back on save + restore next week.  i'm hoping that's everything.
thanks again!


Fix incorrect lat lon ordering

The camera view was incorrectly showing the ocean instead of Seattle when displaying search results.

Changes Made:

Modified the bounds.push call to use the correct coordinate format [lat, lon] as required by the fromLatLngs function, which sets the camera position.

Reason for the Change:
The fromLatLngs function expects coordinates in the [lat, lon] format. Previously, the code passed [lon, lat], causing the camera to focus on an unintended location.
After modification:

Thanks for raising this issue. I think this is the first time I've seen this sample. Taking a closer look at the code see a couple of issues. The solution you proposed does resolve the issue, however, the original code overall isn't great and needs to be cleaned up a lot more. With this in mind, I'm going to close this PR and make the necessary changes needed to this sample to improve it, and look at getting the tutorial docs updated as well.
Thanks again.

I've made the updates. It looks like this sample was updated last winter to remove the dependency on the old services module, and whoever made that change, added in a couple of bugs. All corrected now. Thanks again for highlighting this.


How to test code that depends on RNFetchBlob

If I want to test a module and that module includes RNFetchBlob, I get this:
react-native-fetch-blob/index.js:6 import { ^^^^^^ SyntaxError: Unexpected token import
That's because babel-core/register don't transpire code within node_modules by default. It I change the config to do it, as it's mentioned here, it crash in this line because NativeModules.RNFetchBlob it's undefined.
This is my test script:
NODE_ENV='test' mocha 'app/**/__tests__/*.js' --compilers js:babel-core/register --require mocha_setup.js

I am using Facebook's Jest and I get the same error.
    TypeError: Cannot read property 'DocumentDir' of undefined

      at Object.<anonymous> (node_modules/react-native-fetch-blob/fs.js:25:24)
      at Object.<anonymous> (node_modules/react-native-fetch-blob/index.js:20:9)

I did try mocking the module, but then I use a constant Blob  from RNFetchBlob.polyfill.Blob that then fails the test as it will be "undefined".
Thanks.

I am also experiencing the same error; "TypeError: Cannot read property 'DocumentDir' of undefined"

Has anyone found a work around for this issue? 😕

@neiker @layik @ohtangza have you guys been able to remedy this issue?  I'm having the same issue.

@rahimrahman nop, I just include RNFB conditionally based on NODE_ENV

You have to mock the library. Was using the react-native-img-cache library which had a dependency to react-native-fetch-blob, so my jest is mocking that module.
EX:
jest.mock('react-native-img-cache', () => {
  return {
    DocumentDir: () => {},
    ImageCache: {
      get: {
        clear: () => {}
      }
    }
  }
})

Agreed with @jnrepo, the key is to mock the objects you are accessing in your code, code work for me
jest.mock('react-native-fetch-blob', () => {
  return {
    DocumentDir: () => {},
    polyfill: () => {},
  }
});

I created a file inside the __mocks__ folder called react-native-fetch-blob.js and i mocked all the keys this way:
  return {
    DocumentDir: () => {},
    fetch: () => {},
    base64: () => {},
    android: () => {},
    ios: () => {},
    config: () => {},
    session: () => {},
    fs: () => {},
    wrap: () => {},
    polyfill: () => {},
    JSONStream: () => {}
  };
});```

but i still get an error related to the dir constants: ```TypeError: Cannot read property 'dirs' of undefined```

any idea?

@scerelli try this
  return {
    DocumentDir: () => {},
    fetch: () => {},
    base64: () => {},
    android: () => {},
    ios: () => {},
    config: () => {},
    session: () => {},
    fs: {
      dirs: {
        MainBundleDir: () => {},
        CacheDir: () => {},
        DocumentDir: () => {},
      },
    },
    wrap: () => {},
    polyfill: () => {},
    JSONStream: () => {}
  }
})```

thx @SoundBlaster but this doesn't solve the error.

+1,After reinstall, delete app,restart, also failed.

mines setup this way
in package.json:
"jest": {
    "preset": "react-native",
    "setupFiles": [
      "./test/setup.js"
    ],
    "coveragePathIgnorePatterns": [
      "/test/"
    ],
    "moduleFileExtensions": [
      "js",
      "json"
    ]
  }

in test/setup.js:
jest.mock('react-native-img-cache', () => {
  return {
    DocumentDir: () => {},
    ImageCache: {
      get: {
        clear: () => {}
      }
    }
  }
})

react-native-img-cache was the module using the react-native-fetch-blob. Perhaps its not react-native-fetch-blob, but another module thats using it?

@jnrepo look this is the fetch-blob mocked log and this is the jest error:
https://cl.ly/3E3C242g1M1K
and the line raising this error is:
 const config = {
      overwrite : false,
      path: `${RNFetchBlob.fs.dirs.DocumentDir}/videos`,
      fileCache
    };

I'm doing all the mocks correctly, AFAIK, but this is the error I get:
Test suite failed to run

ReferenceError: self is not defined

  at node_modules/react-native-fetch-blob/lib/oboe-browser.min.js:1:12597
  at Object.<anonymous> (node_modules/react-native-fetch-blob/lib/oboe-browser.min.js:1:12611)
  at Object.<anonymous> (node_modules/react-native-fetch-blob/json-stream.js:1:391)
  at Object.<anonymous> (node_modules/react-native-fetch-blob/index.js:28:17)

Seems to be something with the minified oboe code... any idea how to resolve that one?

https://github.com/wkh237/react-native-fetch-blob/blob/master/lib/oboe-browser.js#L2701
It indeed is not defined.

does it help if you add this line at the begining of you program ?
global.self = {}

@jasongaare I think you need this:
https://github.com/johanneslumpe/react-native-browser-polyfill
It provides the global self property: https://developer.mozilla.org/en/docs/Web/API/Window/self
For ref.: RN issue https://github.com/facebook/react-native/issues/1419

@wkh237 Actually, I think we need to include this, since it's RNFB code that uses self. It doesn't exist in RN, it seems.

@wkh237 @lll000111
Sorry just circling back to this... adding global.self = {} does allow my tests to run! I'm going to run with that solution for the timebeing

As @scerelli I also wanted the mock to happen in a separate place so it can be used by all tests. Placing the following code in <project_root>/__mocks__/react-native-fetch-blob.js seems to work for me:
const existsMock = jest.fn();
existsMock.mockReturnValueOnce({then: jest.fn()});

export default {
    DocumentDir: () => {},
    ImageCache: {
        get: {
            clear: () => {},
        },
    },
    fs: {
        exists: existsMock,
        dirs: {
            MainBundleDir: () => {},
            CacheDir: () => {},
            DocumentDir: () => {},
        },
    },
};

It's a variation of @SoundBlaster solution, just in a global mock file. With that I don't need to import or implicitly mock anything in the test code.

for me this object works as mock
jest.mock('react-native-fetch-blob', () => {
  return {
    DocumentDir: () => {},
    polyfill   : () => {},
    fs         : {
      dirs: {
        DocumentDir: ''
      },
      writeFile: () => Promise.resolve()
    }
  }
})

after trying most of the solutions above the only behaviour in my case is that jest hangs indefinitely after starting and no tests are being run.

Hi. If someone still get an error
/node_modules/redux-persist-filesystem-storage/index.js:5
import RNFetchBlob from 'react-native-fetch-blob'
^^^^^^
SyntaxError: Unexpected token import

just add into "jest" section of package.json following option
"transformIgnorePatterns": [
  "node_modules/(?!react-native|react-navigation)/"
]

@maldimirov  thanks your solution, you save my life ! 💯

The jest.mock should be added to documentation. Really useful

@maldimirov You are awesome!


Publish to AWS: I could not deploy to an existing cloud app

In Publish to AWS, the Existing Targets list did not show my project. I expected to see it there.

Toolkit: <IP_ADDRESS>
Visual Studio: 17.11.5

Please provide some details. Explain why your project should have been listed. Please include any project details and how you previously deployed it.


build: change project to sync issue to

:tada: This PR is included in version 2.9.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Adjust camera movement

First of all I must tell you that this is fantastic, congratulations for such a nice work.
I have an issue that I'm not sure if can be corrected via configurarion. This is the scenario:
See this demo and this one, On both examples drag the mouse following this pattern

What you should see is that with three.js the object moves slowly following more accurate the mouse, whereas with EasyCam the object moves faster and rotating in other axis.
For example, if I move the mouse only horizontally, in three.js the object moves in that plane, but if I perform the same movement with EasyCam the object kind of start wobbling

I also wanted to say thanks for your work on the library.
I tried implementing the above to fix the issue, calling setRotationConstraint() in setup(), but it doesn't seem to have any effect. I also can't tell whether it works or not in the examples you posted above.

Hello Diwi,
I tried successfully your indications to limit the yaw, pitch and roll rotations. I would love to limit the angle for each of this. Right now they have a rotation similar to 360 (or they can rotate infinit times). Is there a way to limit the pitch rotation to 180 degrees, as it happens on this website here:  https://app.shapediver.com/m/array-table-dimension
Thanks in advance,
CN


:robot: Triggering CI on branch 'release-next' after synching to openshift/master

/test variant-e2e

OCF Webhook is merging this PR


Remove the old knative eventing operator to favor knative operator

Thanks submitting your Operator. Please check below list before you create your Pull Request.
New Submissions

[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Updates to existing Operators

[ ] Did you create a ci.yaml file according to the update instructions?
[ ] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[ ] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[ ] Have you tested an update to your Operator when deployed via OLM?
[ ] Is your submission signed?

Your submission should not

[ ] Modify more than one operator
[ ] Modify an Operator you don't own
[ ] Rename an operator - please remove and add with a different name instead
[ ] Submit operators to both upstream-community-operators and community-operators at once
[ ] Modify any files outside the above mentioned folders
[ ] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[ ] Description about the managed Application and where to find more information
[ ] Features and capabilities of your Operator and how to use it
[ ] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[ ] Human readable name and 1-liner description about your Operator
[ ] Valid category name1
[ ] One of the pre-defined capability levels2
[ ] Links to the maintainer, source code and documentation
[ ] Example templates for all Custom Resource Definitions intended to be used
[ ] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

@J0zi knative operator contains both serving and eventing, so we remove the old knative eventing operator.

/merge possible

@aliok since you are previous contributor, do you agree with these changes?

Same as #4180 , let's get rid of this old operator.
@mvalarh

/merge possible


Reflect props update through componentWillReceiveProps

Chooser doesn't reflect props when there are updated through componentWillReceiveProps. This pull request adds logic which addresses given issue.

Thank you very much !!

New Version Published ..


Following "Getting Started" guide results in compilation errors

Installed<EMAIL_ADDRESS>running docz dev results in:
✖ Docz
  Compiled with some errors in 85.70ms

 ERROR  Failed to compile with 3 errors                                                                                8:17:06 PM

 error  in ./node_modules/docz/dist/index.esm.js

Module parse failed: Unexpected token (15:38)
You may need an appropriate loader to handle this file type.
| import { MDXProvider } from '@mdx-js/tag';
|
> const BasePlayground = loadable(() => import('./chunk.esm2.js'));
| const Playground = props => typeof window !== 'undefined' ? (createElement(Suspense, { fallback: null },
|     createElement(BasePlayground, Object.assign({}, props)))) : null;

 @ ./.docz/app/root.jsx 9:0-59 16:2-15 18:19-23 25:25-31
 @ ./.docz/app/index.jsx
 @ multi ./node_modules/react-dev-utils/webpackHotDevClient.js ./.docz/app/index.jsx

 error  in ./node_modules/docz-theme-default/dist/index.esm.js

Module parse failed: Unexpected token (245:30)
You may need an appropriate loader to handle this file type.
| `;
|
> const CodeMirror = lazy(() => import('./chunk.esm2.js'));
| const getLanguage = (children) => {
|     const defaultLanguage = 'jsx';

 @ ./.docz/app/root.jsx 11:0-39 17:29-34
 @ ./.docz/app/index.jsx
 @ multi ./node_modules/react-dev-utils/webpackHotDevClient.js ./.docz/app/index.jsx

 error  in ./.docz/app/imports.js

Module parse failed: Unexpected token (8:11)
You may need an appropriate loader to handle this file type.
| export var imports = {
|   'content/index.md': function contentIndexMd() {
>     return import(
|     /* webpackPrefetch: true, webpackChunkName: "content-index" */
|     'content/index.md');

 @ ./.docz/app/root.jsx 12:0-36 26:13-20
 @ ./.docz/app/index.jsx
 @ multi ./node_modules/react-dev-utils/webpackHotDevClient.js ./.docz/app/index.jsx

Tried reinstalling node_modules. Didn't help. Using npm.

@pedronauck @KidkArolis Same error reported here: https://github.com/pedronauck/docz/issues/704
The solution from https://github.com/pedronauck/docz/issues/596 doesn't work because this is another error regarding the webpack handler to load some files

Any update on this?

Closed in favor of #704, the answer is there.


Siri tells me the set temperature and not the actual temperatur

First I want to say I really like and enjoy the plugin. Great work!
When asking Siri what the pool (my HomeKit name for the device) temp is, she reply with the set temperature and not the actual temperatur. Am I doing something wrong or can it be change so that Siri reports back the actual temperatur when asking "Siri, what is the pool temperature"?

Hmmmm... when I ask Siri what the temperature is in the pool (also my homekit name), she answers, "Pool is heating you home from X to Y.
So I get both the current temp and the target them (would be nice with only current, but dont think thats possible if its a thermostat device).
So are you sure you only get the target and not both?

For me, Siri only tells me the set temperature.
https://youtu.be/pkLpcLitktk

It fells like Siri is behaving a bit different. Right now, she says the current temp for me and not that heating is happening. But normal she says, Pool is heating from 28 to 30 degrees. Kind of annoying she tells it different. Also, when asking about the pool temp, I am NOT interested in the target temp. My plan is to add an option, when checked, it adds the current water temperature as a normal thermometer. Then you can ask like, what is the current pool water temperature, and it should work.
Does that sound like a good solution?

I would like that a lot.  It’s always set to 28 so only the current temperature is interesting to me. :)

In version 1.8 there is not a setting to view one an extra thermometer for water.
It is also affected by my start up bug: https://github.com/hjuhlin/homebridge-aqua-temp/issues/2
So, you need to restart Homebridge two times after activating the setting.


with internet connection app not write in firestore server side

i use
firebase_auth: ^0.16.1
cloud_firestore: ^0.13.6
firebase_messaging: ^6.0.16
and when there internet connection my flutter app not write date
in firestore server when use setData or updateDate
it save local and not save in firestore server
how to fix this big issue
my flutter doctor -v
[✓] Flutter (Channel stable, v1.17.2, on Mac OS X 10.15.5 19F96, locale en-EG)
    • Flutter version 1.17.2 at /users/dell/desktop/flutter
    • Framework revision 5f21edf8b6 (6 days ago), 2020-05-28 12:44:12 -0700
    • Engine revision b851c71829
    • Dart version 2.8.3

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/dell/Library/Android/sdk
    • Platform android-R, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

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

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • SM N9005 • 35cfbe8e • android-arm • Android 5.0 (API 21)

• No issues found!

i found solution
when i wanna set failed null
i use this
setData({
'name' : null
})
it's not work with me
this way is work with me
setData({
'name' : 'null'
})


Missing conversions from BGR to RGB after reading input image

Environment Information

samgeo version: 0.9.1
Python version: 3.10
Operating System: Windows 11

Description
I realized that there are some missing conversions from BRG to RGB after reading input images using OpenCV.
What I Did
I will submit a PR with the proposed changes.

Fixed in #171


Release 3.12.0 does not have changes made in PR #263

Summary
Release 3.12.0 does not have changes made in PR #263
Steps to reproduce
docker run --rm tiredofit/db-backup:3.12.0 bash -c "cat assets/functions/10-db-backup | grep authdb"
What is the expected correct behavior?
Should see code related to change made in PR #263
Relevant logs and/or screenshots
  authdb=${DB_USER}         db_names=$(psql -h ${DB_HOST} -U ${DB_USER} -p ${DB_PORT} -d ${authdb} -c 'COPY (SELECT datname FROM pg_database WHERE datistemplate = false) TO STDOUT;' )         tmp_db_names=$(psql -h ${DB_HOST} -U ${DB_USER} -p ${DB_PORT} -d ${authdb} -c 'COPY (SELECT datname FROM pg_database WHERE datistemplate = false) TO STDOUT;' )
By looking at the git history, it looks like since v3.10.5, the changes were left out in the releases.

Environment

Image version / tag:
Host OS:

Any logs | docker-compose.yml

Possible fixes

Thanks @tiredofit . It seems you are online 24/7 🥇

I actually dont ever remember seeing that line to be honest? I branched at 3.12.0 to branch 4.x and looking at the history there it seems to look the same. Have a peek here:
https://github.com/tiredofit/docker-db-backup/commits/4.x?after=89e6956cdd87c79b52908c3fd912e0784aae3bcc+34&branch=4.x&qualified_name=refs%2Fheads%2F4.x

Looking at the git history graph, it seems the changes are left out when you tagged 3.12.0

Something certainly has happened to the main branch and I'm not sure what..
Do you happen to have a copy of your branch I can look at again?
I'm currently focusing on getting the 4.x release ready and will manually insert them into the codebase as its essentially a rewrite.

this is the commit: 82eac9ad2eeafe786d720909c5d7a87513a92d56
My branch was a goner, it has been deleted when the PR was merged.

I think I know what has happened. I believe to fix, just remove the tag from the red arrow and apply to the green one

OK I've retagged 3.12.0 let me know if this looks good for you?

Sorry for the late response. I was away for the weekend. I just tested with the new image and can confirm it is working. Thank you again @tiredofit


Add applied modules count in header

Close #3989

Merging this as it's better to have this, than nothing :)
But there are still this comment: https://github.com/jhipster/jhipster-lite/issues/3989#issuecomment-1286925721


move Prowes and csc-tesk from c03 to rahti

Both 'prowes' and 'csc-tesk' were already moved to Rahti. More to come soon.

The cluster c03.k8s-popup.csc.fi is no longer up.


[client API] Ensure Thread Safety When Calling APIs

Client was not thread safe when we were using simple data structures
As part of the persistence enhancements, we need to make sure operations are thread safe across multiple API calls

Superseded by many improvements on client.


Error when customizing the synthetization  of the stack

Hello
I have a stack that is deployed with a customize synthetizer. Especially, I am customizing the propertybucketPrefix. I am basically adding a custom prefix to all assets uploaded.
While synthesizing, I get the error:

..../node_modules/cdk-pipelines-github/src/pipeline.ts:491
        throw new Error(`Template asset hash ${hash} not found.`);

I have the feeling that the local asset path is not defined correctly.
Do you know if there is a workaround ?
Thank you for your help

Hi @clementrey-dev! Sorry about that, you're almost certainly correct that the custom prefix is the problem here. In cdk-pipelines-github, we use a prop called assetHashMap and the keys of the map are the assetId prior to uploading. We then try to match the asset again using the ID found in the template.
https://github.com/cdklabs/cdk-pipelines-github/blob/b07003f2072a9ac3d0382d4e3b74c5dc418618e6/src/pipeline.ts#L489
I think the solution here is to take into account the custom prefix of an asset before we send it into assetHashMap.  We do that here:
https://github.com/cdklabs/cdk-pipelines-github/blob/b07003f2072a9ac3d0382d4e3b74c5dc418618e6/src/pipeline.ts#L428
I can't think of any workaround here. We should fix this in code. That being said, this repo does not get the same maintenance as aws/aws-cdk, and you're mostly at the whim of my availability to get bug fixes in. If this is especially bothersome and you have some extra time, feel free to take a look and see if you can contribute a fix :). Would help me a lot! Otherwise, I'll have this on my radar.


Hera errors out if kebab case input arguments are used

https://github.com/argoproj-labs/hera-workflows/blob/7aa297bc2d020e9ceef7853cabc2b89f2094233f/src/hera/task.py#L828
Argo generally prefers kebab case arguments/input parameters as underscore in k8s is often not a valid character that can be used for naming.
Hera currently uses the param.name to construct python variables. It should make sure that whenever it does this, the output names are valid python variables.

This is now supported with annotations.


Creating gd class file and renaming causes Parse Error

Godot version
3.3.2.stable
System information
Mac OS X (Catalina) 10.15.7
Issue description
Create a simple gd class file and save it. Rename the script file, make a change and save. You will get this error:
 res://Testing/SpritesTest/new_script.gd:1 - Parse Error: Unique global class "script" already exists at path: res://Testing/SpritesTest/new_script2.gd
 modules/gdscript/gdscript.cpp:583 - Method failed. Returning: ERR_PARSE_ERROR

Errors will only stop showing up when you exit Godot Project.
Steps to reproduce
Put the script below in a .gd script file called new_script.gd
class_name script

var x
func _init(amt):
	x=amt

func incrby(amt):
	x += amt

Save the file.
Rename it to new_script1.gd from the FileSystem panel.
Edit something like adding a blank line.
Save
Error will appear in Output console

Minimal reproduction project
See above

Duplicate of https://github.com/godotengine/godot/issues/49369.


Allow override of lookupEnv for _FILE support

Closes #130
Exposing Lookup to the user enables them to use a custom LookupEnv function.
This way, any custom logic like the _FILE convention mentioned in #130 can be supported on the application side.
Example taken and adapted from offen/docker-volume-backup:
envconfig.Lookup = func(key string) (string, bool) {
    location, ok := os.LookupEnv(key + "_FILE")
    if ok {
        contents, err := os.ReadFile(location)
        if err != nil {
            return "", false
        }
        return string(contents), true
    }
    return os.LookupEnv(key)
}

if err := envconfig.Process("", &config); err != nil {
    panic(err)
}
...

Any chance of this getting merged? I'd really could use this in my testing framework :/


public import cosmic text

i needed some more cosmic_text stuff and noticed that bevy main already does this, when migrating to 0.15, we can just move the cosmic_text import to bevy

Yeah, that makes sens.


Cannot create and select points correctly in rotation under degrees

Thanks for fixing the display error issue these days. And I also found that something wrong with the "Degrees" values when editing the rotation curves.
When I creat a new point in degrees, the point would be created in radians and then converted to degrees. For example, when I creat a 30° under degrees, the point will be created as 1718.873°, which is the degrees corresponding to "30" in radians.
Also, I cannot select the created point under degrees. I have to come back to radians, select the point, back to Degrees, click "Fit To Contents", and then I can see the point in the middle of the viewport. This is cumbersome and prevents me from creating normal curves under degrees. I hope this can be optimized. Thanks again!

Found new bug. When duplicate a particle, the duplicated one will lose texture and model settings. Though it looks still fine when spawn, but sometimes it takes a while then it become actually no model or texture when spawn.
On the contrary, when duplicate an emitter with an effector, although the duplicated one seems to have no effector, it actually still have and I must manually add an effector to it and then remove the effector to successful remove the effector from the duplicated one.

found the issue with both of those. will be fixed in the next update


chore: remaining PR comments

See https://github.com/stryker-mutator/stryker-dashboard/pull/392.

@JairJosafath Would you like to pick this up?

https://github.com/stryker-mutator/stryker-dashboard/pull/392#discussion_r1365748914
https://github.com/stryker-mutator/stryker-dashboard/pull/392#discussion_r1365776552
https://github.com/stryker-mutator/stryker-dashboard/pull/392#issuecomment-1767929305
https://github.com/stryker-mutator/stryker-dashboard/pull/392#discussion_r1363453017
https://github.com/stryker-mutator/stryker-dashboard/pull/392#discussion_r1363457077
... and more 😃

@JairJosafath Would you like to pick this up?

https://github.com/stryker-mutator/stryker-dashboard/pull/392#discussion_r1365748914
https://github.com/stryker-mutator/stryker-dashboard/pull/392#discussion_r1365776552
https://github.com/stryker-mutator/stryker-dashboard/pull/392#issuecomment-1767929305
https://github.com/stryker-mutator/stryker-dashboard/pull/392#discussion_r1363453017
https://github.com/stryker-mutator/stryker-dashboard/pull/392#discussion_r1363457077
... and more 😃

@xandervedder yessr, I have time on the weekends, if I have questions I'll ask you.
I couldn't quite find the guidelines on how to contribute. contributing to open source is still a bit uncharted territory for me LOL.

No worries! These comments (in the linked PR) are pretty simple, so it seemed like a good idea to me for you to pick them up 🙂.
We have contributing guidelines (which are strangely not in this repository or I cannot find it...):
https://github.com/stryker-mutator/stryker-js/blob/master/CONTRIBUTING.md (which also applies to this project).

I suggest to try to fix some of the comments in the linked PR, create a branch (i.e. fix/remaining-pr-comments or something like that), push it, create a pull request and I will review it. If you don't understand something you can tag me in that comment, I will help you (if I have time).

awesome


Add compaction version in cache key

In current IoTDB, after compaction finished, it will clear all the query cache, because the old file and the new file share the same key in query cache and there is no way to remove the exact old file entry in query cache.
However, we can add the compaction version into the cache entry key so that the new file generated by compaction will has a new entry instead of sharing the same key as the old file. In this way, we can avoid clearing all query cache after each compaction.

Hi, you can merge the master branch to fix the CI now.

Coverage increased (+0.02%) to 66.98% when pulling b0430027163c2627e9c04c429fc6468a332cff0c on CompactionVersion into b05e21c078debcbb020d62ecd6d8a00a932863bd on master.


Open details document make blank page Docker

Hi, tried to open cached documents after sync with Pinecone:
Document
857
Vectors
18.8 MiB
Vector Cache (MB)
When I click to open it, I see some ashes and after that quickly a blanc page (Chrome)
No error appear in logs of Docker and no error in google chrome console

Can you go to http://localhost:3000/system-settings and then using the database debug login to the VDBMS manager page.
After which navigate to the documentvectors table and ensure there are records present in there. No errors in console or otherwise?

Documentation appear in the database correctly, just checked, no error in logs, please find log from docker
Log.txt

How were these documents embedded? It appears that they are coming across with just the name blob which doesnt seem right as it should be a string and be the document's title

I use OPENAI embeddings with Flowise, all documents are PDF files

I confirm that using Flowise to upsert into Pinecone if you don't add specific metadata it does with "blob". I hope you find this helpful

Thank you, If I understand I need to add metadata for each document in parameter ? title of document ?

As you can see in the image the vectors created trough Flowise inot Pinecone without setting an specific title as metadata automatically are set with "blob". Just the one I upserted with "océano" seems to be showing fine within "Vector Admin".
Try upserting a simple TXT file and set a title and after check with "Vector Admin".

Nice working fine !

Wow @iokinpardo thats a nice detail to know 👀
Closing this as it is exactly the same issue as #24. Missing title metadata. Going to move away from specific metadata field enforcement 👍


[Apollo Angular] Generate a wrapper SDK service

Is your feature request related to a problem? Please describe.
When using graphql-codegen with the typescript-apollo-angular plugin I always find myself writing a wrapper class that exposes all the generated operationGQL services. Let's refer to this as my SDK Service.
That way I only always have to inject that one SDK service if I want to access any data from GraphQL.
This is an example of what my SDK services look like:
@Injectable({ providedIn: 'root' })
export class ApolloAngularSDK {
  constructor(
    private myActivitiesGql: MyActivitiesGQL,
    private myActivityFeedGql: MyActivityFeedGQL,
    private registerGql: RegisterGQL,
    private loginGql: LoginGQL,
  ) {
  }

  myActivities(variables?: MyActivitiesQueryVariables, options?: QueryOptionsAlone<MyActivitiesQueryVariables>) {
    return this.myActivitiesGql.fetch(variables, options)
  }

  myActivitiesWatch(variables?: MyActivitiesQueryVariables, options?: WatchQueryOptionsAlone<MyActivitiesQueryVariables>) {
    return this.myActivitiesGql.watch(variables, options)
  }

  myActivityFeed(variables?: MyActivityFeedQueryVariables, options?: QueryOptionsAlone<MyActivityFeedQueryVariables>) {
    return this.myActivityFeedGql.fetch(variables, options)
  }

  myActivityFeedWatch(variables?: MyActivityFeedQueryVariables, options?: WatchQueryOptionsAlone<MyActivityFeedQueryVariables>) {
    return this.myActivityFeedGql.watch(variables, options)
  }

  register(variables: RegisterMutationVariables, options?: MutationOptionsAlone<RegisterMutation, RegisterMutationVariables>) {
    return this.registerGql.mutate(variables, options)
  }

  login(variables: LoginMutationVariables, options?: MutationOptionsAlone<LoginMutation, LoginMutationVariables>) {
    return this.loginGql.mutate(variables, options)
  }
}

Describe the solution you'd like
In order to not repeat myself I've patched the typescript-apollo-angular plugin and added functionality to create such an SDK service. The reason that I open this feature request is to see if it would be considered as a PR.
Describe alternatives you've considered
I could fork the plugin and publish it myself but I'd rather see it upstream :)
Additional context

It seems like a nice addition to the generated API. @beeman feel free to open a PR :) Thanks!

Available in v1.10.0.


In APP Purchase ERROR  An error happened handleBuyProduct [Error: skus is required for Android purchase]

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description

Expected Behavior

Screenshots

Environment:

react-native-iap:
react-native:
Platforms (iOS, Android, emulator, simulator, device):

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Press '...'
Error '...' is shown

[Optional] Additional Context

For android you need to pass requestPurchase({skus: [xxx]})

A solution could be to use Platform.select, i.e.
const params = Platform.select({
  ios: {
    sku: '<some sku>',
    andDangerouslyFinishTransactionAutomaticallyIOS: false
  },
  android: {
    skus: ['<some sku>']
  }
}),

await requestPurchase(params)


chore: remove deprecated config_path attribute

Removes the deprecated config_path attribute. Replacement is to use config attribute which accepts a label, or use DOCKER_CONFIG standard env for cases such as overriding the config in CI.

@alexeagle PTAL


Feature: Keep track of what virtual proxy users are accessing Sense via

Should be possible to keep real-time info on what virtual proxy users are connected via.
This will be useful from an operations perspective, for example when a server restart is needed.
This feature would answer the question how many users that are connected through this particular server.

Won't implement this, as it is already available in Butler SOS.


JIT causing some classes to just not work.

I'm going to file this issue in the event that this is a bug within this plugin and not Tailwind itself. I say this because there have been several recent reports that JIT is causing some issues.. so I will also create an issue on the Tailwind repo too.
A simple example of the issue:

Simple navigation

With JIT on padding with value of 12 doesn't work at all.
With JIT off padding with value of 12 works like ususal
Go to tailwind issue to see further instructions on reproducible example.
Let me know if you need anything else to investigate.
Thanks.

You have an error in your code, you've missed the end quote.

Should be

Sorry that appears to just be an error in the issue itself.. I'll fix that right away.
Look at the tailwind issue for a detailed reproducible example.
Thanks

Issue resolved by the guys over at Tailwind:

Hey! When I start the project in JIT mode the padding is there:

But when I change the padding, the changes aren't picked up.
A few things I noticed:

You are watching an enormous amount of files because your purge config is capturing all of node_modules. The JIT takes 17s to run because it is evaluating 22,957 files and finding 1,132,230 potential classes. Make sure you change your purge config so it doesn't include the entire node_modules directory.
You are putting your templates in hidden folders like .components, and glob patterns ignore hidden folders, so I suspect when we pass those globs to our watch process they are being ignored 🤔  I tried switching to regular folders though and it didn't fully resolve the issue.
I think the main issue is that the eleventy plugin is just not designed to work with the JIT engine. It is doing a lot of manual file watching and stuff rather than working like a traditional PostCSS plugin, which means (I suspect) that the dependency messages we send out to PostCSS aren't being respected, and the plugin is not triggering a CSS rebuild when your template files change.

I did verify after changing the purge config and changing the hidden folders to be regular folders that re-saving the config file did trigger a CSS rebuild and make everything look correct, and I noticed the plugin is explicitly watching the config file, so I think the change that needs to happen here is that the plugin needs to watch the purge paths as well. Because it is such an incredibly low-level integration doing a bunch of stuff manually that we normally expect to "just work" when we fire out a PostCSS dependency message, there's not really anything we can change on our end to improve this I'm afraid :/
I think your best option is to compile your CSS separately instead of relying on the integration, using postcss-cli or our new JIT-compatible CLI tool we will be releasing in a week or so if you can wait. Then just import the compiled CSS into your 11ty project, and run both the 11ty server and the PostCSS watch process simultaneously using npm-run-all or concurrently. Hope that helps.


#1 - filter out nop

less noise on -frds

I can probably deal with this later

huzzah, I will test later


lcoalhost:8080/index.html connection refused

node
node version : latest
 npm version : 5.4.2
weex version
v1.0.7
- weex-builder:v0.2.7
- weex-previewer:v1.3.9
- weexpack:v0.4.3
there were some mistakes when i  followed to install and run dev&serve : unexpected token:name<urlParts> [index.web.js:331,4], ERROR in index.web.js from UglifyJs , webpack: Faild to compile.

You need to update weex-toolkit to latest version, try to run npm i weex-toolkit@latest -g,
then, try to update weexpack by weex update weexpack, after that, you can re-create your project and run npm start again.
If you have other problem while installing, see FAQ for some help.