⚠ Bofrost.de has degraded performance

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

HTTP code: 200
Response time: 1077 ms

Resolved: Bofrost.de performance has improved in 7d57a7c.


Implement IconCard Component

Description
Implement IconCard component in the third theme. So that cards with icons and description can be displayed easily.
Reference: https://www.figma.com/file/rX1jl4pa04VD9itnzneeih/Webiu?node-id=1%3A3
Changes proposed in the pull request

Implement icon card component
Implement the story for the component
Create documentation for the component

Screenshots (In case of UI changes):

Types of changes

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] All new and existing tests have passed and it does not give any unexpected error for the same.

Steps to test

npm i
npm run storybook (story will be displayed in LearningManagementSystem/IconCard )

Resolves https://github.com/scorelab/Webiu/issues/307

@charithccmc @dinithminura can you review the PR please :)


feat: option to show cluster only resources in cluster compare

This PR...
Changes

added "Show all" option under "Cluster resources" title
improved Cluster Compare styling

Fixes

How to test it

Screenshots

Checklist

[x] tested locally
[ ] added new dependencies
[ ] updated the docs
[ ] added a test

thanks @devcatalin - looks good!
I found a couple of issues - not sure they are related - see screenshot below:

when selecting resources that exist only in the cluster and not locally Monokle enables the "deploy selected resources to cluster" option - I think it should enable the other button instead!?
the count displayed in the enabled button is for all resources - not the just the filtered/selected ones

I pushed two commits fixing the following:

styling/responsiveness issue
clearing selected matches when filters are changed
disabled/enabled state of the deploy and replace buttons

@olensmar , I have the following questions:

Should we disable changing filters when a selection is made or is it okay to clear selections?
The replace is currently enabled only when both local resource and cluster resource exist.
To enable it when only the cluster resource exist, we have to decide how we would save the resources.
Should I just create unsaved resources?
Or do we add an inputs to select a folder or a file where the resources should be saved? - in this case maybe the word "Replace" is not that great

For the second question related to "replace" action, I could do it in a separate PR when I implement this: https://github.com/kubeshop/monokle/issues/841

@olensmar @topliceanurazvan this is ready for review & merge

fixed the "select all" checkbox


Allow to filter CLI output by hidden columns

Author Name: Carlos Martín (Carlos Martín)
Original Redmine Issue: 2372, https://dev.opennebula.org/issues/2372
Original Date: 2013-10-10

For example, this command fails:
$ onevm list --filter HOST=host01 --list ID,NAME
    ID NAME
Column 'HOST' not found

Request made during the OpenNebulaConf

Original Redmine Comment
Author Name: Ruben S. Montero (@rsmontero)
Original Date: 2014-01-28T22:04:18Z

This issue would be for improving CLI filter options, it should consider issue #2684

Issue still exist on the OpenNebula 5.6.1 version

PRs to merge in master:

code: https://github.com/OpenNebula/one/pull/4748
docs: https://github.com/OpenNebula/docs/pull/1123


Mark unused entries in NativeMethods.txt as unused and offer to remove

The mirror of #232. A warning or suggestion-level diagnostic squiggle in NativeMethods.txt would be nice, if Roslyn allows that.
Maybe fading the entry as unnecessary would even work, like how unnecessary code is faded. I haven't tried it in AdditionalFiles files, but I do know how to create faded spans in .cs files: https://github.com/dotnet/roslyn/blob/2adc0bd2f54fc71342e489784babbc933dde5f86/src/Analyzers/Core/Analyzers/SimplifyInterpolation/AbstractSimplifyInterpolationDiagnosticAnalyzer.cs#L80-L85

Credit to @CameronDwyer for the idea.

This may not be as clear as one might think. Suppose my NativeMethods.txt file contains CreateFile, and although my code does not consume that method, it uses one of the enum types that are implicitly generated to support that method. Should we:

Consider CreateFile to be important and not do anything
Indicate the user can remove CreateFile because that API specifically is unused, even though removing it will generate other errors
Be super smart and encourage the user to replace the CreateFile line with n more lines for the specific APIs that actually are being used?

Then there's the case where a line is used directly, but it still isn't necessary because it comes for free by virtue of another line that also appears in the file.
I think any of these would be fairly expensive, both in terms of complexity and at runtime. We can keep the issue active for now, but just to set expectations I don't think it'll get done any time soon (if at all).

It does sound complicated. I would prefer the ability to opt in to behavior 2 (or 3).

Well some people actually prefer explicitly listing only the things they use on their NativeMethods.txt file (including enums they use if they only need specific enums and not the api functions the enum(s) are normally for) which would make it more clear what the code actually depends on.

Closing to focus on more impactful work.


MeDrives broken in ATM 8

i have an issue with the medrives program, where it won't startup because of errors.

is ther any way to fix this?

Same issue on ATM9. It looks like the method is now called listCells instead of listDrives, but it doesn't return the same data -- it returns the total available bytes per cell but not the number of used bytes.

listDrives is a not released feature which is currently available via the dev/0.8 branch

@SirEndii gotcha, i appreciate the quick response!


PersistentCollection loads wrong results after entity remove

We have two entities, A and B with a bidirectional one-to-many mapping between them (one B has many As). Entity A is the owning side of the association, the column is nullable and cascades removes.
There is one row in the B table and two rows in the A table. First A row (A1) refers to the B row and second A (A2) has the relation as NULL. In the following code, $b holds the newly-fetched B object whose A-collection is not yet initialized.
$entityManager->remove($b);
$entityManager->flush();

foreach ($b->getAs() as $a) {
    echo $a->getId();
}

I'd expect $b->getAs() either be empty or contain the previous items (A1) in this case. However, it contains the wrong item A2 because PersistentCollection uses NULL as the id value when loading the collection.
This bug can have quite bad consequences, for us it caused some data loss.

Can you provide a test case? I really didn't understand the issue from your description.

I updated the description, hopefully it is more clear now. Is it enough or would you like to have a runnable test app or some other kind of test script?

Ah, I see. Keeping the in-memory state of your entities consistent is up to you.
Doctrine ORM will (by design) not touch anything that was already loaded in memory: if you perform any operations on a removed entity and still consider it non-removed, then you will likely incur into doom.
Does the test case above also apply to master btw?

I'm not sure if I agree with you... The problem is that I get entirely different list of A instances through the removed B. They are not any kind of a leftover from a previous state but they are loaded by the PersistentCollection with a query in a wrong way.
I understand that this is a corner case but in complex applications the logic can be quite complicated and it's not nice to have this kind of bombs around punishing for mistakes. In our case I looped through the associated entities of a removed entity and ended up removing all the rows with NULL foreign key column in the related table.
I'll test this on master later.


fix nightly build issues with as_ref()

fixes #217
I spent part of the day trying to see what change to Rust introduced this issue, but came blank. ~I've replaced string.as_ref() with a clone, which fixes the issue. If clone is a problem, we could resolve this later (though I was able to fix the error in a different way which was a bit longer).~ Found a better fix of passing a &str, and annotating it as such where necessary.
cc @gwenn

We don't want to clone/allocate until we are sure that:
        if line.as_ref().is_empty()
            || (self.ignore_space
                && line
                    .as_ref()
                    .chars()
                    .next()
                    .map_or(true, char::is_whitespace))
        {
            return false;
        }
        if self.ignore_dups {
            if let Some(s) = self.entries.back() {
                if s == line.as_ref() {
                    return false;
                }
            }
        }

That's fine,, please check my latest commit

Darn, it "worked on my machine", I'll investigate the failures

Nearly there, it's currently the example that's failing. Struggling to repro as I don't have the history.txt file

@gwenn is the current solution acceptable?

I hope/guess you will consider #218 to be better.
Thanks for your help/time.

Yes, I just saw it, and I'll close this.
Will you be able to release a 4.0.1 today?

Do you mind if a 4.1.0 is released instead ?
I am not sure that we don't have introduce any regression with old stables

Do you mind if a 4.1.0 is released instead ?
I am not sure that we don't have introduce any regression with old stables

Either one, I haven't used rustyline before, so I wouldn't know what would be appropriate. I only looked at this because it was blocking a growing number of PRs.


update progress.committed_index for leader

Signed-off-by: linning<EMAIL_ADDRESS>Do few thing for https://github.com/tikv/raft-rs/pull/366 :

update committed_index for leader

PTAL @accelsao

The ci failed due to https://github.com/rust-lang/cargo/pull/8353.


Fix QPY update for Qiskit/0.45

Summary
Missed this from https://github.com/Qiskit/qiskit-ibm-provider/pull/736
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 51.505%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3440

Relevant Lines:
6679

💛  - Coveralls


fix/retrieve historic candles

Before submitting this PR, please make sure:

[x] Your code builds clean without any errors or warnings
[x] You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
During the candle feed refactoring, self.max_records was mistakenly used as the max result limit for the candle endpoint.
Part of this logic was disabled in 25f1a98c9d65958ed407e4cf75d481017ceb89d8 but this caused issues in for example the gate_io spot candles feed. Without a start_time, it will start fetching the candles one-by-one.
This change introduces a property where the max result limit must be specified and this will be used for the start_time calculation instead of self.max_records
Tests performed by the developer:
Tips for QA testing:

Note: Run the longterm bot on binance and okx. if run ok

Steps:

Clone and install PR7142
connect Okx_perpetual
create controller config that uses okx perpetual candles
set up and start v2_with_controller strategy using prev controller
run the script for a while

Actual:
after 20-30 min bot flooded with
TypeError: unsupported operand type(s) for /: 'float' and 'decimal.Decimal'
logs_okxper.log
2024-07-31 13:18:21,939 - 175862 - hummingbot.strategy_v2.runnable_base - ERROR - unsupported operand type(s) for /: 'float' and 'decimal.Decimal'
Traceback (most recent call last):
  File "/home/hummingbot/j2bekkercandles7142-2/hummingbot/strategy_v2/runnable_base.py", line 69, in control_loop
    await self.control_task()
  File "/home/hummingbot/j2bekkercandles7142-2/hummingbot/strategy_v2/controllers/controller_base.py", line 162, in control_task
    executor_actions: List[ExecutorAction] = self.determine_executor_actions()
  File "/home/hummingbot/j2bekkercandles7142-2/hummingbot/strategy_v2/controllers/directional_trading_controller_base.py", line 162, in determine_executor_actions
    actions.extend(self.create_actions_proposal())
  File "/home/hummingbot/j2bekkercandles7142-2/hummingbot/strategy_v2/controllers/directional_trading_controller_base.py", line 182, in create_actions_proposal
    amount = self.config.total_amount_quote / price / Decimal(self.config.max_executors_per_side)
TypeError: unsupported operand type(s) for /: 'float' and 'decimal.Decimal'

Same for v2_bollinger_bands using binance perpetual + binance perpetual candles (just after start)

@nikspz, that broke with d2ceb175f92d77c5afb38a88d21f8e0649862dd5 / 7fc096dfdeed8d222246230929b374a70ac794f8 from @cardosofede so that's currently also broken in the development branch.
In short, total_amount_quote was moved to a base class but also changed from a Decimal to a float type.
Not totally sure what the best approach would be to fix this, even if I would do a cast to resolve this direct problem, it can lead to problems down the road in other spots where total_amount_quote is expected to be a Decimal instead of a float.

That’s my mistake. Can you change float to decimal? Pydantic will cast it
automatically
On Wed, 31 Jul 2024 at 19:46 Jelle Bekker @.***> wrote:

@nikspz https://github.com/nikspz, that broke with d2ceb17
https://github.com/hummingbot/hummingbot/commit/d2ceb175f92d77c5afb38a88d21f8e0649862dd5
/ 7fc096d
https://github.com/hummingbot/hummingbot/commit/7fc096dfdeed8d222246230929b374a70ac794f8
from @cardosofede https://github.com/cardosofede so that's currently
also broken in the development branch.
In short, total_amount_quote was moved to a base class but also changed
from a Decimal to a float type.
Not totally sure what the best approach would be to fix this, even if I
would do a cast to resolve this direct problem, it can lead to problems
down the road in other spots where total_amount_quote is expected to be a
Decimal instead of a float.
—
Reply to this email directly, view it on GitHub
https://github.com/hummingbot/hummingbot/pull/7142#issuecomment-2260944532,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIZJOSEQKMXFKTYXD77ZECLZPEIHXAVCNFSM6AAAAABLQRJMNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRQHE2DINJTGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

That’s my mistake. Can you change float to decimal? Pydantic will cast it automatically
…
On Wed, 31 Jul 2024 at 19:46 Jelle Bekker @.> wrote: @nikspz https://github.com/nikspz, that broke with d2ceb17 <d2ceb17> / 7fc096d <7fc096d> from @cardosofede https://github.com/cardosofede so that's currently also broken in the development branch. In short, total_amount_quote was moved to a base class but also changed from a Decimal to a float type. Not totally sure what the best approach would be to fix this, even if I would do a cast to resolve this direct problem, it can lead to problems down the road in other spots where total_amount_quote is expected to be a Decimal instead of a float. — Reply to this email directly, view it on GitHub <#7142 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZJOSEQKMXFKTYXD77ZECLZPEIHXAVCNFSM6AAAAABLQRJMNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRQHE2DINJTGI . You are receiving this because you were mentioned.Message ID: @.>

It was a float in hummingbot/strategy_v2/controllers/market_making_controller_base.py but a Decimal in hummingbot/strategy_v2/controllers/directional_trading_controller_base.py. So I can change it to a Decimal in the base class but that might lead to problems in other parts of the code?

hi guys, sorry for the delay i was on vacation.
so in summary:

there is a new property called candles_max_result_per_rest_request, that's ok!
when replacing max records property by candles to fetch be careful with get_historical_candles, it may get problems here:

    async def get_historical_candles(self, config: HistoricalCandlesConfig):
        try:
            await self.initialize_exchange_data()
            all_candles = []
            current_end_time = config.end_time + self.interval_in_seconds
            current_start_time = config.start_time - self.interval_in_seconds
    --->    self.max_records = int((current_end_time - current_start_time) / self.interval_in_seconds)
            while current_end_time >= current_start_time:
                fetched_candles = await self.fetch_candles(end_time=current_end_time)
                if fetched_candles.size <= 1:
                    break
                all_candles.append(fetched_candles)
                last_timestamp = self.ensure_timestamp_in_seconds(
                    fetched_candles[0][0])  # Assuming the first column is the timestamp
                current_end_time = last_timestamp - self.interval_in_seconds
                self.check_candles_sorted_and_equidistant(all_candles)
            final_candles = np.concatenate(all_candles[::-1], axis=0) if all_candles else np.array([])
            candles_df = pd.DataFrame(final_candles, columns=self.columns)
            candles_df.drop_duplicates(subset=["timestamp"], inplace=True)
            candles_df = candles_df[
                (candles_df["timestamp"] <= config.end_time) & (candles_df["timestamp"] >= config.start_time)]
            return candles_df
        except Exception as e:
            self.logger().exception(f"Error fetching historical candles: {str(e)}")

i need to know a little bit further about the issues reported with candles leading @cardosofede to disable the start time logic, because may be adjusting that specific implementation it can solve the issue, i.e:

    def _get_rest_candles_params(self,
                                 start_time: Optional[int] = None,
                                 end_time: Optional[int] = None,
                                 limit: Optional[int] = CONSTANTS.MAX_RESULTS_PER_CANDLESTICK_REST_REQUEST) -> dict:
        params = {
            "symbol": self._ex_trading_pair,
            "interval": self.interval,
            "limit": limit
        }
        if start_time:
            params["startTime"] = start_time * 1000      ---> If this is the problem, we could force it to None
        if end_time:
            params["endTime"] = end_time * 1000
        return params

feel free to reach me on discord @drupman so we can work on it together!

That’s my mistake. Can you change float to decimal? Pydantic will cast it automatically
…
On Wed, 31 Jul 2024 at 19:46 Jelle Bekker @.> wrote: @nikspz https://github.com/nikspz, that broke with d2ceb17 <d2ceb17> / 7fc096d <7fc096d> from @cardosofede https://github.com/cardosofede so that's currently also broken in the development branch. In short, total_amount_quote was moved to a base class but also changed from a Decimal to a float type. Not totally sure what the best approach would be to fix this, even if I would do a cast to resolve this direct problem, it can lead to problems down the road in other spots where total_amount_quote is expected to be a Decimal instead of a float. — Reply to this email directly, view it on GitHub <#7142 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZJOSEQKMXFKTYXD77ZECLZPEIHXAVCNFSM6AAAAABLQRJMNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRQHE2DINJTGI . You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>
It was a float in hummingbot/strategy_v2/controllers/market_making_controller_base.py but a Decimal in hummingbot/strategy_v2/controllers/directional_trading_controller_base.py. So I can change it to a Decimal in the base class but that might lead to problems in other parts of the code?

I'm fixing it in another PR; it should be std in the two controllers. I moved it to the base controller since each controller should have allocated a total amount quote to measure performance.

@tomasgaudino I will explain in more detail if the information here is insufficient for you. Basically, the original implementation is unsuitable for returning historical candles properly for all the exchanges, and the current implementation is not returning gate candles correctly due the same issue.
As you are the dev assigned for candles feed, please generate a new PR with this solution, so @Jbekker can continue working in other PR's.

https://github.com/hummingbot/hummingbot/pull/7151

as discussed with @Jbekker , i'll continue with the changes proposed in this PR so we can merge it before next monday 12th

PR is continued in #7160


macOS support

The Past work section mentions:

Full support for .NET core and Linux/Mac

However, the build guide only mentions building on Windows and Linux. It isn't exactly clear how to build this on macOS.
Disclaimer / Context
I'm not a C++ developer, my hope was to use FASTER via Rust. However, on my macbook I'm stuck building FASTER itself due to fatal error: 'libaio.h' file not found.
I don't find it particularly clear whether libaio should be available on macOS or whether it can be installed at all (this missed other dependencies, it feels like I'm going down a potentially wrong rabbit hole). If you have any information on how to build this project on macOS (without going the .net core route), that would be very useful!

The support for Mac was tested with FASTER C# using .NET core. For FASTER C++, it should work in theory on Mac as well, but we haven't tried it out. The route you are following seems like the natural direction - let us know if you manage to get it working. Adding @chinkulkarni to comment if he has done this.

Hi @badrishc, faster-rs is indeed the library I was hoping to work with. However, it focuses only on providing Linux support. I have tried a number of things but from my non-existent C++ knowledge perspective: it looks like getting libaio to work may be challenging. Not sure if any other dependencies are hard to port to macOS.

Closing as we do not plan to address MacOS support from our side. We welcome pull requests from interested users on the matter.


Could not find com.android.tools.build:gradle:3.0.1.

Getting this error
Could not find com.android.tools.build:gradle:3.0.1.
Searched in the following locations:
    https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom
    https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.jar
Required by:
    project :BaseGameUtils
Open File

If you don't have gradle 3.0.1 you'll have to change to a newer version.


httpie thinks it is redirecting output when run from cron

I have the following script:
#!/bin/bash
http -d -o address.txt GET "ipinfo.io"

which will run normally from the command line. When it runs from cron, I get the following error:
http: error: Cannot use --output, -o with redirected output.

Possibly related to #290

Thanks for the report, @JonLundy. Yes, it is indeed a duplicate of #290.


Make it possible to reference outputs in expressions

Is your feature request related to a problem? Please describe.
The outputs of a Bicep file can constitute a contract. As such, providers are expected to maintain compatibility. Sometimes contracts have spelling mistakes. I would like to correct such a mistake in my contract, but do it by having the incorrect output be an "alias" of the correct one. Like so.
output appHttpsEndpoint string = deployApplication && enableAppGWIngress ? appgwDeployment.outputs.appGatewaySecuredURL : ''
output appHttpsEndoint string = appHttpsEndpoint

Unfortunately this is not allowed:
/home/edburns/workareas/azure.liberty.aks-01/target/bicep/mainTemplate.bicep(492,33) : Error BCP058: The name "appHttpsEndpoint" is an output. Outputs cannot be referenced in expressions.

Describe the solution you'd like
I would like this to just work.

As a workaround, what about setting a variable and using that as the value for both outputs. More verbose, but still DRY.
var appHttpsEndpoint = deployApplication && enableAppGWIngress ? appgwDeployment.outputs.appGatewaySecuredURL : ''

output appHttpsEndpoint string = appHttpsEndpoint
output appHttpsEndoint string = appHttpsEndpoint


Segmentation Fault

Hi,
I am trying to get the llvm bitcode file from x86 object code so that i can run it on either x86-64 or ARM by again compiling the bitcode file for x86-64 or ARM but I am getting segmentation fault when executing the same. The bitcode file when compiled for x86 works fine. I am doing the following steps:
A very simple test code:
$ cat test.c
int main() {
return -5;
}
Compiling it using the following command to get the object file(i have to use -m32 option, as if i dont use the option then bin_descend tool is not able to convert it bitcode file, Also as the main purpose is to get llvm bitcode which is target independent, so it should not matter i think, I may be wrong though):
$ clang -ggdb -m32 -c -o test.o test.c
Using the bin_descend tool to get the CFG
$ bin_descend -d -entry-symbol=main -i=test.o
The command to get .bc file from
$ cfg_to_bc -i test.cfg -driver=main,main,0,return,C -o test.bc
To optimize the code using:
$ opt -O3 test.bc -o test_opt.bc
Now i am compiling the test_opt.bc using llc for target x86-64
$ llc test_opt.bc -o test_opt.s -march=x86-64
using the following command to generate the executable:
$ clang -ggdb test_opt.s
On executing it I am getting segmentation fault
$ ./a.out
Segmentation fault (core dumped)
On trying to debug it using gdb, i m getting the output:
gdb) b main
Breakpoint 1 at 0x4005d0: file test_opt.s, line 9.
(gdb) r
Starting program: /home/mayur/mcsema/mc-sema/tests/mayur/a.out
Breakpoint 1, main () at test_opt.s:9
9               pushq   %r14
(gdb) n
12              pushq   %rbx
(gdb) n
15              subq    $24, %rsp
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
main () at test_opt.s:37
37              movl    $0, (%rax)
(gdb)
I m surprised why pushq   %r14 is in the assembly, as r14 is an ARM register. Still it goes through that instruction and fails at :  movl    $0, (%rax)
Can someone please point it out what is going wrong? Or maybe i am doing something wrong in using the commands. Also can someone tell why bin_descend only is able to create cfg from object files of 32 bit. Are 64 bit object files not supported as of now?

ping

It looks like a 64-bit pointer is truncated to 32-bit. I made a very crude change s/i32/i64/ in test_opt.ll which made it possible to compile an x86_64 binary using clang.
Including the (probably incorrect) LLVM IR after the search and replace:
; ModuleID = 'test.bc'
%struct.rlimit = type { i64, i64 }

define i64 @main() {
driverBlock:
  %rl = alloca %struct.rlimit, align 8
  %0 = bitcast %struct.rlimit* %rl to i64*
  store i64 0, i64* %0, align 8
  %1 = ptrtoint %struct.rlimit* %rl to i64
  %2 = call i64 @getrlimit(i64 3, i64 %1)
  %3 = getelementptr %struct.rlimit* %rl, i32 0, i32 0
  %4 = load i64* %3, align 8
  %5 = call i64 @mmap(i64 0, i64 %4, i64 3, i64 131106, i64 -1, i64 0)
  %6 = add i64 %4, -60
  %7 = add i64 %6, %5
  %8 = inttoptr i64 %7 to i64*
  store i64 0, i64* %8, align 4
  %rl1 = alloca %struct.rlimit, align 8
  %9 = bitcast %struct.rlimit* %rl1 to i64*
  store i64 0, i64* %9, align 8
  %10 = ptrtoint %struct.rlimit* %rl1 to i64
  %11 = call i64 @getrlimit(i64 3, i64 %10)
  %12 = getelementptr %struct.rlimit* %rl1, i32 0, i32 0
  %13 = load i64* %12, align 8
  %14 = tail call i64 @munmap(i64 %5, i64 %13)
  ret i64 -5
}

declare i64 @getrlimit(i64, i64)

declare i64 @mmap(i64, i64, i64, i64, i64, i64)

declare i64 @munmap(i64, i64)

!llvm.module.flags = !{!0, !1}

!0 = !{i64 1, !"Debug Info Version", i64 1}
!1 = !{i64 1, !"Dwarf Version", i64 3}

So the problem is that automatic driver generation assumes you are translating to the same architecture you started with, since it calls APIs with architecture specific arguments (e.g. mmap on Linux).
If you want to cross architectures, you should define a raw driver and feed it with a struct RegState to match initial register state of the original architecture. See demo_driver1.c in the demos.
If your program calls any external functions, you'll also need to define stubs for them somewhere, unless the new architecture can exactly match the function prototypes.


Add attribute brandImageOptions to NavBar

Q
A

Is bugfix?
❌

New feature?
✔

Breaks BC?
❌

Fixed issues
#78

Could you please add an CHANGELOG entry?

CHANGELOG entry added

thx


Error generating encryption keys

I am getting this error:
Command exectued: app/console jms_payment_core:generate-key
Output:
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "secret" at path "jms_payment_core" must be configured.

Thanks for opening an issue. Can you paste your configuration for jms_payment_core? Thanks

I think you need to generate key before configuring


⚠ Jenkins Plugins Artifactory has degraded performance

In 1723802, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1155 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 4c0f0ad after 1 hour, 15 minutes.


cert util: change copied cert from cert.pem to fullchain.pem

The fullchain.pem is required because it includes intermediate certs needed by some clients (webconsole won't work without it)

/lgtm


5.0.0 Changes

General Changes:

[ ] Addition of Ember-compatible filtering
[ ] Query modification
[ ] Extended filtering
[ ] Default pagination settings
[ ] Binary data serialization
[ ] Optional: MessagePack

Endpoint Changes:

[ ] GET Collection

[ ] Bad query parameter handling
[ ] Filtering

[ ] GET Resource

[ ] Related Inclusions
[ ] Sparse Fieldsets
[ ] Bad query parameter

[ ] GET Related

[ ] Sparse Fieldsets
[ ] Related Includes
[ ] Sorting
[ ] Pagination
[ ] Filtering
[ ] Bad query parameter

[ ] GET Relationship

[ ] Sorting
[ ] Pagination
[ ] Filtering
[ ] Bad query parameter

[ ] POST Collection

[ ] Bad query parameter

[ ] POST Relationship

[ ] Sorting
[ ] Pagination
[ ] Filtering
[ ] Bad query parameter

[ ] PATCH Resource

[ ] Sparse Fieldsets
[ ] Related Includes
[ ] Bad query parameter

[ ] PATCH Relationship

[ ] Sorting
[ ] Pagination
[ ] Filtering
[ ] Bad query parameter

[ ] DELETE Resource

[ ] Bad query parameter

[ ] DELETE Relationship

[ ] Sorting
[ ] Pagination
[ ] Filtering
[ ] Bad query parameter

AWWWW YISSSS

Two more things:
URL Safe Base64 encoding of raw byte data. This way big numbers or binary data such as images can be transferred. Plus it provides compatibility with JSON Web Algorithms.
Optional MessagePack serialization. For cell phones where data really counts, shaving off bytes via a smaller serialization format can really help. Same API format, just an optional feature.

Curious - I see the wonderful check list up above -- is any of it already done/in master/useable?
I've got an ember UI i'd like to hook up to this/sql alchemy and the above checklist makes me wonder what this library actually DOES provide (I mean, the above implies I can do  GET, but I can't filter it at all).  Does this just mean current users (since this is 4.x and 5.x is coming out) are hand-coding that stuff?  (which is totally fine).
Super impressive work!  I'm just trying to figure out if I adopt this guy, what sort of things i'm in store for :)

The sorting should be in. I made that list just to keep track of each
component as I rewrote it or implemented it. Right now the library should
provide inclusions, sorting, pagination, and the hook for permissions
checks. Filtering is a challenge as even Ember doesn't spell it out. I was
looking into running filters through Python's AST module to parse them as
conditional statements that can be converted to SQL, but that got thrown on
the backburner as other projects took priority.
On Thu, Dec 1, 2016 at 5:55 PM Roger Studner<EMAIL_ADDRESS>wrote:

Curious - I see the wonderful check list up above -- is any of it already
done/in master/useable?
I've got an ember UI i'd like to hook up to this/sql alchemy and the above
checklist makes me wonder what this library actually DOES provide (I mean,
the above implies I can do GET, but I can't filter it at all). Does this
just mean current users (since this is 4.x and 5.x is coming out) are
hand-coding that stuff? (which is totally fine).
Super impressive work! I'm just trying to figure out if I adopt this guy,
what sort of things i'm in store for :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ColtonProvias/sqlalchemy-jsonapi/issues/22#issuecomment-264321318,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQqHlAlEurlQtCEbCxMU6G-hjxd1Znwks5rD1BmgaJpZM4Jkp6n
.

--
Colton J. Provias
Film Composer and Audio Engineer
Chief Technology Officer, Zeitghost Technologies
+1.330.776.8427


rack: Only build the middleware stack once

There was a bug in the benchmark. The app was a Rack::Builder meaning each middleware was re-instantiated on every request which isn't what is worth benchmarking.
 Thanks for digging Jean :)


Incoherence in notation for RZX gate

URL to the relevant documentation
https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.library.RZXGate
In examples section, third equation
Select all that apply

[X] typo
[ ] code bug
[ ] out-of-date content
[ ] broken link
[ ] other

Describe the fix.
If we follow the notation introduce for RZX(θ) q0,q1=exp(−i θ/2 X⊗Z) which are the default notation, it would mean that in the "examples" section, we should have RZX(θ=π)=−iX⊗Z instead of −iZ⊗X.
It's not coherent with the fact that in the note section, we use big-endian convention for the tensor notation.
Or else we have to tell in which way we apply the gate by adding the q1,q0 index like this: RZX(θ=π)q1,q0=−iZ⊗X.

Hi @1ucian0 . Can you please assign me this issue. This would be helpful as my first qiskit contribution.


how to update data + is the datasource from plot_bokeh acessible?

Hi,
I am using plot_bokeh to render a plot based on a GeoDataFrame counties as rows, to which an 'incidence' column has been added:
https://coviz.io/#section3
and it works great.
This incidence column is updated as a function of a slider change.
I have a difficulty concerning the method of updating the plot everytime the slider is changed: because the datasource is not accessible I didn't find a way to update the plot other than generating a new one and inserting it into the layout. This works, but it is rather CPU consuming and causes a ~5 seconds lag.
Any suggestion?

This should do it:
https://github.com/ghomem/coviz/commit/70036c68e0c241d66585c770f811958981e3eb3a
but in reality, even though it seems that I am updating the data_source, it does not make the plot change. Does not seem to be much faster either.

This actually works:
https://github.com/ghomem/coviz/pull/3/files
but it ain't faster than what I originally had.

Found a way to make it work very fast:
https://github.com/ghomem/coviz/pull/4/
However the tooltips are not updating (they keep the old values).

Well, after some hair pulling I managed to solve this. The details are here:
https://discourse.bokeh.org/t/performance-on-geoplot-how-to-reach-datasource/8211/2
final PR:
https://github.com/ghomem/coviz/pull/5/files


Multiline code blocks bork the todo code snippet

Please select the area your Bug applys to. (Multiple selections are Possible)

[X] Markdown

Describe the bug
If a note contains a fenced code block before a todo snippet then the tickbox doesn't become active in the preview panel.
To Reproduce
Steps to reproduce the behavior:

Open a journal note
Type 'to' then tab
Confirm it works
Add a fenced code block above the todo snippet (nb not a problem after)
Confirm it no longer works

Expected behavior
Multiline code blocks do not effect todo snippet functionality
Screenshots

(NB I know this image shows a single line rather than multiple lines enclose by three ` ticks)
Desktop (please complete the following information)
All 6 Dendron extensions installed.
VSCode version: 1.54.3
Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
Date: 2021-03-15T10:55:24.277Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 5.8.0-43-generic
Ubuntu 20.04
Dendron 0.34.0
Dendron Log file
Please attach the output of >Dev:Dendron: Open Logs here
dendron.log

Maybe post a reproduce-able of what you mentioned in Discord?

thx, but using  triple` in multiline code blocks causes the same issue. So it's still an issue...
Your example here is only multiline

Done already - unless I've misunderstood you?
On Fri, 26 Mar 2021 at 11:22, 8brandon @.***> wrote:

Maybe post a reproduce-able of what you mentioned in Discord?
thx, but using triple` in multiline code blocks causes the same issue. So
it's still an issue...
Your example here is only multiline
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dendronhq/dendron/issues/576#issuecomment-808135637,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARZVGDUN4LPIVQJEVCEI23TFRVBFANCNFSM4Z27G2CA
.

--
Dr Patrick M Young

Closing this: apologies for wasting time. Silly me.


Custom file  input don't show selected file

System: Debian Linux 9
Browser: Firefox 64
I tried to use custom file input, but it's not work successfully.
I use downloaded version of Bootstrap 4.2.1.
Used: bootstrap.css, jquery-3.3.1.js and bootsrap.bundle.js in the same order.
I got example code from this  and in browser I saw same controls, but when I select some file, it's name has no revealed into input field.
Through browser's inspector I see that input has no assigned js, but when I do this on example page  I see that input field has assigned js from docs.min.js
Is it a bug or not?
How can I fix it?

It is the intended behavior. Bootstrap does not ship JS for the custom input.

You can copy the JS from that page and use it no problem

Bootstrap docs use this plugin: https://www.npmjs.com/package/bs-custom-file-input to animate our custom file input, as it's written here: https://getbootstrap.com/docs/4.2/components/forms/#file-browser


Speed test discrepancy - Pi 3 B+ not getting more than 260 Mbps up

Initially running this on a RPi 3B+ (has 1gbe network adapter)
Initial results displayed on dashboard and at CLI show ~150mbps down, ~260mbps up. Moved it from the personal router to the main gateway router provided by ISP, same results. Tested nearby Intel NUC connected directly to the ISP provided router, getting ~900mbps down, ~940mbps up.
Wondering what the issue may be. I checked at the Pi's CLI with the speedtest cli, same general poor results. Confused and seeking advice on what to look into.

@mengesb - If it's a Pi 3 B+, that model only has USB 2.0, so even with a Gigabit adapter plugged in, you'll never get more than around 300 Mbps either way, no matter what.
For better speed tests for higher speed connections, you need a Pi 4 B.

Interesting... Forgot that the nic guess through that bus.
I'll check on a RPi4... I should have a few dozen... Hopefully not in use

[...]@rpi4:~$ speedtest
Retrieving speedtest.net configuration...
Testing from AT&T U-verse (---.---.---.---)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Converse in Code Networks (Fremont, CA) [18.93 km]: 10.012 ms
Testing download speed................................................................................
Download: 428.71 Mbit/s
Testing upload speed......................................................................................................
Upload: 305.85 Mbit/s

conversely testing using Ookla's site, windows store app, etc show rates around 900Mbit/s, which I'm wondering where there might be a bottleneck ... if it's the Pi running on SD card therefore the I/O limit of writing the potential tmp files?
Running on:
Hardware        : BCM2835
Revision        : d03114
Serial          : 10000000a80e1287
Model           : Raspberry Pi 4 Model B Rev 1.4

So I moved from my router to my ISPs gateway, improved things nominally (so I know there's a translation issue between my router and my ISP gateway --- ugh); however still not getting what I'm expected, as the other measuring host is connected to the same device and pulling ~900Mbit/s
[---]@rpi4:~$ speedtest --simple --server 27781
Ping: 10.242 ms
Download: 558.92 Mbit/s
Upload: 488.00 Mbit/s

Also noticing twice the latency (ping) which is odd. I'd presume that speedtest is allocating in memory, so I wouldn't think that the SD Card would come into play here

In doing LAN iperf tests, I can see that at least my ISP gateway has the maximum throughput expected (~940Mbit/s realm); so there's still something limiting the Pi side of measuring presuming I put it on the ISP gateway - also supports my suspicions given the latency goes from 5ms (windows-ookla) to 10ms (rpi-ookla). Any other areas where you might provide some insight? I can leave it connected directly to the ISP gateway however I'd still like to see potential (suspected) speed drops from ~900Mbit/s measurements

@mengesb - What kind of microSD card are you using? (Just wondering). That shouldn't be a limiting factor, I don't think, because I though the download would go into somewhere memory-backed... do you have a Pi 4 with 1, 2, 4, or 8 GB of RAM? If it's only 1 or 2 GB and you're running other things on it, maybe it doesn't have the memory space to write the temporary download file and the microSD card is bottlenecking it.

So this is an 8GB model RPi 4b. I'm running it on a Samsung EVO Plus which is a class 10 U3 card. In any event, I can see that it does push nearly 1gbe line speed from host to host using iperf. I do suspect that you're correct regarding the tool, wouldn't make much sense if it wasn't memory-backed, and I'd think you could pipe /dev/urandom for something like this. Wouldn't think that Docker would be the limit either... especially if disk isn't involved and it's memory oriented... or maybe the container isn't allocated the right amount of memory?

observing glances while running the tests, just before the upload test, I can see about ~150MB of memory get allocated, then disappear, so it appears memory backed. As for I/O, I didn't observe any spikes or IOWait while running the test several times. I do see it nearly pegging one full core at around 90%, but that quickly disappears.

(Ubuntu 20.04 64bit / Linux 5.4.0-1038-raspi)

@mengesb - I'm wondering if that's a different problem then (this issue was originally for the 3 B+, which is a different issue since it can't pump through too much bandwidth regardless.
A Pi 4 should sustain much better rates, up to 940 Mbps both ways, so I'm wondering if there could be some issue with the Ubuntu version for Pi? I don't have it running on any of my Pis currently so I can't just log into one and check.

Now this is super interesting.
Installed Raspberry Pi OS (2021/05 release) ; updated, docker, ansible run, also speedtest cli install. Noticed that it is not the 64-bit OS, but the 32-bit OS.
Re-ran benchmarks -
   Speedtest by Ookla

     Server: Converse in Code Networks - Fremont, CA (id = 27781)
        ISP: AT&T U-verse
    Latency:     4.59 ms   (0.13 ms jitter)
   Download:   928.06 Mbps (data used: 741.1 MB)
     Upload:   803.41 Mbps (data used: 1.4 GB)
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/result/c/2f7ac3ee-9feb-4243-99c0-e3623e2a49b4

.... o ... k ...
How?

@mengesb - The Pi OS Ethernet driver might be more optimized for the Broadcom NIC in the Pi; that's a good question to ask somewhere in Ubuntu-land, as I know they try to get feature parity with Pi OS but maybe their network driver is missing a necessary patch or something.

Well, after an RMA for my router (ASUS GT-AC5300), my wired speeds are back up to snuff
   Speedtest by Ookla

     Server: Tekify Fiber & Wireless - Fremont, CA (id = 6468)
        ISP: AT&T U-verse
    Latency:     4.51 ms   (0.13 ms jitter)
   Download:   949.28 Mbps (data used: 983.1 MB)
     Upload:   942.17 Mbps (data used: 1.2 GB)
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/my-result/d/cf7ae490-3914-45cb-92e6-c79a041f01b6

I think this rabbit hole has now been solved. Thanks for your tolerance.


fix: do a string comparison for the alpha config

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


Question: When does Envoy actively pull certificates from SDS?

Description:
Envoy establishes a network connection with Spire via Nginx: envoy -> nginx -> spire-sds. To achieve balanced load, Nginx will actively disconnect every 30 minutes:
http {

    # Add connection timeout settings
    keepalive_timeout 30m;

    server {

        location / {
            grpc_pass grpc://unix:/run/spire/sockets/agent.sock;

            grpc_read_timeout 30m;
            grpc_send_timeout 30m;
        }
    }
}

I observed that within a certain period, Envoy will reconnect to SDS and obtain the latest certificates, but after a few hours, it will not actively reconnect:
curl -s localhost:15000/certs

...
{
"ca_cert": [
{
"path": "server.example.com: \u003cinline\u003e",
"serial_number": "ef3b9efd678541c6ab83e8839631e34a",
"subject_alt_names": [
{
"uri": "spiffe://server.example.com"
}
],
"days_until_expiration": "32",
"valid_from": "2024-06-19T08:27:44Z",
"expiration_time": "2024-08-18T08:27:54Z"
}
],
"cert_chain": [

THIS CERTIFICATE HAS EXPIRED !!!

{
"path": "\u003cinline\u003e",
"serial_number": "ea6155384a2469a8059a89090cc00c51",
"subject_alt_names": [
{
"uri": "spiffe://server.example.com/istio-proxy"
}
],
"days_until_expiration": "0",
"valid_from": "2024-07-16T07:33:18Z",
"expiration_time": "2024-07-16T09:33:28Z"
}
]
...

After this, envoy will no longer establish a connection with spire-sds.This results in subsequent requests failing the handshake:
rpc error: code = Unavailable desc = upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: TLS error: 268436501:SSL routines:OPENSSL_internal:SSLV3_ALERT_CERTIFICATE_EXPIRED

Envoy version: 1.19.4
Envoy configuration:
transport_socket:
  name: envoy.transport_sockets.tls
  typed_config:
    "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
    common_tls_context:
      tls_certificate_sds_secret_configs:
        - name: "spiffe://server.example.com/istio-proxy"
          sds_config:
            resource_api_version: V3
            initial_fetch_timeout: "120s"
            api_config_source:
              api_type: GRPC
              transport_api_version: V3
              grpc_services:
                - google_grpc:
                    target_uri: spire-agent-proxy.spire.svc.cluster.local:9001
                    stat_prefix: spire_agent
      combined_validation_context:
        default_validation_context:
          match_subject_alt_names:
            - exact: "spiffe://server.example.com/istio-proxy"
        validation_context_sds_secret_config:
          name: "spiffe://server.example.com"
          sds_config:
            resource_api_version: V3
            initial_fetch_timeout: "120s"
            api_config_source:
              api_type: GRPC
              transport_api_version: V3
              grpc_services:
                - google_grpc:
                    target_uri: spire-agent-proxy.spire.svc.cluster.local:9001
                    stat_prefix: spire_agent
      tls_params:
        ecdh_curves:
          - X25519:P-256:P-521:P-384

Is this behavior expected? Does Envoy detect certificate expiration and actively initiate a certificate pull request?

cc @adisuissa
I don't have much experience with SDS, but I'm curious why we end up not reconnecting to the SDS cluster?
What do the stats for the SDS cluster say and what is its configuration?

cc @adisuissa
I don't have much experience with SDS, but I'm curious why we end up not reconnecting to the SDS cluster? What do the stats for the SDS cluster say and what is its configuration?

I conducted another test, configuring mTLS at the downstream transport_socket.
...
        transport_socket:
          name: envoy.transport_sockets.tls
          typed_config:
            '@type': type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext
            common_tls_context:
              combined_validation_context:
                default_validation_context:
                  allow_expired_certificate: true
                  match_subject_alt_names:
                  - exact: spiffe://server.example.com/istio-proxy
                validation_context_sds_secret_config:
                  name: spiffe://server.example.com
                  sds_config:
                    api_config_source:
                      api_type: GRPC
                      grpc_services:
                      - google_grpc:
                          stat_prefix: spire_agent
                          target_uri: spire-agent-proxy.spire.svc.cluster.local:9001
                      transport_api_version: V3
                    initial_fetch_timeout: 120s
                    resource_api_version: V3
              tls_certificate_sds_secret_configs:
              - name: spiffe://server.example.com/istio-proxy
                sds_config:
                  api_config_source:
                    api_type: GRPC
                    grpc_services:
                    - google_grpc:
                        stat_prefix: spire_agent
                        target_uri: spire-agent-proxy.spire.svc.cluster.local:9001
                    transport_api_version: V3
                  initial_fetch_timeout: 120s
                  resource_api_version: V3
              tls_params:
                ecdh_curves:
                - X25519:P-256:P-521:P-384
            require_client_certificate: true
            ...

From the monitoring data, the connection was actively terminated by Envoy at the 18-minute mark, which is quite STRANGE!

By the way, I replaced the Spire SDS agent from Nginx to Envoy to output more detailed monitoring logs.. Here are the Spire-Envoy logs:
{"authority":"spire-agent-proxy.spire.svc.cluster.local:9001","bytes_received":"32145","bytes_sent":"4430","connection_termination_details":"-","downstream_local_address":"<IP_ADDRESS>:9001","downstream_remote_address":"<IP_ADDRESS>:46906","duration":"1126536","method":"POST","path":"/envoy.service.secret.v3.SecretDiscoveryService/StreamSecrets","protocol":"HTTP/2","request_id":"00e14d3e-9962-47a0-952d-ecdc8c461f29","requested_server_name":"-","response_code":"200","response_code_details":"downstream_remote_disconnect","response_flags":"DC","route_name":"-","start_time":"2024-07-18T05:27:56.143Z","upstream_cluster":"local","upstream_host":"/run/spire/sockets/agent.sock","upstream_local_address":"-","upstream_service_time":"-","upstream_transport_failure_reason":"-","user_agent":"grpc-c++/1.39.0-dev grpc-c/17.0.0 (linux; chttp2)","x_forwarded_for":"-"}
{"authority":"spire-agent-proxy.spire.svc.cluster.local:9001","bytes_received":"48143","bytes_sent":"39330","connection_termination_details":"-","downstream_local_address":"<IP_ADDRESS>:9001","downstream_remote_address":"<IP_ADDRESS>:46906","duration":"1126538","method":"POST","path":"/envoy.service.secret.v3.SecretDiscoveryService/StreamSecrets","protocol":"HTTP/2","request_id":"8b89c61d-8883-4525-bdab-10cd5a15b3f1","requested_server_name":"-","response_code":"200","response_code_details":"downstream_remote_disconnect","response_flags":"DC","route_name":"-","start_time":"2024-07-18T05:27:56.140Z","upstream_cluster":"local","upstream_host":"/run/spire/sockets/agent.sock","upstream_local_address":"-","upstream_service_time":"-","upstream_transport_failure_reason":"-","user_agent":"grpc-c++/1.39.0-dev grpc-c/17.0.0 (linux; chttp2)","x_forwarded_for":"-"}

and Spire-Envoy‘s config:
    static_resources:
      listeners:
        - name: listener_0
          address:
            socket_address: { address: <IP_ADDRESS>, port_value: 9001 }
          filter_chains:
            - filters:
                - name: envoy.filters.network.http_connection_manager
                  typed_config:
                    "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
                    stat_prefix: ingress_http
                    codec_type: AUTO
                    access_log:
                      - name: envoy.access_loggers.file
                        typed_config:
                          '@type': type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
                          log_format:
                            text_format: |
                              {"authority":"%REQ(:AUTHORITY)%","bytes_received":"%BYTES_RECEIVED%","bytes_sent":"%BYTES_SENT%","connection_termination_details":"%CONNECTION_TERMINATION_DETAILS%","downstream_local_address":"%DOWNSTREAM_LOCAL_ADDRESS%","downstream_remote_address":"%DOWNSTREAM_REMOTE_ADDRESS%","duration":"%DURATION%","method":"%REQ(:METHOD)%","path":"%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%","protocol":"%PROTOCOL%","request_id":"%REQ(X-REQUEST-ID)%","requested_server_name":"%REQUESTED_SERVER_NAME%","response_code":"%RESPONSE_CODE%","response_code_details":"%RESPONSE_CODE_DETAILS%","response_flags":"%RESPONSE_FLAGS%","route_name":"%ROUTE_NAME%","start_time":"%START_TIME%","upstream_cluster":"%UPSTREAM_CLUSTER%","upstream_host":"%UPSTREAM_HOST%","upstream_local_address":"%UPSTREAM_LOCAL_ADDRESS%","upstream_service_time":"%RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)%","upstream_transport_failure_reason":"%UPSTREAM_TRANSPORT_FAILURE_REASON%","user_agent":"%REQ(USER-AGENT)%","x_forwarded_for":"%REQ(X-FORWARDED-FOR)%"}
                          path: /dev/stdout
                    route_config:
                      name: local_route
                      virtual_hosts:
                        - name: local_service
                          domains: [ "*" ]
                          routes:
                            - match: { prefix: "/" }
                              route: { cluster: local }
                    http_filters:
                      - name: envoy.filters.http.router
                        typed_config:
                          "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
                    stream_idle_timeout: 900s
      clusters:
        - name: local
          connect_timeout: 0.25s
          http2_protocol_options:
            max_concurrent_streams: 1
          common_http_protocol_options:
            idle_timeout: 60s
          type: STATIC
          lb_policy: ROUND_ROBIN
          load_assignment:
            cluster_name: local
            endpoints:
              - lb_endpoints:
                  - endpoint:
                      address:
                        pipe:
                          path: /run/spire/sockets/agent.sock

What's even stranger is that if I set the stream timeout to 15 minutes in the Spire-Envoy configuration
...
                    route_config:
                      name: local_route
                      virtual_hosts:
                        - name: local_service
                          domains: [ "*" ]
                          routes:
                            - match: { prefix: "/" }
                              route: { cluster: local }
                    http_filters:
                      - name: envoy.filters.http.router
                        typed_config:
                          "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
                    stream_idle_timeout: 900s <<<<<<<<<<<<<<<changed
      clusters:
        - name: local
          connect_timeout: 0.25s
          http2_protocol_options:
            max_concurrent_streams: 1
          common_http_protocol_options:
            idle_timeout: 60s
 ...

the SDS connection will be forcibly terminated after the timeout, causing Envoy to reconnect. This way, the connection can be maintained continuously. This is very confusing to me.

My Envoy establishes a connection with SDS without using TLS (I know this is not secure, but please ignore this for now). Could this be causing the issue?
envoy --(non-tls)--> envoy(proxy) --(uds)--> spire-sds

General information:
From the segments of the config it is a bit unclear what's going on, so I'll try to rephrase the configuration and if we agree we can go from there.
The configuration uses GoogleGrpc in order to connect to the SDS server. No ADS is used, but IIUC all sds_config segments use the same configuration server.
I'm assuming that these are all static resources, so Envoy should create the xDS-connection, and fetch the SDS when it starts up. Note that this should happen even before the first data-plane request.
Moreover, the xDS path should be decoupled from the data-plane path, as this is not an on-demand service, but rather xDS is a pub/sub where Envoy should fetch all the certificates at the beginning. Whenever something is updated, it will be pushed by the server to the Envoy.
When an xDS connection is reset, Envoy will attempt to reconnect (exponential backoff). Using EnvoyGrpc allows one to control the knobs of that backoff. GoogleGrpc might have a similar option in the underlying lib, but I'm not sure.

I observed that within a certain period, Envoy will reconnect to SDS and obtain the latest certificates, but after a few hours, it will not actively reconnect

Seems strange. I suggest increasing the log-level and seeing whether Envoy is actually not trying to connect, or trying and failing. I guess the former, but then I wonder if Envoy is aware that the xDS-connection was terminated (or was it masked by the gRPC library).
From the last comments, it doesn't seem that the issue is when Envoy disconnects from the SDS server, but rather when a Envoy data-plane disconnects from an upstream, upon reconnection to the upstream, Envoy will not find the certificate, although it should already have it.

What's even stranger is that if I set the stream timeout to 15 minutes in the Spire-Envoy configuration the SDS connection will be forcibly terminated after the timeout, causing Envoy to reconnect.

I'm not familiar with this, but can you provide details of which stream idle timeout is modified (is it on the data-plane config or the xDS-connection related config)?

General information: From the segments of the config it is a bit unclear what's going on, so I'll try to rephrase the configuration and if we agree we can go from there. The configuration uses GoogleGrpc in order to connect to the SDS server. No ADS is used, but IIUC all sds_config segments use the same configuration server. I'm assuming that these are all static resources, so Envoy should create the xDS-connection, and fetch the SDS when it starts up. Note that this should happen even before the first data-plane request. Moreover, the xDS path should be decoupled from the data-plane path, as this is not an on-demand service, but rather xDS is a pub/sub where Envoy should fetch all the certificates at the beginning. Whenever something is updated, it will be pushed by the server to the Envoy.
When an xDS connection is reset, Envoy will attempt to reconnect (exponential backoff). Using EnvoyGrpc allows one to control the knobs of that backoff. GoogleGrpc might have a similar option in the underlying lib, but I'm not sure.

I observed that within a certain period, Envoy will reconnect to SDS and obtain the latest certificates, but after a few hours, it will not actively reconnect

Seems strange. I suggest increasing the log-level and seeing whether Envoy is actually not trying to connect, or trying and failing. I guess the former, but then I wonder if Envoy is aware that the xDS-connection was terminated (or was it masked by the gRPC library).
From the last comments, it doesn't seem that the issue is when Envoy disconnects from the SDS server, but rather when a Envoy data-plane disconnects from an upstream, upon reconnection to the upstream, Envoy will not find the certificate, although it should already have it.

What's even stranger is that if I set the stream timeout to 15 minutes in the Spire-Envoy configuration the SDS connection will be forcibly terminated after the timeout, causing Envoy to reconnect.

I'm not familiar with this, but can you provide details of which stream idle timeout is modified (is it on the data-plane config or the xDS-connection related config)?

After analysis, the current problem can be summarized as: Why does the SDS client using google-grpc always actively disconnect after arriving at a time point of more than ten minutes? Is this determined by a configuration item?
This seems to be a confirmable problem, and also explains why if the sds server actively disconnects earlier than that point in time, the connection can be maintained: because this triggers a retry of google-grpc, and the timer of this disconnection was reset

General information: From the segments of the config it is a bit unclear what's going on, so I'll try to rephrase the configuration and if we agree we can go from there. The configuration uses GoogleGrpc in order to connect to the SDS server. No ADS is used, but IIUC all sds_config segments use the same configuration server. I'm assuming that these are all static resources, so Envoy should create the xDS-connection, and fetch the SDS when it starts up. Note that this should happen even before the first data-plane request. Moreover, the xDS path should be decoupled from the data-plane path, as this is not an on-demand service, but rather xDS is a pub/sub where Envoy should fetch all the certificates at the beginning. Whenever something is updated, it will be pushed by the server to the Envoy.
When an xDS connection is reset, Envoy will attempt to reconnect (exponential backoff). Using EnvoyGrpc allows one to control the knobs of that backoff. GoogleGrpc might have a similar option in the underlying lib, but I'm not sure.

I observed that within a certain period, Envoy will reconnect to SDS and obtain the latest certificates, but after a few hours, it will not actively reconnect

Seems strange. I suggest increasing the log-level and seeing whether Envoy is actually not trying to connect, or trying and failing. I guess the former, but then I wonder if Envoy is aware that the xDS-connection was terminated (or was it masked by the gRPC library).
From the last comments, it doesn't seem that the issue is when Envoy disconnects from the SDS server, but rather when a Envoy data-plane disconnects from an upstream, upon reconnection to the upstream, Envoy will not find the certificate, although it should already have it.

What's even stranger is that if I set the stream timeout to 15 minutes in the Spire-Envoy configuration the SDS connection will be forcibly terminated after the timeout, causing Envoy to reconnect.

I'm not familiar with this, but can you provide details of which stream idle timeout is modified (is it on the data-plane config or the xDS-connection related config)?

After extensive testing, I can confirm the issue details:

Envoy runs in K8s and Istio, version: 1.19.4
Client Envoy accesses Spire via K8s Service address. Spire has an Envoy sidecar forwarding SDS messages to UDS.
Every 20 minutes, Spire-envoy actively closes the stream (using stream_idle_timeout). Oddly, it logs a DC access log, seemingly interpreting it as a client-initiated disconnect. The client container shows the connection to Spire-envoy (via Service address) still exists and persists, though it's actually dead! This should be the reason why the client will not actively reconnect.
Adding these keepalive parameters to the client resolved the issue:

channel_args:
  args:
    grpc.http2.max_pings_without_data:
      int_value: 0
    grpc.keepalive_permit_without_calls:
      int_value: 1
    grpc.keepalive_time_ms:
      int_value: 180000
    grpc.keepalive_timeout_ms:
      int_value: 2000

This allows the client to detect and reconnect, avoiding the problem.

Setting a smaller stream_idle_timeout earlier likely had a similar effect, enabling quicker connection status detection.

This behavior confirms that google_grpc without keepalive can cause connection leaks. The issue may involve "idle timeout" configurations in the network environment. I've checked kernel parameters but found nothing relevant.


Can't access Windows socks5 tunnel from WSL2

Environment

Windows build number:  1903 (OS Build 18980.1)
Distro: Ubuntu-18.04

Repro steps:
From Windows Powershell: Create a SOCKS 5 tunnel to an SSH Server:

ssh -D <IP_ADDRESS>:20000 USER@IP_ADDRESS

Validate that the proxy is working. For my specific environment, I have a web server that i can query using:

curl --socks5 <IP_ADDRESS>:20000 http://<IP_ADDRESS>:8081

This returns a response (a Spring Boot configuration JSON payload)
Next go to WSL2 mode

wsl

curl --socks5 <IP_ADDRESS>:20000 http://<IP_ADDRESS>:8081

Result:
"curl: (7) Failed to connect to <IP_ADDRESS> port 20000: Connection refused"

curl --socks5 localhost:20000 http://<IP_ADDRESS>:8081

Result:
"curl: (7) Failed to connect to localhost port 20000: Connection refused"
Expected:

Curl request from WSL to work as well.

ref #4402

Thank you very much for the quick answer. I have tried the first method from here :

cat /etc/resolv.conf

and copying the IP address following the term nameserver but it did not work.
However the second method did work: Establish the tunnel from WSL
Thanks again

I am running into the same issue, can't establish a connection in the WSL->Windows direction.
@oliviercwa can you elaborate more on how you managed to fix this problem?

You need to create the tunnel not from a windows command prompt, but from a WSL command prompt. In windows, launch powershell, then type:
wsl

This will enter the wsl model
Then create your tunnel, for example:
ssh -D <IP_ADDRESS>:20000 USER@IP_ADDRESS

Then curl will work properly
Note that I am running WSL2 from Windows 10 version 19035.1

I have a service running in WSL (listening on <IP_ADDRESS>:3000) which needs to access a service running in Windows on <IP_ADDRESS>:5432.
My WSL resolv.conf file:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver <IP_ADDRESS>

When I run ssh -D <IP_ADDRESS>:5432<EMAIL_ADDRESS>I get the following error:
ssh: connect to host <IP_ADDRESS> port 22: Connection timed out

Also using WSL2 from Windows 10 version 19035.1

Are both these services running on the same machine? If so, you don't need a tunnel for this. You should be able to call the Windows service directly.

Yes, they are both running on the same machine.
I am not able to access the service directly, the service in WSL returns the error:
PG::ConnectionBad - could not connect to server: Connection refused
        Is the server running on host "localhost" (<IP_ADDRESS>) and accepting
        TCP/IP connections on port 5432?

Also, in WSL:
curl <IP_ADDRESS>:5432
curl: (7) Failed to connect to <IP_ADDRESS> port 5432: Connection refused

while on Windows it works fine:
curl <IP_ADDRESS>:5432
curl: (52) Empty reply from server

According to ref #4402, this is expected because tunneling <IP_ADDRESS> does not currently work in the WSL->Windows direction.

I must point out also that everything works perfectly fine in WSL 1.
The issue occurs only with WSL 2.

Today I have updated to Windows 10 version 19037.1 and tunneling <IP_ADDRESS> stopped working in the WSL->Windows direction with WSL 1 too: I get the same error I get on WSL 2 mentioned above.

I must point out also that everything works perfectly fine in WSL 1.

Right #4402, aka  #4619 (with a side of #4199, #4210, #4711)

I have a proxy client running on windows which provides a socks5 proxy. This client has been set to listening <IP_ADDRESS>:9050 .I want to use it in WSL2 Kali Linux terminal.How can I ??
Exactly what I am trying to do is ,to rotate IP's in kali Linux terminal WSL2 via windows client proxy application. The proxy application itself changes/rotate proxy
frequently no need of other application in the WSL2.
So the only need is How can I connect it in WSL.
The proxy client supports socksv5 so I have to set the WSL to socksv5 proxy.
TIA!
@therealkenc

@danksuperuser  did you get your query answered???
I am facing the same problem, want to access this socks5 client running on windows on my vs-code running on wsl


Add OurContactInfo::make_their_info method

Routing will need this.

r? @vinipsmaker
(maidsafe_highfive has picked a reviewer for you, use r? to override)

OurContactInfo::make_their_info isn't used nor part of the public API. Won't the compiler complain about unused method?

It should be part of the public.API :/. The compiler didn't complain.

It should be part of the public.API :/.

My bad.


Update Determining-the-Cost.md

By fully outline the Word logarythm, a translation mistake will be fixed. "log" was translated like log in "error-log", but I think Logarythm is meant!

@PhilippRenner : Thanks for your contribution! The author(s) have been notified to review your proposed change. @iainfoulds

@PhilippRenner : Thanks for your contribution! The author(s) have been notified to review your proposed change. @iainfoulds

Thank you for the PR. I was just a tad late to answer your question, but I guess it is moot now. 😉

Thank you for the PR. I was just a tad late to answer your question, but I guess it is moot now. 😉


Copying item build throws error

http://i.imgur.com/mIAe9pq.png
When i press copy for the build it throws this error seems like "copytable" doesnt exist anywhere?

I must have forgotten to actually test the set copy button, because that was the first of 3 separate errors in that code. Anyway, it's fixed in the next update.


Mirror climb

For #48, Added mirror climb button to drop down menu. It acts like a toggle. Currently it resets back to not mirrored if you refresh or switch searches. Also logs mirrored send, I've tested send.

Nice, had a quick play today – logging seems to work fine 👌
Only thing missing is that you can't send the mirrored version to the board via bluetooth. Tried it on the TB2 but I only get the original layout. Would be great to have this addition to.

Pulling whether layout is mirrored from db and using to show or hide Mirror Climb button. Updated Bluetooth to pass mirrored, will test on a TB2 at another gym when I can. Refactored whether the the Mirror Climb button is pressed or not.

Realized I mixed up the mirrored sending to board over Bluetooth, was able to test on tb2 at another gym.

Commited the change to light up  the right version, should be ready for review.

Thanks for comments, it's cleaner. I've implemented and tested the mirrored button except for the Bluetooth on an actual board.

Nice and really needed addition!
Will do some tests tomorrow

@lemeryfertitta, Thanks for the help cleaning up the code! And thanks for testing @gardaholm.

Didn't had any troubles with mirroring and lighting up the routes. Also behaves as I would expect it (similar to the app). If you mirror once, all upcoming routes show up as mirrored. Really nice!
Only issue I had is documented here https://github.com/lemeryfertitta/Climbdex/issues/45#issuecomment-2337255576, but thats part of the overall bluetoot discussion I guess


Removing TODO as issue has been resolved

Stack from ghstack:

#153
-> #152

Fixes #128
Fixes #135

@nivekt has imported this pull request.  If you are a Facebook employee, you can view this diff on Phabricator.


Don't gather cpu info from compute nodes in geopmlaunch if pinning is disabled (not needed, and incurs significant overhead)

Not a release blocker for 3.0.0


Passing variables to ae doesn't work when using minify = true (Windows)

Passed variables to AE will fail if minify is set to true.
I have tested this on Windows only.
const projectPath = "some/path/to/aep";
ae.options.minify = true;
ae((path: string) => {
  const project = new File(path); // <-- path is undefined
  app.open(project);
}, projectPath);

Can you please try with json object rather than string as argument?

Thank you for your quick reply.
I tested with json object but i got the same result.
const project = {
  path:
    "some/path/to/aep",
};
ae.options.minify = true;
ae((_project: any) => {
  console.log(_project.path); // <-- project is undefined
}, project);

I also created the script instead of running directly on AE. The difference that I notice was this:
minify = false
try {
(function (project) {
    console.log(project.path);
}).apply(this,[{"path":"some/path/to/aep"}]);
} catch (err) {
}

minify = false
try {
(function(o){console.log((void 0).path)}).apply(this,[{"path":"some/path/to/aep"}]);
} catch (err) {
}

The arguments passed was converted to (void 0). Don't know what it means but it might be useful to you.
Thanks for helping.


[MI-2057] Integrate subscription list page

Changes picked here https://github.com/Brightscout/mattermost-plugin-azure-devops/pull/69


Module's vendor packages

Hi,
My custom module uses vendor package (installable via composer). This package is not used by other modules and application. There is no point of installing this package when my module is disabled or not installed.
Is there any way to install package via composer only when specific module is enabled?

Not that I know of no. Composer only knows require and require-dev


Python cherrypy server - number of threads too low?

Hi,
I noticed that the python runtime can only handle 10 requests in parallel which is the default number of threads in the cherrypy server thread pool.
class CherryPyWSGIServer(HTTPServer):

    """A subclass of HTTPServer which calls a WSGI application."""

    wsgi_version = (1, 0)
    """The version of WSGI to produce."""

    def __init__(self, bind_addr, wsgi_app, numthreads=10, server_name=None,
                 max=-1, request_queue_size=5, timeout=10, shutdown_timeout=5,
                 accepted_queue_size=-1, accepted_queue_timeout=10):
        self.requests = ThreadPool(self, min=numthreads or 1, max=max,
            accepted_queue_size=accepted_queue_size,
            accepted_queue_timeout=accepted_queue_timeout)

I thought cherrypy does auto-scaling of the thread pool, but apparently it doesn't (stackoverflow).
My proposal is to make it configurable via an environment variable.

Hi @varunbpatil,
This has not been reported before, I am not sure why? In any case, feel free to send a POC in which you increase the number of threads to check if that solves your issue.

This has not been reported before, I am not sure why?

I have no clue why this hasn't been discovered before. Maybe because it is only observable with long running functions and we don't need/use too much parallelism with such long running functions.


Update FX Conversion logic to return an F08 if the balance exceeds the precision threshold

For example, see the Rust error here.
This should be applied somewhere near this calculation in the Java implementation.

For some additional detail since I didn't catch this on the first go...
As currently implemented, if we were to never do this, we might end up getting the F08 when we forward to the next connector since we've already done the asset code conversion. However, in order to fail faster, we should fail with an F08 before forwarding to the next connector since we know the request would fail already.


feat(npm): add support for lockfile v3

Closes #476

Open questions for the NPM team:

We do not have access to the ancestors of a current node to determine if a component is nested into another one (i.e. node_modules/x/node_modules/y). So, we recursively find the shortest path to the root note to determine the ancestors. Is there a possibility for multiple paths back to the root node? Or if that's possible, will the component always be placed in the root? (i.e. node_modules/y)


Please scroll the replies

Describe the feature
When chatGPT is answering, there is no autoscrolling, so you have to use your mouse to do it which is highly inconvenient. Please follow the output, updating the scroll position.

I completely agree with this issue.
The original ChatGPT web application automatically scrolls when answering. This extension should work the same way.

Could you check if your autoscroll setting is turned on?


Journal article grid filters not working

normally grid filter system works correctly. Title field filter not works because field is translatable because of title is a proxy field and not exists really. We are manipulating this row in there https://github.com/okulbilisim/ojs/blob/master/src/Ojs/JournalBundle/Controller/ArticleController.php#L52


Add page which lists the npm packages and describes what they are used for

Resolves https://github.com/Financial-Times/polyfill-service/issues/2114

Might be nice to add a link to the package along with the badge (I wouldn't know to click there personally)


Add API options documentation to address input component

No documentation?

https://trello.com/c/1wBGbk9Q/569-epic-design-system-patterns-where-there-is-little-or-no-documentation-or-it-needs-a-review

Linked to this ticket https://trello.com/c/a4L4cFhe/664-design-system-addresses - would have this as you'd only use one of the variants and wouldn't use them in combination.
@JNATION85 do you have any thoughts on this?


update ideas

[x] jitter plot of x as slice number, y as MSE, color as before vs after (420 points per slice for KKI)
[ ] histrograms for distortion correction based on correction maps

jitter plot looks super awesome and informative.

cool.
is this R or Python?
use alpha level of < 1 so that we can see overlap,
and maybe make dots smaller...
On Thu, Jun 23, 2016 at 11:03 PM, ebridge2<EMAIL_ADDRESS>wrote:

jitter plot looks super awesome and informative.
[image: image]
https://cloud.githubusercontent.com/assets/8883547/16326665/a6a2384e-3996-11e6-9991-b5f9b7a1d899.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Upward-Spiral-Science/fngs/issues/19#issuecomment-228246872,
or mute the thread
https://github.com/notifications/unsubscribe/AACjcrk79gHU4AL9Kb7s4tNAtt3n1-Cuks5qO0jvgaJpZM4I7BES
.

--
the glass is all full:  half water, half air.
neurodata.io, jovo calendar
https://calendar.google.com/calendar/embed?src=joshuav%40gmail.com&ctz=America/New_York

This is python. I'll adjust

As a side note, does it make sense to normalize the images by the mean of each image? Ie, for registration, our reference template is going to have much different intensities than the thing we are registering, so divide each image by the max signal intensity prior to computing

@jovo

maybe add some jitter.
alpha channel didn't do it for me.
On Thu, Jun 23, 2016 at 11:21 PM, ebridge2<EMAIL_ADDRESS>wrote:

@jovo https://github.com/jovo
[image: image]
https://cloud.githubusercontent.com/assets/8883547/16326952/3a551d84-3999-11e6-8a0e-8f3fd0b67eee.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Upward-Spiral-Science/fngs/issues/19#issuecomment-228249340,
or mute the thread
https://github.com/notifications/unsubscribe/AACjcoiUBS0ooNO2cZAFcjGwlRv-MKAPks5qO01BgaJpZM4I7BES
.

--
the glass is all full:  half water, half air.
neurodata.io, jovo calendar
https://calendar.google.com/calendar/embed?src=joshuav%40gmail.com&ctz=America/New_York

btw @jovo forgot to upload this. Looks pretty good to me.

yah, way better i think.
On Fri, Jun 24, 2016 at 8:25 PM, ebridge2<EMAIL_ADDRESS>wrote:

btw @jovo https://github.com/jovo forgot to upload this. Looks pretty
good to me.
[image: image]
https://cloud.githubusercontent.com/assets/8883547/16353536/cabc259c-3a49-11e6-8962-c5644348ef37.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Upward-Spiral-Science/fngs/issues/19#issuecomment-228495350,
or mute the thread
https://github.com/notifications/unsubscribe/AACjcroyduV4e9svhCwuFETMpSN8CJF4ks5qPHWFgaJpZM4I7BES
.

--
the glass is all full:  half water, half air.
neurodata.io, jovo calendar
https://calendar.google.com/calendar/embed?src=joshuav%40gmail.com&ctz=America/New_York


Ability to tell what kind of even was triggered

Wonderful code, I was able to import it and talk to my gateway in minutes!   Now I'm working on processing events for the interface, looking at monitoring all my vast (3 so far, I just got the starter kit) array of devices.
It looks like if I register a DeviceEvent it will happily capture the event when it happens, and pass it back to my code at which point I can process the event easily enough.  However I can't quite tell WHAT happened when I interrogate the event.  Looking at how your DeviceObserver processes the requests it builds an ArrayList of events that it captures and then looks through them for callback events and then calls through to my handle method.  I would expect to see in DeviceEvent a list of sub-events that were triggered (aka the changeEvents variable) as a property that I could then read to see what happened, but this data never gets written to that event.    I'm probably being lazy and not creating a branch/PR and adding the code myself, but then again I don't want to be "that guy" who submits code changes 3 hours after he looks at it for the first time either.
So, instead, what do you think about DeviceEvent returning at minimal the properties that have changed because of the event.  It looks like just moving the oldProperties and newProperties outside of the IF block would allow for a new event to be created at the bottom just before the loop processing all the events a DeviceEvent  could be created with the old and new properties that would reflect the change that occurred with the device on that event.
Also it looks like if you reverse the order you're placing the events in the array, starting with the LightChangeOnEvent (and similar) level events, then the LightChangeEvent, LightEvent and finally DeviceEvent you would be able to use Collections. reverse() to send through the most specific match like you are already doing, but build the less specific events at the end after all status data has been collected.
If this sounds good I'd be happy to fire up a branch on my machine do a bit of refactoring on the DeviceObserver and get those changes put together.  I think that those changes would make things a bit more robust for future use.
It would also be nice to have a callback handle that could capture ALL device events, rather than having to register one event for each device.  For 5-10 devices that's just fine, but the overhead gets larger (ok, not that large!) as the number of devices goes up.

I was able to get some change event data off of the LightChangeEvent using reflection, and comparing the values in old and new properties, I'll have to do similar to get events from plugs, remotes, etc.  I think this could be easier to access so that people using this code can just receive an event and know right away what parameters changed.
Here's the code I'm using to bridge it into my automation system : https://github.com/posicat/CattechHomeAutomation/blob/develop/HomeAutomationModules/IkeaTradfriInterfaceHandler/src/main/java/org/cattech/HomeAutomation/TradfriInterfaceHandler/TradfriInterfaceHandler.java

I can successfully read and write to the device, I have to use a bit of magic via reflection to get to the properties variables to set them the way I'm hoping to be able to eventually, directly to and from a JSON string.  Your code is awesome, thank you so much for the time and effort you put into it!

I like your idea of adding the specific events to the DeviceEvent (and other less specific events like the LightEvent and the LightChangeEvent) as a list.
At the moment it is already possible to listen for a less specific event (like DeviceEvent) and then figure out what the corresponding specific event was (by using instanceof or getClass to check if the DeviceEvent is actually a more specific event since all the events inherit from the DeviceEvent and the DeviceObserver also calls the EventHandlers of parent events). This wouldn't work for multiple changes though because each EventHandler is only called once for every change of the device.

It would also be nice to have a callback handle that could capture ALL device events, rather than having to register one event for each device. For 5-10 devices that's just fine, but the overhead gets larger (ok, not that large!) as the number of devices goes up.

Unfortunately the enableObserve method needs to be called for every single device since an observe request needs to be send for every device that needs a listener. However it is possible to reuse a single EventHandler for multiple devices by storing it in a variable.

EventHandler<LightChangeEvent> lightEventHandler = new EventHandler<LightChangeEvent>() {
	@Override public void handle(LightChangeEvent event) {handleDeviceEvent(event);}
};
EventHandler<PlugChangeEvent> plugEventHandler = new EventHandler<PlugChangeEvent>() {
	@Override public void handle(PlugChangeEvent event) {handleDeviceEvent(event);}
};
EventHandler<RemoteEvent> remoteEventHandler = new EventHandler<RemoteEvent>() {
	@Override public void handle(RemoteEvent event) {handleDeviceEvent(event);}
};
EventHandler<MotionSensorEvent> motionEventHandler = new EventHandler<MotionSensorEvent>() {
	@Override public void handle(MotionSensorEvent event) {handleDeviceEvent(event);}
};
device.enableObserve(); // This is necessary for the event handler to work.
device.addEventHandler(lightEventHandler);
device.addEventHandler(plugEventHandler);
device.addEventHandler(remoteEventHandler);
device.addEventHandler(motionEventHandler);

In your code you added an event handler for all of the device types. These event handlers all call the same method in which you check the class type of the event and act accordingly. Because you check the event type in the handleDeviceEvent method, it is also possible to replace these four event handlers with one event handler that listens for a DeviceEvent (which is a parent of all the events you used).

Wonderful code, I was able to import it and talk to my gateway in minutes!

Your code is awesome, thank you so much for the time and effort you put into it!

Thank you very much!

Oh yeah, that makes sense when I'm reading that and fully awake, at 2am in the morning, that just made it work.
The code I've got now is working really well with your library, but I need to get to some of the properties via reflection.  I'll see if I can pull do your code and add a few helper methods to eliminate the need for the reflection, and we can talk up any of the changes to the code so that they fit your design.  The main thing that would be helpful from what I've found is the ability to serialize and deserialize the properties objects as JSON, and allow them to be sent directly into the applyUpdates, right now the applyUpdates that takes properties is private, thus the reflection.


Filtering doesn't match against cellFilter'd value

When you apply a cellFilter to your column you're transforming the value in some way.  When a user uses the filter (aka rowSearcher) to get a subset of their rows, they're really expecting to filter against the rendered version of the data, not whatever underlying representation you may have.
For example, in the edit feature tutorial we turn the gender field into a coded value with values of 1 (male) or 2 (female), and use a cellFilter to format that.  Someone filtering that dataset would probably expect to enter male or female, not 1 or 2.
There are two paths to resolving this:

Working out how to run the cellFilter, and applying the filtering to the cellFiltered version.  The problem is that the cellFilter is in a binding-suitable format (e.g. myMap | translate ), which doesn't necessarily allow us to directly run the filter.  We could introduce yet another filter variable - cellFilterFilter perhaps - that gives us functions to call directly, but that's getting a bit extreme (noticing we have filter options everywhere already because of the different contexts).

Build a dropdown capability for the filtering UI, on the logic that most of the time that this is a problem it'll be because someone is decoding values from a coded set, so actually a dropdown would be far more useful.

At the moment I'm planning to do the second, but I'm thinking on it for a little while.

Similar to, but a subset of, #2796

I've built the filter dropdown as in part two, and merged.  It'd be nice to build a multi-select dropdown, but for that I have to build a dropdown widget, which is more work.  Pushing the remainder out to "future"

Have provided the ability to create custom filter templates, which means you can add your favourite multi-select dropdown as you see fit.  Closing.


Implement a better GraphMap

We want to implement a better GraphMap, this has been expressed in several issues here, something that has about the current features but in a better and more featureful implementation.
Details to be worked out, it is not set in stone.

Something that has key-lookup for nodes but still owns the node weights?
Potentially have both node keys and node weights?
More similar to Graph?
Based on Indexmap?

FYI, I wrote a hash table implementation similar to indexmap, but where removals don't perturb the indices: https://github.com/jasonwhite/holyhashmap
It's probably not very fast (it uses linear probing), but it works pretty well for the underlying data structure for a graph that owns its nodes.


Selectable rate details

Selectable and dynamic Rates
With this pull request we aim to make clearer the process of setting up a rate and leave open the possibility of adding more levels of pricing in the future (to charging for Envelope, OpenShift users etc.)
Compute and Storage Rate joined together in one Rate with his rate details
First of all we will change the rate view to show one rate that groups the Compute metrics and the Storage metrics. It is maintained the class models and the actual assignments process. This implies changes in the accordion and the rate views.
Compute and Storage Rate joined together in one Rate:

Selectable metrics for a rate
At present, the CF rate has a predefined rate metrics in a table way. With this part of the new feature the admin can choose the metrics that he want in the CF rate. Also can delete the metrics that not need in the rate:
View of the new functionality:

Selectable columns for a Chargeback report
In a report based on Chargeback the columns that are shown must be the same that are selected on a rate.  A compute rate is defined with Allocated CPU Metrics and DiskIO metric, this columns are the only that the chargeback report show for to select.

hi @h-kataria. Check this. It is the continuation of #6359

This pull request it is the  #6359 with more detailed comments and some resolved conflicts

cc @dclarizio

@amaurygonzalez can you please rebase/repush this branch

@amaurygonzalez should this one be closed in favor of https://github.com/ManageIQ/manageiq/pull/6359

@epwinchell please review

@h-kataria I am current working in this PR. We can close #6359

@h-kataria, @jrafanie, @gtanzillo.

Sorry. I closed it by mistake. It is fully working

@amaurygonzalez It gets hard to review as a PR gets over 100-200 lines changed... I have difficulty looking critically and will most likely miss things.  If there are changes that are unrelated, please extract to a different PR.
Once you've done that, please try to squash non-logic commits such as merge errors, rubocop/style changes, the byebug commit, etc.  See here for examples:  https://robots.thoughtbot.com/git-interactive-rebase-squash-amend-rewriting-history

hi @gtanzillo, @jrafanie, @h-kataria, @chessbyte, @epwinchell . Thanks by your comments. We have been thinking that this PR need other future review waiting others deep changes in the chargeback models. That is why we consider that dont it is our priority for now and you can proceed with the closing of this PR.


Added the step_rewire method

This method is not implemented by default. Rewiring methods that allow for step-by-step rewiring should implement the step_rewire method. Methods that do not allow for it do not have to implement it.

This is great -- let's change rewire to full_rewire, and instead of returning G, do a raise NotImplementedError, for consistency with both. Then for new techniques implemented, they seem to fall between two different categories of rewiring:

First is an algorithm that iteratively changes edges in the network, step by steps, for timesteps=T iterations. This technique has two ways to think about rewiring. The step_rewire is the technique that rewires a single edge in the original graph. Then full_rewire is a function that calls step_rewire repeatedly.
The second class of rewiring algorithms that we may come up against are ones that are more optimization-oriented. That is, the notion of timesteps is less obvious than in the class above. Here, we will likely find techniques that do not have a clear step_rewire capability and instead only really make sense to implement full_rewire.

There are, of course, optimization-based algorithms that make sense with step_rewire and full_rewire. In that case, people implementing a technique should include both functions in their Rewire classes.

Can you reformat the file? black base.py. Alternately, I think all it's going to do is add an extra line before def step_rewire(), so you can just add that manually.

Makes sense to me. I'll update the class and figure out the ubuntu, python 3.9 merge error

That error is just indicating that the file needs to be reformatted with black.

Now there's an issue with the algebraic_connectivity.py file. I'll take a look

The existing tests need to be rewritten to accommodate full_rewire() vs. step_rewire().

I'm still getting build errors
 /home/runner/work/netrw/netrw/netrw/rewire/algebraic_connectivity.py:10: DeprecationWarning: invalid escape sequence \i
Not really sure why there's an issue, because I didn't modify algebraic_connectivity.py at all. It appears to be an issue with the """ block comment. Any ideas?


[Enhancement] Add a new starcache engine to support DLA block cache.

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Add a new block cache engine based on starcache which support KV interfaces, and provides memory and disk cache.  Currently, we support both cachelib and starcache engines, and we set the 'starcache' as the default engine.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

run starrocks_image_update

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

run starrocks_be_unittest

run BE UT


⚠ Minecraft has degraded performance

In e0d9a39, Minecraft (https://www.minecraft.net) experienced degraded performance:

HTTP code: 200
Response time: 1452 ms

Resolved: Minecraft performance has improved in 50cca1c.


feat: #13 Make postman runtime container deployment optional

Description

Add a new postmanEnabled settings in config and Settings pane
Remove POSTMAN_CONTAINER from the list of default containers
Add guards to only manage POSTMAN_CONTAINER if postmanEnabled is true
chore: Update copyright date on Footer.tsx

Related issue(s)
Resolves #13

If I'm not mistaken, current users who start the Postman runtime will not see the container start when they upgrade to this new version. Is my understanding correct? To restore the former behavior, they must manually enable it in the settings, right?

LGTM


[JustForView]Moved SafeWaitHandle and cancellationToken to shared

Coreclr PR:- https://github.com/dotnet/coreclr/pull/18662

@jkotas can you review the changes here too

This side looks fine to me. Thanks!


How to build

After cloning, I first tried zig build but that was not right. Then I tried the command in compile.txt but that also gave an error: FileNotFound.

Hi,
Thanks for showing interest in the repository. I never imagined someone would actually want to try out one of my projects. Basically, all my repositories that do not have an associated README.md file are in a somewhat broken state (like this one). The compile.txt was from the first time I used Zig, and I didn't know it had its own build system. But the source code also has some major issues; that's why it did not work for you. Now, all in all, what I am trying to say is that whenever I had free time this past week, I was working on fixing these major issues with the repository, and I can say that now you can try it and it will be a much more pleasant experience. There are still some issues with the command parsing, and the application is currently single-threaded, so it won't be the fastest if you want to compress thousands of images, but it should work in theory.

Thank you for all your efforts. It does compile now..! But it segfaults immediately...

It fully works now! Thank you.


Fix nip05 README example

queryProfile expects a full address with @

Nvm, I see that this is actually valid. I wasn't aware that if you just pass in a domain, the implied name would be _


[Impeller] Benchmark PSO library construction in the constructor of the content context.

If Impeller decides to add shader specialization (via specialization constants or otherwise), it will become necessary to benchmark PSO library construction. We should have such a harness in place already.
Today, PSOs can be (and are) created on a worker pool asynchronously. So we need a way to reason about setup time across multiple threads.

I think our start up benchmarks roughly cover this right?