Does anybody know if it is possible to check system Specs with source

What is your question?
Hello, for one of my projects I would like the game to automatically identify how much ram you have and change a BG based off that (and possibly some clientPrefs) to make sure the game runs well
I am using an extremely large BG (30,000 x 4000) for high, medium sized BG (10,000x4000) and small sized BG (4,000x4,000)
Does anybody know if I could do something like the following
if (systemRam <= 4) {       ClientPrefs.BgQuality = low; } else if (systemRam <= 8) {       ClientPrefs.BgQuality = medium; } else if (systemRam <= 16 or systemRam > 16) e       ClientPrefs.BgQuality = high; }
I do not need you to ask what it is for, why I am doing it, or how I can make the images smaller. The images are the best they can be and they will not change.

Sorry for poor formatting, I’m on mobile and github is blocked at my schools.

if (Math.pow(2, 32) < Math.pow(2, 32)) { ClientPrefs.BgQuality = low; } elseif (Math.pow(2, 32) * 2.0 < Math.pow(2, 32) * 2.0) { ClientPrefs.BgQuality = medium; } elseif (Math.pow(2, 32) * 4.0 < Math.pow(2, 32) * 4.0 || Math.pow(2, 32) * 4.0 > Math.pow(2, 32) * 4.0) ClientPrefs.BgQuality = high; }


feat: log support json encoder

Codecov Report

Merging #9 (f0ec05b) into master (744a75f) will decrease coverage by 5.38%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage   75.90%   70.52%   -5.39%
==========================================
  Files           6        6
  Lines         249      268      +19
==========================================
  Hits          189      189
- Misses         53       72      +19
  Partials        7        7

Impacted Files
Coverage Δ

zap.go
65.47% <0.00%> (-8.35%)
:arrow_down:

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 744a75f...f0ec05b. Read the comment docs.


Improve scrollbar appearance in dark theme

use color-scheme in dark theme to improve scrollbar appearance
before:

after:

Cool, never heard of that attribute 👍🏻


Fishing Plugin: Duplicate fishing icons fix

This bug fix addresses #1392.
Problem: The fishing plugin doesn't keep track of the fishing spots near the player. As a result, it tries to draw multiple icons in the same spot whenever fishing spots are stacked.
Fix: I implemented 2 HashMaps to keep track of core information regarding each fishing spot. The logical height is no longer used to determine the height of text/icons. Instead, a fixed value (derived from the logical height of a fishing spot) is used to avoid odd logical heights caused by stacked spots.

Concerns: I'm not confident that using two HashMaps is the right approach. Any feedback on this will be appreciated.

Thanks for the feedback everyone. I've followed the advice of others on Discord.
I've removed the new class and replaced it with a Multiset. This has reduced the number of lines of code and made it easier to read.
I added this nasty bit to convert the Multiset(NPC) to Multiset(FishingSpot)
			Multiset<FishingSpot> spotList = HashMultiset.create();
			for (NPC npc : npcArray)
			{
				FishingSpot spot = FishingSpot.getSPOTS().get(npc.getId());
				spotList.add(spot);
			}

If there's a better way to do this, then please let me know. Thanks for checking this PR out and having the patience to deal with me lol.

@Adam- you superseded this with 9fc04bf


Fix selinux_port on RHEL 8/CentOS 8

Hi,
this PR makes the selinux_port helper use the platform Python interpreter if it exists. This makes it work on on RHEL 8 / CentOS 8.
The platform python interpreter is guaranteed to exist, as several RHEL components depend on it.
This has seen very light testing, but at least it didn't break my test system.

@ekohl possibly, though honestly since the best Python is platform-specific it would probably make most sense as a hardcoded parameter.
I originally wrote the helper script because semanage was way too slow and Puppet's built-in ruby didn't have the required APIs for SELinux to do the inspection "natively". semanage is reasonably fast nowadays (except on RHEL6) but rewriting all the logic is a bit too much churn.

@oranenj sure, but that fact should probably be selinux_python_command or similar. It should take the platform into consideration. It would replace the clunky selinux_semanage_is_python3 fact.

I changed the fact. This is technically a breaking change, but the fact was never documented anywhere and was/is an internal implementation detail


[DONE] translate conditional rendering page

This PR should translate the conditional rendering page to Arabic.

Hey, @A7med3bdulBaset,
Thank you for your feedback and improvements 🙏. I really appreciate your efforts. I have made the requested changes.

Thanks for your contribution
You can now choose another page to translate


This isn't an actual issue, I just wanted to say hi to Great M. Haghighat!

My research direction is behavior recognition. Your work has greatly helped me.Thank you.

@yujmo:
Thank you for your kind words. I'm happy that it helped you.


Blank page after redirect back to application

I have set up a ClaimsProvider for a customer's ADFS server and after the user signs in there is just a blank HTML page displayed (completely white). All other ClaimsProviders set up within the Azure AD B2C custom policy work as expected. Any ideas?

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

ID: e14a5d4c-5125-8ed2-7fda-38aee1296b76
Version Independent ID: 054d298b-937e-9f01-ae56-7025e47e4eec
Content: Add ADFS as a SAML identity provider using custom policies in Azure Active Directory B2C
Content Source: articles/active-directory-b2c/active-directory-b2c-custom-setup-adfs2016-idp.md
Service: active-directory
GitHub Login: @davidmu1
Microsoft Alias: davidmu

Further to this I have sourced this error message in the Response headers when the blank page loads in:
AADB2C: A claim with id 'issuerUserId' was not found, which is required by ClaimsTransformation 'CreateAlternativeSecurityId' with id 'CreateAlternativeSecurityId' in policy 'B2C_1A_signup_signin' of tenant 'mytenant.onmicrosoft.com'.
It looks like in the latest version on GitHub the policy's claim type was updated from socialIdpUserId (which is still used in this documentation) to issuerUserId

This issue is blocking me from being able to get User's authenticating to my application using a customer's ADFS server. Any input would be appreciated.

@ryandenkaat Thank you for your query . We will have this investigated and update the thread accordingly.

I suggest you please open a new MSDN forum post with the details and community will help address your query. Please refer to below link to MSDN forum to ask new question -
https://social.msdn.microsoft.com/Forums/azure/en-US/newthread?category=windowsazureplatform&forum=WindowsAzureAD&prof=required.  Please provide the MSDN link over here so that I can help you getting answered.

This can be closed as it was an issue in the customer ADFS configuration not the Custom Policy.

@ryandenkaat Glad to hear that your issue is fixed. We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

I am experiencing the same issue and would like some details on the solution.  "it was an issue in the customer ADFS configuration not the Custom Policy" - Great, what was the issue?  How was it resolved?  I would like to know what to tell our client what needs changed on their end.  Thank you.

May I ask what needed changed on the client's ADFS configuration?  I am experiencing the same issue and would like some detail so I can direct them to the appropriate setting.

@kennethferrese The client had the wrong LDAP attribute names in the claim rules.


chore(master): release 1.1.0

:robot: I have created a release beep boop
1.1.0 (2024-11-29)
Features

project overrides (e0ed6cd)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.1.0
:sunflower:


Genericize docker-compose.yml and other related configuration for ease of reusability

At present the docker-compose.yml file is quite specific and references labs (which is fine during development), as this project is now maturing we should try and genericize this as far as possible so starting off a new project becomes trivial.
Docker and compose are very friendly with .env files, we should consider moving project prefixes, network names and anything that we can identify to an env files.
Ref: Docker docs

Work on this has started in 0b43893


[help] when release 5.0.0

Please answer these questions before submitting your issue.

Why do you submit this issue?
[Question ] Question or discussion

Question

when release 5.0.0?
There are too many bugs in the current version(v3.2.6)

Test for 5.0.0 alpha should use tag **apm-5.0.0-alpha **. If you are interested for release, please subcribe<EMAIL_ADDRESS>mail list. Send a mail to<EMAIL_ADDRESS>and follow the reply.

You will see [ANNOUNCE] [VOTE] titles mails. Those are what are really happening in Apache Incubator. More things are not just about codes, they are about Apache Way.

Test release is here : https://repository.apache.org/content/repositories/orgapacheskywalking-1002/org/apache/skywalking/apm-dist/5.0.0-alpha/  But the url will not be valid all the time.


Diagram needed badly

Explaining the sample with a diagram would help everyone, The diagram needs to show how jobs are running, how many database it is configured for and more..

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

ID: 386f5b1f-e835-0a3b-8e3f-302a6bf5670e
Version Independent ID: 2470305f-0366-36ba-5365-adba61dd02b2
Content: Create and manage Azure SQL Elastic Database Jobs using Transact-SQL (T-SQL)
Content Source: articles/sql-database/elastic-jobs-tsql.md
Service: sql-database
GitHub Login: @jaredmoo
Microsoft Alias: jaredmoo

@narenkv Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@narenkv Please see the diagram in this article: https://docs.microsoft.com/en-us/azure/sql-database/elastic-jobs-overview
After reviewing this diagram, please help me understand what additional diagram that you would like to see. Thanks.

#please-close

We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


Feel free to link to my similar projects

Hello! I've made one that doesn't require JavaScript (or a backend) either (could be enhanced to provide for a noJS online-IDE as well if there was demand):

https://github.com/bkil/static-wonders.ssi/tree/master/css-pad
http://bkil.hu/css-pad/?t=<h1>☝&s=h1{animation-duration%3A1s%3Banimation-iteration-count%3Ainfinite%3Bdisplay%3Ainline-block%3Banimation-name%3At%3Bfont-family%3A"Noto+Color+Emoji"%2C"Noto+Emoji"%2C"Symbola"%2Cemoji%2Cui-sans-serif%2Csystem-ui}%40keyframes
t{50%25{transform%3AtranslateY(0.1em)}&e=

And one to be used for safely previewing or embedding snippets of others:

https://github.com/bkil/static-wonders.js/blob/master/jump/iframe-js-sandbox.html
https://bkil.gitlab.io/static-wonders.js/jump/iframe-js-sandbox.html#html=x%3D<input+oninput%3DF()>x*x%3D<b><%2Fb>&js=F%3D()%3D>{document.querySelector('b').innerText%3DMath.pow(document.querySelector('input').value%2C2)}%3B
https://bkil.gitlab.io/static-wonders.js/jump/iframe-js-sandbox.html#url=data%3Atext%2Fhtml%3B%2C<!DOCTYPE+html><html><body>x%3D<input+oninput%3D'F()'>x*x%3D<b><%2Fb><script>F%3D()%3D>{document.querySelector('b').innerText%3DMath.pow(document.querySelector('input').value%2C2)}%3B<%2Fscript>

And finally, here's a full stack version of this same concept where the URI may contain both the backend and the frontend:

https://github.com/bkil/private-plugin.php
https://github.com/bkil/private-plugin.php/tree/master/example

You may also be interested in these:

https://www.dwitter.net/top/all

Dwitter - a challenge to see what demos/awesomeness you can create when limited to only 140 characters of javascript and a canvas. by u/lionleaf as a side project inspired by the concept of u/sigveseb at arkt.is/t. Its first official launch was at the Demoparty 'Solskogen' in 2016 where it won the wild compo.

https://en.wikipedia.org/wiki/Shadertoy
https://en.wikipedia.org/wiki/Js13kGames
https://js1k.com/


RDKDEV-990 - Upstream onApplicationFocusChanged event change handling

Reason for change: onApplicationFocusChanged event handling was not done, so added those changes for getFocused and the corresponding event handlings.
Risks: Low
Test Procedure: Verified wpeframework log; received onApplicationFocusChanged events in the main UI; switched to YouTube and back to the main UI in all cases (when the focus changed).
Note: If any application requires this focus changed information, they can use it or ignore it. There are no issues.

Sanity tests for ['RPI4 IPSTB'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/50667/

Sanity tests for ['BCM 7216OTT Refboard VA'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/50683/


refactor: Limit access to ArrayValue node field.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[ ] Ensure the tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

Is ArrayValue class still needed? Now it is only a wrapper of BigFramesNode.

Its a wrapper yes, but a useful one. It allows us to change the implementation of the node structure without rewriting the callers (in most cases). Also, I plan to add a bit of name aliasing to ArrayValue while changing BigFramesNode to use integer ids.


AmplitudeView: Added AmplitudeView and Helpers

Added an AmplitudeView with helpers that allow for a solid or gradient fill

I don't understand everything here, but I'll ask you questions on Slack.


RESEARCH: Finally get rid of txindex?

Check:
https://twitter.com/Stadicus3000/status/1079677441956868097
And for future Electrum Server:
https://twitter.com/Stadicus3000/status/1079677444032995328
If everything works without txindex, maybe also change torrents to:
https://getbitcoinblockchain.com

would recommend to check this again for v1.1 .. RaspiBolt has now also removed the txindex .. see:
https://github.com/Stadicus/guides/pull/325
Ask emzy if he can also test a bitcoind with electrum server and give feedback on.

would recommend to check this again for v1.1 .. RaspiBolt has now also removed the txindex .. see:
Stadicus/guides#325
Ask emzy if he can also test a bitcoind with electrum server and give feedback on.

i was indeed running bitcoind without txindex on the pi when i first used the raspibolt.

I have my RaspiBlitz all the time with txindex=0 running. No issues so far.
electrs and Electrum Personal Server don't need it. Only the Electrumx would need txindex=1

I'm fully synced with txindex=1. Do I gain something by switching to txindex=0?

Faster sync time and less disk space.
The txindex is 19GB in size. But I have no measure how much faster it would be without txindex.

Testing with torrents from getbitcoinblockchain.com .. they download fast (good seeding), lets see if this works.

OK getbitcoinblockchain.com sources seem to work in testing
TODO: before final v1.3 package use latest files from that page or add realtime download of latest torrents

Ah shoot - seeing just now that getbitcoinblockchain.com stopped updating torrent sources last month. OK so ...
Create new torrents for blockchain without index switched on:
TODO: New Torrents for Bitcoin with mainnet/testnet
TODO: New Torrents for Litecoin with mainnet

OK - tests with new torrents were good.
Requested help for good seeding:
https://github.com/rootzoll/raspiblitz/issues/285#issuecomment-507224479

OK. See new torrents are working and seeding is getting good. txindex=0 is now the new default.


TypeScript breaks on decorators

import {Component, View, bootstrap, NgFor, NgIf} from 'angular2/angular2';
...
@View({
  template: `

My name: {{ myName }}

Friends:

        {{ name }}

 3">You have many friends!

  `,
  directives: [NgFor, NgIf]
})
class DisplayComponent {
  ...
}
class FriendsService {
  names: Array<string>;
  constructor() {
    this.names = ["Aarav", "Martín", "Shannon"];
  }
}

I'm attempting to highlight this snippet from the new Angular 2 documentation, where TypeScript highlighting is an option. Unfortunately the @ symbol which represents a decorator breaks the syntax highlighting.

It looks reasonable for me, except that we can brush decorators like other meta things.

My highlighting is completely broken until I remove the decorators for some reason. I'm running the latest version.

@harangue could you show an example where it doesn't work? Like @Sannis I can't reproduce the problem. I suspect though that it might be cause by mis-detection or even the absence of TypeScript definition in your copy of highlight.js, but I can't be sure.

@isagalaev As I said upgrading to the most recent version of highlight fixed it for me. :) (I was using Hexo, which uses an out of date version, though I wasn't aware of that when I posted this issue).

Ah, okay then!


Fix logging implementation missing in CLI

Fixes #434
No logging implementation was included in the shaded jar resulting in the mentioned error message and missing log outputs.

@phax did we remove this on purpose?

It was never added. When switching from java.util-logging to slf4j you need to include the api and one of several implementations. slf4j-simple is quite common for standalone-cli-applications (it outputs to System.err), but you could also choose something like log4j or logback. That might require some configuration but also allows logging to a file.

@jstaerk makes sense to me


WIP 756 lab 752 non file input parameters for experiments

What type of PR is this?
Remove the categories that do not apply

🎮 Feature
🐛 Bug Fix
🍧 Refactor
🔋 Optimization
📓 Documentation Update

Description
Please provide a brief description of the changes here. Include why they are needed, if applicable.
Any demonstrations of the changes (Loom, gif, etc.) may also go here.
Related Tickets & Documents
Reference as needed.
Steps to Test
A list of steps a reviewer can walk through to test the changes.
Relevant GIF
Required 🐔

Feature merged in a different PR.


'neon' cannot be used as a value because it was exported using 'export type'

Steps to reproduce
import { neon } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-http';

const sql = neon(process.env.DATABASE_URL!);
const db = drizzle(sql);

Expected result
No errors and neon function to work
Actual result
'neon' cannot be used as a value because it was exported using 'export type'.ts(1362)
index.d.mts(1, 1): 'neon' was exported here.

Environment

Node v18.18.2
NextJS v14.0.4

I've just had a similar report offline. Must be related to yesterday's release of 0.7. This is the first thing on my list today.

Should be fixed in 0.7.1. Do let me know if not.

@jawj works like a charm!


scheduler: fix network filter specify is_public check

这个 PR 实现什么功能/修复什么问题:
指定网络时不考虑网络的 is_public 属性
是否需要 backport 到之前的 release 分支:

release/2.10.0

/cc @swordqiu
/area scheduler

Codecov Report

Merging #1218 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #1218      +/-   ##
=========================================
+ Coverage     7.9%    7.9%   +<.01%
=========================================
  Files         368     368
  Lines       57866   57866
=========================================
+ Hits         4574    4576       +2
+ Misses      52893   52892       -1
+ Partials      399     398       -1

Flag
Coverage Δ

#aFlag
7.9% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

pkg/appsrv/response.go
69.23% <0%> (+3.07%)
: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 1b8b1db...092c37d. Read the comment docs.

/lgtm
/approve


Clean devDependencies after client is built for package

@savoisn @ghamaide @cRicateau

@ghamaide Oops, actually I said in a mail that this might not properly because npm prune looks erratic. I'd rather not have merged 😅
I also said that we indeed should use yarn to solve this problem 😉


HADOOP-19259. ugrade to jackson 2.18.0

Description of PR
Use 2.18.0-rc1 until full release is made. Not for merge until 2.18.0 is out.
How was this patch tested?
For code changes:

[x] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 20s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+0 :ok:
xmllint
0m  1s

xmllint was not available.

+0 :ok:
shelldocs
0m  1s

Shelldocs was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
14m 10s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
20m 45s

trunk passed

+1 :green_heart:
compile
9m  0s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
compile
8m 30s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
mvnsite
15m 40s

trunk passed

+1 :green_heart:
javadoc
5m  2s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
4m 59s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
shadedclient
30m 10s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 35s

Maven dependency ordering for patch

-1 :x:
mvninstall
9m 36s
/patch-mvninstall-root.txt
root in the patch failed.

+1 :green_heart:
compile
8m 46s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javac
8m 46s

the patch passed

+1 :green_heart:
compile
8m 20s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
javac
8m 20s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
12m 16s

the patch passed

+1 :green_heart:
shellcheck
0m  0s

No new issues.

+1 :green_heart:
javadoc
4m 56s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
5m 14s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

-1 :x:
shadedclient
22m 21s

patch has errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
640m 15s
/patch-unit-root.txt
root in the patch passed.

+1 :green_heart:
asflicense
1m  6s

The patch does not generate ASF License warnings.

804m  4s

Reason
Tests

Failed junit tests
hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesContainers

hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesAuxServices

hadoop.yarn.server.nodemanager.webapp.TestNMWebServices

hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesApps

hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestRuncContainerRuntime

hadoop.fs.http.client.TestHttpFSFWithSWebhdfsFileSystem

hadoop.fs.http.client.TestHttpFSFWithWebhdfsFileSystem

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7022

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint shellcheck shelldocs

uname
Linux 6d24d7ce68ff 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 675c5ad9e12147d7ffd218c463cb7493a6b668fd

Default Java
Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/1/testReport/

Max. process+thread count
4607 (vs. ulimit of 5500)

modules
C: hadoop-project . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/1/console

versions
git=2.25.1 maven=3.6.3 shellcheck=0.7.0

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

some of those tests have jackson in the stack trace...
Caused by: com.fasterxml.jackson.core.JsonParseException: localhost:44185: Unrecognized token 'HdfsLocatedFileStatus': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 33]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.runWithRetry(WebHdfsFileSystem.java:850)
	... 56 more

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 21s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+0 :ok:
xmllint
0m  1s

xmllint was not available.

+0 :ok:
shelldocs
0m  1s

Shelldocs was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
14m  3s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
22m 40s

trunk passed

+1 :green_heart:
compile
9m 22s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
compile
9m 14s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
mvnsite
16m 23s

trunk passed

+1 :green_heart:
javadoc
5m  7s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
5m  1s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
shadedclient
29m 46s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 34s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
18m  8s

the patch passed

+1 :green_heart:
compile
8m 42s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javac
8m 42s

the patch passed

+1 :green_heart:
compile
8m 28s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
javac
8m 28s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
12m 13s

the patch passed

+1 :green_heart:
shellcheck
0m  0s

No new issues.

+1 :green_heart:
javadoc
4m 56s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
4m 58s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
shadedclient
30m 51s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
642m 26s
/patch-unit-root.txt
root in the patch passed.

+1 :green_heart:
asflicense
0m 53s

The patch does not generate ASF License warnings.

826m 15s

Reason
Tests

Failed junit tests
hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesContainers

hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesAuxServices

hadoop.yarn.server.nodemanager.webapp.TestNMWebServices

hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesApps

hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestRuncContainerRuntime

hadoop.fs.http.client.TestHttpFSFWithSWebhdfsFileSystem

hadoop.fs.http.client.TestHttpFSFWithWebhdfsFileSystem

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7022

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint shellcheck shelldocs

uname
Linux 368e12666bf7 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / aaed920fe2131c804a39696ca4a0eba6aa75b3e0

Default Java
Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/2/testReport/

Max. process+thread count
4349 (vs. ulimit of 5500)

modules
C: hadoop-project . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/2/console

versions
git=2.25.1 maven=3.6.3 shellcheck=0.7.0

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 20s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+0 :ok:
xmllint
0m  0s

xmllint was not available.

+0 :ok:
shelldocs
0m  0s

Shelldocs was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
15m  2s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
24m 34s

trunk passed

+1 :green_heart:
compile
9m 51s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
compile
8m 59s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
checkstyle
2m 31s

trunk passed

+1 :green_heart:
mvnsite
19m 40s

trunk passed

+1 :green_heart:
javadoc
5m  6s

trunk passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
4m 56s

trunk passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+0 :ok:
spotbugs
0m 12s

branch/hadoop-project no spotbugs output file (spotbugsXml.xml)

-1 :x:
spotbugs
18m 39s
/branch-spotbugs-root-warnings.html
root in trunk has 2 extant spotbugs warnings.

+1 :green_heart:
shadedclient
41m 58s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 35s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
22m 42s

the patch passed

+1 :green_heart:
compile
10m 27s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javac
10m 27s

the patch passed

+1 :green_heart:
compile
9m 24s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+1 :green_heart:
javac
9m 24s

the patch passed

+1 :green_heart:
blanks
0m  1s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
3m  0s

the patch passed

+1 :green_heart:
mvnsite
11m 27s

the patch passed

+1 :green_heart:
shellcheck
0m  0s

No new issues.

+1 :green_heart:
javadoc
5m 13s

the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04

+1 :green_heart:
javadoc
4m 55s

the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~20.04-b05

+0 :ok:
spotbugs
0m 11s

hadoop-project has no data from spotbugs

+1 :green_heart:
shadedclient
42m 42s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
634m 57s
/patch-unit-root.txt
root in the patch passed.

+1 :green_heart:
asflicense
1m  7s

The patch does not generate ASF License warnings.

886m 24s

Reason
Tests

Failed junit tests
hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesContainers

hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesAuxServices

hadoop.yarn.server.nodemanager.webapp.TestNMWebServices

hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesApps

hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestRuncContainerRuntime

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7022

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets xmllint shellcheck shelldocs

uname
Linux 576981244d06 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / b34b9d1f105e64484bdb13905824a0b6cb233ad3

Default Java
Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu320.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_422-8u422-b05-1~20.04-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/3/testReport/

Max. process+thread count
4217 (vs. ulimit of 5500)

modules
C: hadoop-project hadoop-hdfs-project/hadoop-hdfs-client . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7022/3/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2 shellcheck=0.7.0

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

this is not ready yet - the latest issue breaking some unit tests is happening with jettison - which might not work properly with the newer jackson version

might be good to isolate maven change to its own PR...we can merge in earlier, see what surprises surface etc

I'll create a separate PR for that. I'm relatively pessimistic about this PR generally. The exception handling changes fixed one set of issues but there are other issues that appear to suggest that Jersey 1 does not work well with this version of Jackson.


ARM64 Docker image

Hi Terdia,
Could you please add the creation of an ARM64 Docker image?
I would like to use mqttui on my Raspberry Pi 4.
I found an arm64 image on dockerhub created by xorguy but that one does not work because it has no manifest.
There are many examples on Github how to create Docker images for mutiple platforms, for example here is my workflow config:
Workflow yml
Thank you!

Hi @Legobas, just side question, why does my image does not work? I can pull and use in my Raspberry Pi 4 with no problem.

Hi @Legobas, just side question, why does my image does not work? I can pull and use in my Raspberry Pi 4 with no problem.

This is my docker pull response:
 $ docker pull xorguy/mqttui_arm64
Using default tag: latest
Error response from daemon: manifest for xorguy/mqttui_arm64:latest not found: manifest unknown: manifest unknown

Hi @Legobas.
Now I understand, because I did the version in a hurry I did not set "latest" tag, so you have to use fixed version. Will try to fix it later and let you know.

I managed to compile the latest version, 1.0.3, for ARM64 with "latest" tag. You can try to use it, I had to modify the Dockerfile for dependencies that were failing for ARM64 but not for AMD64.


Having trouble porting play_tone.py to non-blocking

When running the play_tone.py example I can hear a perfect sine wave. But then if I minimally change it to be non-blocking I just hear a buzzing sound. I must be missing something silly, but I just can't spot it. Maybe an official non-blocking minimal example that just plays a tone exactly like the blocking one would be a nice sanity check to have?
Here's my blocking code which is just the example stripped down to just the ESP32 parts and gpio pins changed to what I'm using:
import os
import math
import struct
import time
import micropython
from machine import I2S
from machine import Pin

def make_tone(rate, bits, frequency):
    # create a buffer containing the pure tone samples
    samples_per_cycle = rate // frequency
    sample_size_in_bytes = bits // 8
    samples = bytearray(samples_per_cycle * sample_size_in_bytes)
    volume_reduction_factor = 32
    range = pow(2, bits) // 2 // volume_reduction_factor

    if bits == 16:
        format = "<h"
    else:  # assume 32 bits
        format = "<l"

    for i in range(samples_per_cycle):
        sample = range + int((range - 1) * math.sin(2 * math.pi * i / samples_per_cycle))
        struct.pack_into(format, samples, i * sample_size_in_bytes, sample)

    return samples

# ======= I2S CONFIGURATION =======
SCK_PIN = 18
WS_PIN = 23
SD_PIN = 19
I2S_ID = 0
BUFFER_LENGTH_IN_BYTES = 2000
# ======= I2S CONFIGURATION =======

# ======= AUDIO CONFIGURATION =======
TONE_FREQUENCY_IN_HZ = 440
SAMPLE_SIZE_IN_BITS = 16
FORMAT = I2S.MONO  # only MONO supported in this example
SAMPLE_RATE_IN_HZ = 44100
# ======= AUDIO CONFIGURATION =======

audio_out = I2S(
    I2S_ID,
    sck=Pin(SCK_PIN),
    ws=Pin(WS_PIN),
    sd=Pin(SD_PIN),
    mode=I2S.TX,
    bits=SAMPLE_SIZE_IN_BITS,
    format=FORMAT,
    rate=SAMPLE_RATE_IN_HZ,
    ibuf=BUFFER_LENGTH_IN_BYTES,
)

samples = make_tone(SAMPLE_RATE_IN_HZ, SAMPLE_SIZE_IN_BITS, TONE_FREQUENCY_IN_HZ)

print("==========  START PLAYBACK ==========")
try:
    while True:
        num_written = audio_out.write(samples)

except (KeyboardInterrupt, Exception) as e:
    print("caught exception {} {}".format(type(e).__name__, e))

# cleanup
audio_out.deinit()
print("Done")

And then here's the same thing with just the few changes that I think are necessary to turn that non-blocking:
import os
import math
import struct
import time
import micropython
from machine import I2S
from machine import Pin

def make_tone(rate, bits, frequency):
    # create a buffer containing the pure tone samples
    samples_per_cycle = rate // frequency
    sample_size_in_bytes = bits // 8
    samples = bytearray(samples_per_cycle * sample_size_in_bytes)
    volume_reduction_factor = 32
    range = pow(2, bits) // 2 // volume_reduction_factor

    if bits == 16:
        format = "<h"
    else:  # assume 32 bits
        format = "<l"

    for i in range(samples_per_cycle):
        sample = range + int((range - 1) * math.sin(2 * math.pi * i / samples_per_cycle))
        struct.pack_into(format, samples, i * sample_size_in_bytes, sample)

    return samples

# ======= I2S CONFIGURATION =======
SCK_PIN = 18
WS_PIN = 23
SD_PIN = 19
I2S_ID = 0
BUFFER_LENGTH_IN_BYTES = 2000
# ======= I2S CONFIGURATION =======

# ======= AUDIO CONFIGURATION =======
TONE_FREQUENCY_IN_HZ = 440
SAMPLE_SIZE_IN_BITS = 16
FORMAT = I2S.MONO  # only MONO supported in this example
SAMPLE_RATE_IN_HZ = 44100
# ======= AUDIO CONFIGURATION =======

audio_out = I2S(
    I2S_ID,
    sck=Pin(SCK_PIN),
    ws=Pin(WS_PIN),
    sd=Pin(SD_PIN),
    mode=I2S.TX,
    bits=SAMPLE_SIZE_IN_BITS,
    format=FORMAT,
    rate=SAMPLE_RATE_IN_HZ,
    ibuf=BUFFER_LENGTH_IN_BYTES,
)

samples = make_tone(SAMPLE_RATE_IN_HZ, SAMPLE_SIZE_IN_BITS, TONE_FREQUENCY_IN_HZ)

def i2s_callback(arg):
    num_written = audio_out.write(samples)

audio_out.irq(i2s_callback)

print("==========  START PLAYBACK ==========")
num_written = audio_out.write(samples)
try:
    while True:
        pass

except (KeyboardInterrupt, Exception) as e:
    print("caught exception {} {}".format(type(e).__name__, e))

# cleanup
audio_out.deinit()
print("Done")

I studied the micropython documentation and all the other examples and I think that should just work, yet it doesn't.
Any ideas welcome.

Btw I did try and dramatically lower the sample rate (16000) and increase the buffer size (20000) and it made no difference. Slightly different buzzing, but still no tone.

I've got an idea on the problem you see.  On the ESP32 port non-blocking mode is implemented using a FreeRTOS task.  This task shares processor time with the main MicroPython task.  I think every task gets a 10ms time slice.   I think the issue arises when the MicroPython task runs for 10ms and the I2S transmit buffer runs out of samples because samples is quite small in size.  To test this theory try making samples larger.  e.g.   samples = samples * 100.  Try different multipliers to see if the problem goes away.

Thanks! That does make sense and seems to help. I had to also increase the ibuf value before it went away entirely. I suppose that also makes sense because ibuf should probably be bigger than the samples buffer size. I'm guessing my buffer should be at least 10ms long, then? And the 440hz single cycle was only 200 samples. at 44100hz that's only 4.5ms.
I was already not sure if I want to be going the non-blocking way or the asyncio way and I think this is making me lean towards the latter for my use case. Although.. in reality I won't be sending single cycles of pure sine waves, so it shouldn't matter too much if I have to tweak the buffer size. For anything that has to respond quickly to user input you should probably safely make the buffer size (in terms of milliseconds) close to the control loop size? With 30 or 60 hertz being 16.6  to 33.3ms. I'm just thinking out loud while I try and map this out in my brain 😆
(Just for fun I'm trying to see if it would be viable to write a chiptunesque basic synthesizer entirely in micropython without having to put the audio engine parts in c and then only controlling the node graph (or whatever) from micropython.  I'm probably gonna hit a wall, but like I said - just having fun.)


Issue with vs code azure deployment | No specific reason listed

Does this occur consistently?
Repro steps:

Action: appService.Deploy
Error type: ECONNRESET
Error Message: request to http:-----/api/zipdeploy?isAsync=true&author=VS%20Code failed, reason: read ECONNRESET
Version: 0.20.0
OS: win32
OS Release: 10.0.19042
Product: Visual Studio Code
Product Version: 1.51.1
Language: en

Call Stack
ClientRequest.<anonymous> extension.js:236:264795
ClientRequest.emit events.js:228:7
TLSSocket.socketErrorListener _http_client.js:406:9
TLSSocket.emit events.js:223:5
emitErrorNT destroy.js:92:8
emitErrorAndCloseNT destroy.js:60:3
processTicksAndRejections task_queues.js:81:21

Please add repro steps

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Wrapping scheme

In the standard Scala REPL, I can suffix a line with a // show comment in order to print out the wrapped object that is compiled. For example,
> val x = 42
> val y = Seq(x) // show

emits something along the following lines.
object $read$1 extends scala.AnyRef {
  object $iw extends scala.AnyRef {
    object $iw extends scala.AnyRef {
      val x = 42
    }
  }
}

object $read$2 extends scala.AnyRef {
  object $iw extends scala.AnyRef {
    import $read$1.$iw.$iw.x;
    object $iw extends scala.AnyRef {
      val y = Seq(x)
    }
  }
}

Is there a way to do something similar from an ammonium (or even better - Jupyter Scala) cell? Alternatively, can someone post the cmdWrapper code synthesized from the above example.
Many thanks in advance!

I guess it's now more an Ammonite question, since the rename as "almond". I'm not sure Ammonite allows that for now, maybe ask on its Gitter or open an issue in the Ammonite repo.


Remove legacy agencies.main_agency_id

Ticket #357
Description
This removes references to agencies.main_agency_id as we had to workaround this cyclical dependency in various places.
I wanted to call-out two areas I'd appreciate review, as tests are passing but I'm wanting to be sure I'm not disrupting intent. I will comment inline on those.
Manual tests for Reviewer

[ ] Confirm the workflow for a tenant to have a main_agency_id set by creating a tenant and assigning it to an agency

Checklist

[x] Provided ticket and description
[x] Provided testing information
[x] Added PR reviewers

@TylerHendrickson Thanks for the detailed feedback. I agree about #3 with a constraint being a good idea, but going to follow-on with that and have created a new issue here: #1239. My only tweak there would be instead of the magic number possibly just do a boolean on agencies that marks that agency as special in that way.
Pushed changes from feedback. Do you mind taking another look at this @TylerHendrickson?


Problem in ML Kit task library.

I have trained a custom object detection model using this Colab and exported the model without any problem and tested the model in the same colab but when I use it in my android app it doesn't work.
I am using ml kit task library in android studio for object detection.
I think the problem is in the below given code snippet.
CustomObjectDetectorOptions options = new CustomObjectDetectorOptions.Builder(localModel)
                .setDetectorMode(ObjectDetectorOptions.STREAM_MODE)
                .setClassificationConfidenceThreshold(0.1f)
                .setMaxPerObjectLabelCount(5)
                .enableClassification()
                .build();

when I use enableClassification() it shows no objects detected but when I don't use it, it detects objects.
When I don't use enableClassificatin() it goes in the onSuccessListener() shown below otherwise it goes in onFailureListener() shown
in below code snippet.
objectDetector.process(image)
                        .addOnSuccessListener(
                                new OnSuccessListener<List<DetectedObject>>() {
                                    @Override
                                    public void onSuccess(List<DetectedObject> result) {
                                        Log.d("TAG", "onSuccess: Object detected");
                                        for(DetectedObject detectedObject: result){
//                                            Toast.makeText(realTime.this, "", Toast.LENGTH_SHORT).show();
                                            Rect box = detectedObject.getBoundingBox();
                                            StringBuilder builder = new StringBuilder();
                                            for(DetectedObject.Label label : detectedObject.getLabels()){
                                                String text = label.getText();
                                                builder.append(text);
                                                builder.append(" : ");
                                                int index = label.getIndex();
                                                float confidence = Math.round(label.getConfidence()*100);
                                                builder.append(confidence+"%");
                                                builder.append("\n");
                                            }
                                            tv.setText(builder);
                                        }
                                        try {
                                            Toast.makeText(realTime.this, "Detected objects:"+result.size(), Toast.LENGTH_SHORT).show();
                                        }
                                        catch (Exception e){
                                            Toast.makeText(realTime.this, "Object detected but label problem", Toast.LENGTH_SHORT).show();
                                        }
                                    }

                                }
                        )
                        .addOnFailureListener(
                                new OnFailureListener() {
                                    @Override
                                    public void onFailure(@NonNull Exception e) {
                                        Toast.makeText(realTime.this, "No object detected", Toast.LENGTH_SHORT).show();
                                        Log.d("realTime", "No object detected");
                                    }
                                }
                        )
                        .addOnCompleteListener(
                                new OnCompleteListener<List<DetectedObject>>() {
                                    @Override
                                    public void onComplete(@NonNull Task<List<DetectedObject>> task) {
                                        imageProxy.close();
                                    }
                        });

Hi @Abdullah-208 !
If you are using static images like the dataset in Colab gist. The object detector command should be like below.
// Multiple object detection in static images
val options = ObjectDetectorOptions.Builder()
        .setDetectorMode(ObjectDetectorOptions.SINGLE_IMAGE_MODE) # STREAM mode for live object detection from camera/video
        .enableMultipleObjects()
        .enableClassification()  // Optional
        .build()

Please let us know after trying with above command.
Thank you!

@mohantym !
I am using live stream mode.
and also can you tell me why is .enableClassification() is optional, because I want the objects to be classified.

Hi @sachinprasadhs !
Could you comment on this issue.
Thank you!

Hi @Abdullah-208,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The TFLite team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the TFLite space.
Thanks.


livereload not working properly

Thank you team for this wonderful generator. It's the best on the Internet, not doubt.
There are a few issues I need your help with:

gulp --livereload "run ios --emulate"  and gulp --livereload "run android --emulate" will actuall launch the app on the real device. App which is deployed by gulp --livereload "run android --emulate" launches properly and runs properly. However app which is deployed by gulp --livereload "run ios --emulate" hangs on launching.
gulp --livereload "run ios" and gulp --livereload "run ios" only launches the app on browers. Same result as gulp --watch.

I am new to web/mobile/ionc development. It might be that I am using generator-m-ionic in the wrong way.
thx
--lola

Hi @lolaswift. There's a lot of things that can go wrong with ios-deploy which is the part of the cordova cli that pushes the app on the device.
Your device is connected when you run the command? What's the output in the terminal?

Thanks gruppjo for the quick response.
Just like you said. My issue 1&2 was caused by device connectivity. It's working now.
Now the only issue I have now is app deployed by:
gulp --livereload "run ios"
gulp --livereload "run ios emulate"
gulp --cordova "run ios"
failed to lauch.
Starting debug of iPhone 5 (Global/CDMA) 'myphone' (f3xxxxaa7e1a0e7bf67a799900xxxxxx843) connected through USB...
[  0%] Looking up developer disk image
[ 95%] Developer disk image mounted successfully
[100%] Connecting to remote debug server
(lldb) command source -s 0 '/tmp/BDEB6ECB-1207-4ACD-AEE5-E3CD0E256BD4/fruitstrap-lldb-prep-cmds-f343f8f2aaa7e1a0e7bf67a744388a67216bc843'
Executing commands in '/tmp/BDEB6ECB-1207-4ACD-AEE5-E3CD0E256BD4/fruitstrap-lldb-prep-cmds-f343f8f2aaa7e1a0e7bf67a744388a67216bc843'.
(lldb)     platform select remote-ios --sysroot '/Users/gf/Library/Developer/Xcode/iOS DeviceSupport/9.3.2 (13F69)/Symbols'
Platform: remote-ios
Connected: no
SDK Path: "/Users/gf/Library/Developer/Xcode/iOS DeviceSupport/9.3.2 (13F69)/Symbols"
(lldb)     target create "/Users/gf/Documents/git/lab/testyo/platforms/ios/build/device/testyo.app"
Current executable set to '/Users/gf/Documents/git/lab/testyo/platforms/ios/build/device/testyo.app' (armv7).
(lldb)     script fruitstrap_device_app="/private/var/containers/Bundle/Application/2FFE02A5-352A-4D08-8A98-57744A13D1BB/testyo.app"
(lldb)     script fruitstrap_connect_url="connect://<IP_ADDRESS>:61225"
(lldb)     command script import "/tmp/BDEB6ECB-1207-4ACD-AEE5-E3CD0E256BD4/fruitstrap_f343f8f2aaa7e1a0e7bf67a744388a67216bc843.py"
(lldb)     command script add -f fruitstrap_f343f8f2aaa7e1a0e7bf67a744388a67216bc843.connect_command connect
(lldb)     command script add -s asynchronous -f fruitstrap_f343f8f2aaa7e1a0e7bf67a744388a67216bc843.run_command run
(lldb)     command script add -s asynchronous -f fruitstrap_f343f8f2aaa7e1a0e7bf67a744388a67216bc843.autoexit_command autoexit
(lldb)     command script add -s asynchronous -f fruitstrap_f343f8f2aaa7e1a0e7bf67a744388a67216bc843.safequit_command safequit
(lldb)     connect
(lldb)     run
success
(lldb)     safequit
But if I:
gulp --cordova "build ios"
then open the xcode project using xcode and build on device
, the app launches properly and runs properly.

Sorry, I don't understand what the problem is. Everything seems to run fine according to the logs.

closing due to inactivity. Please comment if you have updates.


Add manual parameters

This patch adds a manual request parameters option that are send along with the config request and the adapter request

👍


Fix error handler callback

Description
The callback to set_error_handler expects to return a bool:
https://www.php.net/manual/en/function.set-error-handler.php
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[x] Conforms to style guide

Interesting.
It seems the sample code was fixed in English manual.
See https://www.php.net/manual/ja/function.set-error-handler.php#refsect1-function.set-error-handler-examples

@paulbalandan Doesn't this change the behavior when ! (error_reporting() & $severity)?
I think it is not a breaking change, but isn't it better to add the changelog?


Node version restricted to 9.4.0

Is there any reason that this library is restricted to node version 9.4.0?

It's an extra measure of safety, and easy one since this the version I'm working with. However I can extend the tests to see if it works well with lower major versions. The issue is that we have some security flaws related to certain minor version concerning multiple major ones. I'm not sure we can specify multiple node engine version there but I didn't check that yet.

Fixed in v0.14.5.


raise exception when showing closed canvas

Closes #394
This PR adds a test to Display.show that checks if its canvas is closed or not. If it is, an exception is raised which prevents the application from freezing.
I've also added a unit test for this; however, it currently doesn't work because the offscreen canvas can not be closed. This is something we may wish to fix in wgpu-py, or if not, something we need to update here depending on how we decide.

This is something we may wish to fix in wgpu-py,

I think this is the way to go. Should be an easy fix.

@Korijn I've created https://github.com/pygfx/wgpu-py/pull/309 to allow the offscreen canvas to be closed. How do you want to proceed with this PR considering that it's test requires upstream changes?
At the moment, the test I've added will simply xfail until the canvas can be closed. We can either merge this as is, or we can wait for a new release of wgpu-py and then merge once CI can use the new version.

Can you make the xfail conditional on the version of wgpu-py being <= the current version?

@Korijn Sure. I assume wgpu follows semver quite strictly, i.e., no .dev or .3-rc1 or other strangeness in its version string? If so, I've added a conditional xfail on the wgpu version.

@Korijn Sure. I assume wgpu follows semver quite strictly, i.e., no .dev or .3-rc1 or other strangeness in its version string? If so, I've added a conditional xfail on the wgpu version.

Correct! Thanks.
I like to use this strategy for sensitive assertions about library internals. Especially when you have to resort to workarounds or monkeypatching, it's really nice to set a "time bomb" that will go off once you finally get around to upgrading that dependency. It forces you to re-evaluate.


where to find visual c++ 2017??

@Kurkiie are you following the installation instructions on the first page? It provides a link to the visual C++ runtime


How to add a new network

Hi team!
How is the workflow to add a new network information into this repo?
Regards!

We want to add Evmos Testnet/Mainnet:
Mainnet ChainID = 9001
Testnet ChainID = 9000
CC: @Uxio0

Hi, you need to add it here https://github.com/gnosis/gnosis-py/blob/master/gnosis/eth/ethereum_network.py and make sure it's present on https://github.com/ethereum-lists/chains (I see it is)

Perfect, I sent the PR and it was approved and merged as well.
I need to upgrade the tag version or do we continue working from the master branch? If it's needed to upgrade the version, how I can do this?

You will have to wait for the next release 😉

Perfect! Thank you very much!

Thank you!


Impossible to use get_type_hints in main file

get_type_hints is used by Pydantic, dacite etc. to create their model classes, so it'S kinda important.
Currentliy, this is broken in main.py:
Traceback (most recent call last):
  File "***\main.py", line 40, in ar_v4
    data = dacite.from_dict(RequestData2, message)
  File "***\venv\lib\site-packages\dacite\core.py", line 43, in from_dict
    data_class_hints = get_type_hints(data_class, globalns=config.forward_references)
  File "C:\dev\python3.8\lib\typing.py", line 1220, in get_type_hints
    base_globals = sys.modules[base.__module__].__dict__
KeyError: 'main'

reproduction:
install dacite
in main.py

import dacite
import dataclasses

@dataclasses.dataclass
class RequestData2:
    product_number: int

def hello_world(request):
    message = request.get_json()
    data = dacite.from_dict(RequestData2, message)
    return ""

post some data to it and observe the error.
Workaround:
create another file and place your data classes in them

Thanks for the bug report! This is fixed in functions-framework==1.4.3.

Thanks!


Customize hierarchy ? Children accessor ?

I am working with D3 (https://d3js.org/) and php. I ultimately need to create a valid hierarchy for my D3 renderer.
The issue comes from D3 that requires that children are stored in a "children" array belonging to the parent. But my PHP datas are organised like this:
$myObj['name'] = 'foo';
...
$myObj['unique_id'] = some_hash;
$myObj['parent'] = the_hash_from_parent_element;

So I need to ultimately achieve something like this
$myObj['name'] = 'foo';
...
$myObj['unique_id'] = some_hash;
$myObj['children'] = [$myObj1, $myObj2, ...];

Each $myObj can contain 0 to n objects itself
Therefore I can jsonify the result and send it to my twig template and D3 renderer.
I'm also trying to customize the children accesssor but I'm unable to make it work :(

Looks like you need d3.stratify.
https://observablehq.com/@d3/d3-stratify


sort identities by id/name to avoid random results

Fixes #23314
Fixes: https://github.com/cilium/cilium/pull/23064
Signed-off-by: Nikolay Nikolaev<EMAIL_ADDRESS>

/test

/cc @alan-kut as the author of the original PR.

Thanks for the review. I will update accordingly.

Edit: Looking closely, the identities, err := c.Store.ByIndex(byKeyIndex, key.GetKey()) is now returning a list which is supposed to be ordered, so why do we need to sort again? 😕

From what I can track, the implementation ends up here:
https://github.com/kubernetes/client-go/blob/v0.26.0/tools/cache/thread_safe_store.go#L298
where set, err := c.index.getKeysByIndex(indexName, indexedValue) is returning a map type for set, namely https://github.com/kubernetes/apimachinery/blob/v0.26.0/pkg/util/sets/string.go#L25
And then this gets converted to the list with:
	for key := range set {
		list = append(list, c.items[key])
	}

And this is where the unpredictable order of the result comes from.
In fact, I was checking the failing unit test by printing the members of the test array where I added the slice sort, and they were typically ordered "10, 11", while when the test was failing we were getting "11,10".
IMHO this ordering is needed and provides a more stable API.

@sayboras the original PR was not marked for backport to 1.13, so I don't think we need to backport this to 1.13 https://github.com/cilium/cilium/pull/23064

/test

Holding for

With that said, I would +1 for changing the sort logic to handle either the timestamp or whichever identity value is less. Ideally, we don't need to do string to int conversions as we already have the creation timestamp as a time.Time.

OK but - using the timestamps make the test indeterministic again, as there are no guaranties of the order of creation of the test entries.
I ma not sure what "indentity value" is.
I am updating the PR with the latest comment suggested and will leave it as it is. If someone has a better idea of how this sorting should work, please take over.

Holding for

With that said, I would +1 for changing the sort logic to handle either the timestamp or whichever identity value is less. Ideally, we don't need to do string to int conversions as we already have the creation timestamp as a time.Time.

OK but - using the timestamps make the test indeterministic again, as there are no guaranties of the order of creation of the test entries. I ma not sure what "indentity value" is.

Why would they become nondeterministic?  We just need to ensure that createCiliumIdentity() sets the creationTimestamp to time.Now() and it should work.

@nickolaev Please check the go linter warning. Travis failure is related.

Why would they become nondeterministic?  We just need to ensure that createCiliumIdentity() sets the creationTimestamp to time.Now() and it should work.

@christarazi I'm not sure I follow your proposal. In general, we don't seem to set the creationTimestamp in the code, so how could the sorting logic use the field for comparison? Based on your suggestion above, it seems like you are suggesting that we only set it for tests? But that's not ideal.

@christarazi I'm not sure I follow your proposal. In general, we don't seem to set the creationTimestamp in the code, so how could the sorting logic use the field for comparison? Based on your suggestion above, it seems like you are suggesting that we only set it for tests? But that's not ideal.

Well, we only need to set the timestamp in the tests because we can't rely on K8s doing that for us. In non-test code, K8s will definitely set the creationTimestamp so we can rely on it.

@christarazi I'm not sure I follow your proposal. In general, we don't seem to set the creationTimestamp in the code, so how could the sorting logic use the field for comparison? Based on your suggestion above, it seems like you are suggesting that we only set it for tests? But that's not ideal.

Well, we only need to set the timestamp in the tests because we can't rely on K8s doing that for us. In non-test code, K8s will definitely set the creationTimestamp so we can rely on it.

Thanks for the context. If it's guaranteed to be always set by the system, then yes, it makes sense to use the timestamp to sort the identities.

/test

/test

/test


Disable 'verify if module is latest' for shops under <IP_ADDRESS> for 4.14.x and bump version to 4.14.3

Questions
Answers

Description?
Disable 'verify if module is latest' for shops under <IP_ADDRESS> for 4.14.x and bump version to 4.14.3

Type?
improvement

BC breaks?
no

Deprecations?
no

Fixed ticket?

Sponsor company

How to test?
See below

Context
The upgrade module has a feature where it checks whether there is a more recent version of itself and if it does, it tells the user "please use the latest version, you are using an outdated version".

Currently if someone installs the module 4.14.2 on a shop, the module will detect there is a 4.16.3 version and says to user "please don't use me! use the latest 4.16.3 version instead!"
Consequently this PR disables this check, this was a suggestion from @Hlavtox.
How to test
Create a test autoupgrade release from this PR. Install this test module

on a shop <IP_ADDRESS> : you do NOT see the warning Your current version of the module is out of date. Update now (because this PR disables the check on versions under <IP_ADDRESS>)
on a shop <IP_ADDRESS> : you see the warning Your current version of the module is out of date. Update now

[!IMPORTANT]
Did you notice target branch is 4.14.x? So if you rebase the PR against target branch with git prc be careful to select the right branch

https://github.com/PrestaShop/autoupgrade/pull/626/commits/bd9fc65f5b78dc97db4388de087e03f45c36c182
As the branch 4.14.x is only for updates 1.6 to 1.7 I set CI to test againt latest 1.7.x version

@matks It should not perform this check for versions lower than 1.7, not lower than 8.
For people on 1.7, we want them to upgrade to 4.16. :)

True. I guess sending this PR at 22pm on a Friday evening was not the best way to obtain a good result. I will submit the changes.

@Hlavtox Fixed in https://github.com/PrestaShop/autoupgrade/pull/626/commits/1a92a6b020a15d50d6a677edca4585f27ff16373

For your information, I discussed with @Robin-Fischer-PS and @MatShir and this is what we suggest for release 4.14.3:

this PR test is OK, no need for further release testing as the only difference between 4.14.2 and 4.14.3 will be this PR
upgrading from 1.6.x to 1.7.x shops is not supported anymore so this 4.14.3 release will be out of scope
this means that 4.14.3 will be published and available for anyone to use but we make no warranties, express or implied
basically the release will be provided "as is", without warranty

Hi @aniszr,
The check is inside the module (not in the module list). When you want to upgrade the shop, the module check if there is a new version available.

Hello @MatShir
Thanks for your feedback !
See attachet screenshot for PS <IP_ADDRESS>

Thank you!

👌 sweat ! thanks @aniszr we can merge and release the version !


Cannot customize color of progress bars

Describe the bug
Progress bar color cannot be changed through CSS anymore
How to reproduce
Got to https://clarity.design/documentation/progress#color
Try changing the color of the progress through CSS, nothing happens.
Expected behavior
It should be possible to theme the progress bar by changing its color.
Versions
App

Angular: 9
Clarity: .

Device:

Browser: chrome

Need to investigate, it used to work but might be an issue with some host bindings.

Hi, any updates on this issue? We have a theme and this is the only component we cannot customise with our branding.

I'm also experiencing this issue.

Any news about this issue? I have the same problem. It doesn't work when I modify the color in Chrome dev tools. It doesn't work also on Firefox but it work on IE 😅

Below code worked for me in chrome and firefox.
<div class="progress-block" id="custom-progress-bar">
    <clr-progress-bar clrValue="10" clrMax="20"></clr-progress-bar>
</div>

#custom-progress-bar {
    --clr-progress-bg-color: lightgray;
    --clr-progress-default-color: orange;
}

Here are the properties that are related to the progress-bar
      --clr-progress-default-color: var(--clr-color-action-600);
      --clr-progress-alt-color-1: var(--clr-color-success-400); // green
      --clr-progress-alt-color-2: var(--clr-color-danger-800); // red
      --clr-progress-alt-color-3: var(--clr-progress-alt-color-2); // red
      --clr-progress-bg-color: var(--clr-color-neutral-200);

If you need to change the color you need to change the property of:
 .progress>progress::-webkit-progress-value


Crashes during the Start/load

The mod crashes when just starting and loading the mods:
Fabric: 0.14.22
MAR: 1.20.1-3.0.2
I made sure I included the required dependencies.
latest.log
Thank you,
Regards

Same here


Click on non-React examples on website lead to homepage

Example: https://www.creative-tim.com/learning-lab/tailwind-starter-kit/documentation/react/tabs/text
If I click on any other language/framework than React, I get redirected to the home page.

Tested in latest FF and Chrome.
This issue exists on all examples.

Hello there, @owzim ,
Thanks for letting us know.
We've solved the issue.
Happy Hacking!
Best,
Manu


Update v0.9.0-beta.2 fails

Hi,
I can't update because the file that is announced via HACS does not exist.
Logger: custom_components.hacs
Quelle: custom_components/hacs/base.py:709
Integration: HACS ([Dokumentation](https://hacs.xyz/docs/configuration/start), [Probleme](https://github.com/hacs/integration/issues))
Erstmals aufgetreten: 21:31:20 (1 Vorkommnisse)
Zuletzt protokolliert: 21:31:20
Download failed - Got status code 404 when trying to download https://github.com/kodebach/hacs-idm-heatpump/releases/download/v0.9.0-beta.2/idm_heatpump.zip

Traceback (most recent call last):
  File "/config/custom_components/hacs/base.py", line 709, in async_download_file
    raise HacsException(
custom_components.hacs.exceptions.HacsException: Got status code 404 when trying to download https://github.com/kodebach/hacs-idm-heatpump/releases/download/v0.9.0-beta.2/idm_heatpump.zip

Seems there is an issue with the automated release action that builds the ZIP file for HACS. I'll look into it.

I just released v0.9.0-beta.3, if the download fails again please reopen