HOSTEDCP-2070: add e2e flags for controlling AKS keyvault name and te…

What this PR does / why we need it:

adds e2e flags to control the keyvault settings for AKS e2e

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes # HOSTEDCP-2070
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/test e2e-aks

/lgtm


Convert everything to auto-discovery

This is probably an API break as I do not have json dumps to ensure things are working. If model is not determined when reading from the API and had elements force set, those could be lost.

Convert discovery to determine deviceIds to add during discovery
Move all discovery code into a single pipeline
Update lights to support on/off, brightness, and color temps (I dont believe RBG was configurable in the current setup)
Create a new call to hubspace that can update multiple attributes in a single call
( #71 ) Fix Zandra Fans being unable to control lights
Cleanup a bunch of unused code after the migration
Fix an issue where auto-discovery would not discovery fans

This is currently running against my Zandra fan. The light works as expected but there are changed needed to the fan as the speed is off (0%) or on (20%) and I cannot adjust it from there. This issue existed prior to my changes.

Opening a draft PR to get some initial feedback. If there are additional data dumps hanging out, it would be awesome to get those added so that I can test more things. After this PR goes in, I will be working on updating the Fan portion to reduce the code and genericize the entity creation.

Closing for now while I fix a few issues


chore(main): release 0.3.0

:robot: I have created a release beep boop
0.3.0 (2024-04-28)
Features

add cond utility (d652c80)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/jozan/tailwind/releases/tag/v0.3.0 :sunflower:


Y/N Prompt?

Type of issue
Missing information
Description
Is there a way to skip the y/n prompts?
Page URL
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-migrate
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/tools/dotnet-migrate.md
Document Version Independent Id
ad0dfb99-7a86-f3a6-69c8-a18399b0c095
Article author
@tdykstra
Metadata

ID: e78ee146-356e-ccf4-5f87-7726a1498943
Product: dotnet-fundamentals

This command is deprecated. The dotnet migrate command is no longer available starting with .NET Core 3.0 SDK. It can only migrate a Preview 2 .NET Core project to a 1.x .NET Core project, which is out of support.


Adding Yersin Nha Trang university

Truong Trung Cap Y Duoc Yersin Nha Trang

@vietnamican Please provide us with:

the school official website URL,
the school's street address, including city name,
an URL of a page on the official website where an IT-related long-term (>1 year) course is offered by the school
a proof showing that the school recognizes the domain which you are submitting as an official email domain for the students.

@vietnamican I am sorry, this request remains unanswered for a while. I have to close it without merging. Please reopen and comment if you have an update regarding the aforementioned issue. Thank you for the understanding!


Formatting issue

Description:
Remove the new line in https://github.com/wso2-ballerina/package-salesforce/blob/master/sfdc37/salesforce_connector.bal#L198. And check all the places.

Solved


Vulnerability found in Netty 4.1.73 version

Hi,
Veracode scan reported Medium Vulnerabilities found in netty.

netty-handler-4.1.73.Final.jar

Files:

io/netty/handler/ssl/JdkAlpnSslUtils.java : 51
io/netty/handler/ssl/JdkSslClientContext.java : 292
io/netty/handler/ssl/JdkSslContext.java : 74
io/netty/handler/ssl/JdkSslServerContext.java : 271
io/netty/handler/ssl/OpenSslX509TrustManagerWrapper.java : 159
io/netty/handler/ssl/SslUtils.java : 188 & 190

CWE ID: 757
Reason: Selection of Less-Secure Algorithm During Negotiation ('Algorithm Downgrade') (check CWE for more details).

netty-resolver-4.1.73.Final.jar

Files:

io/netty/resolver/HostsFileEntriesProvider.java : 307

CWE ID: 73
Reason: External Control of File Name or Path. This call contains a path manipulation flaw. The argument to the function is a
filename constructed using untrusted input. (check CWE for more details).

netty-common-4.1.73.Final.jar

CWE ID: 377

Files:

io/netty/util/internal/PlatformDependent.java : 1438 & 1440

Reason: Insecure Temporary File. Creating and using insecure temporary files can leave application and system data vulnerable to
attack. In particular, file names created by the tmpnam family of functions can be easily guessed by an attacker (More
details on CWE)

CWE ID: 331

Files:

io/netty/util/internal/NativeLibraryLoader.java: 350

Reason: Standard random number generators do not provide a sufficient amount of entropy when used for security purposes.
Attackers can brute force the output of pseudorandom number generators such as rand(). (Check CWE for more details).

CWE ID: 117

Files:

io/netty/util/internal/logging/Log4JLogger.java: 328
io/netty/util/internal/logging/CommonsLogger.java: 305

Reason: Improper Output Neutralization for Logs. A function call could result in a log forging attack. Writing untrusted data into a log file allows an attacker to forge log entries or inject malicious content into log files. (More details on CWE).

CWE ID: 732

Files:

io/netty/util/internal/PlatformDependent.java: 1442

Reason: The software specifies permissions in a way that causes the resource to be accessible to an unintended sphere of control.
A common manifestation of this is setting overly lax file permissions. (More details on CWE).

Please let me know if these are false Positives or needs to be addressed.
Thanks,
Shyam Joshi

Thanks for reporting. However, all of them are false alerts.
Also, please do a little bit of self-research before reporting tool-generated alerts.


⚠ Bofrost.de has degraded performance

In 9395b09, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 2229 ms

Resolved: Bofrost.de performance has improved in 83a47ab after 6 minutes.


test: List regression tests

list regression tests automated
Test coverage results :test_tube:
:white_circle: Total coverage has not changed
No changes to code coverage between the base branch and the head branch

/ok-to-test sha=78bce10

/ok-to-test sha=78bce10

/ok-to-test sha=8d5611e


Renames Result.Error to Result.Failure

This is a cosmetic change that disambiguates the Error case of the Result enum from the error value.
Success and failure are better antonyms than success and error.
(Unit tests & README also updated)

Are you sure about this naming thing? In my opinion .Error is quite ok as it shows that it takes an ErrorType as an argument. This would be less obvious for .Failure.

Well I'm not sure of course. This is an opinion.
But the enum represents if the function succeeds or fails. It would be slightly strained English to ask if something "succeeds or errors". The fact that the parameter names of the cases are different from the case names themselves is fine. You're not using "success" as the name of the ,Success case, you're using v.
Anyway - this is just opinion so feel free to ignore. (Reason this came up is my own Result enum used success/failure)

I've done some research:

Alamofire's Result is using .Failure
Result.swift's Result is using .Failure
Llama Kit's Result is using .Failure

I think that's a pretty clear voting ;-)

Success!

I think the .Failure  is better choice.

Take a look at Apple's Result.swift: It use Error :)
https://github.com/apple/swift/blob/8d9ef80304d7b36e13619ea50e6e76f3ec9221ba/test/Prototypes/Result.swift

Mh, that changes a lot. If there will be a Result in Swift 3, it would be useful to already be compatible with it.


TSR generates error

Hello,
Some errors are occurring during TSR execution. We tried different configurations (tried the different saliency methods available, FO, IG, SVS, ...).
Context:
The following cell worked.
int_mod = TSR(
    model,
    train_x.shape[-1],
    train_x.shape[-2],
    method='IG',
    mode='feat'
)

But this one didn't :
exp=int_mod.explain(
    input_x,
    labels=class_target,
    TSR=True
)

Error :
    147 elif self.method == "IG":
    148     base = baseline_single
--> 149     attributions = self.Grad.attribute(
    150         input, baselines=baseline_single, target=labels
    151     )
    152 elif self.method == "DL":
    153     base = baseline_single

     41 def wrapper(*args, **kwargs):
---> 42     return func(*args, **kwargs)
...
    527         )
    528 else:
--> 529     raise AssertionError(f"Target type {type(target)} is not valid.")

AssertionError: Target type  is not valid.

Any idea what can be the problem here ?
Model, train_x, labels and so on are not the origin of the problem given the fact that they respect the same format as expected and worked in NativeGuide execution.
Thanks in advance !

Hi,
did you parse the label explicitly into int ?  int(np.argmax(y_target, axis=1)[0])`
The base library is unfortunately pretty strict with that.
Really appreciate your feedback, it really helps us to improve the library. I will add some preprocessing for that in the next release. So that others do not run into the same issues.

I added some preprocessing that should solve it:
pip install https://github.com/fzi-forschungszentrum-informatik/TSInterpret/archive/refs/heads/main.zip
As soon as I have additional time I will also improve the error handeling (I know there is still a lot to do ;)).

Again you were right ! Needed to be strictly casted as int.
Thanks, have a nice day

Nice. Still very helpful comment for unification. :)


10.0.19044.3086

I've attached the file
termsrv.zip

Duplicate of https://github.com/stascorp/rdpwrap/issues/2180


Merge mkdir and mkdirRecursive

Description of the change
Fixes #54

Checklist:

[x] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
[x] Linked any existing issues or proposals that this pull request should close
[ ] Updated or added relevant documentation
[ ] Added a test for the contribution (if applicable)

:ping_pong: @thomashoneyman


Continue work on integration testing framework

TODO:

[ ] Test transfers and queries related to transfers
[ ] test queries related clients, channels, connections
[ ] test rly start and multihop transfers (3 chain setups)
[ ] integrate make test into CI


DualR3 state closing opening is not updated

Hi, since about month sonoff addon stopped updating DualR3 status.
Calling services open_cover and close_cover works fine, but status of device is not changing.
So no option to detect state and revert button (close/open) function.
It doesn't matter what last status was saved - it does not refresh at all.
While checking logs and trying find problem i discovered that - state is updated only once when i click reload on SonOff component in settings, than it is not updating again.
Is stopped working after some updates.
I have full official and up-to-date hassio and HACS plugins.
Tried restarting few times. No logs related to this problem found.

Hi, I have the same problem. I think since version 3. In the ewelink app it's working fine though.
When I switch the mode (auto/cloud/local) it updates once but after that it doesn't sync anymore.

I created temporary solution:
Created pyscript (requires pyscript installed via HACS):
@service
def set_state(entity_id, value: str):
    state.set(entity_id, value)

And added extra action for button in switches section config 😅:
      turn_on:
          - service: cover.open_cover
            target:
              entity_id: cover.sonoff_100127439b
          - service: pyscript.set_state
            data:
                entity_id: cover.sonoff_100127439b
                value: opening

Debug logs.txt
System Health.txt
sonoff-138930c8454f4a2a5a40a24d8c8e293e-Rolluik-f2357000b9b967b5b55814298a1405ea.json.txt
Hope it helps. If you need anything else, let me know.

If you would like to switch to cover mode, you need to set in ewelink mode to motor.
It assures that only one output is available.
Personally I use it for 2 speed fans (rooms air condition/ventilation).
In this case both outputs enabled might burn out motor - so it is super useful :).

Yes, I have it set to motor mode in ewelink app. Maybe important that I mentioned this aswel.

Hello all. I have the same problem, but please allow me to rephrase it with my own words and understanding.
DualR3 has 3 modes: switch / motor / energy metering.  I use mine in motor mode to manage an awning. (I guess that what everybody here is calling the cover mode is the motor mode on the Sonoff documentation).
The problem is that the position of the awning (a percentage, ranging from 0% = full in = fully retracted, to 100% = full out = fully extended) is not update in HA. The position is something calculated by the DualR3 after a bit of self-learning.
The position is continuously updated in eWelink but not at all in HA. The position command from HA ("open 40%") works well.
Actually I think the first problem is that in HA, the position is a secondary information of the device, and not one of the sensors of the device.
The sensors i see in HA for the DualR3 are, for each of the 2 channels: voltage, power, ...
I haven't found yet how to call the position in the scripts, nor how to display it in the dashboard except as a secondary information of the device.
Would it be possible to have the position recognize as a sensor in HA when the DualR3 is in motor mode?

Mmm, very strange today, at the same time I added one new MINI to my sonoff integration, the DUALR3 that is managing my awning became unvailable.
It is still available and working correctly from eWelink.
In the logs I found this below.
Absolultly no idea if this is related to the issue of lack of awning position reporting. Probably not.
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:102
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 8 août 2022 à 13:00:54 (4 occurrences)
Last logged: 12:36:12
[3774634448] Error handling message: Unauthorized (unauthorized)
[4005302384] Error handling message: Unauthorized (unauthorized)
[3734876896] Error handling message: Unauthorized (unauthorized)
[3717429376] Error handling message: Unauthorized (unauthorized)

While we are on DUALR3 cover mode...
On the dashboard, the following code:
type: entities
entities:
  - entity: cover.sonoff_10014366de
    secondary_info: position

gives us 3 buttons: open, stop, and close.
All the 3 buttons, including the stop button, give the exepected result with DUALR3 and cover.
However, in the automation editor, using the use interface, the only action available in the drop list for this device is to "set position".
In the YAML editor this action looks like that:
domain: cover
entity_id: cover.sonoff_10014366de
type: set_position
position: 0

Would it be possible to arrange the drop list to also propose Open, Stop, and Close action, on top of the Set_position action?
Maybe open and close are not the best words, extend and retract would be better for an awning, or up and down for a shutter.
Thanks a lot.

I think caught a potential bug in DualR3 in cover mode, maybe related for this issue:
https://github.com/AlexxIT/SonoffLAN/blob/7e3f82946d8360b93110f910033812869034cdc2/custom_components/sonoff/core/devices.py#L235
I tried copy this solution for NSPanel #919 fix, but I got this error message:
 Traceback (most recent call last):
   File "/config/custom_components/sonoff/core/ewelink/__init__.py", line 51, in setup_devices
     entities += [cls(self, device) for cls in get_spec(device)]
   File "/config/custom_components/sonoff/core/devices.py", line 240, in get_spec
     # NSPanel Climate disable without switch configuration
 TypeError: argument of type 'int' is not iterable

The line number is "lie", if I use [] instead of () on line 235, don't get this error message.

Thanks for the feed, but I have tried this solution by adjusting it manually, but it doesn't resolve the issue for not updating the position.

Hi, I am using the R3 as a dual switch and I am getting the same lack of status update.
I have checked that disconnecting LAN mode at the eWeLink app the device stopped working (only by hand switch works of course). It seems any of my R3 are connecting to the cloud.

Hi, same status for me
No status update, position doesn't change in HA while I manipulate the covers
But covers work well with eWelink app

hi, i had this problem when dual R3 did not have internet connection, fixed internet connection of dual R3 and it works. looks like duals still need internet connection to report position to home assistant

@20bart thanks for logs. This is same problem as #839
Fix already in master version. Will be in next release

It appears this issue has re-appeared in V3.3.1

Please reopen the issue if it is still relevant

I have the same problem with Sonoff DW2….


sample audio link is invalid

http://voyager.jpl.nasa.gov/spacecraft/audio/english.au
https://web.archive.org/web/20170301103801/http://voyager.jpl.nasa.gov/spacecraft/audio/english.au

addressed in #84


Added support for luacheck

This will also be supported in toybox.py v1.1 so that a toybox can bring its luacheck globals into a project using it.
Fixed some luacheck warning in AnimatedSprite.lua. Not sure if the line breaks in the docstring are ok or not.

All changes to AnimatedSprite.lua doesn't look great for me, revert them and I'll merge.

There are 3 types of changes that luacheck flagged for that file:

Whitespace at the end of lines.
Variable masking other variables.
Lines that are too long.

Is there any of these 3 you can live with? First one and third ones are harmless but the second one should probably be fixed, no?

Variable masking other variables should probably be fixed, no?

I think you're right here, I have created new local varialble from argument - that makes no sense.
Can you remain changes on those two lines and configure luacheck to ignore file formatting for this file?

No problem. Coming right up.

Ok this should now have reverted the changes apart from the shadowed variables.
I will revisit adding some configuration to ignore the other warnings later. It's hard to find an elegant solution for this that works both in the project's folder and when the project is imported as a toybox.

You've messed master and develop (less optimized with feature to skip frames if TickStep is < 1) branch code.
I've updated main .lua file in the repo, just create pr from master to master with additional luacheck files, thanks.

My bad, I was trying to just to a PR from develop to develop.
Do I need to close this one and submit a whole new PR?


Configuration Failuure

A problem occurred configuring root project 'groovy-language-server'.
Could not open cp_proj generic class cache for build file '/home/givenchy/Downloads/groovy-language-server/build.gradle' (/home/givenchy/.gradle/caches/7.6.1/scripts/9px8z4wtfzdo1vmdjyibq74l4).

BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 65
Unsupported class file major version 65

You have to downgrade the version of java you're using. I dropped my version to 17 from 21 and it worked.

Thanks it also solved the issue for me.
On Thu, 1 Feb 2024, 3:45 am Gabriel Vera, @.***> wrote:

You have to downgrade the version of java you're using. I dropped my
version to 17 from 21 and it worked.
—
Reply to this email directly, view it on GitHub
https://github.com/GroovyLanguageServer/groovy-language-server/issues/82#issuecomment-1920263604,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AX6XME24EZQ6PYTJ35XRSMLYRLQRRAVCNFSM6AAAAABANTMPSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQGI3DGNRQGQ
.
You are receiving this because you authored the thread.Message ID:
@.***
com>

--
As members of the Kabarak University family, we purpose at
all times and in all places, to set apart in one’s heart, Jesus as Lord. (1
Peter 3:15)
DISCLAIMER:- The contents and opinions expressed in
any
email sent from Kabarak University are solely those of the author
and do
not necessarily represent those of Kabarak University. Kabarak
University
disclaims any liability to the fullest extent permissible
by law for any
consequences that may arise from the contents of any
email sent from its
systems including but not limited to personal
opinions, malicious and/or
defamatory information and data/codes that
may compromise or damage the
integrity of the recipient’s
information technology systems

Any chance this can be bumped? If I bump the groovy version and Java version, it supports Java 21 just fine.
eg https://github.com/GroovyLanguageServer/groovy-language-server/compare/master...alanocallaghan:groovy-language-server:master


Small tweaks

Fix #208

Use 4 spaces for tabs
Reset scroll position (scroll to top) when navigating through manuals

Thanks.
Do we even have tabs anywhere? They should be size 2.

Do we even have tabs anywhere?

See example in the issue: https://github.com/denoland/deno_website2/issues/208#issuecomment-629562040

They should be size 2 if anything.

GitHub uses 4. On second thought, it aligns with most languages that use 4 spaces, but for JavaScript we'd better use 2.


Documentation to migrate from humongous to pytest-mongodb

I just recently tried to do the migration and found out the hard way that
i had to rename:
humongous_basedir
to mongodb_fixture_dir
not as i expected to mongodb_basedir.
There should be somewhat a short note about it.

:+1:


Switch Reed-Solomon implementation to klauspost/reedsolomon, add cache encoder

different approach to #111
Diff to #111 are these two commits:

https://github.com/celestiaorg/rsmt2d/pull/136/commits/d4a6f0929ee9ad7ecd77861c93d8dd59e73e15a0
https://github.com/celestiaorg/rsmt2d/pull/136/commits/a24c38ad5376f79ba345715e0c2bad1f3f0569de

Is this ready for review, if so can it be marked as such as it current in "draft".

What is the justification of using this instead of the double cache btw?

Is this ready for review, if so can it be marked as such as it currently in "draft" and there are TODOs in the code.

I've marked this as draft because I am not 100% sure this is the better approach as compared to #111. I added you and others as reviewers for input on this. Particularly, I'm asking @rahulghangas for feedback. I want to push this over the finish line this or next week ideally. If we agree that the double cache is not really a hard requirement, then I'm very much in favour of this approach.
There is only one TODO added, namely:
https://github.com/celestiaorg/rsmt2d/blob/a24c38ad5376f79ba345715e0c2bad1f3f0569de/leopard.go#L16-L24
This can only be resolved much later.

What is the justification of using this instead of the double cache btw?

Less code, less code to maintain, much easier to understand. Not sure the double-cache is really necessary. See:
https://github.com/celestiaorg/rsmt2d/pull/111#discussion_r992261630

@liamsi given that the number of different data sizes are going to be relatively few, I am indeed in favor of this approach

Thanks for the thorough review @Wondertan!


"Failed to execute 'setItem' on 'Storage'" [bug]

Link to minimal reproducible example
// Libraries import { useWeb3Modal, useWeb3ModalState } from "@web3modal/wagmi/react"; import { useAccount } from "wagmi";
Summary
{context: 'client'}
"Failed to execute 'setItem' on 'Storage': Setting the value of 'wc@2:core:0.3//keychain' exceeded the quota."
List of related npm package versions
"@web3modal/wagmi": "^3.2.0"
"wagmi": "^1.4.5"
"viem": "^1.18.0"

Hi @alexanderpehlivanov  were you able to fix this?

@No I just opened another one

@glitch-txs This is the problem with the disappearing connection view that was mentioned a while ago. I moved this bug to https://github.com/WalletConnect/web3modal/issues/1431. If you want we can get on call and I can show you how to reproduce it.

also experiencing this


About CompositeRectTileLayer.addRect

        addRect(num: number, u: number, v: number, x: number, y: number, tileWidth: number, tileHeight: number) {
            if (this.children[num] && (this.children[num] as RectTileLayer).textures)
                (this.children[num] as RectTileLayer).addRect(0, u, v, x, y, tileWidth, tileHeight);
        }

I think this method is useless and can't work correctly , because there is always 0 when call  RectTileLayer.addRect.
Could I remove this method ?

Or change to like this :
        addRect(textureIndex: number, u: number, v: number, x: number, y: number, tileWidth: number, tileHeight: number) {
            const childIndex : number = textureIndex / this.texPerChild >> 0;
            const textureId : number = textureIndex % this.texPerChild;

            if (this.children[childIndex] && (this.children[childIndex] as RectTileLayer).textures)
                (this.children[childIndex] as RectTileLayer).addRect(textureId, u, v, x, y, tileWidth, tileHeight);
        }


🐛 TypeError: a bytes-like object is required, not 'str'

File
aa.pdf
Description
When trying to extract the pages from this file, I'm having following error :

File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/encodingdb.py", line 27, in name2unicode
name = name.split('.')[0]
TypeError: a bytes-like object is required, not 'str'

Code
from pdfminer.high_level import extract_pages
list(extract_pages("aa.pdf"))

Full stack-trace
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/high_level.py", line 149, in extract_pages
    interpreter.process_page(page)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 895, in process_page
    self.render_contents(page.resources, page.contents, ctm=ctm)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 908, in render_contents
    self.execute(list_value(streams))
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 933, in execute
    func(*args)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 872, in do_Do
    ctm=mult_matrix(matrix, self.ctm))
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 906, in render_contents
    self.init_resources(resources)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 354, in init_resources
    self.fontmap[fontid] = self.rsrcmgr.get_font(objid, spec)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdfinterp.py", line 190, in get_font
    font = PDFType3Font(self, spec)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdffont.py", line 647, in __init__
    PDFSimpleFont.__init__(self, descriptor, widths, spec)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/pdffont.py", line 575, in __init__
    self.cid2unicode = EncodingDB.get_encoding(name, diff)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/encodingdb.py", line 108, in get_encoding
    cid2unicode[cid] = name2unicode(x.name)
  File "/home/remondn/.venv/stable_prospector/lib/python3.6/site-packages/pdfminer/encodingdb.py", line 27, in name2unicode
    name = name.split('.')[0]
TypeError: a bytes-like object is required, not 'str'

Environment

OS : Ubuntu 18.04.4 LTS (Bionic Beaver)
Python version : 3.6.9
pdfminer version : 20200726

How can I run extract_pages() without having this error ?

Hi @astariul-colanim,
Thanks for raising the issue. I can replicate it with python tools/pdf2txt.py ~/Downloads/aa.pdf. This should not happen.
Its related to these issues:

https://github.com/pdfminer/pdfminer.six/issues/423
https://github.com/pdfminer/pdfminer.six/issues/277

(I prefer to keep them all open because we need to make sure the issue is fixed for each of the input pdf's)

Thanks @pietermarsman
Can you give me a pointer where can I monkey-patch the library to make it work ? (just a work-around is fine for me)

not suitable solution:
at pdfminer/encodingdb.py, judge the type of name
def name2unicode(name):
    """Converts Adobe glyph names to Unicode numbers.

    In contrast to the specification, this raises a KeyError instead of return
    an empty string when the key is unknown.
    This way the caller must explicitly define what to do
    when there is not a match.

    Reference:
    https://github.com/adobe-type-tools/agl-specification#2-the-mapping

    :returns unicode character if name resembles something,
    otherwise a KeyError
    """
    if isinstance(name, str):
        name = name
    else:
        name = name.decode('utf-8')
    name = name.split('.')[0]
    components = name.split('_')


A question about Nerf-H

Hello Dear Author, I have a few questions to ask about nerf-h.

may I ask why input_transient is not included in render_kwargs_train and render_kwargs_test, so how are different input_transient entered in different processes?
is input_t a yI? Why is input_t not used in the calculation of static radiance and static density, when it should be used according to the paper?
3, the paper wrote "A base network Hb that provides a density estimation σb and a hidden state z for a coarse estimation" May I ask in the code where can I find how to get σb and how to use it? Where can I find in the code how to get σb and how to use it?
Why do you use both fine and coarse models?

Why do you need to run the following code when running nerf, but not for DFnet, and not when generating random new view in DFnet? By the way how did pose_scale and pose_scale2 get there, did they come with the dataset?
if rescale_coord:
sc=train_set.pose_scale # manual tuned factor, align with colmap scale
all_poses[:,:3,3] *= sc
    ### quite ugly ###
    # move center of camera pose
    if train_set.move_all_cam_vec != [0.,0.,0.]:
        all_poses[:, :3, 3] += train_set.move_all_cam_vec

    if train_set.pose_scale2 != 1.0:
        all_poses[:,:3,3] *= train_set.pose_scale2

Hi, they did not come with the dataset. I manually tuned this parameter so that scenes are centered. The APR/DFNet has to be the same scale as the original scene scale. However, the original NeRF paper requires every camera ray to be bounded within [-pi, pi] due to its position encoding. Therefore, I re-adjusted the pose (pose_scale2) when rendering with Nerf.


[BugFix] optional map key for parquet (backport #28296) (branch-3.2)

This is a backport of pull request https://github.com/StarRocks/starrocks/pull/28296 to branch-3.2.

[FE Incremental Coverage Report]
:heart_eyes: pass : 0 / 0 (0%)

[BE Incremental Coverage Report]
:disappointed: fail : 0 / 3 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
src/exec/parquet_reader.cpp
0
3
00.00%
[92, 93, 94]


Issues when extracting with OSX Archive

When extracting zip files generated with yazl 2.4.0 using the Archive app, a filename.zip.cpgz is generated instead of the contents. Zipfiles generated with 2.3.1 work as expected.
I'm using yazl through gulp-zip so it might not be an issue with yazl itself.

+1

+1
If you rename the file into .rar it works..

sorry about this guys. i lost my mac test machine recently, and i didn't suspect that changing the Version Needed To Extract would break anything so i published without testing that on Mac. if one if you would be willing to try out some test case zipfiles i upload in a few minutes, that would be most appreciated...

Could someone on Mac please try extracting these four zipfiles:
http://wolfesoftware.com/tests.zip
(the zip contains 4 zips, which each contain a single empty file.)
Please tell me which zip files extract, if any, and which cause the .cpgz behavior. This will determine if the Version Made By and Version Needed To Extract are the culprits. I suspect only the Version Needed To Extract will be the problem.

1 and 2 both worked
3 and 4 did not

👍

thanks @mkalish for your help.
yazl version 2.4.1 is published and should fix this issue.


Add license

since we have shared our repository with the raines fellows (and I assume we're keeping this repo public) I think it would be a good idea to add a software license

#82


Human pose estimation.

As described in original paper there is some way to predict human pose keypoints. Can this version predict them?

I want to know too!


instructions for getting it to run on raspberry 2

Has anyone gotten this to work on the rasberrypi2?
I fail to get the nam install command to work. with the apt-get supplied node and npm
anyone has it running successfully?

Please provide more information: node version, npm version, stack trace.

Hi, I have it running on RPi2 but I am using Gentoo Linux. No issues for the "running" part. (except for #25)
node is 0.12.7

steffen@automator ~ $ node -v
v4.2.1
steffen@automator ~ $ npm -v
2.14.7

steffen@automator ~/OpenHAB-HomeKit-Bridge $ npm install
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade to<EMAIL_ADDRESS>
><EMAIL_ADDRESS>install /home/steffen/OpenHAB-HomeKit-Bridge/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
 ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.1.7-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/steffen/OpenHAB-HomeKit-Bridge/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

><EMAIL_ADDRESS>install /home/steffen/OpenHAB-HomeKit-Bridge/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR!  System Linux 4.1.7-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/steffen/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/node_modules/curve25519
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

><EMAIL_ADDRESS>install /home/steffen/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum
> node-gyp configure build

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR!  System Linux 4.1.7-v7+
command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/steffen/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/node_modules/ed25519
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

><EMAIL_ADDRESS>install /home/steffen/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/node_modules/mdns
> node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.1.7-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/steffen/OpenHAB-HomeKit-Bridge/node_modules/hap-nodejs/node_modules/mdns
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 4.1.7-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the curve25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls curve25519
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/steffen/OpenHAB-HomeKit-Bridge/npm-debug.log

@snizzleorg
apt-get node version will not work.
You need to install 0.12.x
add node official apt sources to /etc/apt/sources.list.d/nodesource.list
deb https://deb.nodesource.com/node_0.12 wily main
deb-src https://deb.nodesource.com/node_0.12 wily main

Do not forget to change wily to your distribution.

thats what I did now . maybe it helps others:
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
echo 'deb https://deb.nodesource.com/node_0.12 jessie main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_0.12 jessie main' >> /etc/apt/sources.list.d/nodesource.list

sudo apt-get update
sudo apt-get install nodejs

git clone
cd
npm cache clean
nam install

strange thing is that in the error messages it shows:
node-gyp -v v3.0.3

while when I run it:
node-gyp -v v3.2.0

as a side note I got it running under ubuntu trusty on x64 without any problem. however The idea is of course to have it on the raspberry pi....

my miskatek, forgot to specify the name. it runs on ubuntu, but still no luck on the raspy

Did you found the problem. I encountered the same on my raps

@markus7017 I finally used the docker image.

can somebody elaborate a step list to get it working on the pi?
I have a raspbian jessie

I've got a long way, but it still dies at runtime - If you have a pi2, with an armv7, you can use the node builds from nodesource, but if you have a earlier pi that's armv6, it's a little more tricky, but there are various precompiled builds of node around - I grabbed one from:
wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv6l.tar.gz
I installed all the various dependencies, but I get:
raspberrypi:ken 306> npm start -- --name "myOpenHAB-Bridge" --server <IP_ADDRESS>:8080 --sitemap demo

<EMAIL_ADDRESS>start /home/ken/openhab/OpenHAB-HomeKit-Bridge-master
node index.js start "--name" "myOpenHAB-Bridge" "--server" "<IP_ADDRESS>:8080" "--sitemap" "demo"

/home/ken/openhab/OpenHAB-HomeKit-Bridge-master/node_modules/babel-core/node_modules/babel-traverse/lib/scope/index.js:59
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key i
..
npm ERR! Linux 4.1.17+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--" "--name" "myOpenHAB-Bridge" "--server" "<IP_ADDRESS>:8080" "--sitemap" "demo"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: node index.js start "--name" "myOpenHAB-Bridge" "--server" "<IP_ADDRESS>:8080" "--sitemap" "demo"
npm ERR! Exit status 1
anyone have any thoughts?  I'm a long way from a JS/node expert!

Nope - 4.1.2 doesn't help - I'll open this as a separate ticket


Remove position: false support

It just adds extra code, and could easily be done by a utility afterwards.

position: false is really useful for visualizing remark trees, incl. debugging remark and plugins (otherwise the tree gets cluttered quickly). It's not too bad to have it outside core, but still.
Have you thought about separating the extra code by other means? Perhaps by a separate AST pass after remark.parse or using a shared node constructor that would strip it?

I agree it’s handy, sometimes, but the cases where it’s used are places where a utility could also be used, (e.g., the demo, in several tests). Only downside would be the CLI, but that could implement position: false in some other way, through a flag maybe?
What do you mean by the second paragraph? Invoking a utility (unist-remove-position) in Parser#parse()?

What do you mean by the second paragraph? Invoking a utility (unist-remove-position) in Parser#parse()?

Something like that, yes. Since I don't know exactly what difficulties is this issue about, I can't say for sure.
I was under the impression that a flag for removing position info is common across parsers/compilers (esprima, acorn), but it's not the case (rework, postcss, coffeescript, livescript). And also I was using JSON.stringify to inspect nodes, I could switch to unist-util-inspect instead if position option was removed.

Only downside would be the CLI, but that could implement position: false in some other way, through a flag maybe?

Why that's the case? remark -u unist-remove-position --ast-out could do that. It would be strange if CLI supported --no-position, but API didn't. Then I would suggest to refactor the code so that this would be available in API as well.

The problem arises from a function which is nice to have, but not necessary.
The problem is pertinent because the current implementation handles both cases (nodes with and without position) inline; I definitely want to get rid of this duplicate code and just remove positions afterwards but I’m unsure whether it should be an option in core (I’d rather not) or an external utility.
I feel the JSON object is always a bit verbose, which is good for debugging but less so for displaying (thus unist-util-inspect), or a separate unist-util-inspect-json which displays only important stuff in the tree (removing positions, maybe undefined values too, etc.)?

`remark -u unist-remove-position --ast-out

That wouldn’t work as unist-remove-position is not an attacher, but then we’re getting into a whole different problem (.useTransformer? unified-plugins?) :wink:

I’m not entirely sure what to do, so for now I’m just going to depend on unist-util-remove-position in the parser for now.


Update on "recommended" users count.

Thank you very much for your detailed doc page!
But there is a small part which we think could be more clarified:
"Too many users: When there are too many designated users concurrently accessing a shared mailbox (no more than 25 is recommended), they may intermittently fail to connect to this mailbox or have inconsistencies like messages being duplicated in the outbox."
We had in on multiple occasions in the past that the Microsoft support rejected our tickets because there have been more than 25 users with FullAccess rights on the shared mailbox that had an issue. While there is no known technical limit to how much user I can give permissions to a mailbox, the supporter have said that more then 25 delegates is not supported. Microsoft basically forced us to reduce the number of  FullAccess users before continuing with the ticket.
Your article states that no more than 25 are recommended. A change in the wording from "recommended" to "not supported" would help us greatly since then we got a hard cap on an official Microsoft doc which can be communicated to our users. "Not recommended" sounds like "not nice but still ok" which always opens up new discussions with our management.
Thank you for your time and consideration!
Best regards,
@MrSchnappauf

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

ID: 289f2440-9c44-7d93-20e3-baa9e9892cd9
Version Independent ID: abc4e209-a071-d28a-cb01-aa72bbaee7c0
Content: About shared mailboxes - Microsoft 365 admin
Content Source: microsoft-365/admin/email/about-shared-mailboxes.md
Service: microsoft-365-business
GitHub Login: @SKjerland
Microsoft Alias: sharik

@MrSchnappauf Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/12550
Once the author approves, the changes will be live.
Thanks
Sri

@msbemba
Thank you for your time!


Add "InternalAccounts"

Bank should keep a list of blacklisted account marked as "InternalAccounts".
Accounts marked as InternalAccounts cannot have their funds changed through Extrinsics. The funds can only be controlled internally via function calls.
Bank pallet should provide a trait for other pallets to "reserve" or "unreserve" accounts. The given account is then added to/ removed from the "internal accounts" list.
This adds a layer of safety for System accounts that are used to hold public/non-personal funds.

Governance/root should be able to control funds from internal accounts. This ticket is no longer needed


Adding some expression to  indicate controller manager runs many controllers in document explicitly

This is a Feature Request

What would you like to be added

I think adding some expressions to  indicate controller manager runs many controllers explicitly, moreover indicate the actual amount of controllers in document page https://kubernetes.io/docs/concepts/overview/components/#kube-controller-manager is useful  for beginner.
Why is this needed
When I communicated with some k8s beginners, they think controller-manager only run 4 controllers refered to the document. Actually controller manager has run nearly 40 controllers currently, and the amount will increase in the future in predict.
Comments

@FOWind Its difficult to mention all the controllers in the document as some examples of the controllers that run within the kube-controller-manager process. There are additional controllers for different aspects of the Kubernetes cluster.

/language en
Rather we can say there are more controllers that run within the kube-controller-manager. With few more examples

/triage accepted
/priority backlog
Don't add more examples. Instead, reword to make it clearer that the 4 examples listed are selected from a much larger set.

Expressions in https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/#synopsis is puzzled too

Examples of controllers that ship with Kubernetes today are the replication controller, endpoints controller, namespace controller, and serviceaccounts controller.

There I would make changes. Swap:

remove “replication controller” out, using “statefulset controller” as its replacement
remove “endpoints controller” out, using “endpointslice controller” as its replacement

/good-first-issue

I'd like to work on this

/assign

/assign

Hey @46kumarshivam
@hasanrashid has assigned this issue already. You can find another issue that you can work on.


When iptables is selected in proxy mode, the cluster deletion fails

Describe the Bug
When iptables is selected in proxy mode, the cluster deletion fails
For UI issues please also add a screenshot that shows the issue.

Versions Used
Kubeclipper:v1.2.1

https://github.com/kubeclipper/kubeclipper/pull/282


ECS Fargate volumesFrom container definition not working

Description
I have an ECS Fargate container definition that specifies volumesFrom.  This value is not passed to AWS.
Snippet of terraform code:
        coredns-zone-sync = {
          cpu       = 256
          memory    = 1024
          essential = true
          image     = var.coredns_zone_sync_image

          volumesFrom = var.container_name
....

Terraform apply:
+ image                  = "xxxxx/coredns-zone-sync:1.2.0-SNAPSHOT.1712600310047"
                  + interactive            = false
                  + linuxParameters        = {
                      + initProcessEnabled = true
                    }
                  + logConfiguration       = {
                      + logDriver     = "awsfirelens"
                      + options       = {
                          + Name           = "datadog"
                          + TLS            = "on"
                          + dd_message_key = "log"
                          + dd_service     = "coredns-zone-sync"
                          + dd_source      = "coredns"
                          + dd_tags        = "xxx"
                          + provider       = "ecs"
                        }
                      + secretOptions = [
                          + {
                              + name      = "apiKey"
                              + valueFrom = "xxxi"
                            },
                        ]
                    }
                  + memory                 = 1024
                  + memoryReservation      = 100
                  + mountPoints            = []
                  + name                   = "coredns-zone-sync"
                  + portMappings           = []
                  + privileged             = false
                  + pseudoTerminal         = false
                  + readonlyRootFilesystem = false
                  + startTimeout           = 30
                  + stopTimeout            = 120
                  + systemControls         = []
                  + user                   = "0"
                  + volumesFrom            = []
                },

AWS json
        {
            "name": "coredns-zone-sync",
            "image": "xxxxx/coredns-zone-sync:1.2.0-SNAPSHOT.1712600310047",
            "cpu": 256,
            "memory": 1024,
            "memoryReservation": 100,
            "portMappings": [],
            "essential": true,
            "environment": [
                {
                    "name": "coredns_rds_mysql_password",
                    "value": "tmCFKu-vCv2nC"
                },
                {
                    "name": "coredns_rds_mysql_username",
                    "value": "root"
                },
                {
                    "name": "coredns_rds_mysql_server",
                    "value": "coredns-us-east-1.cnw50ppegiqf.us-east-1.rds.amazonaws.com"
                }
            ],
            "mountPoints": [],
            "volumesFrom": [],

[X] ✋ I have searched the open/closed issues and my issue is not listed.

⚠ Note
Before you submit an issue, please perform the following first:

Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Module version 5.11.0:

Terraform version:
Terraform v1.7.5
on linux_amd64

Provider version(s):
Terraform v1.7.5
on linux_amd64

Reproduction Code [Required]

See snippet above
Expected behavior
I expect the volumesFrom to appear on the task definition in AWS
Actual behavior
The volumesFrom value doesnt get set in the container definition on aws.
Terminal Output Screenshot(s)

Additional context

we will need a reproduction in order to help troubleshoot or fix

Sure.. You'll have to supply your own subnet....
terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = ">= 4.66.1"
    }
  }
}

module "ecs_cluster" {
  source  = "terraform-aws-modules/ecs/aws"
  version = "5.11.0"

  cluster_name = "ecs-fargate-cluster-test"

  # Capacity provider
  fargate_capacity_providers = {
    FARGATE = {
      default_capacity_provider_strategy = {
        weight = 100
        base   = 1
      }
    }
  }

  services = {
    nginx-service = {
      cpu    = 512
      memory = 1024

      desired_count = 1

      enable_execute_command = true

      # Container definition(s)
      container_definitions = {

        nginx-1 = {
          cpu       = 256
          memory    = 512
          essential = true
          image     = "nginx:latest"

          readonly_root_filesystem = false

          memory_reservation = 100
        }

        nginx-2 = {
          cpu       = 256
          memory    = 512
          essential = true
          image     = "nginx:latest"

          volumesFrom = ["nginx-1"]

          readonly_root_filesystem = false

          memory_reservation = 100
        }

      }
      subnet_ids = ["subnet-XXXXXX"]
    }
  }
}

don't you need more details than what you are providing in your config per the API spec https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_VolumeFrom.html ?

If I go in manually to the task and add the volume like this…
[A screenshot of a computer  Description automatically generated]
The JSON now shows the proper code…
[A screenshot of a computer program  Description automatically generated]
Anything I send in “volumesFrom” in the task definition is not sent.
Chris
From: Bryant Biggs @.>
Date: Tuesday, April 9, 2024 at 10:25 AM
To: terraform-aws-modules/terraform-aws-ecs @.>
Cc: Chris Edwards @.>, Author @.>
Subject: Re: [terraform-aws-modules/terraform-aws-ecs] ECS Fargate volumesFrom container definition not working (Issue #187)
don't you need more details than what you are providing in your config per the API spec https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_VolumeFrom.html ?
—
Reply to this email directly, view it on GitHubhttps://github.com/terraform-aws-modules/terraform-aws-ecs/issues/187#issuecomment-2045476186, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABUJ2ETBAKSRXJAWIBXM7P3Y4QB6HAVCNFSM6AAAAABF5ODZ6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVGQ3TMMJYGY.
You are receiving this because you authored the thread.Message ID: @.***>

why are you specifiying this
volumesFrom = ["nginx-1"]

When your screen show shows it should look like this
volumesFrom = [{
  sourceContainer = "nginx-1"
  readOnly = false
}]

I tried both and neither worked, i was just guessing at this point.

I added the code exactly like you stated above and this was the terraform apply output and volumesFrom = []
+ resource "aws_ecs_task_definition" "this" {
      + arn                      = (known after apply)
      + arn_without_revision     = (known after apply)
      + container_definitions    = jsonencode(
            [
              + {
                  + cpu                    = 256
                  + environment            = []
                  + essential              = true
                  + image                  = "nginx:latest"
                  + interactive            = false
                  + linuxParameters        = {
                      + initProcessEnabled = true
                    }
                  + logConfiguration       = {
                      + logDriver = "awslogs"
                      + options   = {
                          + awslogs-group         = "/aws/ecs/nginx-service/nginx-1"
                          + awslogs-region        = "us-east-1"
                          + awslogs-stream-prefix = "ecs"
                        }
                    }
                  + memory                 = 512
                  + memoryReservation      = 100
                  + mountPoints            = []
                  + name                   = "nginx-1"
                  + portMappings           = []
                  + privileged             = false
                  + pseudoTerminal         = false
                  + readonlyRootFilesystem = false
                  + startTimeout           = 30
                  + stopTimeout            = 120
                  + systemControls         = []
                  + user                   = "0"
                  + volumesFrom            = []
                },
              + {
                  + cpu                    = 256
                  + environment            = []
                  + essential              = true
                  + image                  = "nginx:latest"
                  + interactive            = false
                  + linuxParameters        = {
                      + initProcessEnabled = true
                    }
                  + logConfiguration       = {
                      + logDriver = "awslogs"
                      + options   = {
                          + awslogs-group         = "/aws/ecs/nginx-service/nginx-2"
                          + awslogs-region        = "us-east-1"
                          + awslogs-stream-prefix = "ecs"
                        }
                    }
                  + memory                 = 512
                  + memoryReservation      = 100
                  + mountPoints            = []
                  + name                   = "nginx-2"
                  + portMappings           = []
                  + privileged             = false
                  + pseudoTerminal         = false
                  + readonlyRootFilesystem = false
                  + startTimeout           = 30
                  + stopTimeout            = 120
                  + systemControls         = []
                  + user                   = "0"
                  + volumesFrom            = []
                },
            ]
        )

this is the correct syntax for your example:
volumes_from = [{
  sourceContainer = "nginx-1"
  readOnly = false
}]

I swear I read the documentation here.  I've spent two days on this.  Your my hero today.  Im sorry to have wasted your time.
Thanks,
Chris

you're not wasting anyones time 😅 - which is why I added it to the examples. Its not great, but its something. This is an unfortunate side effect of not having the container definition fully in Terraform https://github.com/hashicorp/terraform-provider-aws/issues/17988
The container definition is just a json blob sent to ECS, and thats why you see the came casing. But Terraform uses the snake case form, and without the container definition fully defined in Terraform natively, we have that weird edge case where the two casings meet and its a confusing pain point for a lot of folks unfortunately

Keep up the excellent work! :)
I'll remember the snake case form from now on.

This issue has been resolved in version 5.11.1 :tada:


PC-390: Copy change on the supplier page for park homes

Copy added in supplier.html with corresponding Welsh text taken from the first batch of Welsh translations (manually tested):

keep in draft until release over


Add sign up links to the various trainings

In topics/trainings.qmd, we provide several interesting trainings. If we are successful, we excite people to participate in these. Yet, we do not provide a good way to sign up.
It would be great to add registration links so people can directly act on their excitement. This issue tracks the work on this.

I added registration links where relevant, and links to other information pages as well. I also renamed 'URL' to either 'More information', 'Registration form' or 'Training materials'. So this work has been completed.
Another question we had is whether we could add pictures to this page. Some of the trainings have a nice image, which would make the trainings much more recognizable. Is there a way in which we could add a picture next to the text describing a training; is there a structure for that that we could use?

We can definitely add pictures, in general. We can visually put them next to it using something like this:

::: {.grid}

::: {.g-col-4}
This column takes 1/3 of the page
:::

::: {.g-col-8}
This column takes 2/3 of the page
:::

:::

But that will require some fine-tuning and is not immediately obvious. How about adding the images first? 😊


Missing commands in tutorial

Page says "Return to the terminal and run the following command to pull the commit containing the new file." But doesn't provide the commands.

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

ID: a1b3f061-f523-e60d-9633-92841373318e
Version Independent ID: 87f53c02-bfa8-8d07-b166-5cbc4d5775a1
Content: Tutorial: Deploy Nuxt sites with universal rendering on Azure Static Web Apps
Content Source: articles/static-web-apps/deploy-nuxtjs.md
Service: static-web-apps
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@crankin91
Thanks for your feedback! We will investigate and update as appropriate.


Spherical noise out of range

Hello! Thank you for great library!
I'v noticed that spherical noise sometimes goes out of range.
Run this code, and you will see some values out of range -1;1
var noise = new FastSimplexNoise();
var size = 20;

for (var y = 0; y < size; y++) {
    for (var x = 0; x < size; x++) {
        var value = noise.spherical2D(size, x, y);
        if (value < -1 || value > 1) {
            console.log(value);
        }
    }
}

Well that's not great!
Unfortunately, I'm not maintaining fast-simplex-noise-js anymore. I've instead moved over to work on open-simplex-noise-js and fractal-noise-js, which essentially split up the functionality of this library, and improve upon it a number of ways.
Having said that, I'll gladly accept pull requests here for a fix. I would just rather concentrate on the more recent libraries.

Thanks for answer! I will switch to these libraries and check if they have same bug :)

Just checked new libraries, and looks that there is no bug
var size = 200;
var noise = new OpenSimplexNoise(Date.now());
var field = FractalNoise.makeSphereSurface(size, (x, y, z) => noise.noise3D(x, y, z));

for (var y = 0; y < size; y++) {
    for (var x = 0; x < size; x++) {
        var value = field[x][y];
        if (value < -1 || value > 1) {
            console.log(value);
        }
    }
}

All values in range. Thanx!


Autocomplete component

A first version of autocomplete

@Qathom I thinking, in autocomplete we can create a simple method to use autocomplete local like that...
<input type="search"  />

What you think?

I think it is better to use another attribute like this:
<input type="search" autocomplete="true">
```


Travis Trigger step

I cancelled the builds to avoid wasting resources. I tested the trigger works which is all that's needed


TI process hot promotion

Hi Marius,
Do we have a sample code to hot promote a TI process, that is: we provide the full path to a *.pro file and promote it as a TI process to the TM1 server ? Assuming no syntax errors in the PRO file. This would be useful since it would allow us to not bring down the TM1 server. I see different process samples but I am not sure we have a sample for this requirement.
Thanks !
Wim

Hi @wimgielis,
TM1py doesn't provide a function to build a TM1py.Process from a .pro file. If you have the process available as a JSON file somewhere, you can use the Process.from_json() function. You can read more about it here:
https://github.com/cubewise-code/tm1py/issues/351
You may want to look into Pulse for TM1. Pulse can deploy .pro files to TM1 live.

I'm looking to create solutions that use TI and/or tm1py. I am not reaching out to other tools like Pulse for example. The idea is that I need to quickly deploy these processes at our customers, without bouncing the server. I will investigate my options. If anyone already scripted this in Python, please leave a message. Thanks for your feedback.

So far nobody dared to write a function that turns a .pro file into a TM1py Process object (which can then be sent to TM1).
If you are keen, you could add a from_pro function to the Process class in TM1py. If you don't feel comfortable you could just open an issue/feature-request in the TM1py project and request this feature. Perhaps you are not the only one that would appreciate that feature.
https://github.com/cubewise-code/tm1py/issues

Thanks. Well, my background is Excel and VBA, then I added Turbo Integrator and SQL, AutoHotKey. Only recently a bit of Python. I am now starting to use tm1py which wasn't that easy, so adding advanced Python code will not be for now. What I did, however, was creating TI processes with the old TM1 API from VBA. The reason is that I have an Excel interface to generate data-integration processes (say, copy from 1 cube to another and making selections/zeroout's, ...) and VBA and the old API translate the input into a process with hot promotion.


Run pipeline on set of ~100 scans and compare with old code versions

GUI configurable tag that is appended to ouptut directory?
Append comnmit SHA of OAI to output dir?

Addressed with CLI approach as GUI does not support multiple partitions well. #34


feat: Semantic temporal filter evaluation 🎁

Description
Current situation
The temporal extent of the loaded data is determined exclusively via the context parameter time that needs to be passed to the QueryProcessor. If the data is further subset temporally within a recipe, all data would first be loaded in order to subsequently filter it temporally.
New feature
The execution of the QueryProcessor via recipe.execute() has an optional preceding FilterProcessor which is switched on by default (filter_check=True). The FilterProcessor evaluates the recipe for possible temporal filter operations in order to analyse which data actually needs to be loaded for the result calculation. The FilterProcessor uses a semantic evaluation of the recipe to filter the metadata in advance to the extent necessary in terms of time. The FilterProcessor evaluates the entire recipe for temporal filter operations and keeps track of the data layers that are affected by these filter operations.
-> For further information please find the corresponding descriptions in the demo/processor.ipnyb.
Type of change
Select one or more relevant options:

[ ] Bug fix (change which fixes a bug reported in a specific issue)
[x] New feature (change which adds a feature requested in a specific issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation update (improved documentation for existing functionality in the package)
[ ] Repository update (change related to non-package files or structures in the GitHub repository)

Tbd

[ ] Check if FilterProcessor works correctly for ODCCube in case of static (=timeless) layers: It's anticipated that the temporal filter processing itself shouldn't be a problem - after all: unless filter_time() is explicitly called on a static layer, nothing will be filtered by the FilterProcessor. However the retrieval of metadata via .retrieve_metadata() as a necessary prerequisite for FilterProcessor may cause problems in case of static layers. Since the available ODC testcube environment on the workstation didn't provide any sgtatic layers, this hasn't be investigated closer so far.

Checklist:

[x] I have read and understood the contributor guidelines of this project
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] I ran all demo notebooks locally and there where no errors

I recommend to squash-merge this PR, since the individual commits are not particularly meaningful

Regarding testing the new feature:

There is a notebook called filter_tests.ipynb assessing the general functionality of the FilterProcessor (by running a set of recipes and evaluating the filtered timestamps against the correct result, which has been manually declared for each recipe). I suggest to keep this notebook as a support material during the merge.
Further tests including the actual metadata retrieval from an actual data cube (STACCube or ODCCube) have been carried out. Since the reproducibility of these tests requires a setup beyond what is provided in the semantique package, they are not included as part of the PR. However, if someone wants to take a look at the ODCCube testing on the workstation env, the following does at least contain the relevant notebook and env files: ODC_tests.zip


Force user logout on frontend when session expires

Summary
If a user's session expires and the user clicks on any button that makes an ajax call, what they will see is this

And the 401 error response is
{"message":"Unauthenticated."}

Describe the solution you'd like
I believe I nice solution for this would be an automatic logout done by frontend.

@antonioribeiro it needs to be improved, but we do have a session timeout mechanism in place. If you try saving while your session expired, a notification should show up offering you to login again in a different tab to be able to save changes again. https://github.com/area17/twill/blob/a5b3ffc20ab7826bff6825f28982444e7272537d/frontend/js/utils/errors.js#L18.

I remember seeing it, @ifox! Thanks!
I just sent a PR to improve it a bit. I'm not really a JavaScript developer, so feel free to close it! 😆

Thanks @antonioribeiro, your changes make a lot of sense to me!


Update makefile help generation

What
Rather than the old way of just pulling out the targets, categorise and sort the targets into categories and then alphabetically sort the targets within these groups. This allows targets to be identified and found easier.
This script isn't intended to be run manually - it is the default target in the Makefile, so is only run if running make with no  arguments, or make help
How to review
Run make help and ensure the output is sensible

🚨⚠ Please do not merge this pull request via the GitHub UI ⚠🚨

(tagged some random people for review, no real demand that you do it - don't worry!)

Would you be able to document usage of the script and describe when one should be using it?

Would you be able to document usage of the script and describe when one should be using it?

Hopefully that's more better! 💎

This is really just a nice-to-have, and not really something people should spend time reviewing!


One theme for multiple stores on different URLs (documentation)

Is your feature request related to a problem? Please describe.
Our client is going to have multiple stores on Shopify, currently, they have one, which they plan to clone. They will use only 1 theme for all these clones of the current one (different markets, different companies).
Describe the solution you'd like
Is there any way of using Theme Kit and GIT while having one theme that you have to push and deploy to multiple store URLs and their environments? Can you give any advice? Is it possible? Thank you.

Use multiple environments, So you can have multiple configs and then run theme deploy --env=store-1 --env=store-2

Thank you @tanema. I hoped this would be possible. Brilliant.


API v2.2 is not compatible with v2.1

Some of the endpoints have been updated to include VM results. Not sure if these changes will affect clients, especially exchanges.

Hm. We can filter transactions not matching types. Are you suggesting we also clear new fields like block.gasused?

Introducing VM could be a good opportunity to bump API to v3… That could also allow for a change to make a more clear distinction which endpoints are tied to node's wallet/private keys and which are not (useful for open API gateways like https://api.semux.online and, in general, to Semux API integrators).

After some investigation, I think we should probably keep the existing endpoints untouched. I'd also propose to add new endpoints to support VM functionalities:

/transaction/call for CALL transactions
/transaction/create for CREATE transactions
/receipt for retrieving transaction receipts

These changes are non-intrusive, so we can either continue with 2.2 or jump to 3.0

I think those endpoints exist already...
We may want to move call local into it's own call so API gateways can more easily support local calls

Think this can be closed


Getting Error while iterating iterator. Report a bug!!!

When running the following code:
async def connectToTwitch(channelName, oAuthKey, nickName):
    try:
        nickname = nickName
        token = oAuthKey
        channel = channelName
        client = Client()
        await client.login_oauth(token, nickname)
    except Exception as e:
        return str(e)

I get:

This piece of code is run in game using the following:
_channelName = twitchBot_chat_channelName;
_oAuthKey = twitchBot_chat_oAuth;
_nickName = twitchBot_chat_nickName;
["CCB.connectToTwitch", [_channelName, _oAuthKey, _nickName]] call py3_fnc_callExtension;

The client object comes from pytmi

At first glance, it looks like you're trying to use async functions in Pythia, which it doesn't support.
There is a hack where you create an async function to get data from Arma in a pseudo-asynchronous way, but that's just a Pythia hack and it has nothing to do with real python asyncio.
For now, unless some kind of asyncio support is added to Pythia itself, you would probably have to do asyncio.run ()in a separate Thread and then communicate with that thread using regular functions.
I guess the "report a bug" message comes from the fact that I didn't predict someone would actually use real asyncio in Pythia and that coroutines are iterable (so it tries to "iterate the iterator")

Hi!
Just to let you know: I added a check that returns an error when you try to execute coroutines, because that's not supported by Pythia. This will be released along with Pythia 1.0, roughly within a month.
Sadly, this does not solve your issue, just informs that what you're trying to do isn't doable out of the box.
As pointed out earlier, you could make it work, but that would require writing your own code for spinning an asyncio loop in a separate thread.
See this for help: https://stackoverflow.com/questions/32059732/send-asyncio-tasks-to-loop-running-in-other-thread
Be aware, though, that you'd then have to create separate functions for querying the loop to see if your data that you wanted to read is available already.
You'd also have to have a function that would stop the loop when you're done with everything, at the end of the mission, for example.
I may or may not manage to add examples for doing that by the time 1.0 is  released.
On another note, I have taken a look at your avatar and, funnily enough, I am able to pinpoint the exact location where that photo was taken! :D

Hi,
I did not expect anymore responses after 6 months, I have long abandoned
this project since.
I'm expecting you're from the place the photo was taken, otherwise that's a
very weird way to end a message
Op wo 10 aug. 2022 om 00:27 schreef Lukasz Taczuk @.***

:

Hi!
Just to let you know: I added a check that returns an error when you try
to execute coroutines, because that's not supported by Pythia. This will be
released along with Pythia 1.0, roughly within a month.
Sadly, this does not solve your issue, just informs that what you're
trying to do isn't doable out of the box.
As pointed out earlier, you could make it work, but that would require
writing your own code for spinning an asyncio loop in a separate thread.
See this for help:
https://stackoverflow.com/questions/32059732/send-asyncio-tasks-to-loop-running-in-other-thread
Be aware, though, that you'd then have to create separate functions for
querying the loop to see if your data that you wanted to read is available
already.
You'd also have to have a function that would stop the loop when you're
done with everything, at the end of the mission, for example.
I may or may not manage to add examples for doing that by the time 1.0 is
released.
On another note, I have taken a look at your avatar and, funnily enough, I
am able to pinpoint the exact location where that photo was taken! :D
—
Reply to this email directly, view it on GitHub
https://github.com/overfl0/Pythia/issues/67#issuecomment-1209953925, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AKCDFZ6OWYWODVICGTGHSCDVYLLNZANCNFSM5S46QPTQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Met vriendelijke groet,
Jesse van Gool


[Linux] How do you install on ubuntu?

How do you install on ubuntu?

Please execute in a Terminal
dpkg -i Kaku-1.9.0-you-architecture-here.deb :)

To do: Write instructions into wiki or readme.

where do I get the deb file?

@KoreMike there

Sorry thanks @funilrys don't know how I missed that before!

No problem @KoreMike :smile_cat:

thanks!


MSDN_MACROS not defined in apply_callee_type?

see https://github.com/fireeye/flare-ida/blob/4fdc6aeaf997576410afdd3f06e6020898e2a09d/python/flare/apply_callee_type.py#L218

I get the same when I try pasting a function prototype into the Enter Type Declaration edit box and click OK.
Traceback (most recent call last):
  File "path\to\ida\python\flare\apply_callee_type.py", line 249, in run
    decl = self.convertUserType(str(dlg.getUserText()))
  File "path\to\ida\python\flare\apply_callee_type.py", line 218, in convertUserType
    for sub in MSDN_MACROS:
NameError: global name 'MSDN_MACROS' is not defined

Same here.  👍

Thanks for the report. Now fixed in master branch. Error from an old code cleanup patch.


Add survey id to casegroups

Motivation and Context

Adds survey id to case group. Allows cases to be retrieved by survey.
What has changed

Add survey id to case group and add endpoint to get cases by survey.

How to test?

Acceptance tests. And hitting the new endpoint with postman.

Links

Trello: https://trello.com/c/WNaIX2HO

Casesvc-api: https://github.com/ONSdigital/rm-casesvc-api/pull/31

Im happy with these changes testing revealed no bugs to me. I won't put a tick on it though as i'm not fully confident in my Java abilities just yet

Codecov Report

Merging #92 into master will increase coverage by 0.19%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #92      +/-   ##
==========================================
+ Coverage   90.99%   91.18%   +0.19%
==========================================
  Files          33       33
  Lines         877      896      +19
  Branches       77       78       +1
==========================================
+ Hits          798      817      +19
  Misses         60       60
  Partials       19       19

Impacted Files
Coverage Δ

...se/casesvc/client/CollectionExerciseSvcClient.java
100% <ø> (ø)
:arrow_up:

...p/response/casesvc/endpoint/CaseGroupEndpoint.java
67.64% <ø> (ø)
:arrow_up:

...s/ctp/response/casesvc/domain/model/CaseGroup.java
91.66% <100%> (+0.75%)
:arrow_up:

.../ons/ctp/response/casesvc/service/CaseService.java
92.54% <100%> (+0.16%)
:arrow_up:

...ctp/response/casesvc/service/CaseGroupService.java
95.91% <100%> (+0.17%)
:arrow_up:

...ns/ctp/response/casesvc/endpoint/CaseEndpoint.java
99.3% <100%> (+0.05%)
: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 04d9dc2...b4e9563. Read the comment docs.


HDDS-4322. Add integration tests for Decommission and resolve issues detected by the tests.

What changes were proposed in this pull request?
Add a series of integration tests to prove decommission works, and that decommission can survive a restart of SCM.
As part of adding these tests, some issues were discover that were fixed in the process of debugging the tests.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4322
How was this patch tested?
New integration tests added

Thanks for taking a look @elek

Can you please share more details. It would help me to understand the changes.

I added some comments inline with each change that explains the reasoning behind them. There were two main problems:

The state reported by the DN was not reflected in DatanodeDetails seen in SCM. This was due to missing fields in the builder object and resulted in decommission not being able to survive a SCM restart.

After an SCM restart when a node reported as DECOMMISSIONING or ENTERING_MAINTENANCE, it failed to make any further progress and was stuck in that state. It needed to be put back into the DatanodeAdminMonitor to finish out the process.

There was a small race condition, which may not have caused any problems but was better to fix, in the node status getting set and then updated on registration.

Each of the problems was discovered via one of the new tests and then corrected to get the test to pass.


Add SliverFillRemaining with option to keep space for another follow up widget

Right now, SliverFillRemaining fills all remaining space. It would be nice to have a Sliver widget that fills the space minus some configurable bottom space so that you can add a SliverList below it that is always partially visible and can be scrolled up.
Sent with GitHawk

Hello @derolf, you can use SliverToBoxAdapter(child: ,) instead.


fixed bug in local inference.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Write macro for serde fallbacks

This adds a macro which makes it easy to implement a custom deserializer
for a specific field in the config.
Applying this deserializer and the default value it provides will always
make sure that this value has a valid fallback value.
This also makes a small change to the way the mouse._*click fields are
deserialized, because the threshold did not have a default value, it
leads to a complete config fallback in the current master.
However by providing 300 as the default, it is possible to fall back to
this value and make sure that the rest of the config is not ignored.
This is a proposal which should make custom deserializers a little more
straight-forward in the future, this fixes #1166.

Merge conflict will be fixed after review. Doesn't make much sense to keep rebasing again and again.

I'm gonna close this issue because it seems more like a short-term hack rather than a long-term solution. I'm gonna try playing around with something which should make it straight-forward to have both fallback values and deprecation warnings without convoluting the complete config.rs with code.


[docusaurus] Fix edit url

Description
Checklist

[x] Do all Lints pass?
[x] Have you ran pnpm spellcheck?
[x] Have you ran pnpm fmt?
[x] Have you ran pnpm lint?

Coincidently I was just going to push a PR up for this today myself!
However, my planned url was: https://github.com/aptos-labs/developer-docs/edit/main/docs/ which I believe is correct, no?

Unsure, I'm just following the original URL.  Would have to test it out


Adds a test reproducing the bug when doing a 307 redirect on stellar …

…testnet friendbot.

Apologies. I was very careful to make sure this PR wasn't attempting to merge upstream. Looks like my care was not enough.  Closing.


ThrottleLimit not respected by ForEach-Object $SCRIPTBLOCK -Parallel -InputObject $INPUTOBJECT -ThrottleLimit 8 -AsJob

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
I am experiencing a problem with ForEach-Object Parallel where -ThrottleLimit is not respected as documented at:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7.2
Utilizng the below psuedo code where the number of objects in $results_r is 1000, the number of Running jobs is 1000 (i.e. not possible?!):
$scriptpath_r='c:\scripts'
$datadict_r=New-Object 'System.Collections.Generic.Dictionary[String,object]'
$null=$datadict_r.add('$filehashes_r',$filehashes_r)
$null=$datadict_r.add('$scriptpath_r',$scriptpath_r)
$process_r=[scriptblock]::create((get-content "$scriptpath_r\gp-process.ps1" -raw))
for($i_r=0;$i_r -lt $results_r.count;$i_r++){
    $datadict_r['$i_r']=$i_r
    $null=foreach-object -parallel $process_r -inputobject $datadict_r -throttlelimit 8 -AsJob
}
do{
    $null=start-sleep -s 2
    $gj_r=get-job
    $gjc_r=($gj_r | where-object {$_.State -eq 'Running'}).count
    $null=$gj_r | where-object {$_.State -eq 'Completed' -or $_.State -eq 'Failed'} | remove-job
    write-host $gjc_r
}while($gjc_r -gt 0)

As a clunky workaround, I put the following inside the for loop:
do{
    $null=start-sleep -m 500
}while((get-job -State Running).count -gt 8)

Expected behavior
What is expected is that setting -ThrottleLimit 8 causes the number of Running jobs to never exceed 8.

Actual behavior
What happens instead is that the number of Running jobs is equal to the maximum number of iterations of the for loop.

Error details
N/A

Environment data
$psversiontable

Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

I believe this is a misunderstood question.
-ThrottleLimit 8 refers to the number of pipes processed concurrently by the foreach-object command. instead of the maximum number of jobs to run simultaneously.

Welcome to try the powershell batch operation and maintenance framework I developed
kasini3000
win,linux devops automation batch script framework.(It is similar to Puppet，Ansible，pipeline)
Open source, free, cross-platform
English manual: https://gitee.com/chuanjiao10/kasini3000/blob/master/docs/kasini3000_manual.xlsx
kasini3000_agent_linux Shell script,one click install powershell on linux,modify sshd_config for PsRemote.
2 Multi-process batch execution. default timeout:30min max:10day max-process:99,change from create user_config.ps1
k-commit.ps1 -ip <IP_ADDRESS> -scriptblock {command_on_node} -allparameter $a,$b
k-commit.ps1 -ip <IP_ADDRESS> -file 'd:\script_file_on_master.ps1' -allparameter $a,$b
./kt.ps1 #table
./kl.ps1 #list
3 Multi-thread batch execution. default timeout:10min max:1hour max-threaded:50per process,no max limit.change from create user_config.ps1 #need powershell module poshrsjob
k-commit-rs.ps1 -ip <IP_ADDRESS> -scriptblock {command_on_node} -allparameter $a,$b
k-commit-rs.ps1 -ip <IP_ADDRESS> -file 'd:\script_file_on_master.ps1' -allparameter $a,$b
./kt-rs.ps1 #table
./kl-rs.ps1 #list
./kt-rs -ip '<IP_ADDRESS>' #select ip from sqlite
./kt-rs -remark 'xxx'
./kt-rs -begin_time '2021-11-11 15:05:01'
./kt-rs -end_time '2021-11-11 16:05:01'

@kasini3000, thanks for the comment. Another datapoint that also leads to my original expectation:
https://devblogs.microsoft.com/powershell/powershell-foreach-object-parallel-feature/
"The -ThrottleLimit parameter limits the number of script blocks running in parallel at a given time..."
"The primary addition is the ability to limit the number of concurrent scripts running at a given time with the -ThrottleLimit parameter. Throttling is accomplished by a PSTaskPool class that holds running tasks (running scripts), and has a settable size limit which is set to the throttle limit value. An Add method allows tasks to be added to the pool, but if it is full then the method blocks until a new slot becomes available."
Given this, if one sets the ThrottleLimit, one naturally expects to see no more than that number of jobs in the Running state as per get-job.
Regarding your suggested workarounds, the PWSH workaround provided in my original comment is highly preferred over the two suggestions you provided as:

It's OS agnostic.
Stalling for 5 seconds to run each iteration leads to longer then necessary script exection. Even doing 1 second stalling as I originally provided ended up being to high in comparison to 500 ms. Going from 500 ms to 250 ms does provide modest execution time gains, but at high CPU utilization in comparison to 500ms+.

Thanks anyways!

"The -ThrottleLimit parameter limits the number of script blocks running in parallel at a given time..."

I think you have confused script blocks and jobs.  This
 $null=foreach-object -parallel $process_r -inputobject $datadict_r -throttlelimit 8

does not run process_r   for each object in $datadict_r  with up to 8 copies running concurrently.
It runs ONE copy of process_r which receives the whole of  $datadict_r
Specifying -AsJob sends it off to run as a job.
Something like this
1..32 | ForEach-Object -Parallel { sleep 10 ; "$_  " + [datetime]::Now.ToString() }  -AsJob -ThrottleLimit 8

creates a job with 32 script blocks to run, run in parallel, 8 at a time.
foreach ($i in 1..10) {
1..32 | ForEach-Object -Parallel { sleep 10 ; "$_  " + [datetime]::Now.ToString() }  -AsJob -ThrottleLimit 8
}

Creates 10 jobs, each of which has 32 script blocks to run, run in parallel, 8 at a time.  Giving 80 concurrent script blocks/threads,
The text you quoted is misleading because it does not say "in that instance of for each parallel"  you can probably imagine it is difficult for foreach in one job to know if foreach is running in other jobs and how many threads are being used when it is.

@jhoneill, thanks for the comment. While I didn't confuse script blocks or jobs, the text quoted appears the source of confusion.
Hence, it would be helpful for PWSH users if https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/foreach-object?view=powershell-7.2 is updated to clarify it does not throttle creation of jobs or something like that.


cannot start thread

Traceback (most recent call last):
File "Y:\LightFile\comrfile.py", line 201, in
threadforcompressing = mt._start_new_thread (compressed_data = zlib.compress(str, 9) )
TypeError: a bytes-like object is required, not 'type'
try:
  fileforcompressionthread = mt._start_new_thread(str = open(file_name, 'rb').read() ("thead-1") )
  fileforcompressionthread.start()

except FileNotFoundError:
    logging.critical('This file does not exist!')
    print("This file does not exist!")
    print("error: 1")
    time.sleep(5)
    exit()
except:
    print("unable to start thread!" '\n' "Error: 5" )
    time.sleep(5)
   exit()

this is the part of the code that fails

okay after adding ' ' to the str variable it goes on to the next thread start which is here
Traceback (most recent call last):
  File "Y:\LightFile\comrfile.py", line 201, in <module>
    threadforcompressing = mt._start_new_thread ('compressed_data' == zlib.compress(str, 9) )
TypeError: a bytes-like object is required, not 'type'

compress(c) a file, or decompress(d) a file
: c
Selected to compress. Enter the input file
: Y:\bliss.jpg
Enter the path to the output folder
: Y:\
Traceback (most recent call last):
  File "Y:\LightFile\comrfile.py", line 181, in <module>
    fileforcompressionthread = mt._start_new_thread('str' == open(file_name, 'r').read() ("thread-1") )
  File "C:\Users\krzysztof\AppData\Local\Programs\Python\Python39\lib\encodings\cp1250.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 524: character maps to <undefined>

so i deleted the
except:
    print("unable to start thread!" '\n' "Error: 5" )
    time.sleep(5)
    exit()

and it gave me the thing above

okay so i added
encoding="utf8", errors="ignore"

to line 182 and the thing above happen

i gave up on multithreading


Fix "Ems Clouds" titles & breadcrumbs

Fixes #3360
@h-kataria

https://bugzilla.redhat.com/show_bug.cgi?id=1240485
The titles are fixed with this PR applied. These are the screenshots with the PR:


use RPCv5

Pacaur currently relies on the RPC interface v4. The version 5 is the current version in master and will be available online in a couple of days with the release of AUR 4.2.0.
I don't expect any breakage, but the RPCv5 will allow more advanced search such as #341. A cower patch might be an order in the near future.

Done in 89db575c496545c9643f48ff90a4aa42903ac41c.


server Call Back

Hi
How can we get the status,  when the server disconnected the stream,
for example when we are in live broadcast due to some network error the stream to server is lost in that scenario how can we identify the status of the stream,
also we need to reconnect the stream in specific interval.
we check that on on the RtmpBuilder class always shows the streaming is   true.

I did a commit for RTMP. You will be notified in onConnectionFailed callback on both RTMP and RTSP if you lose connection with server.

ya the connection failed is their, but once we start the streaming, when we stop the server or close the port, how can we get the call back status.

I don't understand the question.
Do you want know when the server is down while streaming or status of the stream when you reconnect to server?
If you start a stream and close the server you will be notified in the callback onConnectionFailed.
Maybe do you want a status code of the server response? (404, 401, 500, etc).

@Override
public void onConnectionFailedRtmp() {
runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(RtmpFromFileActivity.this, "Connection failed", Toast.LENGTH_SHORT).show();
rtmpBuilderFromFile.stopStream();
button.setText(getResources().getString(R.string.start_button));
}
});
}
but in this above function we cannot get the status while streaming when the server is down,

Ok, now should be fixed. I tested start stream and shutdown server while stream and work with my local server.

i tried the latest code but still the issue their, can u help me to clarify the issue.

Yes, I need fix it.

I was testing the firewall connection if I disable a port but that is imposible to implement.
If you do a streaming and then you close the port while stream all continue normally because you did the connection before you closed the port.
You can test it with this:

Connect to a remote server stream.
Close port in client side firewall.
Use VLC to open stream with other net without port closed.
I did it with my wifi like firewall with port closed and 3G data to get stream with VLC in other device and I can get stream.
You can test too if you go to your server and see that the server receive packets.

ok thanks for your timely response


Added customizeabllity for created_by column in history

I have added an option to create a custom header to be displayed in the history created_by segment.
This is used to allow custom headers to be in the option instead of just the description of the api-key which might not be enough for auditing.
The header is customizable and is a string, the code checks if the setting is not null and if it exists in the request.
If it exists then input it into the history, if not input the normal api-key description.
This change is only to the API.

@benshalev849 I am rejecting this PR as it does not follow the newly implemented contribution requirements outlined in the contribution guide of the project. Please refer to the README.md for a reference to the contribution guide.
Nevertheless, thank you for your efforts.

@AzorianMatt
If i merge to dev is that okay?

@benshalev849 I would rather hold a discussion on this change with other members to get a better idea of the intent here. I'm not saying it's not a good change, but I fail to understand it's universal application on first review. If the value of this change can be re-enforced by some other users, then it will be reconsidered but as of now, it appears to be a one-off change for your use-case.
Additionally, merging to dev instead of master is another issue with this PR outside of not starting a discussion about it first.
Thanks!

@AzorianMatt
Okay, created the discussion and i hope more people will see the need so it can be merged into the upstream, once i see it is discussed and approved i will create a new request to merge into the dev branch :)

I appreciate your participation on the matter @benshalev849! I'll head over to the discussion and add my notes.

@benshalev849 another important note when you re-introduce this PR, you need to make appropriate documentation updates so that others can be aware of it's existence. There's no point in me allowing a new feature if it only exists in code and no documentation.

@benshalev849 - I understand the issue You have, but the variable naming in code isn't quite spot on: "custom_header_setting". It would make a lot more sense, if the variable is named something like "changed_by_addition" or something.
Also the actual variable in request should be: "requested_by" or smth. Replacing the apikey.description with custom_header_setting removes all traces to the actual apikey being used - my recommendation would be to add data to the apikey.desc. Then we would have full usable history "Apikey.desc John Doe, special dpt".


feat-supportTicket

Functionality:

Added new Ui and features for support Ticket
Added Captcha in contact page
Fixed the Ui of privacy policy page

Risk level:

[ ] high
[X] medium
[ ] low

conflict