Disable Screen Rotation

Hello,
I want to disable app to rotate even if devices's screen rotation is on, I tried below code to disable screen rotation, still it rotates the app in latest android devices when device's screen rotation is on.

In LauncherActivity.java I set orientation to portrait.
In AndroidManifest.xml I set android:screenOrientation="portrait"

Still it rotates when auto rotation is enabled in device.
Please advice what can I do to disable screen rotation, I tried all other options for orientation like "nosensor", "sensotPortrait", "locked".

Is there any update on that ?


fix!: exclude modules from content

https://github.com/nuxt-modules/tailwindcss/pull/747#issue-1974519872
Discussion: this may be a breaking change from 6.9.0, but not from <=6.8.1, but you can argue that this is equivalent to "undoing" the change because the functionality remains the same from 6.8.1 onwards.

I do not believe it's a beaking change by reverting the update done in 6.9.0


CB-11889 add Retryable annotation to host orchestrator teardown

See detailed description in the commit message.

the target branch is 2.41 the ticket is related to 2.42. Also some unit test would be nice

I rebased the PR to master because 2.41 will not be shipped


Patch frontend UI for general pages and components

Pull Request
Description
Fix UI issues.
Related Issue(s)
Closes #84
Screenshots (if applicable)

Checklist

[ ] I have checked that the changes included in the PR are intended to merge to master or any destination branch.
[ ] I have verified that the new changes do not break any existing functionalities, unless the new changes are intended and have approved by the team.
[ ] I will take care of the merging and delete the side-branch after the PR is merged.

Additional Notes/References
Hydration error in tutor view as we are checking for the role and then rendering different things...

Need to check again when all other PRs have been merged.

Hydration error in tutor view as we are checking for the role and then rendering different things...

Thanks for reporting this, I can fix this issue in this PR as I also found it and trying to fix. One solution that I found working is to add a isLoading to prevent direct rendering the elements.

Hydration error in tutor view as we are checking for the role and then rendering different things...

Thanks for reporting this, I can fix this issue in this PR as I also found it and trying to fix. ~One solution that I found working is to add a isLoading to prevent direct rendering the elements.~ ~I lied, this doesn't fix the problem :( Need to take a deeper look..~
Lol I lied again, adding isLoading with useEffect does work. :)

HAHA that's great~ thank you


Group calls using the UI Library can yield an unexpected rendering experience in the video gallery

We have detected an issue in our calling backend that is causing our client code that manages client state to become inconsistent. This yields a calling experience in which some participants may not be able to see all participants on the call. We will have an update by EOD March 25, 2022 when the change is expected to be rolled out to our production clusters. We are sorry for the inconvenience and will continue to update this issue with either the issue has been resolved or if there are more additional areas we will need to look into.

Bug has been fixed. Closing the issue.


Cost of training

Thank you for your great work!
I want to know the exact training time for models of image understanding, short-term video understanding (both supervised and self-supervised), long-term video understanding and multi-modality video understanding respectively.  Thank you very much!

Hi! It's hard to summarize different costs and you can run the training code to get the cost for different models.
The training of VideoMamba is about 1.5~2x slower than ViT for image understanding and short-term video understanding, though the inference speed is higher.
For VideoMamba-M, our largest model, the 300-epoch fine-tuning on ImageNet costs about 3 days on 16 A100s. The 50-epoch fine-tuning on K400  with 8 frames costs about 2 days on 16 A100s. The 200 epoch masked pretraining on K400 costs about 3 days on 32 A100s. As for the long-term video datasets, it only requires a few hours since the datasets are small.

Thank you for your reply!
How about the 10-epoch distillation pretraining on WebVid-2M and CC3M (and it seems that you also trained on a 25M dataset like UMT, how about that?). By the way, is “distill VideoMamba-M over 800 epochs” in page 10 of your article actually “200 epochs”?

Thanks for your correction. For K400 and SSv2, we indeed distill it for 800 epochs. (200 epochs was used for K710 in UMT). For 5M data, it's much faster and only requires about 1 day.

Thank you for your reply!
Did you do the 200-epoch training on K710 before the 5M dataset like UMT? If you did, how long was it?
To sum up, you first conducted a 300-epoch pretraining on Imagenet1K for 3 days on 16 A100s. Then you finetuned it on K400 for 2 days 50 epochs on 16 A100s. After doing that, you repretrained a model on K400 and SSv2 for 3days 800 epochs on 32 A100s, and finetuned it on long-term video datasets. Finally, following UMT, you repretrained another model (on K710 and) on a 5M dataset for 1 day 10 epochs on 32 A100s.
Can I summarize your training process like this?

That is not totally correct. There are two pretraining ways: supervised and self-supervised.
For supervised: "you first conducted a 300-epoch pretraining on Imagenet1K for 3 days on 16 A100s. Then you finetuned it on K400 for 2 days 50 epochs on 16 A100s"
For self-supervised: "you repretrained a model on K400 and SSv2 for 3days 800 epochs on 32 A100s" and "Then you finetuned it on K400 for 2 days 50 epochs on 16 A100s"
Either of the above models can be fine-tuned on long-term video datasets.
As for multi-modality dataset, we load the self-supervised pretrained weights, and fine-tuned it "on a 5M dataset for 1 day 10 epochs on 32 A100s".
We do not use K710 pretraining in VideoMamba.

Got it! Thank you for your patient reply！


Custom reports in gradle plugin

Replacement of #1596. Closes #1583
This allows users to use their custom reports with the gradle plugin.
detekt {
    reports {
        custom {
            reportId = "CustomJsonReport"
            destination = file("build/reports/detekt.json")
        }
    }
}

Great job! Thanks for the time you've put into this! I really appreciate it! Hope that @arturbosch approves this 😁

but in my project, there is nothing output when i use custom report, hope give me some advices

You have implemented a custom OutputReport or ConsoleReport?
What were your steps integrating a custom report?
Sorry we need more details to help you. Please consider opening a new issue for this.

You have implemented a custom OutputReport or ConsoleReport?
What were your steps integrating a custom report?
Sorry we need more details to help you. Please consider opening a new issue for this.

sorry, It was careless of me
I hava  implemented OutputReport, and declare it with Java SPI, it's work fine
but i have to add code:
detekt 'io.gitlab.arturbosch.detekt:detekt-cli:1.0.0-RC15'
I found  Similar problem with this issue: https://github.com/arturbosch/detekt/issues/1143
is it right?

Yes I think you are getting the same problem. Try using detektPlugins which is meant to be extended by plugins.

ok,it's work fine!  thank you!


Fix for Team Up Tyranitar

By the way, @lmar50 you didn't have to close your PR when there's additional things requested, you should've just committed to the same branch for the fix, then this PR would've get automatically updated.


Remove: Feixiang.Feixiang version 3.1.0

403 Forbidden
Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

URL: https://dl1.flyele.net/application/windows32/3.1.0/flyele_windows32_prod_3.1.0-9b5be511f4_guangwang.exe
Response status code does not indicate success: 403 (Forbidden).
(Automated message - build 876)


Changs for Bug: https://github.com/apache/apisix-java-plugin-runner/i…

…ssues/254
Please answer these questions before submitting a pull request

Why submit this pull request?

[x] Bugfix

[ ] New feature provided

[ ] Improve performance

Related issues

Bugfix

Description

How to fix?

New feature or improvement

Describe the details and related test reports.

Source branch

Related commits and pull requests

Target branch

@tao12345666333 pls hele us to review this PR thx

https://github.com/apache/apisix-java-plugin-runner/issues/254

Maybe @soulbird can help you

Will you please fix this bug yourself as I dont have further time for development

Will you please fix this bug yourself as I dont have further time for development

hi. can you take a look the CI ?

Please assign it to me and I will get it done!

Fixed some CI/CD issues

@abhi0476 Please refer to the ci error content to modify the problem in the code. In addition, you can run the mvn clean install command locally and submit the code after confirming that it passes the mvn check.

@abhi0476 hi, are you still following up on this PR?

@abhi0476 hi, are you still following up on this PR?

Yes fixed the CI

@abhi0476 The CI is still failing. PTAL

@abhi0476 Please check the CI


Removes Builder::geoWithin() parameter type hint

Thanks!

@alcaeus: When merging PRs, can you make sure they're marked with a label and milestone? This will help when generating changelogs for subsequent releases.


cherry-pick: return error when read index is dropped due to invaild leader

Signed-off-by: 5kbpers<EMAIL_ADDRESS>Cherry-pick https://github.com/tikv/tikv/pull/5316

CI failed

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests


Errors for PiAware in syslog

I am getting the following errors repeatedly in my syslog file and was wondering if I could some assistants with how to solve it:
Aug 21 14:26:37 PiAware rbfeeder[3139]: rtlsdr: error opening the RTLSDR device: Device or resource busy Aug 21 14:26:39 PiAware rbfeeder[516]: #033[35m[#033[33m2024-08-21 14:26:39#033[35m]#033[0m  Can't connect to 978 source (<IP_ADDRESS>:28380). Waiting 5 second... Aug 21 14:26:40 PiAware rbfeeder[3145]: Wed Aug 21 14:26:40 2024 CDT  dump1090-rb 1.0.10 starting up. Aug 21 14:26:40 PiAware rbfeeder[3145]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000) Aug 21 14:26:40 PiAware rbfeeder[3145]: usb_claim_interface error -6
I was wondering if I could get some suggestions as to how to fix the issue.

Is you PiAware not working properly?
It seems the RTLSDR device is marked busy (aka in use). Do you have any other services running that uses the RTLSDR dongle?

It looks like I was able to get it working by reinstalling  feeder
software. Thank you
On Mon, Aug 26, 2024, 3:05 AM Rick @.***> wrote:

Is you PiAware not working properly?
It seems the RTLSDR device is marked busy (aka in use). Do you have any
other services running that uses the RTLSDR dongle?
—
Reply to this email directly, view it on GitHub
https://github.com/flightaware/piaware/issues/103#issuecomment-2309599498,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIAGHEY22XUPQVS2BKYTRMTZTLOVPAVCNFSM6AAAAABM4V4Y6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBZGU4TSNBZHA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Into to server inlets branch

The last commit is before me using data store.

Here is my website link:
https://afeenster-step-2020.ue.r.appspot.com/index.html


Can't get NeoVim extension to load on M1 Pro MacBook Pro

Every time I try to enable the NeoVim extension I get these error messages. It was working fine on the previous machine, an M1 13" MacBook Pro.

Any suggestions on how I can fix this? I'm using the Vim extension in the meantime, but definitely prefer the NeoVim extension.

@chivalry I encountered the same issue, could you describe the way you solve it?


config: one cfg file integration for rsu,fpgareg

Implement new opae.admin.config module which loads and parses
configuration data for rsu.py and fpgareg.py at module load
time.

Coverage decreased (-0.03%) to 66.105% when pulling 6f5c7b61907bf43b764a993650cb279f4930f32f on tswhison/admin-cfg into 7cc1a98c10aacd08f95c13dec044e2d76ae69d38 on feature/config-file.


Comment filter now always reflow to next line

It should be on the same line as "N comments" when there is space.
Also, it shouldn't be touching the horizontal separator when reflowed.

[ ] Please remove this, or add specificity.

[ ] BEM please, if possible.

[ ] Can we please not change global values unless one is owning the please and very familiar with it, or have a very strong reason to do so?


Can we get rid of the /apps section?

@jcnelson do you think we can get rid of the apps section and just use the /resources section for resource calls and focus on making the creation of a /stores as the equivalent of creating an app record for the user?

I can get behind making /resources its own top-level route.
I'm not sure I agree with making /stores a top-level collection.  I see the "root" of an application's state as a user, which has a datastore, a keypair, a default session lifetime, a set of API method calls the user can make, and so on as properties.  We can stop giving stores a separate :storeID, however, if you want there to be a 1-to-1 correspondence with users (in doing so, we'd also drop the methods for creating and deleting stores, since that would happen as part of creating and deleting the user).

Oh I don't mean we should make /stores a top-level collection.
I actually meant that "Get all app accounts" (GET /users/{userID}/app) can be replaced with "Get all stores".

We can stop giving stores a separate :storeID, however, if you want there to be a 1-to-1 correspondence with users (in doing so, we'd also drop the methods for creating and deleting stores, since that would happen as part of creating and deleting the user).

Yes I like this. Each app-user-pair would be unique and this would be reflected in the path, which has both the user ID and the app ID.


Routine Load Running Error [failed to get partition meta: Local: Timed out]

Steps to reproduce the behavior (Required)

create routine load
CREATE ROUTINE LOAD routine_load_Test1 ON Table1
COLUMNS TERMINATED BY ",",
COLUMNS (c1,c2,c3,c4,c5)
PROPERTIES
(
"format"="json",
"max_error_number"="1000"
)
FROM KAFKA
(
"kafka_broker_list"= "kafkahost:9092",
"kafka_topic" = "topic1",
"property.group.id" = "group1"
);

2.show routine load \G
3. resume routine load for routine_load_Test1
Expected behavior (Required)
routine load status is running
Real behavior (Required)
routine load status is PAUSED
ReasonOfStateChanged: ErrorReason{errCode = 4, msg='Job failed to fetch all current partition with error [failed to send proxy request to TNetworkAddress(hostname:behost, port:8060) err failed to send proxy request to TNetworkAddress(hostname:behost, port:8060) err [failed to get partition meta: Local: Timed out]]'}

be error massage
W0816 15:49:44.400926 39686 data_consumer.cpp:322] failed to get partition meta: Local: Timed out

StarRocks version (Required)
main branch，latest code  error
I test version-2.3.0  is  success

This is fixed by https://github.com/StarRocks/starrocks/pull/10001.

@shshenhua Could please check with the new version ?

this error is solved
W0816 15:49:44.400926 39686 data_consumer.cpp:322] failed to get partition meta: Local: Timed out
but now a new problem
The row is out of partition ranges. Please add a new partition.. Row: [xxx, 'xxx', '1', xxx 'F', 0]
table has 5 column and routine load column also 5 column，error massage has 6 column
when I create table with 6 column，and routine load with 6 coulmn， error message has 7 column

@rickif

Is the destination a primary key table?

yes  it is primary key table

The primary key table would add a internal operation column, so the error message contains 6 columns.
This has no effect on your data loading.

ok thx

ReasonOfStateChanged

So, what's the error message, or just some info logs?
We should fix the inappropriate log message if it's just a normal loading to Primary Key table.

Error message is :
ErrorLogUrls: http://xxx:port/api/_load_error_log?file=error_log_993fa4f1995e4c4d_8cdfe76941655990,
Error: The row is out of partition ranges. Please add a new partition.. Row: [6836723, 'M5044864513', '1', 2022-08-22, 'F', NULL, 0]
kafka_table has 0 rows
mysql> select * from  kafka_table  limit 10;
Empty set (0.01 sec)
@jaogoy @rickif

error message is
Error: The row is out of partition ranges. Please add a new partition.. Row: [4410368, 'M104208237', '1', 2022-08-22, 'F', 0]
and kafka_table has 0 rows
mysql> select * from kafka_table ;
Empty set (0.01 sec)
create kafka_table sql:
CREATE TABLE kafka_table (
c1 int(11) NOT NULL COMMENT "",
c2 varchar(50) NOT NULL COMMENT "",
c3 varchar(10) NOT NULL COMMENT "",
c4 date NOT NULL COMMENT "",
c5 varchar(10) NULL COMMENT ""
) ENGINE=OLAP
PRIMARY KEY(c1, c2, c3, c4)
COMMENT "OLAP"
PARTITION BY RANGE(c4)
(PARTITION p20220818 VALUES [('2022-08-18'), ('2022-08-19')),
PARTITION p20220819 VALUES [('2022-08-19'), ('2022-08-20')),
PARTITION p20220820 VALUES [('2022-08-20'), ('2022-08-21')))
DISTRIBUTED BY HASH(c1) BUCKETS 10
PROPERTIES (
"replication_num" = "1",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "DAY",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-1",
"dynamic_partition.end" = "1",
"dynamic_partition.prefix" = "p",
"dynamic_partition.buckets" = "10",
"in_memory" = "false",
"storage_format" = "DEFAULT"
);
routine load sql:
CREATE ROUTINE LOAD routine_loadtest ON kafka_table
COLUMNS TERMINATED BY ",",
COLUMNS (c1,c2,c3,c4,c5)
PROPERTIES
(
"format"="json",
"max_error_number"="1000"
)
FROM KAFKA
(
"kafka_broker_list"= "kafkahost:9092",
"kafka_topic" = "topic",
"property.group.id" = "testgroup"
);
@rickif @jaogoy


Unknow Command

Hi, i have this error, what ic an do?

just type cfb

you don't choice command line

type like this


5A-75E V8.2 cannot connect ethernet

I've received a new batch of 5A-75E cards. Unfortunately this is a version 8.2 card. This card has the same FPGA and memory as the previous card, however I suspect that the pinout is different: I cannot connect with etherbone with this card. Does anybody else had some more success with a V8.2 card?
On the other hand: How to do pin mapping for PHY?

Checked the components on the board. The only difference with version 6.0/8.0 seems to be the change of the FPGA to LFE5U-25F-7BS256J. This appears to be a higher speed grade but cannot imagine that this would be a valid reason to change layout of the board itself. The other components are equal.

This issue can be closed. It must have been a fluke while compiling. Re-compiled and reflashed the board and it now responds to ping messages.
Conclusion: When you receive a revision 8.2 board, you can use the version 6.0 pinout.

@Peter-van-Tol did you succeed in replacing the buffer IC's?

Yes, I did moderate successfully replace the buffers. I screwed up the pads of one buffer beyond what could repaired with wires, so two Hub75 connectors don't work. But for my machine enough IO

If you have any troubles, please let me know for some advice.

Thanks for your reply!
1 question, did you also replaced them on the outputs or did left these original?
In my case I definitely did something wrong.. try to figure out what ;)
I received your stepgen PCB's! The parts are ordered, Thanks!

I only replaced the buffers on the inputs. On a 5a-75e I wanted to have 8 connectors configured as output. So I replaced 6 buffers in total and left the output and the shared pins buffers untouched. See picture below for the modified buffers.

For each buffer I've cut the trace for VCC and wired them to 3.3 Volts from the JTAG header (a Must, otherwise you feed 5 Volt to the Fpga, which releases the magic smoke). To configure them as output I also cut the trace to the direction pin and wired that to ground.

Thanks for the additional information, maybe I should have asked for this before frying my board...
Here is what I did: I replaced the output side (I marked them below, and the first one, u28 is already replaced here) as well... don't ask why ;-) I thought I read it somewhere.

This was my final (and fried) result:

I picked the 3.3V (for the VCC) from the JTAG and the GND (for the DIRection) from a nearby cap.

Your solder skills rock! Way neater then what I ever produced and no ripped pads.
Did you cut the traces (and check for connections) before soldering the buffers?
Next time, save the trouble of doing the output, that's not necessary.
If it is fried, I might have one in stock. Might arrive faster then ordering a new one from China.

Thanks for the compliment, In the past I followed some tutorial's on youtube. This one is one the better ones: https://youtu.be/naXglCTEtLw?t=123 This guy has more good video's. It's a mix of the right temperature (I rarely go above 300 degree), patience (very hard for me), enough flux and cleaning the old soldering pads with (In English I think it is) solder suck wire.
But..... They might rock but they also fried my CPU :D
I really cut the old traces, checked and double checked them with my multi meter, there is no connection between the VCC pin and the 5v anymore...
My 74LVC245's came from china... this could also be a cause. I ordered some new ones from Farnell, they are already here.
My new board is is already in Liege (Luik) I expect it to arrive tomorrow or Saturday. Thanks for the offer!

The maximum frequency will depend on the following factors:

optocoupler. With 80 kHz they are relative descent. With my encoder I use differential lines, decoder and 6n137 optocoupler and this should be able to get to 1 MHz. There are even faster digital optocouplers which can support up to 10 MHz, but they are costly.
firmware. When using this card with my  Litexcnc firmware, the clockspeed of the card is roughly 40 MHz. The pin is polled every cycle, so it will definitely be picked up with speeds up to 5 MHz.

But how fast do you want your encoder to go? For my machine there is an encoder on the main spindle motor. Maximum speed is 3000 rpm and resolution is 2500 ppr. This gives a top frequency of 3000 x 2500 / 60 = 125 kHz....


feat: add Float.toBits and Float.fromBits

This PR adds raw transmutation of floating-point numbers to and from UInt64. Floats and UInts share the same endianness across all supported platforms. The IEEE 754 standard precisely specifies the bit layout of floats. Note that Float.toBits is distinct from Float.toUInt64, which attempts to preserve the numeric value rather than the bitwise value.
closes #6071

I don't think this is sound unless you clear NaN payloads first, or take a proof that the float is a canonical NaN. Because float implementations are nondeterministic in NaN payload bits and this violates the expectation of opaque functions being functional.

Is what's missing is that no pair of nans should compare equal, even identical bit patterns?

I don't think this is sound unless you clear NaN payloads first

Canonicalization would be costly. Is what's missing is that no pair of nans should compare equal, even identical bit patterns?

The opposite: two nans with different payloads should be equal according to lean's = relation. This is impossible if you have Float.toBits because UInt64 obviously can distinguish them, unless you make this function unsafe.

Why should they be equal? IEEE-754 semantics is encodable in Lean.

If NaNs are not treated as lean-equal, then you have much worse consequences: Float.add and friends cannot be functions of type Float -> Float -> Float at all, because they can produce different results given the same input, which is not something lean functions can do (provably). Taking a quotient allows for the nondeterminism allowed by the IEEE spec to be unobservable in lean which restores soundness, but it does so at the cost of making Float.toBits unsafe unless it targets not UInt64 itself but rather a quotient thereof.

I don't think this is sound

The function is defined as opaque - doesn't that mean that logically, its an unspecified function, and soundness is not under threat? Or am I missing something here?

Ah, ok. You can prove things about the function that are not “true” in some sense, but soundness of the logical system isn't affected, right?

This may be of interest: double-float support in the ACL2 theorem prover:
https://www.cs.utexas.edu/~moore/publications/double-float.pdf

Float.add and friends cannot be functions of type Float -> Float -> Float at all, because they can produce different results given the same input

So an example of this concern is something like having distinct NaN bit patterns, nan1 and nan2, and some expression like nan + 7 returns nan1 and nan2 nondeterministically, as allowed by the IEEE spec. I'm not an expert. Is there evidence this really happens on the same processor?

Two common reasons you might encounter nondeterminism like that:

The processor puts information regarding the instruction on which the failure happened into the payload bits as a kind of exception handling. This is not stable due to optimizations.
One of the nan operations was evaluated by the hardware and the other one was evaluated by the compiler via constant propagation, and they differ on NaN handling. This was a recent source of issues in the Rust language, which tries to be correct around this kind of thing, and you can see that the spec they landed on is explicitly nondeterministic because they were not able to promise more than this under the circumstances.

Note that this is not the first time this issue has come up, see #1459 for nondeterminism leakage through the Float.toString function.

Does https://github.com/leanprover/lean4/pull/6097 address these concerns raised here?

Yes it does. Was there also a function exposed for converting float arrays to byte arrays? That might need the same treatment.


Test from_bytes_be for bigint felt

Test from_bytes_be for bigint felt
Description
Test the from_bytes_be function implementation for FeltBigInts
Checklist

[ ] Linked to Github Issue
[x] Unit tests added
[ ] Integration tests added.
[x] This change requires new documentation.

[x] Documentation has been added/updated. The test is documented in the code comments

I've made a bit of a mess as I've corrected the things you mentioned plus making codecov happy. All the changes to Div are split between this PR and https://github.com/lambdaclass/cairo-rs/pull/817. If we can get any of the two merged I'll finish up correcting whichever is left

Ready for another review :)


[Bug] grafana-operator endless error loop on faulty user provided GrafanaDashboard

Describe the bug
The grafana-operator is stuck in an endless error loop if a user introduce a faulty GrafanaDashboard JSON or specification.
Version
Full semver version of the operator being used e.g. v4.10.0, v5.0.0-rc0
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error
etc.

Expected behavior
That the operator does not stop on a GrafanaDashboard resource with a faulty JSON / spec, but logs it, and moves on to the next.
When offering the CRD as an option to end users you can't be expected to always control from a central perspective each and every new dashboard, so the operator should be able to progress.
Suspect component/Location where the bug might be occurring
unknown
Screenshots
1.6859809551111598e+09 ERROR   error updating dashboard        {"name": "dashboard-name", "namespace": "namespace-name", "error": "invalid character 'F' after top-level value"}
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).manageError
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:481
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).reconcileDashboards
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:337
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).Reconcile
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:100
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.SetupWithManager.func1
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:183
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.SetupWithManager.func2
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:192
1.6859809666706252e+09 ERROR   error updating dashboard        {"name": "dashboard-name", "namespace": "namespace-name", "error": "invalid character 'F' after top-level value"}
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).manageError
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:481
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).reconcileDashboards
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:337
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).Reconcile
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:100
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.SetupWithManager.func1
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:183
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.SetupWithManager.func2
       /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:192

Runtime (please complete the following information):

OS: CoreOS
Grafana Operator Version v4.10.1 (latest provided by RedHat)
Environment: OpenShift 4.9, 4.10, 4.11, etc.
Deployment type: deployed
Other: N/A

Additional context
N/A

Related to #1021 - but as that issue concerns itself with feedback to the user - this issue concerns itself with managing dashboards at scale especially with user provided dashboards outside the platform team.

Before #1027 was merged (part of v5.0.0-rc3), dashboard would be fetched once per Grafana instance, so I guess you would see more errors than now. Now, a dashboard is fetched only once.
Currently, in case of any error, we requeue CR processing with 10s delay. So, whenever there's any issue in decoding JSON, you'll see an attempt to reconcile every 10 seconds. It's not really a loop as reconciles are processed individually each time.
The dashboard calls getDashboardModel()  to resolve datasource and then unmarshal json. In case of an error, like I mentioned, the CR is requeued:
https://github.com/grafana-operator/grafana-operator/blob/c6e187f4dee1d032b3b637d1bbea385bf365b399/controllers/dashboard_controller.go#L195-L199
By changing return ctrl.Result{RequeueAfter: RequeueDelay}, nil to return ctrl.Result{Requeue: false}, nil we can disable that behavior for your use-case.
Status updates are a bit more difficult to implement, because each status update makes a CR appear in queue through WATCH again, so there will be just another reconciliation attempt. Thus, it's important not to add there any dynamic data like timestamps, otherwise we'll have reconciliation loop.
My point is that, yes, we can improve operator's beahvour, the only question is when :)

@pb82 yes, it'll be detected just fine (through WATCH), I tested that :)
Btw, one more case where requeue shouldn't happen: CR with multiple fetchers.

This is also mentioned in https://github.com/grafana-operator/grafana-operator/issues/1021


Channel icon sometimes not showing on video page with direct link/refresh

Some examples, may need to refresh page(?) for it to break:
https://odysee.com/@a:f1/AAy:c
https://odysee.com/@RetroTechRalph:5/3-xbox's,-ebay-junk.-part-1.-the-xbox:b
channel-icon.webm

Shows when you mouse over it too


Correcting layout issues

Updated html and json to address formatting discrepancies between sandbox and live
Changes / Comments
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[ ] Does the pull request title have the sheet name(s)? Include each sheet name.
[ ] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[ ] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.


Turkish Language Support

Hi,
Can I help for supporting Turkish?
Thanks

Hi,
What help do you need to prepare translation?
Greetings,

Clone the repo, create a new file with the format README..md, translate the file then create a PR.

Ok, I'll prepare asap


Queue Length metics not populating

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


Drag and drop not working

[x] Use the latest version of CalendarKit
[x] I've read the Contribution Guidelines
[x] I've searched for existing GitHub issues

Issue Description
Drag and drop of events not working. I can see delegate methods being called for tap and long press but I can't seem to have the drag and drop working.

Please, attach a reproducible example with code.

I initialize the view controller like this
self.calendarViewController = TripCalendarViewController.init(nibName: "TripCalendarViewController", bundle: nil, plan:plan)

class TripCalendarViewController: DayViewController {

 override func viewDidLoad() {
        super.viewDidLoad()

        dayView.autoScrollToFirstEvent = true
        dayView.delegate = self
        dayView.dataSource = self
        dayView.isUserInteractionEnabled = true
        self.reloadData()
    }

    init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?, plan: TrippyCommons.Plan) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
        self.plan = plan
    }

 override func eventsForDate(_ date: Date) -> [EventDescriptor] {
        var events = [Event]()

        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = "yyyy-MM-dd"

        // Each dailySchedule is a day full of events
        self.plan.schedule?.dailySchedule.forEach({ dailySchedule in

// CODE TO CREATE EVENT HERE - used the exact code as the example code in the repo

That's a wrong place to create an event. Unfortunately, there is no documentation yet on how to use the event creation API.
These are the methods to be used for the editing API, you don't have to create events in the eventsForDate method at all:

  override func dayViewDidLongPressEventView(_ eventView: EventView) {
    guard let descriptor = eventView.descriptor as? Event else {
      return
    }
    endEventEditing()
    print("Event has been longPressed: \(descriptor) \(String(describing: descriptor.userInfo))")
    beginEditing(event: descriptor, animated: true)
    print(Date())
  }

  override func dayView(dayView: DayView, didTapTimelineAt date: Date) {
    endEventEditing()
    print("Did Tap at date: \(date)")
  }

  override func dayViewDidBeginDragging(dayView: DayView) {
    print("DayView did begin dragging")
  }

  override func dayView(dayView: DayView, willMoveTo date: Date) {
    print("DayView = \(dayView) will move to: \(date)")
  }

  override func dayView(dayView: DayView, didMoveTo date: Date) {
    print("DayView = \(dayView) did move to: \(date)")
  }

  override func dayView(dayView: DayView, didLongPressTimelineAt date: Date) {
    print("Did long press timeline at date \(date)")
    // Cancel editing current event and start creating a new one
    endEventEditing()
    let event = generateEventNearDate(date)
    print("Creating a new event")
    create(event: event, animated: true)
    createdEvent = event
  }

Please, follow the example in the CustomCalendarExampleViewController.swift

That worked.


Java_org_wysaid_nativePort_CGENativeLibrary_cgeFilterImage_2MultipleEffects

I'm making a filter for the video call, I want to use the above method because I don't want to have to create a bitmap. But the above method is unusable.
I would be very grateful if there was a method has param YUV bytearray and return ARGB bytearray. The current method has param is the bitmap and returning the bitmap

Please produce your problem within the demo,  and I'll fix that quickly.


System test state store throughput

Background
Related to:

https://github.com/gchq/sleeper/issues/2934

We created a lambda to perform asynchronous commits of all updates to the state store, in order to reduce contention. This is particularly necessary for the transaction log state store.
Description
We'd like to system test the throughput we can get from the state store commit lambda, and from queries against the state store.
Analysis
We can do this without having real operations run in the system, if we simulate the state store requests that would be made by those operations. We can have the system test submit requests directly to the FIFO queue consumed by the lambda.
We'll need to simulate all the state store requests that would really be made, otherwise the committer lambda may refuse some of the requests if they're not valid. If we need to do any updates that aren't currently supported by the committer lambda, we could wait until they are supported, or we could do them before we start the test.
We may be able to simulate queries at the same time as the lambda performs requests by making many requests from inside the test code. An alternative would be a load testing library, or real ECS tasks or lambda instances.
We'll also want to test the case where there are multiple or many Sleeper tables, particularly as this may result in a Sleeper table being reallocated between different instances of the state store committer lambda. This may have an impact on throughput.
We could split out a separate issue for contention of reads at the same time as state store updates through the committer.
Here are issues we've split from this:

https://github.com/gchq/sleeper/issues/3054
https://github.com/gchq/sleeper/issues/3043
https://github.com/gchq/sleeper/issues/3061
https://github.com/gchq/sleeper/issues/3070
https://github.com/gchq/sleeper/issues/3041
https://github.com/gchq/sleeper/issues/3060

Here are some issues that were originally split from this but have been moved to https://github.com/gchq/sleeper/issues/2546:

https://github.com/gchq/sleeper/issues/3120
https://github.com/gchq/sleeper/issues/3119
https://github.com/gchq/sleeper/issues/3098

Closing as all the issues that are still part of this have been finished.


Investigate other activities that may represent UNSPECIFIED_ACTIVITY.

When there are other activities displayed by Discord, it is safe to assume that it should only be a Spotify Class. But I think there's more than that. I have to investigate since there are still some elements that I haven't recognized yet. Some actions such as Twitch seem to be another activity that may represent the UNSPECIFIED_ACTIVITY. So with that said, the following should be done:

[ ] - Identification of other states other than Spotify in API Reference of Discord.py
[ ] - Test Case of Streaming State.
[ ] - Code Patch.

This is expected to be done or is in progress if the development is in post-era.

Closed as the task was copied over #12.


[PyTorch] Float8Tensor uses cached transpose if available

This PR changes the transpose behavior of Float8Tensor:

If update_cache == True, it will compute the transpose and update the cache
If update_cache == False and the cache is empty, it will compute the transpose
If update_cache == False and the cache is populated, it will return the cached transpose

This is somewhat of a kludge to support transpose caching with Megatron GPT (see https://github.com/NVIDIA/NeMo/pull/7909). Its forward function doesn't keep track of gradient accumulation steps, so it doesn't pass is_first_microbatch to LayerNormLinear or Linear. E.g.:
https://github.com/NVIDIA/Megatron-LM/blob/9290c730d04b482be8fae92a4186fe4ff0c95270/megatron/core/transformer/attention.py#L271C31-L271C31
Compare to NeMo GPT, which contains TE-specific logic like is_first_microbatch:
https://github.com/NVIDIA/NeMo/blob/d81beac52423dbd04b48e4e04567b17df2428e3a/nemo/collections/nlp/modules/common/megatron/transformer.py#L1556
Discussion would be appreciated. This design ping-ponged a few times in https://github.com/NVIDIA/NeMo/pull/7885, e.g. https://github.com/NVIDIA/TransformerEngine/pull/452/commits/00b9c311e2f71c405f49ea8ef19da46fc01515b2. This approach is convenient with an FP8-aware optimizer since the optimizer doesn't need any access to the TE modules, just the FP8 params. There are also some alternative approaches:

Add TE logic to Megatron, especially is_first_microbatch, to keep the current API
Add arguments to the TE module constructors to control transpose caching
Add attributes to the TE modules or FP8 tensors to control transpose caching

/te-ci pytorch

/te-ci

/te-ci pytorch

Test failures are ONNX-related. This is ready to go.

The work in this PR was merged in https://github.com/NVIDIA/TransformerEngine/pull/529.


Ignore ambiguous components or resources

Objective

Fixes #9884
Add API for ignoring ambiguities on certain resource or components.

Solution

Add a IgnoreSchedulingAmbiguitiy resource to the world which holds the ComponentIds to be ignored
Filter out ambiguities with those component id's.

Changelog

add allow_ambiguous_component and allow_ambiguous_resource apis for ignoring ambiguities

@rj00a can I get your review on this as a user please?

@alice-i-cecile I added exceptions for Assets and Assets, but do you think we should do this for all Assets?

@alice-i-cecile I added exceptions for Assets<Image> and Assets<TextureAtlas>, but do you think we should do this for all Assets<T>?

I think so: @cart's opinion was that basically all of these ambiguities are noise. Probably include it in the docs for asset registration too?

We already store Schedules as a resource to be fair. I'd rather make this a field of that than move it up to the World level.

I actually started with it as part of Schedules and moved it to a separate resource since it's more a property of the world to be ambiguous on a component. I'm fine with moving it back into Schedules if that seems more appropriate.

I think that this is tightly coupled to the scheduling information: long-term, I think that all of our cross-schedule config belongs under Schedules. Move it there and then I think we can merge.


Gradle build pass and fix some bugs

Codecov Report

Merging #24 into dev will increase coverage by 0.44%.
The diff coverage is 33.33%.

@@             Coverage Diff             @@
##               dev      #24      +/-   ##
===========================================
+ Coverage     52.5%   52.95%   +0.44%
- Complexity     259      262       +3
===========================================
  Files           69       69
  Lines         1295     1301       +6
  Branches        74       76       +2
===========================================
+ Hits           680      689       +9
+ Misses         574      570       -4
- Partials        41       42       +1

Impacted Files
Coverage Δ
Complexity Δ

...bank/wecross/bcos/config/ChannelServiceConfig.java
66.66% <0%> (-15.48%)
5 <0> (ø)

src/main/java/com/webank/wecross/host/Peer.java
95% <100%> (ø)
10 <1> (ø)
:arrow_down:

...main/java/com/webank/wecross/host/PeerManager.java
77.47% <33.33%> (+8.31%)
23 <0> (+5)
:arrow_up:

.../webank/wecross/jdchain/config/JDChainService.java
0% <0%> (-100%)
0% <0%> (-9%)

...n/java/com/webank/wecross/bcos/config/Web3Sdk.java
40% <0%> (-60%)
4% <0%> (-3%)

...va/com/webank/wecross/bcos/config/Web3jConfig.java
28.57% <0%> (-50.01%)
2% <0%> (ø)

...ecross/p2p/peer/PeerRequestSeqMessageCallback.java
0% <0%> (-50%)
0% <0%> (-1%)

...k/wecross/jdchain/config/JDChainServiceConfig.java
14.28% <0%> (-25.72%)
2% <0%> (-2%)

.../com/webank/wecross/jdchain/config/JDChainSdk.java
0% <0%> (-18.19%)
0% <0%> (-1%)

...m/webank/wecross/resource/TransactionResponse.java
69.23% <0%> (-15.39%)
7% <0%> (-1%)

... and 10 more

Continue to review full report at Codecov.

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


feat(core): directive to add extra classes to components for m1 compat

See #1479
I don't like the name "Compatibility" but I don't have any better ideas.
I had originally been thinking we'd have to add the class in the constructor for each individual components, but this approach is much cleaner.

Good to merge if CI is green

Nope, problem with md-menu (which already has an md-menu class).


PDF Reports it wont shows up correctly

Hello I tried several Odoo versions from copier but none of them are renering PDF Company Logo correctly:
Logo on Company defined:

Sale Order Printed:

Do you think I have missed something?

Add the system parameter report.url and set it to http://localhost:8069
This will force Odoo and wkhtmltopdf to use that url rather than web.base.url which is probably being set to localhost:xx069, which isn’t accessible inside the container.

Yes, that's it! Thanks for answering, @theangryangel

Thank you it works!!
On Odoo database:
Configuration->Technical->Parameters->System Parameters
Add
report.url
value: http://localhost:8069/


Allow for adding the file name as a key

When parsing nested log files, the log file name may be important.
We should provide an option to include the file name in the log data

Merging this with #117


bootstrap-datepicker-1971 disableTouchKeyboard does not work with inp…

Fixes the issue #1917
Blurs the input field as well if disableTouchKeyboard is enabled.

Q
A

Bug fix?
yes

New feature?
no

BC breaks?
?

Related tickets
fixes #1971

License
MIT

Thanks, it's works for me !

Thanks for the PR.
Show event handler can also be used until the PR is merged when instantiating date picker:
$('.datepicker').datepicker().on('show', function(e){document.activeElement.blur()});


Add hg status info to hg segment similar to the git segment

Similar to #136 I have added hg status information to the hg segment prompt.

Number of added files -- ✓
Number of modified files -- ✎
Number of removed files -- ×
Number of missing files -- !
Number of untracked files -- ?

These characters could just be updated to use the same values as HG: A, M, R, !, ?
The characters differ from the git segment version with the exception of the Modified files since they are slightly different statuses. Additionally, I have chosen colors that try to match the colors outputted by the hg status command.
Unlike git, the incoming and outgoing change sets can be very costly for hg so they have been omitted from this update.
This is the longest prompt possible:

In the above example, each state has 2 changes, if there is only 1 change the number is omitted.

Hi @jleider thanks a lot for the PR. I don't want to have this segment (and potentially more in the future) duplicate code from the git segment. I'd also prefer them to behave exactly the same to whatever extent they can.
To address this I just introduced this change: https://github.com/milkbikis/powerline-shell/pull/221
If you have any feedback on it let me know. I'm planning to merge it by the end of the day at which point it would be great if you could use this new class to implement this functionality.

Hey @b-ryan, I agree that there is definitely some reusable code here, especially when it comes to the colors and prompt status characters. However one issue you'll need to address is that git, mercurial, subversion, etc. have different work flows. For example, mercurial doesn't have the concept of staged commits, at least by default, while git does. It's been a while since I've used subversion but I don't remember staged commits there either. The other feature that git exposes prominently in the prompt are incoming and outgoing change set statuses which appear to be very cheap calls. The remote incoming and outgoing change set statuses for mercurial are too costly to have in a command prompt and I would venture a guess that the same is true for SVN, CVS, etc. Since the different VCSs display disparate information based on their unique workflows, it may be cumbersome to combine much into a base class.
Either you push all possible status counts into the base class and each VCS child segment would fill in the ones it could OR keep base class rather empty, just enough to provide a scaffold for inherited usage, and it would be up to the child VCS segments to add their own particular count statuses. I think the latter solution is more maintainable going forward since each VCS segment will be able to determine exactly which statuses to track and promote.

I think your comment indicates to me that I could have written some class docs for RepoStats more than that something needs to change. I had thought about the fact that mercurial doesn't have staging the way git does. This line: https://github.com/milkbikis/powerline-shell/pull/221/files#diff-502824dc8ed864bed9db7e6cd7f4c1cfR141 is what makes this code reusable.
The way this is set up, if you never change the staged value (keep it as 0), then staging will be left out. Because of this, you can get away with only using those "stats" that apply to the particular version control. In git's case, it uses all of these properties, but mercurial might just use a portion of them and could even add an additional property if needed.

@jleider let me know if what I said makes sense / you think it will work.

I just merged my branch. I'd really like to see this branch updated to use the changes. Since the mercurial segment is heavily relied on, I'd also like to add tests. Let me know which (if any) of that you are able to handle.

I just saw the merge, Ill see if I can get to updating this over the
weekend.
On Fri, Apr 1, 2016 at 2:36 PM Buck Ryan<EMAIL_ADDRESS>wrote:

I just merged my branch. I'd really like to see this branch updated to use
the changes. Since the mercurial segment is heavily relied on, I'd also
like to add tests. Let me know which (if any) of that you are able to
handle.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/milkbikis/powerline-shell/pull/210#issuecomment-204507769

#288


Add STM tests for BigArray

Testing function from Bigarray module - sequential and parallel tests

Code looks good and clean! :+1:
I spotted a few SMTs in the comments, that's all.
CI tests are running now...


Rounding of all outputs

Why does textstat round all numeric outputs? The user could always round the result, but they can not "unround" it.

At this point, for backwards compatabilty. Textstat has pretty much always rounded its outputs. See this commit from 2014 - e874303dc.
I'm not against removing the rounding, but not until a major version release.


Invalid WatchKit Support

Hi, great tool !
I have one problem when uploading ipa to iTunes Connect:
Invalid WatchKit Support - The bundle contains an invalid implementation of WatchKit. The app may have been built or signed with non-compliant or pre-release tools.
I think it is because of the format of the ipa file.
could you please help me.
Thanks a lot

same issue here - if building via xcode and submiting via xcode it works
if building via ipa it compplains about invalid binary
any news on that?

Same here. Any updates?

This PR seems to solve the issue https://github.com/nomad/shenzhen/pull/258

Fixed by #258.

Thanks！


support requirejs setup

As the doc said, to setup this library in the browser (vs in node.js)  we include 2 script tags: one for pouchdb and one for pouchdb-quick-search in that order.The first script tag attach PouchDB to the window object. the second script tag look for window.PouchDB to register the plugin: window.PouchDB.plugin(exports);
Requirejs does not attach PouchDB to window object. Consequently, pouchdb-quick-search can not  be registered as a plugin. Any suggestion?

@khanhlu2013 did you find a way around?

I did find a way around it. We just need to build the plugin again like it is mentioned in this issue.
https://github.com/nolanlawson/pouchdb-all-dbs/issues/12


Remove our dependency on Microsoft.Toolkit.Win32.UI.XamlApplication

We originally needed this library (or a separate DLL in our own project)
to handle hooking up the XAML resource loader to the providers that our
application needed. It was introduced in its nascent form in 2019, in a
PR titled "Make XAML files work."
It appears we no longer need it, and the provider hookup is being
handled by our AppT2 base class override. I've tested this in Windows
10 Vb running unpackaged, and it seems to work totally fine. Crazy.
Removing this dependency saves us a couple hundred kilobytes on disk and
removes one consumer of the App CRT from our package.

🚀 thanks a lot for these changes, this will bring us closer to properly supporting a Windows Terminal build option without the dynamic visual studio runtime! 🙏🪄

@msftbot merge this in 10 minutes

I trust this change about as far as I could throw it... so I'd love to get a good validation pass on the release build after it lands :)

FWIW, I have been running a XAML Islands app in prod without that dependency for years :)
I've never liked that dependency so quickly worked getting rid of it once I realized it never did much.
https://github.com/TranslucentTB/TranslucentTB/commit/021ede702290573d871f742125ed5835e8a76de9

@sylveon thanks so much for that. Gives me the confidence to backport this to stable and remove one more variable from our troubleshooting pipeline :)

Could removing this have caused #14729? I'd reckon it's possible. Maybe there's an interplay between this and the FWP/Win11 version of the package.


Updating the Azure DevOps Extension version to 0.19.0.

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:
a

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

devops

devops

Created a new release for azure-devops-cli-extension. (https://dev.azure.com/ms/azure-devops-cli-extension/_build/results?buildId=130286&view=logs&j=516a99d3-db7c-5136-ef8c-05c63e967392)

Created a new release for azure-devops-cli-extension. (https://dev.azure.com/ms/azure-devops-cli-extension/_build/results?buildId=130286&view=logs&j=516a99d3-db7c-5136-ef8c-05c63e967392)

hi @houk-ms could you pls help to support this release? thanks. cc @fengzhou-msft

hi @houk-ms could you pls help to support this release? thanks. cc @fengzhou-msft

/azp run

@chandrasekharmudili can you take a look at the Linter error. A show command should be defined with show_command or custom_show_command to get the right exit code in case of 404.

@chandrasekharmudili any update?

/azp run

@chandrasekharmudili can you take a look at the Linter error. A show command should be defined with show_command or custom_show_command to get the right exit code in case of 404.

@fengzhou-msft : can you please re-run the instance once again because the build mentioned here has expired.

/azp run

@gauravsaralMs Please resolve conflicts first.


[linux] Snap build fails with LTO enabled

To reproduce install Flutter via snap add add set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) inside linux/CMakeLists.txt, before declaring targets.
The run will fails with LLVMgold.so unable to load plugins. I'm not sure why gold plugin is used though. The bfd linker will also fail with the following error, depending on platform
[  +23 ms]   = note: /snap/flutter/current/usr/bin/ld: /usr/libexec/gcc/x86_64-redhat-linux/13/liblto_plugin.so: error loading plugin: /var/lib/snapd/snap/flutter/141/usr/bin/../../lib/x86_64-linux-gnu/libc.so.6: version
`GLIBC_2.33' not found (required by /usr/libexec/gcc/x86_64-redhat-linux/13/liblto_plugin.so)

In case of Fedora 38, the system liblto plugin requires glibc 2.33, but flutter snap ships with 2.31 and the linker trying to load the plugin is using glibc shipped with the snap.

Hi @knopp
Per your comment here, I think this issue is more suited to flutter-snap repository. Do you think it's appropriate?

This indeed should be reported to flutter-snap. Closing.


Recursive generics in function parameters are inferred as {}, and produce funky Intellisense

TypeScript Version:  2.4.2
Code
function build<O extends Options<O>>(options: O) {}

interface Options<TSelf> {
    data?: {};
    processSelf(self: TSelf);
}

build({
    data: { hello: "world" },
    processSelf(self) {
        self.data.hello;
    }
});

Expected behavior:
The inferred type of O should be the type of the options object passed in.
self should be of type O.
self.data.hello should be accessible within the processSelf function.
If this is not supposed to work, I would expect O extends Options<O> to be an error.
Actual behavior:
The inferred type of O is Options<{}>.
self is of type {}.
self.data.hello is therefore not accessible.
Additionally, the Intellisense VSCode is providing for this seems to be wrong, or at least confusing. If this is unrelated then I'm happy to make a separate issue for that and remove it from here.
As these screenshots show, self is inferred as {} but it allows access to self.data. self.data is given type any according to the tooltip, but the error at .hello is

Property 'hello' does not exist on type '{}'.

When I explicitly specify self: {}, self.data becomes an error.

Real scenario:
In my real scenario Options has many more optional properties, and I want self to have only the properties specified, not every optional property. There are also many optional functions with the signature of processSelf(self: TSelf) and they do need to be part of the same options object.

The problem here is that in order to get the type O in your call to build, you need to get the type of processSelf. In the body of processSelf, the properties of O are requested when using self. When that happens now, TypeScript says "stop making inferences for O" because it needs a concrete type to operate on.
But since there are no completed inferences for O while checking the inside of the object, TypeScript falls back to the type parameter's constraint (which is implicitly {}).
@ahejlsberg worked on a way to prevent this when inferring the type of this in object literals, but at this point I don't know how we'd generalize to other parameters.

This seems to be doable with some slight changes:
declare function build<D>(options: OptionsWithData<D>): void;
declare function build(options: Options): void;

interface Options {
    processSelf(self: Options): void;
}

interface OptionsWithData<TData> extends Options {
    data: TData
    processSelf(self: OptionsWithData<TData>): void;
}

build({
    data: { hello: "world" },
    processSelf(self) {
        self.data.hello;
    }
});

it is important to note that the constraint is not an inference location. all what O extends Options<O> does is checks that whatever the compiler inferred for O is assignable to Options<O>


How do I modify

I hope fly into when I open the page.
but it is fly into when I scroll the page.
How do I modify this example:
http://Q.2QQ.net/t1.asp?id=991
Thank you.

I would first update to the latest versions of this plugin and jQuery:
http://code.jquery.com/jquery-1.7.1.min.js
https://github.com/paulirish/infinite-scroll/zipball/master
Could you try another translator? (http://translate.google.com if you haven't already)

I hope to open a page on the fly into that div. It is about to fly to scroll. What changes does it? Demo Address:
http://Q.2QQ.net/t1.asp?id=991
Thank you.

After the next page scroll does not appear in the source code, search engine is very friendly, how to let him do in the source code.


Update MosaikHeer.scn

changed default IEM Mix for all instruments:

Click and MD Mics are in the mix per default
set own instrument to 0dB (for drums, bass and keys)

changed OH send to livestream to pre-fader so drums can be properly heard in live stream
removed FX from IEM mixes except for guitar (guitar reverb left in) and vocals (vocal reverb and delay left in)
adjusted EQ for MD Mics (High- and Low-Cut) to remove bleed from cymbals and keep IEM mix clearer

For whatever reason, my code editor is not showing the pull request; that's why I copied the file over and incorporated the following changes and then closed this pull request:

changed default IEM Mix for all instruments:

Click and MD Mics are in the mix per default
set own instrument to 0dB (for drums, bass and keys)
removed FX from IEM mixes except for guitar (guitar reverb left in) and vocals (vocal reverb and delay left in)

adjusted EQ for MD Mics (High- and Low-Cut) to remove bleed from cymbals and keep IEM mix clearer

All of these changes are applied in version 4.2.0.
The following changes where not incorporated:

The tool you are using is probably aware of the newest firmware version for the M32 and is adding a couple of extra lines. I revoked those lines as I am not sure how the M32 will react to it.
changed OH send to livestream to pre-fader so drums can be properly heard in live stream; the reason here is that we should align better between Sound Engineer and Livestream Operator and what we need in the livestream; putting the overheads to pre-fader mode would mean, the livestream operator must bring down the volume of the overheads when it is not needed, otherwise the mics would be always open; and if the drummer is the music director and while the host is praying, the drummer is giving instructions to the band, the people in the livestream would probably hear it


Official Release with v13 Support

Per AudriusButkevicius's suggestion, I am opening this issue as a reminder that Syncthing v0.13 and v0.13.1 have been released, but that there is not yet an official release for discosrv that is compatible with the new global discovery protocol these two use. It may be a good idea to provide an official release soon for those wishing to upgrade their setups entirely to the v13 protocols without having to build their own discosrv.

Thanks, fixed! :)


Update default for danglingCloseParenthesis.

Fixes #199 .
Milestone 1.0 per #142 .
Note that I also removed the deprecated (& undocumented) preserveDanglingCloseParenthesis from the README examples.

Per comment on #199 , this should actually be Prevent for 0.1.4 compatibility, but Preserve produces no churn when updating from either 0.1.4 or 0.1.6, which is a slight advantage.
Please wait to merge until the desired default is confirmed.

Updating to Prevent per comment.


AttributeError: 'NoneType' object has no attribute 'create_favorite'

Dear tweepy team,
when I implement a rather straight forward Stream, that filters for keywords, from documentation and examples I understand on_status will receive a Status model.
The implementation looks somewhat like this:
class StreamLiker(tweepy.Stream):

    def on_status(self, status):
        if not status.favorited:
            status.favorite()

stream = StreamLiker(
        args.consumer_key,
        args.consumer_secret,
        args.token,
        args.secret)

stream.filter(track=["some very relevant keyword"])

With

Python 3.9.9
tweepy=04.8.0

the above produces this error:
Error on fav
Traceback (most recent call last):
  File "/Users/andreas/github/filterbubble/bubble.py", line 109, in on_status
    status.favorite()
  File "/Users/andreas/.pyenv/versions/3.9.9/lib/python3.9/site-packages/tweepy/models.py", line 375, in favorite
    return self._api.create_favorite(self.id)
AttributeError: 'NoneType' object has no attribute 'create_favorite'

having read the documentation and some of the code, I was expecting this should actually favourite the Status/Tweet.
I hope I am not missing something obvious?

Status.favorite is an undocumented method that uses an undocumented attribute _api, which is assigned the instance of API that Status is from when its initialized.
Status.favorite won't work with Stream, because there is no instance of API to use when initializing the Status object, so the _api attribute is None.

Since Status.favorite is an undocumented method and since there's not really a good way to handle this through Status and you can easily use your own instance of API, this won't be fixed.

Thanks Harmon


ESM import * as mongo

Hi,
When I use
import * as mongo from "hapi-mongodb" and use mongo to register like follows:
await server.register({
plugin: mongo,
options: dbOpts,
});
then I have to use:  request.server.mongo.db to make this work instead of request.mongo.db
Any explanation as to why this would happen?

Oh well, its working now. Not sure what I did but I converted my entire project to typescript. Might help someone. But closing it for now.


Increase memory request for GWP 3D test

This build shows that our gravity wave parameterization 3D test seems to need more memory, so this PR increases the memory request for this job.

bors r+


SOLR-16774: Docker version requirement documented

https://issues.apache.org/jira/browse/SOLR-16774

I'm thinking about adding a TIP box in the same paragraph, to give more options:

But if major Linux distros (Ubuntu, RHEL, Debian, Suse) already default to 20.10.10 or newer then it may not be a real need?

Or perhaps we only need to mention the cli param?

Or perhaps we only need to mention the cli param?

I like this one.   I wish I had known about this when running some other Java based images ;-)


Rename DetachError to LinkError (or something similar)

AMQP makes the distinction between a detached link and a closed link.  At present, our implementation only supports closing links.  However, the returned error type name is DetachError which is misleading.  If/when we add support for detaching/reattaching links, we can add DetachError.

Change will go out in v0.19.0


 This adds a lot of steps and friction for developers who may want to quickly start a package or run a project in their shell
Desired State
I set up a shell in advance with devbox init, and then add packages usingdevbox add. I now want to run a specific command or script in my Devbox Shell and then exit back to my normal shell, so I invoke my script or command with the Devbox CLI. This would be used to run my script in an isolated shell with all it’s dependencies, display the results, and then exit the Devbox shell.

This is something i see missing as well. I would like to use devbox inside CI and pre-commit hooks.

Hey everyone, this is now available in Devbox 0.0.7 -- you can run a one off command in your devbox shell using:
devbox shell -- <cmd>

This will launch a shell based on your devbox.json, run your command, and then exit back to your normal shell. For example:
~ $  devbox shell -- echo "Hello World"
Installing nix packages. This may take a while...
Starting a devbox shell...
Hello World
~ $

More info is in our new CLI Docs: https://www.jetpack.io/devbox/docs/cli_reference/devbox_shell/


Regular Expression Denial of Service (ReDoS)

I updated to v2.3.0 and low snyk.io returns what the issue title says.
Also this:
Vulnerable module: ms
Introduced through<EMAIL_ADDRESS>›<EMAIL_ADDRESS>›<EMAIL_ADDRESS>›<EMAIL_ADDRESS>
More info to this vulnerability: https://snyk.io/vuln/npm:ms:20170412
Is there a quick way to fix this?

Just because there's a vulnerability, does not mean it necessarily affect you. In this case only your own eslint configuration can provide a regular expression, so the risk does not exist.
That said, it'd be ideal to update the dep chain.

fixed in v2.5.0 or so


Update Composer dependencies (2021-10-01-00-05)

Visual regression test passed!
View the visual regression test report


Update repo to use felt252

https://github.com/starkware-libs/cairo/discussions/2468

I'll take this 🙂


drop dependency on dummy counter module

Now that npm has download stats for scoped modules, we no longer need this.

Build failures are unrelated. See #473.


(Chore) Increase minimal iOS version supported to 12

We  will be able to test on iOS 12.5.4 soon

[ ] update our browser support feature to check for iOS >= 12
[ ] on old versions show popup with recommendations to update your device instead of 'device/browser may not supported'

Devices compatible with iOS 12:

iPhone 5S.
iPhone 6.
iPhone 6 Plus.
iPhone 6S.
iPhone 6S Plus.
iPhone SE (1st generation)
iPhone 7.
iPhone 7 Plus.
and so on

iPhone 5s / SE are still the good and cheap devices and they support IOS 12
So iOS upgrade is possible to GD users having old phones
Currently statistics are showing there're almost no GD users are using iOS11:

@johnsmith-gooddollar @guodevguru
The popup is shown when you try to use < iOS 12


F821 On class's type in type signature within the same class.

I'm using Ruff v0.0.286 in the following.
For the following Python code:
#!/usr/bin/env python

class Foo:
    def __init__(self, name: str) -> None:
        self._name = str

    @staticmethod
    def from_int(n: int) -> Foo:
        return Foo(str(n))

x = Foo.from_int(5)

Ruff generates the following error:
user@host $ ruff test.py
test.py:8:29: F821 Undefined name `Foo`
Found 1 error.

Whereas Mypy says there is no error:
user@host $ mypy test.py
Success: no issues found in 1 source file

It seems that Ruff is not aware of a class's type definition from within the same class but only in side a type signature.
Please note that Ruff correctly does not error on the next line return Foo(str(n)). The issue seems to only happen within type signatures.

Hi!
I believe our behavior is correct here, the class is not available in the signature scope:
❯ python example.py
Traceback (most recent call last):
  File "/Users/mz/eng/src/astral-sh/ruff/example.py", line 3, in <module>
    class Foo:
  File "/Users/mz/eng/src/astral-sh/ruff/example.py", line 8, in Foo
    def from_int(n: int) -> Foo:
                            ^^^
NameError: name 'Foo' is not defined

You're correct! I fixed the code as follows:
#!/usr/bin/env python
from typing import Self

class Foo:
    def __init__(self, name: str) -> None:
        self._name = str

    @classmethod
    def from_int(cls, n: int) -> Self:
        return cls(str(n))

x = Foo.from_int(5)

Sorry for wasting your time. I really appreciate the quick reply! Thank you very much!

No problem! You can also use "Foo" but Self is a great new feature.


Tooltip not displayed in Workspace name

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

Issue is failing PR https://github.com/Expensify/App/pull/5812
Action Performed:

Navigate to workspace settings
Hover over the workspace name

Expected Result:
Tooltip should appear with the full workspace name
Actual Result:
Tooltip does not appear.
Workaround:
None needed, visual issue.
Platform:

Where is this issue occurring?

Web
Desktop App

Version Number: 1.1.8-0
Reproducible in staging?: Yes
Reproducible in production?: Yes (but should be fixed in PR https://github.com/Expensify/App/pull/5812)
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub

It is working fine in the main branch.

I agree that it looks like the code wasn't deployed properly. I don't think this should be a deploy blocker so I am demoting the issue and my suggestion is to re-evaluate this after the next deploy to staging. If it's still not there, then we'll need to figure out how to fix it properly for staging.

The part that baffles me is that the "Added tooltip for workspace name" actually does seem to exist in staging (see screenshot) but only the tooltip import!:

Clicking "View at this point in history" on the "Added tooltip for workspace name" commit on this page of historical commits, you can see the entire commit exists (importing Tooltip & using the Tooltip).
There's only one more commit on that file in the history (see link above), which is https://github.com/Expensify/App/commit/92953074b7cbe381fa8a0cc7fd933e0af5589d37#diff-f4168366e38bc17178db9db7be5a28974510a61b5b657dcfe9cc86ddc2b51677, a "merge commit" -> So I think that one mucked up somehow

I don't think so ... but great investigation so far! My guess is that someone had to manually resolve conflicts when a PR was CP'd to staging, and accidentally got rid of the tooltip.

Wait a minute ... how can I submit a PR if the code's already on main? 🙃 Need a new plan 😆

woohoo! Thanks, Rory.
On Mon, Oct 18, 2021 at 3:16 PM Alex Beaman @.***>
wrote:

Awesome, thanks @roryabraham https://github.com/roryabraham
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Expensify/App/issues/5907#issuecomment-946172936, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJMABYXWYUWQCBOTU3CQDDUHSFCVANCNFSM5GC75UZQ
.


Missing parameter required by StringTie if using STAR as aligner

Description of the bug
Ref: https://github.com/gpertea/stringtie
Missing XS tag from STAR.
bam file Header:
@PG     ID:STAR PN:STAR VN:STAR_2.6.1d  CL:STAR   --runThreadN 12   --runRNGseed 0   --genomeDir STARIndex   --readFilesIn EngTreg2_1_1_val_1.fq.gz   EngTreg2_1_2_val_2.fq.gz      --readFilesCommand zcat      --outFileNamePrefix EngTreg2_1.   --outSAMtype BAM   Unsorted      --outSAMattributes NH   HI   AS   NM   MD      --outSAMattrRGline ID:EngTreg2_1   SM:EngTreg2_1      --outFilterMultimapNmax 20   --alignSJDBoverhangMin 1   --sjdbGTFfile genes.gtf   --quantMode TranscriptomeSAM      --quantTranscriptomeBan Singleend   --twopassMode Basic
Quote from Stringtie:
"Any SAM record with a spliced alignment (i.e. having a read alignment across at least one junction) should have the XS tag to indicate the transcription strand, i.e. the genomic strand from which the RNA that produced this read originated. TopHat and HISAT2 alignments already include this tag, but if you use a different read mapper you should check that this tag is also included for spliced alignment records. STAR aligner should be run with the option --outSAMstrandField intronMotif in order to generate this tag."
Command used and terminal output
No response
Relevant files
No response
System information
No response

Fixed in https://github.com/nf-core/rnaseq/pull/874/commits/3716c62ecdb69c102db5e2c72dd24ac38a5f744e


doc: new post on webapp dev

put a webapp inside kubernetes with CloudNativePG

@jsilvela the links are pointing to localhost :)

Thanks for looking @sxd !! I've fixed some. Three of them do need to be localhost...

Any comment on the content @sxd ? Too long, not long enough? More adventure?

Any comment on the content @sxd ? Too long, not long enough? More adventure?

I think that you can include something related to pgbouncer and also escalate the web app and show the connections internally, will be useful


No authorization header

My BotConnectorBot isn't working because there's no header passed from Microsoft's server. When I get a message it looks like:
{ 'x-correlating-operationid': 'V4fVa2VBh3M=.dAA=.MQA2ADkANAAyADYANgAxADcAOQA2ADYANAA5ADYANgA1AA==.oTDx9LyL0QE=.91gOrML9EKM=.cZUdfQ4Gdb2Q/0P5Gke2MBv/5BWWh5g1z0aLdio0Nzs=',
  'content-type': 'application/json; charset=utf-8',
  host: 'xxx.xxx.xxx.xxx:3978',
  'content-length': '952',
  expect: '100-continue' }

{
  "type": "Message",
  "id": "xxx",
  "conversationId": "xxx",
  "created": "2016-04-01T01:14:21.8846104Z",
  "language": "en",
  "text": "awdawdawdawdawd",
  "attachments": [],
  "from": {
    "name": "devportal",
    "channelId": "test",
    "address": "devportal",
    "id": "xxx",
    "isBot": false
  },
  "to": {
    "name": "ChesterBot",
    "channelId": "test",
    "address": "chester",
    "id": "chester",
    "isBot": true
  },
  "participants": [
    {
      "name": "devportal",
      "channelId": "test",
      "address": "devportal",
      "id": "xxx",
      "isBot": false
    },
    {
      "name": "ChesterBot",
      "channelId": "test",
      "address": "chester",
      "id": "chester",
      "isBot": true
    }
  ],
  "totalParticipants": 2,
  "mentions": [],
  "channelConversationId": "chester",
  "hashtags": []
}

The BotConnectorBot then denies the connection because it's missing a header. Here's the code I'm running on my side, although I think it's an issue with Microsoft's servers:
var restify = require('restify');
var builder = require('botbuilder');

// Create bot and add dialogs
var bot = new builder.BotConnectorBot({ appId: 'xxx', appSecret: 'xxx' });
bot.add('/', function (session) {
   session.send('Hello World');
});

// Setup Restify Server
var server = restify.createServer();
server.post('/api/messages', bot.verifyBotFramework(), bot.listen());
server.listen(process.env.port || 3978, 'xxx', function () {
   console.log('%s listening to %s', server.name, server.url);
});

We use HTTPS with Basic Auth.  If you register an endpoint which is HTTP we do NOT send the auth header because with basic auth that would be passing your appsecret in the clear.  If you want a secure server, register it with HTTPS.
Otherwise turn off the basic auth.

Where is it that I turn that off? I can't find it in my bot settings on the dev.botframework.com site.

I see, so if I include my app id/secret at all, it tries to do authentication. Well thanks.

Just don't call bot.verifyBotFramework().  That's the function which is checking the appId/appsecret is being passed via basic auth.

I'll also update verifyBotFramework() to ignore auth over HTTP

On the .Net side of things you have to comment out the Authentication Attribute if not using SSL... seems that should be documented


[draft] Reauth requests automatically triggered

User Story
Reduce the friction!  Automatic reauth when expiration is pending!

Epic Title
#76

T-shirt size: SML

User Story
"As a user of a NExT, I don't want to need to monitor the pending expirations of my role access.  Reauth requests should happen automatically at a certain lead time before expiration.  This way I am focused on building killer features instead of looking at NEXT"

Description
The idea of reducing the friction applies here...  we should strive to make things as smooth as possible for users.  Therefore, we automatically request a reauth of permissions

Acceptance Criteria/Tests
Demo that reauth proposals are generated when the user's access is due to expire minus the lead time.  I would suggest that the lead time we use is the same as proposal expire time.

Question
currently we support a 'renew' button for users who see their access is expiring.  Doing both might generate duplicate proposals?

Need design review and picture of current state...  How does this affect the "soon to expire" screen?

See #1230 too

migrated to new tmobile/sawtooth-next-directory repo


Implement a better web server

Right now BigchainDB uses the default Flask single synchronous test server.
An idea is to use gunicorn. Since we are using subprocessing to spawn processes, maybe we can use this guide:

http://docs.gunicorn.org/en/latest/custom.html

Do you think adding all the complexity of a non-blocking server is worth in this case? In my experience (and seen the "atomicity" of the operations on a blockchain in this particular case) a high-performance blocking server is more advisable. Falcon framework has the necessary features for the project to leverage (authentication, input/output sanitation, etc), avoiding the overhead from Flask, and runs with C bindings for performance.

Do you think adding all the complexity of a multiprocess server is worth in this case?

Here I'm just talking on how to spawn the webserver when starting the daemon. Flask apps (and Falcon apps as well) expose a WSGI app that can be run by any WSGI compatible application server. Gunicorn is usually a really good choice, and it's also the recommended way to put a Falcon app in production. Right now the bigchaindb start command spawns also a Flask development server, you can find the code in the Processes module. The scope of this issue is to replace the bootstrap of that server with a more stable and production ready implementation that is, indeed, Gunicorn.
Related to Falcon, I didn't know it, thanks for linking to it. The approach they have is interesting and minimal. As you can see from the code in the web module, the application itself is pretty basic, so if one day we want to change framework to Falcon it should not be that hard.
Related to performance, we can have a synchronous approach (the current one) or an asynchronous approach. RethinkDB supports Tornado (that is async) and, IMO, it can be the right tool for this job since running the API will be more IO-bound than CPU-bound. We didn't dig too much in it right now because using Tornado means also to change all our queries to be asynchronous, but it's in our roadmap.

It would be ok if the server was threaded and each thread would open a connection to the database. This would allow for parallel requests to the database out of the box

@vrde Yeah using an event-loop is an option, but I wouldn't start implementing anything in Tornado at this time, Py3 Twisted is still on the way... (: Have you heard about hug?

running the API will be more IO-bound than CPU-bound

Yeah but, as far as I understand, other operations on the server (crypto) are highly CPU-bound.
@r-marques yeah using Python threads could be a less overhead solution, avoiding Web frameworks' "heaviness". In this case a smaller framework than Flask could apply.

@vrde Yeah using an event-loop is an option, but I wouldn't start implementing anything in Tornado at this time, Py3 Twisted is still on the way... (: Have you heard about hug?

didn't know about hug, thanks for the link!
I made some progress, check out my branch.


docs: adding creation requirement for labels

Fixes https://github.com/summerwind/actions-runner-controller/issues/429

May not be needed, going to do some testing.

Couldn't replicate this again, must have been something weird in my environment. I suspect it might be something like if you have never made a label before via github.com then it won't work, once you've made a label once then subsequent labels of any value will apply going forward. 🤷


Make new project template gradle-based for Android.

With this change, the 'new project' template uses the same gradle-based build for Android as the hello_services example. This has some implications on build performance, since we're now building a complete Android app instead of just combining a pre-compiled .dex with the Flutter assets.
The very first build is a little over 2x slower, since it needs to download gradle and build the build scripts before getting to the actual code. Subsequent builds with changes to the code are comparable to the old builds. Null builds are faster. Enabling the gradle daemon speeds up subsequent builds by around 5s.
Fixes #4796.

Can we put this code in a library that we then link to? We're not including all of the engine code, for example. Can this code belong there? That's what we've done on the iOS side.

I've updated this PR. The Flutter Gradle plugin now lives in flutter_tools/gradle/flutter.gradle, and the android/app/build.gradle script includes it from there.
The only issue is how we figure out where the Flutter root is. We currently store that in local.properties, so I had to add code to read that in the build.gradle file.
Updated both hello_services and the new project template. PTAL.

@abarth any other comments before we merge this?

Looks fabulous.

@abarth tells me this fixes #7504.

This broke the basic_material_app_size benchmark.

@jakobr-google please follow up with a fix for the basic_material_app__size benchmark failure. Feel free to contact me if you need any pointers.

We're working on it. The Android SDK licences hadn't been accepted on the buildbot machines. That's fixed now, but we also need to update the test to pick up the new path for the .apk.

Fixed in #8137.


Update view-only-meeting-experience.md

@SerdarSoysal PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Renamed BTInfo to OSInfo and improved it.

helpers/btfinfo: rename to osinfo and improve API
Reference: https://github.com/aquasecurity/libbpfgo/issues/60

Note: I have not done the cmdline OSInfo options to override if no /etc/os-release is found. Will do in a subsequent PR. I wanted this to be reviewed and merged first (and then to sync tracee with this change so its stable and users can use the kernel version comparison function).

Example of usage within tracee:
$ sudo LIBBPFGO_KCONFIG_FILE=/boot/config-5.14.0-rc5+.orig LIBBPFGO_OSRELEASE_FILE=/etc/os-release.orig ./dist/tracee-ebpf --debug --trace uid=1000 --trace pid=new --trace event=execve --trace event=cap_capable --output option:detect-syscall
OSInfo: VERSION_ID: "21.10"
OSInfo: VERSION: "21.10 (Impish Indri)"
OSInfo: VERSION_CODENAME: impish
OSInfo: ID: ubuntu
OSInfo: ID_LIKE: debian
OSInfo: KERNEL_RELEASE: 5.14.0-rc5+
OSInfo: PRETTY_NAME: "Ubuntu Impish Indri (development branch)"
BTF: bpfenv = false, btfenv = false, vmlinux = true
BPF: using embedded BPF object
unpacked CO:RE bpf object file into memory

Tests after this last push:
By using env variables pointing to default files:
$ sudo LIBBPFGO_KCONFIG_FILE=/boot/config-$(uname -r) LIBBPFGO_OSRELEASE_FILE=/etc/os-release ./dist/tracee-ebpf --debug --trace uid=1000 --trace pid=new --trace event=execve --trace event=cap_capable --output option:detect-syscall
OSInfo: VERSION_CODENAME: hirsute
OSInfo: KERNEL_RELEASE: 5.11.0-31-generic
OSInfo: VERSION: "21.04 (Hirsute Hippo)"
OSInfo: ID: ubuntu
OSInfo: ID_LIKE: debian
OSInfo: PRETTY_NAME: "Ubuntu 21.04"
OSInfo: VERSION_ID: "21.04"
BTF: bpfenv = false, btfenv = false, vmlinux = true
BPF: using embedded BPF object
unpacked CO:RE bpf object file into memory
TIME             UID    COMM             PID     TID     RET              EVENT                ARGS

By using env variables with files that does not exist. If tracee can't find /etc/os-release, or even /boot/config-$(uname -r) files, it should continue, as stated by Yaniv in other PRs.
$ sudo LIBBPFGO_KCONFIG_FILE=/config-$(uname -r).orig LIBBPFGO_OSRELEASE_FILE=/os-release.orig ./dist/tracee-ebpf --debug --trace uid=1000 --trace pid=new --trace event=execve --trace event=cap_capable --output option:detect-syscall
KConfig: warning: could not check enabled kconfig features
(could not open LIBBPFGO_KCONFIG_FILE /config-5.14.0-rc5+.orig)
OSInfo: KERNEL_RELEASE: 5.14.0-rc5+
OSInfo: warning: os-release file could be found
(could not open LIBBPFGO_OSRELEASE_FILE /os-release.orig)
BTF: bpfenv = false, btfenv = false, vmlinux = true
BPF: using embedded BPF object
unpacked CO:RE bpf object file into memory
TIME             UID    COMM             PID     TID     RET              EVENT                ARGS

By pointing to a confi.gz env file in archlinux (containing /proc/config.gz):
$ sudo LIBBPFGO_KCONFIG_FILE=/proc/config.gz LIBBPFGO_OSRELEASE_FILE=/etc/os-release.orig ./dist/tracee-ebpf --debug --trace uid=1000 --trace pid=new --trace event=execve --trace event=cap_capable --outputoption:detect-syscall
OSInfo: KERNEL_RELEASE: 5.13.13-arch1-1
OSInfo: warning: os-release file could be found
(could not open LIBBPFGO_OSRELEASE_FILE /etc/os-release.orig)
BTF: bpfenv = false, btfenv = false, vmlinux = true
BPF: using embedded BPF object
unpacked CO:RE bpf object file into memory
TIME             UID    COMM             PID     TID     RET              EVENT                ARGS


changes the url to take in runsOn query parameter to filter the results only for specific environment

Appends a query param (?runsOn) on both Missions and Runtimes API calls to fetch results relevant to OSIO.

@dlabrecq  @invincibleJai Please review


Help category in menu bar - #861mdxup3

Added new help menuBarItems

Still missing change log and info

Fixed bug menu bar items order

Task linked: CU-861mdxup3 Help category in menu bar


Rebuild 4.3 with tighter run-export

Following the steps outlined here.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Hm, seems the 4.3 recipe isn't working anymore. The following error appears with both clang 11 & 12
ld: building for macOS, but linking in object file built for free standing, file 'libavutil/x86/cpuid.o' for architecture x86_64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ffbuild/library.mak:103: libavutil/libavutil.56.dylib] Error 1

@matthiasdiener, were parts of your changes in #118 also caused by this, or would you know how to tackle this?

Interestingly, the 4.4 builds in #120 are passing. It's unfortunate that this error is affecting the one build that this PR really has to get right, namely osx.

Ah, just saw that this was the motivation for #117. Let me try to pick up those changes...

Do we need this too:

Do we need this too:

IMO, no

your going to have to be very careful with using this build. We've done similar additions to run_exports for pytorch and it was a pain to get the package to be found by the solver.


Access Denied when using apoc.import

I've deployed neo4j on kubernetes.
I've created a serviceAccount with annotations to a role which permissions to run S3 commands. The necessary jar files has been downloaded as specified here https://neo4j.com/docs/apoc/5/import/web-apis/#_using_s3_protocol.
The jar files are in the /plugins directory.
neo4j@neo4j-0-0:~/plugins$ ls
README.txt            aws-java-sdk-core-1.12.136.jar  httpclient-4.5.13.jar
apoc-5.10.0-core.jar  aws-java-sdk-s3-1.12.136.jar    httpcore-4.4.15.jar
aws                   awscliv2.zip                    joda-time-2.10.13.jar

But an APOC call will not work in the cypher-shell of the pod.
CALL apoc.import.csv([{fileName: "s3://s3.ap-southeast-1.amazonaws.com/xxxx/
neo4j_import/xxxx.csv", labels: ["entities"
]}], [], {ignoreDuplicateNodes: true, ignoreBlankString: true});

It yields this error:
Failed to invoke procedure `apoc.import.csv`: Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied;

Is there a reason why the APOC plugin does not get credentials from the serviceAccount. When the node where the pod is running on has the S3 policies attached to it, then the apoc command works. It seems like APOC is using the permissions from the node rather than the service account.
Here are the configurations
apiVersion: v1
automountServiceAccountToken: true
kind: ServiceAccount
metadata:
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::xxxxxxxx:role/neo4j-eks
  creationTimestamp: "2023-08-23T02:11:45Z"
  name: neo4j
  namespace: neo4j

A check on the pod shows the correct role being used
    - name: AWS_ROLE_ARN
      value: arn:aws:iam::xxxxxx:role/neo4j-eks
    - name: AWS_WEB_IDENTITY_TOKEN_FILE
      value: /var/run/secrets/eks.amazonaws.com/serviceaccount/token

Here are the environment variables from the pod
neo4j@neo4j-0-0:~$ env | grep AWS
AWS_DEFAULT_REGION=ap-southeast-1
AWS_REGION=ap-southeast-1
AWS_ROLE_ARN=arn:aws:iam::xxxxxxx:role/neo4j-eks
AWS_WEB_IDENTITY_TOKEN_FILE=/var/run/secrets/eks.amazonaws.com/serviceaccount/token
AWS_STS_REGIONAL_ENDPOINTS=regional

apoc_config:
apoc_config:
  apoc.import.file.enabled: "true"
  apoc.import.file.use_neo4j_config: "true"
  apoc.export.file.enabled: "true"

configuration:
config:
  server.metrics.prometheus.enabled: "true"
  server.metrics.prometheus.endpoint: "<IP_ADDRESS>:12004"
  dbms.logs.http.enabled: "true"
  server.logs.debug.enabled: "true"
  # Configure and installl APOC core https://neo4j.com/docs/operations-manual/current/kubernetes/plugins/
  server.config.strict_validation.enabled: "false"
  dbms.security.procedures.allowlist: "apoc.*"
  dbms.security.procedures.unrestricted: "apoc.*,bloom.*"

Looking at the APOC docs, the options for using S3 are:
The S3 URL must be in the following format:

s3://accessKey:secretKey[:sessionToken]@endpoint:port/bucket/key (where the sessionToken is optional)
s3://endpoint:port/bucket/key?accessKey=accessKey&secretKey=secretKey[&sessionToken=sessionToken] (where the sessionToken is optional)
s3://endpoint:port/bucket/key if the accessKey, secretKey, and the optional sessionToken are provided in the environment variables

I am not sure I entirely understood what you meant by "Only when permissions are added to the node role, then it works."

Yes, even with the command as specified in the 3rd example, it fails
CALL apoc.import.csv([{fileName: "s3://s3.ap-southeast-1.amazonaws.com:443/xxx/xxxx.csv", labels: ["entities"]}], [], {ignoreDuplicateNodes: true, ignoreBlankString: true});

Here are the environment variables
neo4j@neo4j-0-0:~$ env | grep AWS
AWS_DEFAULT_REGION=ap-southeast-1
AWS_REGION=ap-southeast-1
AWS_ROLE_ARN=arn:aws:iam::xxxxxxx:role/neo4j-eks
AWS_WEB_IDENTITY_TOKEN_FILE=/var/run/secrets/eks.amazonaws.com/serviceaccount/token
AWS_STS_REGIONAL_ENDPOINTS=regional

"Only when permissions are added to the node role, then it works." - When the node where the pod is running on has the S3 policies attached to it, the apoc command works. Seems like its using the permissions from the node rather than the service account.

Looking at the code, if the access and secret key are not passed in the url (the first 2 options), then APOC defaults to use DefaultAWSCredentialsProviderChain which is provided by the AWS java sdk, this is what that looks for:
AWS credentials provider chain that looks for credentials in this order:

Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (RECOMMENDED since they are recognized by all the AWS SDKs and CLI except for .NET), or AWS_ACCESS_KEY and AWS_SECRET_KEY (only recognized by Java SDK)
Java System Properties - aws.accessKeyId and aws.secretKey
Web Identity Token credentials from the environment or container
Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
Credentials delivered through the Amazon EC2 container service if AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" environment variable is set and security manager has permission to access the variable,
Instance profile credentials delivered through the Amazon EC2 metadata service

Do any of these options work for you? I see your env variables aren't including it either.

hey gem!
these are the env variables:
neo4j@neo4j-0-0:~$ env | grep AWS
AWS_DEFAULT_REGION=ap-southeast-1
AWS_REGION=ap-southeast-1
AWS_ROLE_ARN=arn:aws:iam::xxxxxxx:role/neo4j-eks
AWS_WEB_IDENTITY_TOKEN_FILE=/var/run/secrets/eks.amazonaws.com/serviceaccount/token
AWS_STS_REGIONAL_ENDPOINTS=regional

I assumed AWS_WEB_IDENTITY_TOKEN_FILE would correspond to the web identity token credentials
Is there something i am missing.

would it have to do with the versions of the sdk?
https://neo4j.com/labs/apoc/5/import/web-apis/#_using_s3_protocol

Right, that env should correspond to the file, hmm the documentation is a little outdated, I have aws-java-sdk-core-1.12.425 locally at least, could you try with that jar? (if that works I'll fix the docs asap :) )

Hmm. Your version still fails with access denied.

same issue with aws-java-sdk-s3-1.12.540

Hi, I can't see any immediate issue with APOC as it seems to just be calling a default method in aws sdk, so I'll make a bug card for my team to investigate later :) sorry for the inconvenience!

Any updates regarding this issue?

Hello @colintkn  @KulykDmytro. Could you please try to add another jar to the plugins folder? I think you need:
aws-java-sdk-s3-1.12.425
aws-java-sdk-sts-1.12.425

This was described in https://github.com/aws/aws-sdk-java/issues/2136.
If that fixes the issue, we can add the sdk-sts to our aws bundle

Hi,
Thanks. it works now. Would be helpful to add it to the list of dependencies here.
https://neo4j.com/labs/apoc/5/import/web-apis/#_using_s3_protocol

We have packaged those dependencies in a single jar that can be downloaded from the extended releases page (still not updated, you should see the new bundled jar with sts when 5.12.0 gets released):

For using AWS: https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/5.11.0/apoc-aws-dependencies-5.11.0.jar
For using GCS: https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/5.11.0/apoc-gcs-dependencies-5.11.0.jar

We have work in progress to update that page you mentioned, so hopefully in a few days we should have better docs on how to add those extra dependencies.


Game added Pong

Issue #286
@TusharAMD I have added the game. pls check and merge

This game already exists in 2 different PRs
#299
#122
Kindly Check this before merging
cc: @TusharAMD

@gurjeetsinghvirdee the game exits but the code approach is different in all 3 approaches.And I think u can make the same game in different approaches and many ppl are doing it and its totally appropriate