PEP8 all the python code !

\ ( ☉д⊙)/ aaaaaaaaaaahhhhhhhhh!

All new code should be in PEP8 format. We are slowly migrating other code over as we touch it. Larger, all at once changes are not a priority right now, although PRs are accepted.


python311Packages.django_3: 3.2.23 -> 3.2.24; python311Packages.django_5: 5.0.1 -> 5.0.2

https://docs.djangoproject.com/en/dev/releases/3.2.24/
https://www.djangoproject.com/weblog/2024/feb/06/security-releases/
https://www.openwall.com/lists/oss-security/2024/02/06/2
Fixes: CVE-2024-24680
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 286769 run on x86_64-linux 1

2 packages failed to build:

baserow
baserow.dist

10 packages built:

etebase-server (python311Packages.etebase-server)
ntfy
ntfy.dist
python311Packages.django_3
python311Packages.django_3.dist
python311Packages.django_5
python311Packages.django_5.dist
python312Packages.django_3
python312Packages.django_3.dist
seahub

baserow is just flaky.


PIXI.Sprite.from() not working with base64 data URL

Expected Behavior
I'm attempting to insert an image into a Pixi canvas by using a base64 data URL string. I need to use that because the image is getting created from a camera feed (video tag).
Current Behavior
It works if I insert a regular image URL into the first argument of Sprite.from, but not when I use a base64 data URL.
Ex:  https://codepen.io/gigamesh/pen/GRRzdrL?editors=1111
Is what I'm attempting even possible? If so, how?
Environment

pixi.js version:  5.1.2
Browser & Version: Chrome 78.0.3904.87
Running Example: https://codepen.io/gigamesh/pen/GRRzdrL?editors=1111

data:image/gif - not possible. You need your own gif decoder. I had it somewhere...

You can pass video element direct to Texture constructor (from call it)

here is the solution for anyone who finds this thread:
// img tag points to base64 URL
  const image = document.querySelector('img')
  const base = new PIXI.BaseTexture(image);
  const texture = new PIXI.Texture(base);
  const sprite = new PIXI.Sprite(texture);

https://codepen.io/Slaz/pen/bGGzxPw?editors=1111


Feature/rdf/update to v3.0 rc02

The schemas got outdated from the book. We submitted the generated schema in the pull request #177 as an alternative. I'm closing this pull request so that we can archive the files for future reads.


Problem of px4 about check out tag on Eclipse of Ubuntu

I have one problem of px4 about check out repository on Eclipse of Ubuntu.I want to change  Firmware from v1.3.0RC1 to v1.4.1 in git repository. However,when I check out v1.4.1,it tell me to have check out conflicts.I look for some methods on the Internet,But it does not solve this problem. I still have no idea to do something.Please help me !I'm looking forward to your reply.Thanks!

Why are you checking out these particular old stable versions? You can ignore all of these conflicts (reset or stash).
On the command line you'd just add force (git checkout -f v1.4.1), then do make distclean which will update all the submodules and get rid of old build artifacts.


TODO list, week 1 milestone

week 1

add CONTRIBUTION.md

[ ] write contributions document

add CoC.md and contract

[x] write code of conduct
[ ] write down the team contract

Proposal(1000 words max)

[ ] section 1: motivation & purpose
[ ] description of the data
[ ] research questions

description of your app and sketch

[ ] description in README.md
[ ] sketch

(end Saturday Nov 22 @ 6pm)

see https://github.com/UBC-MDS/DSCI_532_GROUP_111_FLIGHT_EXPLORER/projects/1#card-29628788


Update maven-common-artifact-filters to 3.3.0

Updates org.apache.maven.shared:maven-common-artifact-filters from 3.0.1 to 3.3.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.apache.maven.shared", artifactId = "maven-common-artifact-filters" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.apache.maven.shared", artifactId = "maven-common-artifact-filters" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #97.


Mod Support Last on Roadmap?

Is Mod Support the last thing you're going to work on? That's going to be really tough because when you want to embrace mods, then you want to have an open system/game that can be easily modified so having it to be the last thing to work on will add a ton of revising to be done on the code to.
Unless your just saying that in a random order...
I don't know, but to me it just would seem like a bad idea to make that the last thing to work on.

While the list was suppose to be a rough estimate of when things were suppose to happen, you make a good point. Throughout my time working on this project I have kept in mind mod support, so while it doesn't support mods currently it should be easier to implement than had I not. I should ALWAYS be thinking about mod support.

Yay, this is good I really like this project and wanna see it flourish

Are you interested in helping out?

I'm not really experienced in C# (although I am going to start taking classes on it, so maybe...)
If you ever need help on very low level things though I can always help out with that (experienced with C, C++, Rust, and x86/x64 Assemblies)
I'm not sure if Mono has optimized compiling, but next time when you compile a good tip is to use the -o3 flag, it'll make the compiling a lot longer but the game will end up being a lot more optimized and use less CPU cycles

Yeah. I updated the README to reflect that. I just mention it as a feature because some projects use windows forms or something that don't have hardware acceleration.


DOC:

What's wrong with the existing documentation
the readme file is not up-to-date , i think of giving it a new look .
@Anushkabh please assign me this project , i think i can contribute under GSSOC'24
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@Anushkabh can i please work on the readme file for this project


[AutoML] [Tensorflow Lite] Export for TensorFlow Lite is broken for confidence score

System information

TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 2.5.0
Python version: 3.9.5

Describe the current behavior
I trained a model on a dataset via AutoML Vision and exported models using the UI.  I've used AutoML in the past and the models have always worked well.
The .tflite version has bounding boxes and class names that are perfectly correct, but the confidence scores are wrong.
Specifically, the .tflite seems to cap its confidence score at 50%. It never goes higher than 50%.
Given the same input image, the top 4 confidence scores are as follows:
for .tflite 0.5, 0.0429, 0.0273, .002343
for tf js 0.9975, 0.02638, 0.0182, 0.00969
Describe the expected behavior
The top confidence score should not be 0.5 and should instead be around 0.99 in the tflite
According to Netron, the TF run time for the TFLite was 2.5.0. For the TF JS, the model.json indicates that it was generated by 2.7.0 (the brand new release). I don't have any obvious way to select what runtime I want TFLite to be exported in.
Standalone code to reproduce the issue
I used basic code to test the TF JS
<!---- python -m SimpleHTTPServer 8000 ---->

<script src="https://unpkg.com/@tensorflow/tfjs"></script>
<script src="https://unpkg.com/@tensorflow/tfjs-automl"></script>
<img id="salad" crossorigin="anonymous" src="test.jpeg">
<script>
async function run() {
  const model = await tf.automl.loadObjectDetection('model.json');
  const img = document.getElementById('salad');
const options = {score: 0.005, iou: 0.5, topk: 5};
  const predictions = await model.detect(img, options); // , options
  console.log(predictions);
  // Show the resulting object on the page.
  const pre = document.createElement('pre');
  pre.textContent = JSON.stringify(predictions, null, 2);
  document.body.append(pre);
}
run();
</script>

And the Tensorflow Lite tester:
import numpy as np
import tensorflow as tf
import cv2

img = cv2.imread("test.jpeg")
new_img = cv2.resize(img, (320,320))

# Load the TFLite model and allocate tensors.
interpreter = tf.lite.Interpreter(model_path="model.tflite")
interpreter.allocate_tensors()

# Get input and output tensors.
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()

# Test the model on random input data.
interpreter.set_tensor(input_details[0]['index'], [new_img])

interpreter.invoke()

# Show the scores
scores = interpreter.get_tensor(output_details[2]['index'])
print(scores)

Couple of questions:

What would a capped confidence of 50% be a symptom of? (Something weird with quantization?)
Should I just multiple the confidence score by 2 or is that completely wrong?
Is this the right place to post about AutoML bugs?

Can you please post this issue on automl repo https://github.com/google/automl for support?
This repository focuses on TF Core and TF Lite related bugs. Thanks!

Done, thanks!
https://github.com/google/automl/issues/1070


MUMUP-1757 : Weather app error handling

This pull request is in regards to error handling for the weather widget under two scenarios: 1st, that the user actually has locations selected in their weather portlet settings, otherwise a frowny face and fix-instructions appear, and 2nd that when the World Weather Online service fails for whatever reason, the user will be gracefully told to click on the link provided to view the local weather (from a different weather service).
Due to the Weather app not actually loading weather on local host, I wasn't exactly able to test my changes under the condition that the back-end services actually work, and so I was hoping to do that on my-test once/if this gets merged. That is, of course, if everything here looks good to you guys.
Screenshots of what i would eventually look like (once working)
User has no locations set in their weather portlet settings

Weather service is down or being very slow(still trying to fetch data from service and thus the loading icon should remain)

:+1:


Feature/log all

Change to log both success and failures nodes.

Coverage increased (+2.09%) to 81.322% when pulling 86a44b53f84061a6a30bbcc48cf5b3c2a25b6eb2 on feature/logAll into d0f19873e9ea619d81c5922ae84919257e1614aa on develop.

Coverage increased (+1.4%) to 80.661% when pulling 86a44b53f84061a6a30bbcc48cf5b3c2a25b6eb2 on feature/logAll into d0f19873e9ea619d81c5922ae84919257e1614aa on develop.

Coverage increased (+1.8%) to 81.068% when pulling 6991aa79218d3c05afcb4f7fd4749b8995e92a08 on feature/logAll into d0f19873e9ea619d81c5922ae84919257e1614aa on develop.

Coverage increased (+2.5%) to 81.715% when pulling e917328ecf144ef0364e8e078b162f2814f183cc on feature/logAll into d0f19873e9ea619d81c5922ae84919257e1614aa on develop.


Scrappy version of feature flags for gui

Enables us to merge in code that we want more user testing on without enabling it for everyone.
Adds a new menu option for Feature flags. After changing a feature flag you need to open a new chat window to see the effects.
Includes two examples feature flags:

Changing the splash 'what goose can do?' text
Changing the default tool output rendering between show by default or hide by default

Requires local storage to work atm. Over time should migrate to something more standard like https://openfeature.dev/ .

hrm - this seems a lot like a preferences screen vs flags (which are normally remotely controlled/optioned?)

Closing this out pending future use cases.


Chapter 2 Structure - Project Setup

As Chapter 2 stand currently, the first half of the text is just setting up the project/build files and getting a debuggable application, which feels disconnected from the second half where we set up the XrInstance and XrSession and get going on OpenXR code and ideas.
Should we move Project Setup to its own separate chapter or add it as Chapter 1.4?
I feel it would be clearer for reading the text and for a user to follow.

I'm Ok with moving to 1.4 and making chapter 2 cover xrInstance, xrSession (and maybe move xrSpace to chapter 2 as well since it ties in with graphics)

Commit 8ed7794 moves Chapter 2 - Project Setup to Chapter 1.4.
I have not moved XrSpace as it is not used until Chapter 3.


Build Failing

Has anyone had seen that the build is now failing ? I used to specify the URL in my Plugin.xml.
Plugin.xml
<plugin spec="https://github.com/phonegap/phonegap-plugin-barcodescanner.git" source="git" />
This no longer works it gives a build error :(

Build does fail for Android in latest version:
:compileDebugJavaWithJavac
/data/platforms/android/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:24: error: cannot find symbol
import org.apache.cordova.PermissionHelper;
                     ^

symbol:   class PermissionHelper
location: package org.apache.cordova
/data/platforms/android/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:173: error: cannot find symbol
                    intentScan.putExtra(Intents.Scan.CAMERA_ID, obj.optBoolean(PREFER_FRONTCAMERA, false) ? 1 : 0);

                                                    ^

symbol:   variable CAMERA_ID
location: class Scan
/data/platforms/android/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:182: error: cannot find symbol
                        intentScan.putExtra(Intents.Scan.ORIENTATION_LOCK, obj.optString(ORIENTATION));

                                                        ^

symbol:   variable ORIENTATION_LOCK
location: class Scan
/data/platforms/android/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:258: error: cannot find symbol
       if(!PermissionHelper.hasPermission(this, p))

           ^

symbol:   variable PermissionHelper
location: class BarcodeScanner
/data/platforms/android/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:274: error: cannot find symbol
   PermissionHelper.requestPermissions(this, requestCode, permissions);

   ^

symbol:   variable PermissionHelper
location: class BarcodeScanner
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Try:

Run with --stacktrace option to get the stack trace. Run with
--info or --debug
option to get more log output.
BUILD FAILED

@EddyVerbruggen @vladimir-kotikov Have you noticed this build failure?

@nikhilkh The problem of the OP was also reported elsewhere and was due to not using gradle when building in phonegap build. I've added a note about it to the readme today.
The problem of @nmaas87 has not yet been investigated yet but if it's a local build simply removing the platform and plugin and re-adding those should solve it as it's a new dependency this plugin depends on that's not being fetched (for some reason).

I recreated the project with phonegap 6.2.0 on ubuntu. the installation of barcodescanner went as following:
Fetching plugin "phonegap-plugin-barcodescanner" via npm
Installing "phonegap-plugin-barcodescanner" for android
Dependent plugin "cordova-plugin-compat" already installed on android.
after that, I now get this error:
[phonegap] executing 'cordova build android --debug'...
ANDROID_HOME=/opt/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-7-oracle
FAILURE: Build failed with an exception.

What went wrong:

A problem occurred configuring root project 'android'.

Could not resolve all dependencies for configuration ':_debugCompile'.

Could not find any version that matches com.android.support:support-v4:+.
 Searched in the following locations:

     https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml

     https://repo1.maven.org/maven2/com/android/support/support-v4/

     https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml

     https://jcenter.bintray.com/com/android/support/support-v4/

     file:/data/platforms/android/libs/

 Required by:

     :android:unspecified

Try:

Run with
--stacktrace option to get the stack trace. Run with
--info
or
--debug
option to get more log output.
BUILD FAILED
Total time: 10.982 secs
Error: Error code 1 for command: /data/platforms/android/gradlew with args: cdvBuildDebug,-b,/data/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

I had the same error as @nmaas87, installing "Android Support Repository" via the Android SDK Manager fixed my problem.

Found the issue, thanks a lot! @mcgrandlej was right.
I needed to install some support libs and extras:
echo y | android update sdk --no-ui --all --filter "extra-android-support" &&
echo y | android update sdk --no-ui --all --filter "extra-android-m2repository" &&
echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
It worked after that :+1:

@nmaas87 thanks! It help me to solve my problem!

@nmaas87 Where do you enter that? On Windows. SDK Manager is reporting that Support Repository is installed.

@Gerben321 That comment was 2 years ago, I needed to install those on a clean installed Ubuntu. Today, the names and stuff have changed slightly i.e. not android update is used anymore, but sdk manager directly. So, it does not apply anymore.


add securityContext to the manager containers

kind/bug
What this PR does / why we need it: Without securityContext set for the manager containers, RKE2 bootstrap and control-plane providers cannot be installed into an RKE2 cluster with cis-profile set (e.g. creating a hardened RKE2 cluster and pivoting the management cluster into it).

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #384
Special notes for your reviewer:
Checklist:

[x] squashed commits into logical changes
[ ] includes documentation
[ ] adds unit tests
[ ] adds or updates e2e tests

@AshleyDumaine thanks for the contribution.
I was checking the previous releases of the CAPI, and noticed they introduced same changes in release-1.4 minor version. As we strive to align with upstream and CAPI in general, can I ask you to take a look at https://github.com/kubernetes-sigs/cluster-api/pull/7831/files#diff-8d4b80dac52bef6a87376c16699a47555f567a9c7b68408965e37b68dedee6cb and add the missing bits in this patch?

@AshleyDumaine thanks for the contribution. I was checking the previous releases of the CAPI, and noticed they introduced same changes in release-1.4 minor version. As we strive to align with upstream and CAPI in general, can I ask you to take a look at https://github.com/kubernetes-sigs/cluster-api/pull/7831/files#diff-8d4b80dac52bef6a87376c16699a47555f567a9c7b68408965e37b68dedee6cb and add the missing bits in this patch?

Sounds good, just pushed the update 👍

@alexander-demicev @salasberryfin @Danil-Grigorev


Doctest fails

Sphinx doctest fails for a couple reasons. When running doctest

Sphinx seems to stringify types which is incompatible with equinox (cannot use stringified abstract annotations).
We set typing.GENERATING_DOCUMENTATION = True in conf.py to avoid expanding ArrayLike in the documentation (jaxtyping imports it as an Array instead). This change in imports lead to errors on isinstance checks.

Ideally doctest would be ran separately, outside a document generating context. At some point I might make the change to MKDocs, in which case another solution will need to be found for testing documentation anyway.

Fixed with https://github.com/danielward27/flowjax/pull/177


Bug of model parser.

Maybe is't not easy to be fixed.
But is there a way to access the raw value of the json? Otherwise there would be no way to get the response data.

Send a part of the diagram to make it easier to understand what the error is

Send a part of the diagram to make it easier to understand what the error is

swagger is here, and you can find a model named AppointmentCalendarPeriodDate, which is generated to a class with single additionalProperties, properties defined in swagger were missing.

The problem does not recur using the latest commit.

In the parseDataClasses method of swagger_parser/lib/src/parser/parser.dart, the AppointmentCalendarPeriodDate model is added two times to the dataClasses, and one is with parameters, the other is without parameters.

The side effect of _findType changes _objectClasses and all the classes in it are added to dataClasses at line 636, which causes the repetition.


Constant-type pointers, readonly ports

The idea is that pointers are marked as const using some method, and are then prohibited from being passed to words that (indirectly or directly) call STA (i.e. takes a non-const pointer).
("Marking" pointers in this case means modifying their type signature. I'm not settled on what the signature for this is -- could be @const Type, @@Type, &Type, (Cons @Type), or something else.)
Pointers can be made const in a few ways:

(const) to constify the pointer on TOS
(const foo) to constify a variable
#const (let CONSTANT [ 0x0 ]) to declare a variable constant.

Not a fan of this one, as it encourages abusing variables to hold constant values (words should be used for that).

Same principle for device ports -- writing a readonly port literal results in Const_Dev16/Const_Dev8, which cannot be passed to words that require a non-readonly port. (Not sure if adding this particular feature is worth the extra complexity. I mean, how often would one accidentally try to write to a readonly port?)

Should probably use different terminology to differentiate from const words, which will be added at some point (to enable compile-time calculations etc).
immut/readonly would be good for this.

(immutify)
(immutify foo)


Amplify CLI Version
You can use amplify -v to check the amplify cli version on your system
To Reproduce
Steps to reproduce the behavior or terminal output if applicable
Desktop (please complete the following information):

OS: [e.g. Mac/Windows/Ubuntu]
Node Version. You can use node -v to check the node version on your system

Additional context
Add any other context about the problem here.

Amplify CLI Version
i do not have any version on my system. i uninstalled and installed my node
To Reproduce
i tried  bellow
npm install -g @aws-amplify/cli
npm install -g<EMAIL_ADDRESS>but none of them worked
Desktop (please complete the following information):
OS: Windows 10
Node Version: v14.15.1
Additional context
npm ERR! Unexpected end of JSON input while parsing near '...LoAUg0E2U3IXCTAQA=="
708 http fetch GET 304 https://registry.npmjs.org/@graphql-codegen%2Fcore 1579ms (from cache)
709 silly fetchPackageMetaData error for<EMAIL_ADDRESS>Unexpected end of JSON input while parsing near '...LoAUg0E2U3IXCTAQA==",'
710 timing stage:rollbackFailedOptional Completed in 3ms
711 timing stage:runTopLevelLifecycles Completed in 97772ms
712 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...LoAUg0E2U3IXCTAQA==",'
712 verbose stack     at JSON.parse ()

Can you run npm cache clean --force ? and retry installing

Have a similar problem but I get the error :
Hostname/IP does not match certificate's altnames: Host: registry.npmjs.org. is not in the cert's altnames: DNS:default.ssl.fastly.net, DNS:fastly.com, DNS:.a.ssl.fastly.net, DNS:.hosts.fastly.net, DNS:.global.ssl.fastly.net, DNS:.fastly.com, DNS:a.ssl.fastly.net, DNS:purge.fastly.net, DNS:mirrors.fastly.net, DNS:control.fastly.net, DNS:tools.fastly.net
any ideas

@femster890
This does not look like an issue with Amplify CLI but after some cursory googling I found this
https://stackoverflow.com/questions/52128817/hostname-ip-doesnt-match-certificates-altnames-host-registry-npmjs-org-is
Let me know if you have any question regarding Amplify CLI

Think i did see this but not sure if this helps me??
Get Outlook for Androidhttps://aka.ms/ghei36

From: Ammar<EMAIL_ADDRESS>Sent: Sunday, November 29, 2020 9:47:02 PM
To: aws-amplify/amplify-cli<EMAIL_ADDRESS>Cc: femster890<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [aws-amplify/amplify-cli] AWS Amplify installation fails (#5951)
Closed #5951https://github.com/aws-amplify/amplify-cli/issues/5951.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/aws-amplify/amplify-cli/issues/5951#event-4049465519, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AREMTXNJS3JBGGMI5NQ3KUDSSK6NNANCNFSM4UBHEU7A.


Remove the "improve this page" link on the imported metadata content

This needs to go back to the metadata repo.
If this is difficult we can just remove the link for this template

PR https://github.com/HumanCellAtlas/data-portal/pull/630


Change CullMode to none for sprites

With CullMode::Back, a sprite image that is rotated in x,y plane won't display properly

I opened a PR to address sprite flipping here:
#248
However I think we should still allow disabling of culling, but it should be optional.

There are instances where you'd want to cull back faces to increase the speed of sprite rendering

Ooh i wasn't aware of this case. What instances?

Thinking about how culling works more I don't think it will speed up sprite rendering at all. 😳 There may be some cases where you only want sprites to render from one side though so I still think it should be optional. I think its fine if we disable the culling by default though.


Cant Save current Outfit.

I saved it with a name using Save current Outfit, but it does not appear in Change Outfit.
I installed it according to the instructions.
What you previously saved with qb-clothing is in ChangeOutfit.
Probably not saved. What should I do?

Read the docs again. You have not followed them correctly

Did you ever fix this issue? I followed the docs as well

Same here.

Im just coming back to this, i I think what fixed it was updating the DB.  Msg me if anyone has issues, ill be happy to help!

I need help

Im just coming back to this, i I think what fixed it was updating the DB.  Msg me if anyone has issues, ill be happy to help!

I need help

i need help with this please


Update placeholder-query-data.md

I'm not sure if my understanding is correct. I think the API call is actually to get the specific blogPost by id rather than get blogPosts. Before retrieving the data from server, use the cached result from blogPosts API.

:tada: This PR is included in version 3.15.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


The Health Probe is not added to the Load Balancer

After creating the Load Balancer the Health Probe is not added to the "Load balancing rules"
I have to log in to the portal go to the Load balancing than to Load balancing rules and Assigne it Manually

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

ID: e87fd024-0ff1-8942-0a3e-2d76b500ddc4
Version Independent ID: ced21064-87c8-4024-f741-f79374193736
Content: Quickstart: Create an internal load balancer - Azure PowerShell - Azure Load Balancer
Content Source: articles/load-balancer/quickstart-load-balancer-standard-internal-powershell.md
Service: load-balancer
GitHub Login: @asudbring
Microsoft Alias: allensu

Hello @MCKPRO
Thank you for your feedback! We will review and update as appropriate.

Hi there, thank you for flagging this issue.
Want to confirm - did you complete this step successfuly? It would have added the health probe. @MCKPRO
Create the load balancer resource.
$loadbalancer = @{
ResourceGroupName = 'CreateIntLBQS-rg'
Name = 'myLoadBalancer'
Location = 'eastus'
Sku = 'Standard'
FrontendIpConfiguration = $feip
BackendAddressPool = $bePool
LoadBalancingRule = $rule
Probe = $healthprobe
}
New-AzLoadBalancer @loadbalancer

Here is My Code...
`## Place virtual network created in previous step into a variable. ##
$vnet = Get-AzVirtualNetwork -Name 'MyVNET' -ResourceGroupName 'MyResource'
Create load balancer frontend configuration and place in variable.
$lbip = @{
Name = 'MkFrontEnd'
PrivateIpAddress = '<IP_ADDRESS>'
SubnetId = $vnet.subnets[6].Id
}
$feip = New-AzLoadBalancerFrontendIpConfig @lbip
Create backend address pool configuration and place in variable.
$bepool = New-AzLoadBalancerBackendAddressPoolConfig -Name 'MkBackEndPool'
Create the health probe and place in variable.
$probe = @{
Name = 'MkHealthProbe'
Protocol = 'tcp'
Port = '5140'
IntervalInSeconds = '360'
ProbeCount = '5'
}
$healthprobe = New-AzLoadBalancerProbeConfig @probe
Create the load balancer rule and place in variable.
$lbrule = @{
Name = 'MkTCPRule'
Protocol = 'tcp'
FrontendPort = '5120'
BackendPort = '5120'
IdleTimeoutInMinutes = '15'
FrontendIpConfiguration = $feip
BackendAddressPool = $bePool
}
$rule = New-AzLoadBalancerRuleConfig @lbrule -EnableTcpReset
Create the load balancer resource.
$loadbalancer = @{
ResourceGroupName = 'MyResource'
Name = 'MkLoadBalancer'
Location = 'westus'
Sku = 'Standard'
FrontendIpConfiguration = $feip
BackendAddressPool = $bePool
LoadBalancingRule = $rule
Probe = $healthprobe
}
New-AzLoadBalancer @loadbalancer`

Hello @MCKPRO thank you for providing additional information. I think the command New-AzLoadBalancerRuleConfig is missing the Probe parameter. Can you modify the command above to add a Probe parameter as shown below?

$lbrule = @{
Name = 'myHTTPRule'
Protocol = 'tcp'
FrontendPort = '80'
BackendPort = '80'
IdleTimeoutInMinutes = '15'
FrontendIpConfiguration = $feip
BackendAddressPool = $bePool
Probe = $healthprobe
}
$rule = New-AzLoadBalancerRuleConfig @lbrule -EnableTcpReset

I tried it out and the probe was successfully linked to the Load Balancing rule.

Please try it out on your end and let me know if any issues are observed. Meanwhile, I will update the command in the document. Please let me know if you have any additional concerns. Thank you!

Thanks to ChaitanyaNaykodi-MSFT


Ask if your work Adapting to Length Shift: FlexiLength Network for Trajectory Prediction will be open sourced

Hi dear Xu Yi,
Congratulations for the acceptance of your great work Adapting to Length Shift: FlexiLength Network for Trajectory Prediction work! The topic is to the ground and closely related to the application and deployment of trajectory prediction models, and may I ask if you have any plan to open source it?
Also thanks for your previous works and this repository, they helps a lot!!! Hope everything goes on well with your research : )
Best wish!
zachy

Hi Zachy,
Thank you so much for your continuous contribution to this repo!
Yes, I plan to release the codes but I am too busy. It may take some time.
Best,
Yi


Repository split (example/code)

removed bower components folder
simplified readme to redirect to https://pavelk2.github.io/social-feed-example/ (index.html is later to be removed)
readme - link to example page is updated

the pull request is deleted as another one with new commits is created

I tested the branch with Bower and Webpack, both didn't throw any errors.


RuntimeWarning: invalid value encountered in true_divide

Hello! Thanks for this great package. I've suddenly started getting this error when I run this (nothing has changed in my code or data). Any idea what this could be please? Anyone else seeing this?
/usr/local/lib/python3.7/dist-packages/scipy/optimize/_numdiff.py:579: RuntimeWarning: invalid value encountered in true_divide
J_transposed[i] = df / dx

Hi @freekeys, thanks for reporting this bug. Could you provide a minimal working example so that I can reproduce your problem?

hey @freekeys is still an issue for you?


HideMetroDialogAsync for Custom Dialog does not work a second time after Window is closed and re-opened

I am having a very weird issue with the Custom Dialog not being able to hide properly (the transparent black border around it disappears but the dialog content remains) after the Metro Window is closed and opened again. Let me explain the situation in the following steps.

A parent Metro Window spawns another child Metro Window which displays a Custom Dialog by means of ShowMetroDialogAsync(dialog).

The close button on the dialog is clicked and this triggers HideMetroDialogAsync(dialog) and the dialog closes successfully. (First attempt).

The child metro Window is closed.

The child metro Window is re-opened again from the parent Metro Window and the dialog is displayed again (successfully).

The close button on the dialog is clicked, and only the black transparent frame around the dialog disappears but the dialog doesn't.

If the close button on the dialog is clicked again (since it's still visible), the program will crash with "The provided dialog is not visible in the specified window." error message.

Observations:

The project is using MVVM Light library.
The problem happens when the library's function to re-construct ViewModels (after the View has been closed and re-opened) is used:
return ServiceLocator.Current.GetInstance(Guid.NewGuid().ToString());
If the ViewModel for the Window is kept as a Singleton instace (without the Guid.NewGuid().ToString()), the problem doesn't seem to happen.

I am not too sure at this stage, if it is MVVM Light issue or MahApps issue.
A sample project that demonstrates this problem exactly is uploaded to:
https://www.dropbox.com/s/xba9sur86eul3wo/MahAppsDialogHideAsync.zip?dl=0
Please kindly let me know if I need to verify any other info.

I am so sorry for opening up this issue which is most likely related to a problem with my code.
I have resolved it by not using MVVM Light Messenger for the Window's Loaded event, but instead used interaction trigger to bind the Loaded Command to the ViewModel instead. This fixed the issue completely.
Once again, I'm sorry for opening up this issue. Much thanks for everyone's awesome work on MahApps as well!


Support self-service access overrides

Per Slack discussion, show a dashboard card for anyone who has never paid dues or had an override in the past after they attend a meeting. The card has a button to grant the user an override until the next future access end date so long as that date is within the next two months, otherwise it can’t be given out.

Alternatively (per more Slack discussion), we could allow 30/45 day access overrides no-questions-asked once per year, or along those lines.


Make summarize_graph recognize VariableV2

#8054

Can one of the admins verify this patch?

Can you add a test please?

Jenkins, test this please

Jenkins, test this please


[ACI] terminal window size not resizing when doing az container exec into bash shell

Describe the bug
The terminal doesn't fit to window correctly when doing az container exec into a bash shell
Possibly related to this docker issue?
https://github.com/moby/moby/issues/35407
https://github.com/docker/for-linux/issues/314
Command Name
az container exec
To Reproduce:

az container exec --container-name somecontainer --name someinstance --resource-group somegroup --exec-command /bin/bash

Environment Summary
Linux-5.3.0-19-generic-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash

azure-cli 2.0.75

@nofunatall Apologies for the late reply. Could you please confirm if you are still running into this issue ? This issue is open for quite sometime. Please let us know if you need any further assistance on this.


Pub not match private_key

I made a big mistake. I should use eth hex private_key to convert EOS Pub_key ,But use eth pub key convert to EOS pub key instead. The same private of hex ,but mainnet not match!!!
eth register is end , How could I do to fix this? I really need help

@spartucus

This is not the proper place to seek help with this issue.

Hi @Robwpy , sorry to hear that, i think you should ask help from block.one.


Sweetalert select not working in Firefox because of focusTrap

Version
vue-final-modal:
vue:
OS
Mac with Firefox
Reproduction Link
https://stackblitz.com/edit/github-5vcwph
Steps to reproduce

Open a modal (vue-final-modal)
Click on a button in the modal to open the sweetalert message
The select inside the swal message is not working in Firefox
https://github.com/sweetalert2/sweetalert2/issues/2617

What is Expected?
That you can open the select dropdown inside the swal message regardless of the focusTrap.
What is actually happening?
Select dropdown is not opening because of focusTrap, if we disable the focusTrap it is working fine.

@arwinvdv I have no idea how to fix this. Currently, the only way is to set focusTrap to false


Speed up malloc()

The malloc() in lib/c.c is slow. Assume the following code:
#define MAX_ITEMS 100000

typedef struct list_t {
    struct list_t *next;
} list_t;

int main(int argc)
{
    int i;
    list_t *p = malloc(sizeof(list_t));

    for (i = 0; i < MAX_ITEMS; i++) {
        p->next = malloc(sizeof(list_t));
        p = p->next;
    }
    return 0;
}

The above code takes 1.5 minutes to execute on QEMU. The reason is that it needs to traverse every chunk until the end of the chunk list.
https://github.com/sysprog21/shecc/blob/c39945bba0d0015f94b6fd2a5435eb32201e4ef0/lib/c.c#L556-L557
To speed up the tail insertion, we could use a tail pointer or a doubly circular linked list. Considering that there are few bidirectional accesses in memory allocation, the simple tail pointer is used here. After changing, it only takes 0.02s now.

Thank @vacantron for contributing!


feat: add mobile menu

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind user-interface
/kind content

/kind translation

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area blog

/area documentation

/area videos

What this PR does / why we need it:
Adds hamburger menu to nav on mobile resolutions, which toggles menu items
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: bullet03
Once this PR has been reviewed and has the lgtm label, please assign leogr for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash:<PHONE_NUMBER>998720801f47c50b1a237ad95381b3

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: bullet03, Issif
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Issif]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Fixes for QSB

[x] Use LoadScene instead of LoadSceneImmediate because that doesn't call OnPreSceneLoad

[x] test codec (has stuff at eye)
[x] test dreamstalker (overrides the nh eye stuff)

[x] eye stuff doesnt spawn, seems to not go over to eye scene (when using QSB) (qsb issue made)
[x] test it without qsb too (works fine)

[x] Name ship warp drive dialogue objects so QSB can avoid them.

check for issues in QSB PR

:nerd_face:

so this is done right? the dreamstalker stuff is dreamstalker not nh so i dont care!

waiting on qsb pr to be completed

test before final merge please

actually now with dreamstalker it just refuses to work and throws a hash error. looks like one side is generating eye stuff while the other isnt. probably something to do with host stuff being silly

tested a little bit, things seem to still work as before


[HOLD for payment 2023-07-20] [$1000] Inconsistent display of "Name, email, or Phone number" as placeholder instead of header in Assignee and Share section

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Click on the plus sign :heavy_plus_sign:
Select "Assign Task" and click "Next"
Add a Title and click "Next"
Navigate to the Assignee and Share section and observe that the text "Name, email, or Phone number" is displayed as a placeholder instead of being presented as a header, similar to other search bars in the app.

Expected Result:
In the Assignee and Share section, the text "Name, email, or Phone number" should be shown as a header, maintaining consistency with other search bars throughout the app.
Actual Result:
In the Assignee and Share section, the text "Name, email, or Phone number" is  shown as a  palace holder instead of being shown in Header
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.35-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/3070ea67-fb8f-4aae-a798-e012fa8a00b2
https://github.com/Expensify/App/assets/43996225/dc2c868a-6ecb-4313-922e-ab3df4f41dbf
Expensify/Expensify Issue URL:
Issue reported by: @tewodrosGirmaA
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688132556132649
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01d36083f2d217fd35
Upwork Job ID:<PHONE_NUMBER>930157056
Last Price Increase: 2023-07-03

Bumped @0xmiroslav on the linked Slack thread

Please everyone let's keep things civil 😅 These scenarios can get complex when there are duplicate issues reported and proposals are made within a short time frame. @dhairyasenjaliya asking for clarity completely makes sense.
I've asked the team to weigh in before we move forward just to be sure, but currently, I agree with @0xmiroslav and @chiragxarora that (given it's the earliest acceptable proposal for the same bug) we should go with @chiragxarora's proposal.
I'll post an update here once some people have weighed in! Thanks for your patience 🙇

Cool, the consensus after the discussion is the same as what I mentioned above, so we're going to move forward with hiring @chiragxarora for this job. Sorry for the confusion here with the duplicate issues!

Hi @anmurali , You  didn't send for me an offer for Two bug reporting for this one, and  for this https://github.com/Expensify/App/issues/21184

@0xmiroslav could you please complete this checklist 🙇 after that I think we can close this issue out

Hello,@NikkiWines, I didn't get an offer for this one

@tewodrosGirmaA, sorry about that! For the the bug report, right? @anmurali can we issue payment to @tewodrosGirmaA, please?

Thank you @NikkiWines

I get paid for this subject Thank you@anmurali


Merge dev into master, release as v0.94.0

Bug fixes

Fix issue where MiniRPC would throw an error if its batch was null (0c54a887840580c0b162a08f3c1ca141865f146f)
Fix potential uncaught error when calling SwapToken/ETHSwapToken.swapETHAddress() (047aa566bb921ba3c6bbf2660a204db563f57ed5)
Make the swapAddress and swapETHAddress properties on the SwapPoolToken interface properties rather than functions, since those properties can only at most be one address (thus, no need for them to be objects/object key/val lookups) (fbf93aaaae7f33223fa56f6260c97400fd3569b5)
Fix annoying and almost unnoticeable bug in calculateBridgeRate which would should up in very specific cases when using tokens with non-standard decimals. (19e5a46302320497808f70233dff11a4f462cac7) Massive props to @BlazeWasHere for pointing this out and working a solution.

Updated contract addresses

L2BridgeZap on Metis (b5b8dc8a0416579bb7d84ab9816e4175c8378ab3)

New things!

SDT token on Fantom, Avalanche, and Harmony (f1af40c6850c7967d90761eacdc417be6e87276d)
LUNA token on Optimism and Arbitrum (5635daadf7c4a0254d84199cdeb9f14c1d7d9d8a)
Metis WETH (aka ETH) (60d237b10a3b89ec572a35be2a2d70508852dd00, 67fd823243d07036b8c9ab703847e987488dad2d, 174586bcd9e3eab7895ee9a8b11e59eaf791618f)

Testing changes/improvements/fixes

Extra test cases for swap contracts (ea7153b665323990cac1bc4471b53c7cba012109, 2f0b278a2ef06014040d129604f56528016d5bce fbf93aaaae7f33223fa56f6260c97400fd3569b5)
Metis WETH testing (914d280ef03e62081d40aa2580cbe7a50a525347)

Of Note

swapAddress and swapETHAddress on SwapPoolToken are no longer functions; codebases should be updated accordingly.
The function SynapseBridge.checkCanBridge() now returns an object (67326a07eea2843fb74751e544544dc9925819a6).

Said object has the following structure:
{
    canBridge:     boolean;
    reasonUnable?: string;
    amount?:       BigNumber;
}

If canBridge is false, reasonUnable will contain the reason that a bridge transaction would fail or be unable to be executed in the first place. amount is only populated if the reason that canBridge is false has to do with the sender's ERC20 token balance (or native currency balance in specific situations), or if the sender's ERC20 allowance for the bridge/zap bridge contracts is too low (thus requiring approve() to be called first).

Coverage decreased (-0.05%) to 99.484% when pulling 59d6d9fe1b8c9400ff9896d16fd61a3129fb11ae on dev into ecd77a0826a824f3327643a2ece5216d295c8545 on master.

LGTM


Migrate the govet hook to invoke

What does this PR do?

Migrate the govet hook to invoke
Motivation

Same as:

https://github.com/DataDog/datadog-agent/pull/26162
https://github.com/DataDog/datadog-agent/pull/26138
https://github.com/DataDog/datadog-agent/pull/26120
https://github.com/DataDog/datadog-agent/pull/26083

Additional Notes

https://datadoghq.atlassian.net/browse/ADXT-313
Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Feature/share search button

Checklist

[x] the contributor license agreement is signed
[x] commit message follows commit guidelines
[x] tests are included
[x] screenshots are included showing significant UI changes

Description of change

#1306
This is essentially adding a ui layer for my previous PR (#2506)
A new share button has been added to the SearchResultList component.
It generates the url of the current search page, along with a query string param that stores the current state of the search page. The link is stored in the user's clipboard, and a snackbar is displayed.

Cool, looks good, I've only got a few bits of feedback - and then there's @PenghaiZhang's. And one other thing (as discussed) by good to have an end-to-end test for this one. That is, with Selenium in the NewSearchPageTest:

make a few minor option selections on the search page - maybe just query text would work;
share the link - so it's in the clipboard
Use that link to go() to
Confirm you're back at the search page and your option has taken effect.

I wrote the test for this, but for step 2, it's fiddly to get the selected values of the controls using xpath selectors. My approach seems like it could be fragile, but I wasn't sure what else to do

[..] b[e] good to have an end-to-end test for this one. That is, with Selenium in the NewSearchPageTest:

make a few minor option selections on the search page - maybe just query text would work;
share the link - so it's in the clipboard
Use that link to go() to
Confirm you're back at the search page and your option has taken effect.

I wrote the test for this, but for step [4], it's fiddly to get the selected values of the controls using xpath selectors. My approach seems like it could be fragile, but I wasn't sure what else to do

As discussed, step 4 can be as simple as validating that you have the expected number of results (say, aim for 1) and the correct item(s) - just by checking name. All the heavy lifting of logic and setting of options has been (correctly) addressed over in Jest tests at the unit level. Minimise overlap, and just focus here on the round trip of the clipboard. :wink:

[..] b[e] good to have an end-to-end test for this one. That is, with Selenium in the NewSearchPageTest:

make a few minor option selections on the search page - maybe just query text would work;
share the link - so it's in the clipboard
Use that link to go() to
Confirm you're back at the search page and your option has taken effect.

I wrote the test for this, but for step [4], it's fiddly to get the selected values of the controls using xpath selectors. My approach seems like it could be fragile, but I wasn't sure what else to do

As discussed, step 4 can be as simple as validating that you have the expected number of results (say, aim for 1) and the correct item(s) - just by checking name. All the heavy lifting of logic and setting of options has been (correctly) addressed over in Jest tests at the unit level. Minimise overlap, and just focus here on the round trip of the clipboard.

Yeah, that's a good idea @edalex-ian . But, it turns out that was the least of my issues. The github actions autotests run in headless mode.
Which meant that the method i was using to get the contents of the clipboard (java.awt.Toolkit.getSystemClipboard()) wouldn't work.
The next thing i tried was to call the javascript Clipboard API, using JavascriptExecutor.executeAsyncScript, but that also fails using chrome headless. Because it requires the user to allow access to the clipboard.
There appears to be a way to set this using selenium, but it's not in a stable release version. https://groups.google.com/g/chromedriver-users/c/gq9P0wPTmTY/m/VnNVUKS9AAAJ
So instead, i have added some additional testing in the SearchPage.test.tsx to verify that the correct value is being sent to the mocked clipboard


tflite can't ResizeInputTensor size

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):N/A
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):16.04.1-Ubuntu
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:N/A
TensorFlow installed from (source or binary):source
TensorFlow version (use command below):1.11.0rc0
Python version:3.5
Bazel version (if compiling from source):0.16.1
GCC/Compiler version (if compiling from source): (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
CUDA/cuDNN version:N/A
GPU model and memory:N/A
Exact command to reproduce:See below

Describe the problem
When I use tflite,I set ResizeInputTensor different from model, error show:
tensorflow/contrib/lite/kernels/reshape.cc:58 num_input_elements != num_output_elements (880 != 440)
Node number 0 (RESHAPE) failed to prepare.

fisrt,my net input is [?,440], I convert it by set intput to [1,440]. I want to use it in forward with different size [n,440].Maybe I conert it to tflite wrong?
Source code / logs
*my code:
int main() {

    // load model
    std::unique_ptr<tflite::FlatBufferModel> model;
    std::unique_ptr<tflite::Interpreter> interpreter;
    model = tflite::FlatBufferModel::BuildFromFile("./moble.tflite");
    if (!model) {
	cout << "load model err." << endl;
	exit(-1);
    }

    // build op
    tflite::ops::builtin::BuiltinOpResolver resolver;

    tflite::InterpreterBuilder (*model, resolver)(&interpreter);
    if (!interpreter) {
	cout << "Failed to construct interpreter\n" << endl;
	exit(-1);
    }

    interpreter->UseNNAPI(0);
    interpreter->SetNumThreads(1);

    // allocate tensors space
    int input = interpreter->inputs()[0];
    interpreter->ResizeInputTensor(input, {2,440});
    if (interpreter->AllocateTensors() != kTfLiteOk) {
	cout << "Failed to allocate tensors.\n";
	exit(-1);
    }

    // set input
    float *in = interpreter->typed_tensor<float>(input);
    for (int i = 0; i < 440 * 2; i++) {
	in[i] = i + 1.0f;
    }

    // inference
    if (interpreter->Invoke() != kTfLiteOk) {
	cout << "Failed to invoke!\n";
	exit(-1);
    }

    // get result
    float *output = interpreter->typed_output_tensor<float>(0);
    for (int i = 0; i < 200; i++) {
	cout << output[i] << " ";
    }
    cout << endl;
    return 0;
}

python convert script
** my net

bazel run tensorflow/tools/graph_transforms:summarize_graph -- --in_graph=/home/aisp/work_mirror/tensorflow/model/cnn/vocal_print_model/graph_vprint.pb

result
Found 1 possible inputs: (name=ac_input, type=float(1), shape=[?,440])
No variables spotted.
Found 1 possible outputs: (name=Inference/final_output/output, op=Identity)
Found 382867 (382.87k) const parameters, 0 (0) variable parameters, and 0 control_edges
Op types used: 50 Const, 13 Reshape, 13 Identity, 12 Transpose, 6 BiasAdd, 4 Conv2D, 4 Relu, 3 ConcatV2, 3 Mul, 2 GatherV2, 2 Add, 2 Cast, 2 Prod, 2 Mean, 2 MaxPool, 2 MatMul, 1 Pack, 1 Placeholder, 1 Range, 1 ListDiff, 1 Less, 1 Shape, 1 Sqrt, 1 Sub, 1 GreaterEqual

** transform net
bazel run tensorflow/tools/graph_transforms:transform_graph -- --in_graph=/home/aisp/work_mirror/tensorflow/model/cnn/vocal_print_model/graph_vprint.pb --out_graph=/home/aisp/work_mirror/tensorflow/model/cnn/vocal_print_model/transformed_graph_simple.pb --inputs='ac_input' --outputs='Inference/final_output/output' --transforms='strip_unused_nodes(type=float,shape="1,440") fold_constants(ingore_errors=true) fold_batch_norms fold_old_batch_norms'

** convert to lite
tflite_convert   --output_file=$(pwd)/model/cnn/vocal_print_model/moble.tflite  --graph_def_file=$(pwd)/model/cnn/vocal_print_model/transformed_graph_simple.pb   --input_arrays=ac_input   --output_arrays=Inference/final_output/output --input_shapes=1,440

@aselle Please help me look at this problem. It really makes me wonder.

Here are my model.
model.tar.gz

Nagging Assignee @aselle: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @aselle: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@TPcoding did you solve this issue? Thank you.

@TPcoding did you solve this issue? Thank you.

No, I rewrite my graph ,only support one frame input.This issue still open.

@TPCoding, not all models can have their inputs resized for example
x = tf.placeholder()
y = tf.reshape(x, (440,1))
... do more stuff
This model needs to have shapes that have 440 elements. you cannot feed a tensor that is length 3 it would have a similar error.

Nagging Assignee @aselle: It has been 32 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@aselle I had similar issue,  on tensorflow lite demo in Android, while it's resolved in IOS demo version.
Please help me resolve this issue in android as well. I h'v mentioned details of bug in official demo.
I'm not able to work around it, please let me know your response on it!!
Link to opened issue :
https://github.com/tensorflow/tensorflow/issues/23940

I am having the same issue with a fully convolution 1D network (in tf.keras having variable model size is not a problem). I export the model with a fixed size of 180x3 (since it won't export with None in any dimension) and then when I try to change the size with ResizeInput I get the message above.

when i get this error = num_output elements != num_output elements [4004] != [1001] i changed input dimensions.from [1][200][200][3] to [1][128][128][3] . it works.I think model need this dimensions.I get model dimensions from pbtxt file.I create pbtxt file from= .....................................................
from keras.layers import Dense
import numpy
from keras.models import load_model
from tensorflow.python.tools import freeze_graph, optimize_for_inference_lib
from keras import backend as K
from sklearn.model_selection import train_test_split
from keras.wrappers.scikit_learn import KerasRegressor
import tensorflow as tf
seed = 7
numpy.random.seed(seed)
model=load_model("ResNet50")
def export_model(saver, model, input_node_names, output_node_name,MODEL_NAME):
tf.train.write_graph(K.get_session().graph_def, 'out',
MODEL_NAME + '_graph.pbtxt')
saver.save(K.get_session(), 'out/' + MODEL_NAME + '.chkp')

freeze_graph.freeze_graph('out/' + MODEL_NAME + '_graph.pbtxt', None, \
                          False, 'out/' + MODEL_NAME + '.chkp', output_node_name, \
                          "save/restore_all", "save/Const:0", \
                          'out/modelim' + MODEL_NAME + '.pb', True, "")

input_graph_def = tf.GraphDef()
with tf.gfile.Open('out/modelim' + MODEL_NAME + '.pb', "rb") as f:
    input_graph_def.ParseFromString(f.read())

output_graph_def = optimize_for_inference_lib.optimize_for_inference(
    input_graph_def, input_node_names, [output_node_name],
    tf.float32.as_datatype_enum)

with tf.gfile.FastGFile('out/opt_' + MODEL_NAME + '.pb', "wb") as f:
    f.write(output_graph_def.SerializeToString())

print("graph saved!")

return

estimators = []
estimator = KerasRegressor(build_fn=model, epochs=1, batch_size=50, verbose=2)
inputName=model.input.name[:-2]
outPutName=model.output.name[:-2]
with open("inoutname.txt","w") as ds:
ds.write(inputName+" "+outPutName)
export_model(tf.train.Saver(), estimator, [inputName], outPutName,"test")

Hi @TPcoding !
We are checking to see if you still need help on this issue. We recommend that you upgrade to 2.6 which is latest stable version of TF and let us know if the issue still persists in newer versions. Thanks!

Any solutions? Meeting the same issue.

Any solutions updated? same problem


[1.2.0] jest 26: Maximum call stack size exceeded

Since bumping to 1.2.0, all my tests are failing with the following:

Can you tell me what version of jest you are running.

Hi! Sadly I'm still seeing the same issue with 1.2.1.

My config looks like this:
const config = {
	rootDir: __dirname,
	testEnvironment: 'jsdom',
	maxWorkers: 2,
	setupFiles: [],
	setupFilesAfterEnv: [
		'<rootDir>/jest.setup.ts',
		'jest-plugin-unhandled-promise/setup',
		'@testing-library/jest-dom/extend-expect',
		'jest-mock-console/dist/setupTestFramework.js',
	],
	// necessary for compatibility with jest-mock-console
	testRunner: 'jest-jasmine2',
	coverageReporters: ['lcovonly', 'html', 'json-summary', 'json', 'text'],
	clearMocks: true,
	moduleFileExtensions: ['ts', 'tsx', 'json', 'js', 'jsx', 'node'],
	moduleDirectories: ['<rootDir>', 'node_modules'],
	moduleNameMapper: {
		/* ... */
	},
	transform: {
		'\\.(ts|js)x?$': 'babel-jest',
		'\\.(svg|png)$': '<rootDir>/__mocks__/imgTransform.js',
	},
	transformIgnorePatterns: [/* ... */],
	watchPathIgnorePatterns: ['/node_modules/'],
	testURL: 'http://localhost:3333/tests/',
	watchPlugins: ['jest-watch-master'],
	modulePathIgnorePatterns: [
		// ...
	],
}

And I'm getting the error simply by running npx jest <filename>

ok, found the fix. To support jest 26, I think you should be doing:
if (majorVersion < 27) {
  var originalDescribe = jasmine.getEnv().describe; // Check to see if version before 27 where jasmine is default

  // ...
} else {
  var originalDescribe = describe; // Check to see if version before 27 where jasmine is default

  // ...
}

That is the change in 1.2.1. Can you double check that 1.2.1 didn't fix the issue for you

The dist file wasn't updated: https://github.com/bpedersen/jest-mock-console/blob/master/dist/setupTestFramework.js

Version 1.2.3 has been deployed with the correct dist. I'm going to mark this issue as closed


SMP on ESP32 seems to be broken

Describe the bug
The classic ESP32 board (esp_wrover_kit/esp32), one of the few targets I know for having SMP capabilities in Zephyr, is failing to build when CONFIG_SMP option is set to y.
To Reproduce
There's no need to actually try to use any API from SMP, just trying to build should be enough. Head to the hello_world sample and insert the following in prj.conf:
CONFIG_ESP32_USE_UNSUPPORTED_REVISION=y
CONFIG_SMP=y

Now build it for either classic ESP32 variant:
west build samples/hello_world -b esp_wrover_kit/esp32/procpu --pristine
//or
west build samples/hello_world -b esp_wrover_kit/esp32/appcpu --pristine

This is what shows up when building for procpu:
C:/zephyr/soc/espressif/esp32/esp32-mp.c: In function 'esp_appcpu_start':
C:/zephyr/soc/espressif/esp32/esp32-mp.c:184:9: error: 'RTC_CNTL_SW_CPU_STALL' undeclared (first use in this function); did you mean 'RTC_CNTL_SW_CPU_STALL_REG'?
  184 |         RTC_CNTL_SW_CPU_STALL &= ~RTC_CNTL_SW_STALL_APPCPU_C1;
      |         ^~~~~~~~~~~~~~~~~~~~~
      |         RTC_CNTL_SW_CPU_STALL_REG
C:/zephyr/soc/espressif/esp32/esp32-mp.c:184:9: note: each undeclared identifier is reported only once for each function it appears in
C:/Users/axelp/Documents/ISEP/BOLSA-Bolsa_de_Investigacao/6_Github/zephyr/soc/espressif/esp32/esp32-mp.c:185:9: error: 'RTC_CNTL_OPTIONS0' undeclared (first use in this function); did you mean 'RTC_CNTL_OPTIONS0_REG'?
  185 |         RTC_CNTL_OPTIONS0     &= ~RTC_CNTL_SW_STALL_APPCPU_C0;
      |         ^~~~~~~~~~~~~~~~~
      |         RTC_CNTL_OPTIONS0_REG
C:/zephyr/soc/espressif/esp32/esp32-mp.c:186:9: error: 'DPORT_APPCPU_CTRL_B' undeclared (first use in this function); did you mean 'DPORT_APPCPU_CTRL_B_REG'?
  186 |         DPORT_APPCPU_CTRL_B   |= DPORT_APPCPU_CLKGATE_EN;
      |         ^~~~~~~~~~~~~~~~~~~
      |         DPORT_APPCPU_CTRL_B_REG
C:/zephyr/soc/espressif/esp32/esp32-mp.c:187:9: error: 'DPORT_APPCPU_CTRL_C' undeclared (first use in this function); did you mean 'DPORT_APPCPU_CTRL_C_REG'?
  187 |         DPORT_APPCPU_CTRL_C   &= ~DPORT_APPCPU_RUNSTALL;
      |         ^~~~~~~~~~~~~~~~~~~
      |         DPORT_APPCPU_CTRL_C_REG
C:/zephyr/soc/espressif/esp32/esp32-mp.c:190:9: error: 'DPORT_APPCPU_CTRL_A' undeclared (first use in this function); did you mean 'DPORT_APPCPU_CTRL_A_REG'?
  190 |         DPORT_APPCPU_CTRL_A |= DPORT_APPCPU_RESETTING;
      |         ^~~~~~~~~~~~~~~~~~~
      |         DPORT_APPCPU_CTRL_A_REG

and this is what happens when you use appcpu instead:
c:/zephyr-sdk-0.17.0/xtensa-espressif_esp32_zephyr-elf/bin/../lib/gcc/xtensa-espressif_esp32_zephyr-elf/12.2.0/../../../../xtensa-espressif_esp32_zephyr-elf/bin/ld.bfd.exe: zephyr/kernel/libkernel.a(sched.c.obj):(.literal.z_thread_halt+0x0): undefined reference to `arch_sched_directed_ipi'
c:/zephyr-sdk-0.17.0/xtensa-espressif_esp32_zephyr-elf/bin/../lib/gcc/xtensa-espressif_esp32_zephyr-elf/12.2.0/../../../../xtensa-espressif_esp32_zephyr-elf/bin/ld.bfd.exe: zephyr/kernel/libkernel.a(sched.c.obj): in function `z_thread_halt':
C:/zephyr/kernel/sched.c:457: undefined reference to `arch_sched_directed_ipi'
c:/zephyr-sdk-0.17.0/xtensa-espressif_esp32_zephyr-elf/bin/../lib/gcc/xtensa-espressif_esp32_zephyr-elf/12.2.0/../../../../xtensa-espressif_esp32_zephyr-elf/bin/ld.bfd.exe: zephyr/kernel/libkernel.a(smp.c.obj):(.literal.start_cpu+0x8): undefined reference to `arch_cpu_start'
c:/zephyr-sdk-0.17.0/xtensa-espressif_esp32_zephyr-elf/bin/../lib/gcc/xtensa-espressif_esp32_zephyr-elf/12.2.0/../../../../xtensa-espressif_esp32_zephyr-elf/bin/ld.bfd.exe: zephyr/kernel/libkernel.a(smp.c.obj): in function `start_cpu':
C:/zephyr/kernel/smp.c:159: undefined reference to `arch_cpu_start'
c:/zephyr-sdk-0.17.0/xtensa-espressif_esp32_zephyr-elf/bin/../lib/gcc/xtensa-espressif_esp32_zephyr-elf/12.2.0/../../../../xtensa-espressif_esp32_zephyr-elf/bin/ld.bfd.exe: zephyr/kernel/libkernel.a(ipi.c.obj): in function `signal_pending_ipi':
C:/zephyr/kernel/ipi.c:85: undefined reference to `arch_sched_directed_ipi'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Expected behavior
The code should build.
Impact
I can't test any SMP application on ESP32 if it doesn't build. I know the board is now "unsupported", so I don't expect any fixes for this particular target. However, if you're dropping support for one of the few boards that feature SMP could you maybe extend this functionality for other targets (e.g. ESP32s3)?
Environment (please complete the following information):

OS: Windows 11 23H2
Toolchain Zephyr 4.0.99, SDK 0.17.0, west update executed yesterday.
Commit SHA: head is at "ce50ea2f1fb lext: disable for Harvard ARC variants"

P.S.: it seems like #56011 and #29394 already state that SMP is not working properly, even when it builds. But this time around the thing won't even build. I'll add to that discussion instead of keeping a separate issue here.


add old blog post to personal website

[x] Reason for Developing in GO
[x] Deep Basic Data Types in GO
[x] Shell Scripting Basics: Beginner's Guide
[x] 100 lines of Elixir
[x] Shell Scripting Basics: Beginner's Guide - Part II
[ ] How to create custom code snippets in VS Code
[ ] How to add real-time notifications with Django and nextjs
[ ] Using Firebase to send real-time notifications in Django apps
[ ] How to add Discord like QR Code Login
[ ] MobX - The missing piece in your complex react applications
[ ] Deploying FastAPI app on Vercel Serverless
[ ] Supercharge Your Web Apps: Harnessing Web Assembly for High Performance
[ ] We fixed react context 🚀. Using selectors for granular reactivity
[ ] Bun 101: Bun for JavaScript Developers
[ ] The Bias Nature of JavaScript Event Loop

re-opened to add remaining blog posts


How to run on one file

running doesn't work
imageoptim  --quit --no-color --image-alpha ica-slidebox-img-2-2-4.png
but this works
find 'ica-slidebox-img-2-2-4.png'  |  imageoptim  --quit --no-color --image-alpha --min-quality 60

Thanks for sharing @awebdeveloper 👍

my question was why doesn't this support single file

The 2nd snippet matches the documentation example https://github.com/JamieMason/ImageOptim-CLI#optimise-a-filtered-set-of-images but the first does not match any of the examples. Either files are piped into imageoptim or a directory is passed in via -d path/to/images or --directory path/to/images.

don't you think adding a option to support single image is needed

Thanks @awebdeveloper, but it's already possible to optimise single files using imageoptim. The way this can be achieved is via piping. The number of options is already very large and I don't want to add another for existing functionality.
Related: #73, #80.

@JamieMason what can you suggest if I want to use imageoptmi-cli together with lint-staged? It simply provides a list of matched files as the arguments for the desired command but imageoptmi-cli doesn't recognize them.

hey @okovpashko, I've not used lint-staged but I would check with them if its output can be piped into other shell commands in the same way as eg. find. If it can then it should be compatible with other bash scripts such as imageoptim-cli 🤞

@JamieMason thank you. Maybe do you know how to grab the arguments and pass them as stdin to another command in one line using Bash?

I'm sorry @okovpashko I don't know that.


Brew install 1.18 and no 1.23

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: macOS
scrcpy version: 1.23
installation method: brew

Describe the bug
Hi, when I try to download the last version with brew, it installed v1.18 of scrcpy.
$ brew install scrcpy
scrcpy 1.18 is already installed but outdated (so it will be upgraded).

You should probably update (brew update I guess).

I update brew but still have the same issue.

Ok, thank you.


chore(deps): update babel to v7

Description:
Update babel to v7 and make necessary adjustments to get things to function properly.
Motivation and Context:
Keep codebase current.
How Has This Been Tested?
Run  tests and manually test app.
Types of changes:
Dependency updates
Checklist:

[x] My code follows the code style of this project.
[x] I have reviewed and updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes where needed.
[ ] All new and existing tests passed.
[x] My commits have been squashed into a concise set of changes.

Coverage decreased (-0.2%) to 16.173% when pulling 9700a776e5728f6d06f8bb27e4c0874fe12db386 on mrfelton:chore/update-babel into 7e5ec305930e809dad9de62fb52fc0ebb35947c2 on LN-Zap:master.


Add new option for pseudo move disasm.

This creates a new option to generate the pseudo move instructions in the disassembly. It's off by default.

Yeah, based on testing and chats I'll close this as it's probably best not to use this pseudo move instruction after all.