Style updates

We are looking great right now. Looking forward to review of this one. In addition to some edits made after the recording of video of simulator I made I've also added an intro screen pictured below.
NOTE: May need to look into transitions with the transparent background on views causing a bit of overlap in some cases.
https://user-images.githubusercontent.com/1189523/210454835-3b100faf-2f91-4be9-93f5-fa12dc35a66b.mp4

"Visit some things on the IPFS Network:"

should be on a new line.

background gradient is rendering a bit odd on android (home and upload pages)

Found a couple of more issues when testing on device, they non style issues but should be fixed before we merge this pr to avoid breaking changes.

COPY CID button after file upload messages user SUCCESS but nothing is actually added to clipboard
Since ipfs:// protocols do not work in chrome, the new uploaded file UI doesn't link correctly on android. If you try to click the new ipfs://{cid} link, it just does nothing.
shortcut links on settings page do not work


feat(integrations): add mason.nvim

renderings

transparent:

Please learn how to rebase, the commit history isn't clean.


Bin Sort [Java]

Sorting algorithm for sort numbers between [0,1)
www.geeksforgeeks.org/bucket-sort-2/

@Hsankesara: Please assign yourself if you are working on it.


More information on the cmd

[
https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/respond-file-alerts?view=o365-worldwide#restore-file-from-quarantine
The cmd in Step#2, can you also include the steps on how to find the ThreatName.
will it be visible in MDE portal or MDAV on local machine?
]

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

ID: 2d35c168-4704-d96e-15ad-be38fe8f332f
Version Independent ID: 71ef6707-4191-f1e0-677b-2a4c3515c2b5
Content: Take response actions on a file in Microsoft Defender for Endpoint
Content Source: microsoft-365/security/defender-endpoint/respond-file-alerts.md
Service: microsoft-365-security
Sub-service: mde
GitHub Login: @mjcaparas
Microsoft Alias: macapara

@mjcaparas Please help us in resolving this issue. Thanks


Is it possible to get offline sheet where we can find tags ?

Please help us with the data sheet if possible

+1


Windows terminal does not work the same as ConHost when using C# Console methods

I am using this code (C#, .Net core 3 preview 7). Some imports and constants omitted for brevity.
There is several inconsistencies between ConHost and Windows Terminal (WT):

Using this code:

Console.SetWindowSize(maxX, maxY); // using constants 132 and 43 here
Console.SetBufferSize(maxX, maxY);
SetConsoleMode(hOut, dwMode | ENABLE_VIRTUAL_TERMINAL_PROCESSING); // DllImport'ed

In WT there's a vertical scroll bar and I can scroll. This is contrary to what I want

Using this code:

Console.Clear();
ConsoleWrite(/*a string with length the entire screen buffer*/)

Sometimes the text disappears. Once I got into this state I (as a human using the console) got very confused because if I scroll up or down, the text re-appears. It's kind of hard to put into words but the behavior is crazy funny when seen in person

Using this code

Console.CursorVisible = false;

does not work. I can see a blinking cursor.
Environment
Windows build number: Version 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0

Any other software?

Steps to reproduce

Expected behavior
When using methods of the standard .net core System.Console class, they should work as documented. Also, WT and ConHost should have the same behavor (unless ConHost is wrong)
Actual behavior
See bug description.

Specifically, it doesn't work the same for the methods that set the screen and buffer size. There's a little complication here -- Windows Terminal's scrollback buffer is completely separate from Conhost's, and it's very difficult to fit terminals into the Windows Console model where an application gets full control over its scrollback...
This leads to some visual artifacting when applications try to do stuff like this.

(Cursor visibility is #1127)

Hi @dhowett-msft,
Thank you for the explanation. The code i mentioned exists to avoid visual artefacts on conhost. I'd be grateful to get guidance what would be the correct approach for WT and how can i programmatically distinguish between the two.
I am willing to work within the rules of the system, but i do not know what the rules are.


crypto/ecdsa: Verify signature after signing to prevent faults from leaking private key

What version of Go are you using (go version)?

$ go version
go version go1.19 linux/amd64

Does this issue reproduce with the latest release?
Yes.
What did you do?
It has been well known for quite some time that a single signature fault (e.g. due to a bit-flip or truncation) can lead to leaking the private key producing that signature. The crypto/rsa package has contained a defense against just such circumstances since 2015.
However, it is also possible for signature faults to leak ECDSA private keys. In particular, it has been shown that ECDSA private keys can be leaked if the same message is signed twice and one of those two signatures suffers a fault. This attack was recently demonstrated (PDF link) to be practical.
What did you expect to see?
I expected that ECDSA signatures would be validated immediately after being produced, in order to prevent faulty signatures from being exposed to an outside attacker.
What did you see instead?
I do not see any signature verification happening in the ecdsa call stack.
Additional information
I believe that the golang stdlib ecdsa implementation is not actually vulnerable to the signature fault attack as described above. In particular, that attack relies on the fact that many ecdsa implementations skirted the issue of bad random nonce generators by adopting deterministic nonces. It appears that the ecdsa implementation here uses true randomness, and is therefore not vulnerable. However I do believe that the implementation today could silently produce faulty signatures, which we may want to avoid as both a correctness and a defense-in-depth measure.

cc @golang/security

Faults can always cause incorrect outputs, for example by happening after the signature is generated and verified. This is a major problem if the fault leaks the private key, but crypto/ecdsa's implementation doesn't since the nonce is derived from both randomness, secrets, and the message, as you point out. I don't see why adding the complexity and performance cost of verifying the signature would help us.
A better argument could be made for Ed25519, though, which is deterministic.

Yep, it appears that Ed25519 is vulnerable to single fault attacks, and I don't see a verification step in the Ed25519 signing implementation.
Would you like me to repurpose this bug to track that, or file a separate one?


Option tree structure

Hello, I am building a tree structure and I wanted to know if this option exists?
That allows to hide and group the children.
Example

Hello, I am building a tree structure and I wanted to know if this option exists?
That allows to hide and group the children.
Example

Great idea, but I don't want to add this feature to beegridtable at present.

Hello, I am building a tree structure and I wanted to know if this option exists?
That allows to hide and group the children.
Example

Great idea, but I don't want to add this feature to beegridtable at present.


Images are broken after publishing

Seeing is believing:

It seems that I forgot to tell electron-builder to add pictures as extra resources.
But, actually, I don't know how to do that :P

Forgive me reopening this issue again.
I found the image files follow invalid format due to using git lfs.

The above problem will be fixed in #25.

OK! It works fine!


sus pull request

incoming 42,43,45,49 and out3,8,30,31,35,36,37,38,39,44,45,46,50

also is there a list of censored words in bonk.io


use travisci to make sure all the solutions compile

Hey, this great piece of macro resource should be auto-tested.
Just to make sure the solutions works for later versions of Haxe ;)
Friendly reminder: head to travis and activate this repo before merge.

Let's see how that goes...

Also... Thank you :) Sorry it took me a while to merge!


Jcenter migration to MavenCentral

It looks like jCenter is still being used in the android project, it is deprecated now. Could you update to maven ?

@devmobile-vulog Yes, it was already updated and will be available in the next release. Thanks!


Adds enhanced send support, updates long library

Hi, thank you for your contribution. It seems that the test fails. Please fix it.

@tokyoben you don't have to - I've fixed them in tokyoben/CounterJS#1 (also had to downgrade bitcoinjs-lib to 3.x because in 4.x there is a lot of breaking changes)


Add aws_iam_group

Description
This PR adds support for the aws_iam_group resource.
Docs PR https://github.com/snyk/driftctl-docs/pull/239

Codecov Report

Merging #1477 (6ad889c) into main (c5ed5b9) will increase coverage by 6.99%.
The diff coverage is 96.29%.

@@            Coverage Diff             @@
##             main    #1477      +/-   ##
==========================================
+ Coverage   75.07%   82.06%   +6.99%
==========================================
  Files         512      438      -74
  Lines       19195    15907    -3288
==========================================
- Hits        14410    13054    -1356
+ Misses       4476     2537    -1939
- Partials      309      316       +7

Impacted Files
Coverage Δ

pkg/remote/aws/init.go
0.00% <0.00%> (-95.99%)
:arrow_down:

pkg/resource/resource_types.go
100.00% <ø> (ø)

pkg/remote/aws/iam_group_enumerator.go
100.00% <100.00%> (ø)

pkg/remote/aws/iam_group_policy_enumerator.go
100.00% <100.00%> (ø)

pkg/terraform/plugin_client.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/remote/aws/client/s3_client_factory.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/resource/azurerm/azurerm_container_registry.go
12.50% <0.00%> (-87.50%)
:arrow_down:

pkg/resource/google/google_compute_address.go
14.28% <0.00%> (-85.72%)
:arrow_down:

...g/resource/google/google_compute_global_address.go
14.28% <0.00%> (-85.72%)
:arrow_down:

... and 175 more


AMBARI-24231 : Adding additional jars in classpath of ambari views (nitirajrathore)

What changes were proposed in this pull request?
Introduced a new parameter in ambari.properties views.additional.classpath= comma separated path to be included in all view's paths
How was this patch tested?
Unit test cases were updated to reflect the changes and manual testing also done.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2947/
Test FAILed.
Test FAILured.

@nitirajrathore Thanks for the changes.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3727/
Test PASSed.

LGTM


fix vim plugin for 19.3b0 (#755)

Pull Request Test Coverage Report for Build 983

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

Totals

Change from base Build 982:
0.0%

Covered Lines:
3030

Relevant Lines:
3158

💛  - Coveralls

Thank you!


modify SymbolToken to InsertColumnToken and add parser-result for sha…

…rding-core.
Fixes #758 .
Changes proposed in this pull request:

Modify SymbolToken to InsertColumnToken
Add some sql-parser-results of insert without colums for sharding-core.

Codecov Report

Merging #772 into dev will decrease coverage by 0.01%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##              dev     #772      +/-   ##
==========================================
- Coverage   64.46%   64.44%   -0.02%
==========================================
  Files         484      484
  Lines        9547     9547
  Branches     1571     1571
==========================================
- Hits         6154     6153       -1
- Misses       3059     3060       +1
  Partials      334      334

Impacted Files
Coverage Δ

...c/core/parsing/parser/token/InsertColumnToken.java
0% <ø> (ø)

...rsing/parser/clause/InsertColumnsClauseParser.java
96.87% <100%> (ø)
:arrow_up:

...io/shardingjdbc/core/rewrite/SQLRewriteEngine.java
96.8% <75%> (ø)
:arrow_up:

...OrchestrationMasterSlaveDataSourceFactoryBean.java
66.66% <0%> (-11.12%)
:arrow_down:

Continue to review full report at Codecov.

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


test_remote_timeline_client_calls_started_metric: run with debug level logging for gc

part of https://github.com/neondatabase/neon/issues/6889

Before merging this, I'll try to re-run the regress tests a couple of times.
The failures happen often enough that we might repro it right here:


"CLI interface, oghliner as a template/tool" live tests failing

The "live" tests appear to be failing. For example, in https://travis-ci.org/mozilla/oghliner/jobs/148361426, I see:
  CLI interface, oghliner as a template
…
Username: Password:
  Checking credentials…
✓ Checking credentials… done!
  Getting Travis token…
✗ Getting Travis token… error!
Forbidden

  1) should work
  2) "after all" hook
…
  62 passing (2m)
  4 failing
  1) CLI interface, oghliner as a template should work:
     Error: the number 1 was thrown, throw an Error :)
      at run (node_modules/core-js/modules/es6.promise.js:87:22)
      at node_modules/core-js/modules/es6.promise.js:100:28
      at flush (node_modules/core-js/modules/_microtask.js:18:9)
      at _combinedTickCallback (internal/process/next_tick.js:67:7)
      at process._tickDomainCallback (internal/process/next_tick.js:122:9)
…

I've worked around this for now by disabling the tests in 73c05e0.


Web server support for ESP32

Description

Now that LwIP stack is supported for ESP32 (which in turn provides posix API), web server can also be supported. This PR pulls in required component. In addition also fixes minor issue in UART driver to correct critical section API.
Steps to use
cmake -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 -S . -B build  -DAFR_ESP_LWIP=1
<Call esp_http_server APIs in application>
Checklist:

[X] I have tested my changes. No regression in existing tests.
[X] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run checks


How to hide unused folder in a DBeaver project?

Hi!
I want to hide useless folders in the project:

Bookmarks
ER Diagrams
Scripts

I have my own good project structure with numbered folders and I really don't like garbage.
How do I hide/delete these folders from my project?

Where things are at right now?

This would be a very useful feature.


Feature Request: Allow all front matter to pass through to Eleventy

It would be good if we could allow all front matter to pass through to the templatng system, that way you could use things like dates and last mod times in templates to show update time periods, or any other arbitrary front matter. You could probably also take advantage of collections in eleventy and tags in obsidian. Simply allowing whatever front matter that exists in obsidian to pass through is a good first step though.

That would be nice! The plugin actually did this some versions ago. However you get into problems when using formats 11ty don't understand. See this issue
But it would be nice to offer this as an opt-in. Perhaps as a global default setting for all notes to let all frontmatter through, while also allowing you to override this with a frontmatter flag in specific notes.
What do you think? Do you have any input on how best to solve this?

@gmuller I've added this as a setting in the new "Note settings" view which you can find in Settings>Digital Garden>Note Settings>Edit. If you enable the "Let all frontmatter through", it will be enabled globally. You can also specify the setting on a per-note basis, setting dg-pass-frontmatter to true or false. Let me know if it's working as you expected.

I'm testing this now, so far so good. I wanted to include some small things like lastmodified date, and the ability to use collections more extensively. I will report back on any "gotchas" I encounter
You've done some great work here, this is turning out to be a really easy way to manage a full site, not just something like a digital garden. Maybe a bit out of scope, but including functionality like this really expands what you can do with the plugin and with Obsidian.

Forgive me for asking, but—what's Eleventy?

Eleventy is a static site generator, and is the "engine" being used by the digital garden template to generate your site from the obsidian markdown files. Here's a link: 11ty.dev


feat(base): generate new image with version 16.14.2

@mssravan56 @jordanpowell88 are you sure it should be based on bullseye-slim? I don't think it's a slim one tho.


File parsing CPU cores

May I ask two questions about document parsing that Unstructured currently has to answer: 1. Does parsing default to using multi-core processing, what is the processing logic, and is there a place to configure the number of CPUs. The problem I am currently facing is deploying unstructured files in containers, but when parsing PDFs, it defaults to filling up all CPU cores, causing subsequent parsing to fail.

Closing as inactive.


[Ark: Survival Evolved] Server Request

Ark: Survival Evolved dedicated servers are now available on linux.
AppID : 376030
I did not found any documentation for linux yet but I just started manually the server installation.

Leaving this here for reference @dgibbs64
+login anonymous
+app_update 376030

Unreal Engine should be a good one to do. There will be a few servers running this engine in the future

Some instructions are available here : http://steamcommunity.com/app/346110/discussions/0/594820656471833280

+1

Yay!! I will take this as a yes!

Should be noted though, neither me or @dgibbs64 actually own ARK to test the server when a script would be ready

You guys should get it, Its pretty sweet! Its like rust but with a lot more environment and the Unreal Engine 4 makes it just look amazing in 4k.
Its on sale right now on steam.

The dedicated server is free (well will be on linux very soon as it already is on Windows), so you shouldn't need to own it

Yes, we don't need to own it. @dgibbs64 likes to actually test the server by going on it himself before releasing them, though, to make sure it actually works when it's released.

Wow a flurry of requests for this one. Im look forward to this one. @Scarsz is correct in that I prefer to test that I can actually connect to the server and it works for me before release and I may even give the game a try myself. This game is not required for me to develop a script but is preferred.
I will be starting development as soon as I can :)

I have released a version of arkserver. However note that its still buggy and all features dont yet work. But the basics are there so should start a server
https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/ARKSurvivalEvolved/arkserver

I have officially released arkserver. I have found it difficult to test however I believe it should work. Please report any bugs of issues.


FR: Add a way to manually refresh the code block

Preferably inside the code block itself. For instance, add an icon in one of the top corners which will refresh the code block when clicked.

I had the same idea, but left it because it is a little hard for me. But if not only I think about it, I'll try to do this as soon as possible

You could just add a command to manually refresh code blocks inside the current not for now. That should be simple enough.

@isle9 I added a new command Refresh local quotes for active file in the [1.5.0]. Update and check it out!
If it's exactly what you wanted to, please, close this issue as completed.

The new command does exactly what I wanted it to do. Seems to work great. Ideally, there would be an icon in the code block or something similar to just refresh that block without the need to use commands. You can close this issue if you're not planning to do any more work on this.

Ok, I'll try to do something like this

@isle9 Check out the new refresh button from 1.6.0

@isle9 Check out the new refresh button from 1.6.0

Works great!
Although, in my theme (Minimal), it was a bit too far down for me. So I've set the top and right to 0px.
You might want to add am option to choose the side on which the icon should be displayed because in the default Obsidian theme, the icon is directly bellow the code block edit icon and can't be clicked on.
You can close this issue if you think you're done with it and thanks for writing the plugin!

I will improve buttons, but closing the issue

@isle9 Check out the new refresh button from 1.6.0

Works great!
Although, in my theme (Minimal), it was a bit too far down for me. So I've set the top and right to 0px.
You might want to add am option to choose the side on which the icon should be displayed because in the default Obsidian theme, the icon is directly bellow the code block edit icon and can't be clicked on.
You can close this issue if you think you're done with it and thanks for writing the plugin!

@isle9 I've released a new 1.7.0 with nice integration with Style Settings plugin. There you can choose one of the 4 corners, padding from them and refresh icon size


Additional test coverage and refactoring needed in ProfileService

Please describe the enhancement
Profile Create/Update was moved to a separate interface as part of this PR: https://github.com/stacklok/minder/pull/2653
There is a significant amount of logic in these two methods, and I decided to defer writing new tests for these methods.
Solution Proposal
Write a test suite for these two methods. Further refactoring may be necessary.
Describe alternatives you've considered
No response
Additional context
No response
Acceptance Criteria
No response

Hey @gajananan, you mentioned you were interested in this issue, shall I assign it to you?

hi @eleftherias   yes, please.  (I am sorry for late response)

hi @dmjb
Could you share your suggestions on additional test cases. I thought of the followings.
Additional Test cases for CreateProfile Method:

Test  invalid profiles to trigger ErrValidationFailed -  e.g. consider example profiles from here: https://github.com/stacklok/minder-rules-and-profiles/tree/main/profiles/github
Test creating profile with valid and  invalid labels
Test with a profile containing edge case values (e.g., maximum length strings).


Handle timeouts in StreamReader

Fixes #107
This pull request changes the way the StreamReader reads the CDC log. Now, it uses execute_paged and sleeps in case of a timeout. The process panics in case of other database error than a timeout.

@piodul

I'm not sure what do you mean by creating an interface to mock the Session. Should I replace the Arc<Session> with some kind of Arc<SessionWrapper> in the StreamReader? This seems a bit weird.

Besides adding a test, all changes were applied.


Add compression for BMP

Hi,
while using SimpleImage for creating BMP Files for my E-Paper Display I noticed that all BMP Files are being compressed by default with this class. While most file formats are offering a quality param, imagebmp() does not have that param but instead a boolean for compression. I guess adding a bool inside the param Quality would work regarding the result, but it would not really stick to the documentation and described data type, being an int.
Therefore I suggest making the following change for the SimpleImage Class seen below. Feel free to accept, modify wording etc. or reject it. I already work with that modified class locally :smile:
Here's the doc for imagebmp(): https://www.php.net/manual/de/function.imagebmp.php

I should have replied here instead of using reactions since those don't send out notifications. Yes, the updated proposal seems like a good idea to me. Thanks!

@claviska this PR can be closed and not merged since its solved in v4


SSHHandshakeException: PKIX Build failed.

Library version used
1.14.3-beta
Java version
OpenJDK 19
Scenario
ConfidentialClient - web site (AcquireTokenByAuthCode)
Is this a new or an existing app?
This is a new app or experiment
Issue description and reproduction steps
I try to connect to AzureSQL using the beta release of msal4j, I got the exception as in the image.
Is this a bug in the msal4j or some error on my side?
I am using OpenJDK 19.
Relevant code snippets
No response
Expected behavior
No response
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response

Hello @wise-coders : Are you using MSAL Java directly in your application? That error seems to be coming from a SQL Server or JDBC package that uses our msal4j package.
If you aren't using the msal4j package directly, then this likely a configuration issue or problem on the SQL/JDBC side. This exact error is mentioned in this post on the Azure Database Support Blog, and suggests there's an issue with the keystore: https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building-failed-unable-to-find-valid-certification/ba-p/2591304


feat: Add logout command

Description
This PR adds the logout command that will allow to logout from Argilla server and remove the locally stored credentials.
Closes #3585
Type of change

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

How Has This Been Tested
Tested manually in a local development environment and added tests to cover the additions and changes.
Checklist

[ ] I added relevant documentation
[x] follows the style guidelines of this project
[x] I did a self-review of my code
[ ] I made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I filled out the contributor form (see text above)
[x] I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

Awesome @eshwarhs, this is really useful :)


Selection model for Mat Table 2 has defect

Bug, feature request, or proposal:
It is impossible to feed this.selection.select and this.selection.toggle a carbon copy of row but row is accepted.
It goes further, lines selected thereafter with the "normal" row, will also result in correct selection even though the whole process should crash and fail now that selection has to iterate through "faulty" items as well.
What is the expected behavior?
that a passed object that that is identical to the object that row is would work too.
What is the current behavior?
html :
...
       </div>
          </mat-cell>
        </ng-container>

        <mat-header-row *matHeaderRowDef="pinnedColumnsWSelect"></mat-header-row>
        <mat-row *matRowDef="let row; columns: pinnedColumnsWSelect;"
                 class="noselect"
                 [ngClass]="{ 'selected': selection.isSelected(row)}"
                 (click)="addToSelection(row, $event, false)"></mat-row>
      </mat-table>
...

(false is for, did the click originate from a checkbox element or from just clicking on the row?)
ts :
  addToSelection(row, event, checkbox){
    if(event.shiftKey && this.previous !== -1 && this.previous !== row.numberOfRow) {
      if(this.previous > row.numberOfRow){
        for(let previous = this.previous - 1; previous >= row.numberOfRow; previous-- ){
          this.selection.toggle(this.originalDataSet.filter(x => x['numberOfRow'] === previous)[0] as object[]);
        }
      }else{
        for(let previous = this.previous + 1; previous <= row.numberOfRow; previous++ ){
          this.selection.toggle(this.originalDataSet.filter(x => x['numberOfRow'] === previous)[0] as object[]);
        }
      }
    } else if(event.ctrlKey || checkbox) {
      this.selection.toggle(row);
    } else {
      if(this.originalDataSet){
        if(this.selection.selected.length === 1 && this.selection.selected[0] === row) {
        this.selection.clear();
      } else {
          this.selection.clear();
          this.selection.select(row);
        }
      }
    }
    this.previous = row.numberOfRow;
  }

as you can see above I first check if the shift key was held down if it was I apply my selection which is currently causing issues, if shift isn't being held but ctrl is I add to selection (this works), and lastly I'm in a case where neither keys are being held down, I simply clear the selection and set the new item as selected.
simple enough right?
As you may conclude from reading my above code, what I'm trying to do in the "shift held down" part is obtain the corresponding row for each line to be selected and pass that to selection's toggle function.
having previously console.logged row and noticed that row was indeed the entire current row of the table I deduced that I could emulate the correct objects being passed to the method "toggle" between points A and B.
My material table accepts an array of objects as it's dataset. Each object corresponds to a row, each object's keys corresponds to the table's headers. so far so good.
Pulling the right row from the array by myself (with a filter where I match the numberOfRow, my unique identifier which happens to count rows (0 , 1, 2, 3, ect...)) should give me the same thing.
console logging the two give me the same thing :
const y = this.originalDataSet.filter(x => x['numberOfRow'] === previous)[0];
console.log('filtered item ', y, ' row ', row, ' equal ', y === row, y == row );

however the nightmare begins at the two declaring being neither equal partially or entirely (with type).
now for === fair enough but for ==, why??
how this happens I have no idea
filtered item  {numberOfRow: 2, nCommande: "4500131111", nLigne: "00010", nEcheance: "0001", id: {…}, …}  row  {numberOfRow: 2, nCommande: "4500131111", nLigne: "00010", nEcheance: "0001", id: {…}, …}  equal  false false

this is something I legitimately have never ever seen before in javascript. the two objects are IDENTICAL I checked manually 15 times now by opening all the nodes. yet == fails.
but hold that thought, mesmerizing though it is, I have something even more mesmerizing for you.
What are the steps to reproduce?
let's console.log our selection  (console.log(this.selection.selected);)

then click the first Itemof our mat-table
shift-click the fourth
ctrl click the fith

what would you expect happens ?
that none end up selected because selection is in an incorrect format? I'd love that
that only the first end up selected because selection's array is incorrect beyond that point? this would also make sense
that all 5 items be correctly selected? one can dream
well no :

ok let's look at the log :
(5) [{…}, {…}, {…}, {…}, {…}]
0 : {numberOfRow: 0, nCommande: "2284595", nLigne: "1", nEcheance: "0", id: {…}, …}
1 : {numberOfRow: 1, nCommande: "2284595", nLigne: "2", nEcheance: "0", id: {…}, …}
2 : {numberOfRow: 2, nCommande: "4500131111", nLigne: "00010", nEcheance: "0001", id: {…}, …}
3 : {numberOfRow: 3, nCommande: "4500131111", nLigne: "00020", nEcheance: "0001", id: {…}, …}
4 : {numberOfRow: 4, nCommande: "4500634818", nLigne: "00010", nEcheance: "0001", id: {…}, …}
length : 5
__proto__:Array(0)

I'm confused.
you correctly selected array item 0 and 4 using this array but for everything in between, no-go, even though 4's selection (item 5) came last.
how?
this pattern of "distinguishing" between "faulty" and "correct" where the human eye can't, continues as you stack on shift selections and ctrl selections ad infinitum. If your this.selection.selected is 100 000 items long it will still not have selected in the actual visual representation all those items added in it's array with shift and have correctly selected all those added with ctrl.
let's mix it up because that's how we get something that finally diverges from the beaten path.
let's try deselecting with shift
If I do one more shit click intending to add three more items and one more control click for the item below that then shift click back UP to the second item :

nothing diverging from our current mess, at least visually :
(9) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
0 : {numberOfRow: 0, nCommande: "2284595", nLigne: "1", nEcheance: "0", id: {…}, …}
1 : {numberOfRow: 1, nCommande: "2284595", nLigne: "2", nEcheance: "0", id: {…}, …}
2 : {numberOfRow: 2, nCommande: "4500131111", nLigne: "00010", nEcheance: "0001", id: {…}, …}
3 : {numberOfRow: 3, nCommande: "4500131111", nLigne: "00020", nEcheance: "0001", id: {…}, …}
4 : {numberOfRow: 4, nCommande: "4500634818", nLigne: "00010", nEcheance: "0001", id: {…}, …}
5 : {numberOfRow: 5, nCommande: "4500634818", nLigne: "00020", nEcheance: "0001", id: {…}, …}
6 : {numberOfRow: 6, nCommande: "4500634818", nLigne: "00030", nEcheance: "0001", id: {…}, …}
7 : {numberOfRow: 7, nCommande: "4500634818", nLigne: "00040", nEcheance: "0001", id: {…}, …}
8 : {numberOfRow: 8, nCommande: "4500634818", nLigne: "00050", nEcheance: "0001", id: {…}, …}
length : 9

(4) [{…}, {…}, {…}, {…}]
0 : {numberOfRow: 0, nCommande: "2284595", nLigne: "1", nEcheance: "0", id: {…}, …}
1 : {numberOfRow: 4, nCommande: "4500634818", nLigne: "00010", nEcheance: "0001", id: {…}, …}
2 : {numberOfRow: 8, nCommande: "4500634818", nLigne: "00050", nEcheance: "0001", id: {…}, …}
3 : {numberOfRow: 4, nCommande: "4500634818", nLigne: "00010", nEcheance: "0001", id: {…}, …}
length : 4

well this is unexpected.
why did it keep item 4 instead of deselecting it like the rest and on top of that ADDED IT AGAIN?
this makes me think that there is another array that's being used for comparisons I'm not aware of.
Furthermore
onChange results are exactly as expected :
  ngOnInit() {
    this.selection.onChange.subscribe(x=> {
      console.log(x);
    });
  }

for shift-click from first item to sixth and back again :
{source: SelectionModel, added: Array(1), removed: Array(0)}
{source: SelectionModel, added: Array(1), removed: Array(0)}
{source: SelectionModel, added: Array(1), removed: Array(0)}
{source: SelectionModel, added: Array(1), removed: Array(0)}
{source: SelectionModel, added: Array(1), removed: Array(0)}
{source: SelectionModel, added: Array(1), removed: Array(0)}
{source: SelectionModel, added: Array(0), removed: Array(1)}
{source: SelectionModel, added: Array(0), removed: Array(1)}
{source: SelectionModel, added: Array(0), removed: Array(1)}
{source: SelectionModel, added: Array(0), removed: Array(1)}
{source: SelectionModel, added: Array(1), removed: Array(0)}

I check the contents they indicate being exactly as they should be (the right item numbers in the right order).
yet the visual does not follow suit.
another experiment :
I mentioned in the intro that a carbon copy of the object would be refused :
this is true.
If I do this to our so far functional ctrl code it ceases to function (this is the imported underscorejs library btw, it is a shallow clone, but it does not omit underlings, it uses their memory reference) :
} else if(event.ctrlKey || checkbox) {
      const bb = _.clone(row);
      this.selection.toggle(bb);
}

same thing happens with this approach (this is a deep clone) :
} else if(event.ctrlKey || checkbox) {
      const bb = jQuery.extend(true, {}, row);
      this.selection.toggle(bb);
}

the rows are no longer visually selected with ctrl-click yet the console logged selection array and all other aspects of selection continue to be faultless.
What is the use-case or motivation for changing an existing behavior?
for example adding shift-select support. but I don't see how everyone else with every other scenario wouldn't benefit from this bug being fixed. selection model would be a nice touch on mat table. right now though it's not an option for me.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
windows pro 10 64bit
chrome
{
  "name": "web.ui",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve --aot",
    "build": "ng b --prod",
    "test": "ng test",
    "lint": "ng lint"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^6.0.3",
    "@angular/cdk": "^6.1.0",
    "@angular/common": "^6.0.3",
    "@angular/compiler": "^6.0.3",
    "@angular/core": "^6.0.3",
    "@angular/forms": "^6.0.3",
    "@angular/http": "^6.0.3",
    "@angular/material": "^6.1.0",
    "@angular/platform-browser": "^6.0.3",
    "@angular/platform-browser-dynamic": "^6.0.3",
    "@angular/router": "^6.0.3",
    "@types/underscore": "^1.8.7",
    "angular-font-awesome": "^3.1.2",
    "bootstrap": "^4.0.0",
    "classlist.js": "^1.1.20150312",
    "core-js": "^2.5.3",
    "file-saver": "^1.3.8",
    "font-awesome": "^4.7.0",
    "jquery": "^3.3.1",
    "lodash": "^4.17.5",
    "ng2-ion-range-slider": "^2.0.0",
    "ngx-bootstrap": "^3.0.0",
    "ngx-dropzone-wrapper": "^6.1.0",
    "rxjs": "^6.2.0",
    "rxjs-compat": "^6.0.0-rc.0",
    "typescript": "2.7.2",
    "underscore": "^1.8.3",
    "web-animations-js": "^2.3.1",
    "zone.js": "^0.8.20"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.6.5",
    "@angular/cli": "^6.0.5",
    "@angular/compiler-cli": "^6.0.3",
    "@angular/language-service": "^6.0.3",
    "@types/jasmine": "^2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~10.1.3",
    "codelyzer": "^4.2.1",
    "postcss-modules": "^1.1.0",
    "protractor": "~5.3.0",
    "ts-node": "~6.0.5",
    "tslint": "~5.10.0"
  }
}

Ok I figured it out and this will seem to some of you like it was an unknown in the problem I gave and so you couldn't have guessed it because I didn't give you my full components and to the rest of you it will seem obvious, because you know mat table well enough and you could tell from the naming of my variable something was amiss,
I have a set of four local vars for the four steps of the treatment of my object between when it arrives from API and when it shows up visually in the mat-table.
  // [ 1 ] this first gets the api object and will serve as a store
  originalDataSet:Array<object>;

  // [ 2 ] rendered after filters
  filteredDataSet:Array<object>;

  // [ 3 ] sclice step (needs to be second to last due to dual slider for size)
  dataSlice = [];

  // [ 4 ] final. what actually is queried by Mat Table
  @ViewChild(MatSort) sort: MatSort;
  dataSource: MatTableDataSource<any>;

the rows (objects) are indeed the same between 1 and 4 but alot of them have gone missing since.
this does not answer why javascript thinks two copies of an object aren't the same but it does answer why the object I was feeding my toggle() methods was being considered not the same as row
now with this.dataSource.filteredData I'm literally iterating over the same array as my mat table is.
and this does not cause defects with switching pages and shift-clicking for example.
(apart from not selecting the items from page one it can no longer iterate over since they aren't in the present list, which is what I wanted to avoid at the start but I'll take that bug over this one)
If someone has an answer as to why js can't see a copy of an object as equal to itself I'd love to have an answer.
If someone can see how this object could fail to meet mat table's selection model's criteria and how I could have fooled it, I would also love to know.


NII support

Use the simple XTK nii parser to get started then maybe get going with Papaya.
https://github.com/xtk/X/blob/master/io/parserNII.js

Partial support, orientation as to be fixed.


Colored spinner can not be restarted

The following code won't work for me (iTerm2 + zsh):
package main

import (
	"time"

	"github.com/briandowns/spinner"
)

func main() {
	sp := spinner.New(
		spinner.CharSets[11],
		time.Millisecond*100,
		spinner.WithColor("green"),
	)
	sp.Stop()

	time.Sleep(time.Second * 1)

	sp.Start()
	defer sp.Stop()

	time.Sleep(time.Second * 5)
}

This code demonstrates an issue I already documented in #103. I need to call sp.Stop() right after creating it to stop it from starting right away. The following restart doesn't work.
It works when removing spinner.WithColor("green").

I'm not really pleased with the current means of configuring color. I'll see if i can push up something in the next day or two.

Actually, I'm going to remove the restart call inside of the color method. I think that should be a reasonable stopgap for now and I'll cut a new release.


Import compose and rancher YML via API/UI

Rancher already supports importing/launching docker compose via the rancher-compose CLI tool. We need to add the ability to import docker compose and rancher compose via the API and subsequently, via the UI.

Reopening as we need to still complete packaging and UI.

@cloudnautique can you package this into Rancher?

Tested Rancher Compose UI with various docker-compose.yml and rancher-compose.yml and all the functionalities supported in rancher-compose CLI works. Build with local option is not supported.


HighNodeUtilization README.md is duplication of LowNodeUtilization

Much of the HighNodeUtilization documentation in the README.md is a copy/paste from LowNodeUtilization with /s/Low/High replaced.  Other than the type change, the documentation is incorrect as it's a copy of Low Node's threshold functionality.
HighNodeUtilization

This strategy finds nodes that are under utilized and evicts pods in the hope that these pods will be scheduled compactly into fewer nodes. This strategy must be used with the scheduler strategy MostRequestedPriority. The parameters of this strategy are configured under nodeResourceUtilizationThresholds.

The above example explains what I mean, where it says it

...finds nodes that are under utilized and evicts pods in the hope that these pods will be...

I don't know the inner workings of descheduler to propose this documentation update, but if other contributors are willing to review my PR with that in mind, I'd be willing to give it a crack at correcting it (LMK)

Hi @chrisjohnson00,
The wording for the 2 strategies is very similar, because under the hood they are essentially the same functions with an invert. However I don't think the section you shared is incorrect:

This strategy finds nodes that are under utilized and evicts pods in the hope that these pods will be scheduled compactly into fewer nodes.

For HighNodeUtilization, this means that it is looking for nodes that are under the utilization thresholds and evicts pods from those nodes to compact them onto other nodes

This strategy finds nodes that are under utilized and evicts pods, if possible, from other nodes in the hope that recreation of evicted pods will be scheduled on these underutilized nodes

This is the matching section from LowNodeUtilization, which means that while it is still looking for nodes that are under the thresholds, it is instead evicting pods from other nodes onto those under utilized nodes.
This could probably be worded better in the docs though, so if you have the time to improve them then please feel free to submit a PR 🙂

Docs have been updated in #592.
/close


Fix memory mixing in Twitter generate

Twitter generate uses a default room ID and this might be causing problems between the clients, since they access the same sqlite database. So Spartan would say kind of weird stuff about quantum mechanics, because he's pulling some of Ruby's memories. This only seems to happen on generation since room id is same.

Possibly related to #32

will look into this today

I see this is closed but I think it's still happening

Fixed it


glue:figure not working with DataFrame

Describe the bug
When I try to glue a DataFrame ({glue:}df) in a JupyterBook, the output doesn't look as expected:

When I instead try to use {glue:figure}df, it says "WARNING: Unknown interpreted text role "glue:figure"."
To Reproduce
Steps to reproduce the behavior:

jupyter-book create test
edit notebooks.ipynb and add a code cell

import pandas as pd
from myst_nb import glue

df = pd.DataFrame({"A": [1,2,3], "B":[4,5,6]})
glue("df", df, display=False)
df

and a markdown cell:
{glue:}`df`

jupyter-book build test

Expected behavior
Output of {glue:}df looks like the original DataFrame.
Environment
Jupyter Book: 0.8.3
MyST-NB: 0.10.1
Sphinx Book Theme: 0.0.39
MyST-Parser: 0.12.10
Jupyter-Cache: 0.4.1
NbClient: 0.5.1
Additional context

Installing jupyter-book from github doesn't help (using master and new-release)
removing display=False doesn't help
{glue:figure}df doesn't help (it says "WARNING: Unknown interpreted text role "glue:figure")

Ahhh I realized what the issue is just after you opened this :-)
{glue:figure} is a directive, not a role (AKA, it exists across multiple lines, like this:
```{glue:figure} df
```

not like this:  {glue:figure}df

Thank you, this helped!


Delete docs folder

Fixes

Fixes #41 by @zackkrida.
Description

Removes the docs folder as the documentation has been moved to Openverse Make Handbook. The entries are in private mode until revision and approval of reviewers.
I removed some outdated references like the "AWS Imagine Grant" and kept deployment description until further discuss (and improve) this process.
Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main or master).
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[ ] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

👍 Love any PR that makes repos smaller than before.

Definitely better than bigger than before

Posts made public ✅


Problems Panel shows wrong number of diagnostics

Version: 1.33.0-insider
Commit: 1afeb46cc4f2856ed6d0759fff85b13647c7ab83
Date: 2019-03-27T16:02:22.809Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Darwin x64 18.2.0

Clone https://github.com/Microsoft/vscode-extension-samples/tree/master/helloworld-sample
Run build task
Delete e from export function deactivate() {}

Build task shows 1 error:

Problems Panel shows 2 and 3 errors:

How is the 3 calculated?

In my development, my build task outputs 4 errors, I see only 2 in problems panel, but the number is 4:

Duplicate of #71165


doc: add missing connect_timeout field in demo config file in quick start guide

Commit Message:
add connect_timeout in demo config file
Additional Description:
failed to run envoy by following the quick start guide, add missing field in demo config file
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]
Fixes #33147

@phlax That should be my mistake. I installed envoy on Debian via apt, did not notice the installed version is so old. Thanks for help.


Miscellaneous performance improvements

I plan to work here on performance.
I may introduce breaking changes when I encounter a discutable design decision.

I got nice performance improvements in general but also some regressions in unicode-data. Some benchmarks are fragile and I will need to test on another machine. I think we should also use sample texts as in unicode-transforms.
Anyway, this PR is getting too big, so I am going to split it in various ones, starting with #109.

FYI, I am working on rebasing & splitting this PR into smaller PR. I will not make the mistake again with a huge PR. Leaving this open while not completely ported.

So long, big unmergeable PR.


Simple LWRP for Flask webapps

There is now an example of a flask app (or any other raw WSGI framework) in the integration tests.


Add wrappers for sodium_pad and sodium_unpad

Since libsodium-core is now in maintenance mode, I don't think we should implement any new features like this.


Fix RSpec/SortMetadata cop to sort strings and variables first

Fixes #1946.
Symbols in metadata are processed by RSpec only when they are positioned last, meaning the other parameter types must be positioned before the symbols. RSpec context/describe accepts second non-symbol argument as an additional description which is why strings are sorted first.
Questions for reviewers:

is it ok to sort strings before variables? I have the feeling that this cop's responsibility should be to just take care of sorting symbols at the end of the arguments list.
the message "Sort metadata alphabetically." does not fully reflect what the cop is doing anymore, and can be confusing for code like describe 'Something', :a, b, :c because the metadata is sorted. I could not come up with a good message. Suggestions?
I noticed an autocorrect issue with describe 'Something', :b, :a, { foo: :bar }: it gets autocorrected to describe 'Something', :b, :a, foo: :bar }. Should it be fixed in the same PR?
I updated the RuboCop::Cop::RSpec::Metadata#on_metadata_arguments method because it was skipping the last argument if it was not a hash. I also renamed symbols to metadata_arguments (or args in RSpec/SortMetadata cop). Should symbols be renamed to metadata_arguments or args in other cops relying on on_metadata too?

Before submitting the PR make sure the following are checked:

[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[ ] Updated documentation.
[x] Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
[x] The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

I suggest extending the spec in accordance with our findings. I'm happy to help on this front. Please accept my apologies for the delay in review, it's a summer season over here.

Hi @pirj,
Is there anything I can do to help with this pull request?

Sorry for the delayed response.
We had a fruitful discussion in the ticket about what cop should and shouldn’t do. I recall it as:

it should not attempt to handle code that will make RSpec fail anyway
it should handle realistic code
it should not autocorrect to code that would make RSpec to fail (was it what sparked this discussion initially?)
it should consider those subtle differences between examples and example groups when it comes to metadata arguments
it should ignore non-literal metadata arguments, and avoid risks automatically ordering them

Does this make sense? I’m writing this from my memory, and those criteria may be incomplete or incorrect.
Would it be a stretch to ask you to go over existing specs and make sure those criteria are met?
Last time I checked, I was under impression that a few cases in the very beginning of the changes to specs were off, and this repelled me from code reviewing further, as I thought it would require a lot commenting.
If you prefer, I can go through those specs, too.
And in any case - thank you for the dedication!
This is doable, let’s push the cop through the line where it can shine! 🌟

We had a fruitful discussion in the ticket about what cop should and shouldn’t do. I recall it as:

it should not attempt to handle code that will make RSpec fail anyway
it should handle realistic code
it should not autocorrect to code that would make RSpec to fail (was it what sparked this discussion initially?)
it should consider those subtle differences between examples and example groups when it comes to metadata arguments
it should ignore non-literal metadata arguments, and avoid risks automatically ordering them

Does this make sense? I’m writing this from my memory, and those criteria may be incomplete or incorrect.

Yes this makes sense. Not sure if that's exactly what we discussed but this makes sense.
Indeed "it should not autocorrect to code that would make RSpec to fail" is what sparked this discussion initially as rubocop-rspec autocorrects this spec file and the resulting corrected file makes RSpec fail because the string parameter is moved from second to third place.

Would it be a stretch to ask you to go over existing specs and make sure those criteria are met? Last time I checked, I was under impression that a few cases in the very beginning of the changes to specs were off, and this repelled me from code reviewing further, as I thought it would require a lot commenting.

Sure, so I should adapt these specs to ensure that it does not trigger at all, right?
I'll do that.
Thanks for the feedback.

@pirj I have adapted the spec and code as discussed. It is up for review.
It does not completely ignore code that could make RSpec fail. Instead it limits sorting to the trailing args which are actual symbols. Any symbol arg before a string literal or a variable will be ignored.

Thanks @pirj for the review. I updated it following your suggestions and rebased it on master branch.
Is there anything else I should do?


[Bug]: Default export from @rspack/core does not have TypeScript types

System Info
System:
OS: macOS 14.5
CPU: (8) arm64 Apple M2
Memory: 71.22 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v20.11.1/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
pnpm: 8.15.6 - ~/.nvm/versions/node/v20.11.1/bin/pnpm
bun: 1.1.12 - ~/.bun/bin/bun
Browsers:
Chrome: 129.0.6668.91
Safari: 17.5
npmPackages:
@rspack/cli: ^1.0.10 => 1.0.10
@rspack/core: ^1.0.10 => 1.0.10
@rspack/dev-server: ^1.0.8 => 1.0.8
Details
While the following code runs as expected, the types for Compiler#run only show up if one imports rspack as a named import. Note: this is true in both ESM and CommonJS.
const rspack = require('@rspack/core')

const compiler = rspack(config)

compiler.run(...)

Reproduce link
No response
Reproduce Steps
In an rspack project, try the following import scenarios
ESM, has types:
import { rspack } from '@rspack/core'

const configs = require('./path/to/config.js')

const compiler = rspack(configs)

ESM, no types:
import rspack from '@rspack/core'

const configs = require('./path/to/config.js')

const compiler = rspack(configs)

CommonJS, has types:
const { rspack } = require('@rspack/core')

const configs = require('./path/to/config.js')

const compiler = rspack(configs)

CommonJS, no types:
const rspack = require('@rspack/core')

const configs = require('./path/to/config.js')

const compiler = rspack(configs)

In fact, rspack does not have default export in esm. It can work normally because it is converted to cjs. At present, there is only cjs dist in @rspack/core
The default export is too complicated, I strongly recommend that users use named export in my opinion, which will make this problem much easier.
import { rspack } from '@rspack/core';

js api declares named export in the document. https://rspack.dev/api/javascript-api/index


sync MAINTAINERS file with new moby maintainers

Similar to 91f0d50868d20206cfb3ec0ca7af8b0eac771d36 (https://github.com/moby/libnetwork/pull/2636), updating the list of maintainers to include the latest maintainers that were added in moby.

@akerouanton @vvoland @rumpl PTAL

CI failures are unrelated, but now that y'all are maintainers; FIX IT! 😂 (kidding)


ADJHATE.cpp

Problem Link
// https://www.codechef.com/COOK133C/problems/ADJHATE
Mention the problem on which you want to work on
ADJHATE
Coding platform
Codechef
Mention the coding platform from where you have picked the problem
Programming language
cpp

[ ] C
[ ] C++
[ ] Java
[ ] Python
[ ] JavaScript

Additional context (OPTIONAL)
Add any other context or screenshots about the feature request here.

question from codechef

Please assign me this question.


Added retweet functionality to init.py

Implemented the retweet_by_hashtags function in init.py to allow retweeting tweets based on a list of hashtags. This uses the SimpleTwitter class for logging in and retweeting.

why this PR has been closed

It was a mistake :(


MRG: Only output one warning

Closes #5592.
@cbrnr can you verify it fixes your issue?
The changes in test_maxwell.py are from when I started to modify the file to accommodate these changes before I realized there was a simpler solution (monkey-patching the catch_logging handler), but the changes ended up being nice anyway so I decided to leave them in.

Nice, this fixes the issue! Thanks @larsoner, I think this is a really important fix.

Thx


Inverted physics direction?

I tried adding this to my hair with 4 bones in a ponytail, however when moving forwards, the jigglebones also move forwards. Tried playing around with the settings but it seems to be set correctly?
Thanks in advance!

could you provide some example files so I can look at the problem a bit deeper?

I'm seeing the same thing.


[Feature] Equivalent of ${workspaceFolder} variable for multi-root workspace

One can use the ${workspaceFolder} variable in a .vscode/tasks.json file to target the workspace's root.
But in a multi-root workspace there is no equivalent variable - so even though one can define tasks in the myprojects.code-workspace file - there's no way to target the multiroot workspace's root.
This is an obvious shortcoming. Please consider adding something like ${multiRootWorkspaceFolder}.
Thank you.

Pretty sure that this is a dup of #50372, which is closed as out-of-scope, and that the linked Stack Overflow question is a dup of https://stackoverflow.com/q/76213455/11107541.


SFTP/FTPS File Explorer Addon

Summary of the new feature/enhancement
Current File Explorer is missing the past decade and a half of network based file systems support that *nix systems have been using for ages with fuse.
Proposed technical implementation details (optional)
File Explorer already has unsecured FTP support. PowerToys addon could extend this capability to SFTP(SSH) and FTPS (FTP w/TLS) to have easy remote file management over secure channels.

That would be the greatest feature of PT especially when it would work as drive letter...

Just wanted to include an update as I found this open-source project that integrates SFTP into file explorer
https://github.com/alamaison/swish
It hasn't been worked on in a long time but should provide a strong basis for this feature.

pretty embarrassing that ftps isn't supported by windows file explore by default. Do they expect users just to use ftp with no security???


Backport 2.7: all.sh: Enable verbose failure messages for CMake

Backport of https://github.com/ARMmbed/mbedtls/pull/2432
Set the CMake-observed variable CTEST_OUTPUT_ON_FAILURE, so that when
a "make test" run by CMake fails, verbose test output about the detail
of failure is available.

There was an add/add merge conflict so I made a rebased version in https://github.com/ARMmbed/mbedtls/pull/3747.


name = 'io.flutter.1.ui', stop reason = EXC_BAD_ACCESS

When the app at fresh launch, run couple query the UI is smooth and everything is fine.
However leaving the app on foreground for couple of minute and re-run some query the UI start to freeze like 1 sec.
The longer the app on the foreground, when run query the UI will freeze longer (more than 1 sec).
Then eventually it will crash with EXC_BAD_ACCESS error.
So I thought using isolate could solve the issue. It did solve UI freeze issue. But staying on foreground for like 10min and start run some query will also crash with EXC_BAD_ACCESS error.
Error
thread #9, name = 'io.flutter.1.ui', stop reason = EXC_BAD_ACCESS (code=2, address=0x300013518)
    frame #0: 0x0000000108150f24 Flutter`void dart::UntaggedObject::StoreCompressedArrayPointer<dart::AbstractTypePtr, dart::CompressedAbstractTypePtr, (std::__1::memory_order)0>(dart::CompressedAbstractTypePtr const*, dart::AbstractTypePtr) + 12
Flutter`dart::UntaggedObject::StoreCompressedArrayPointer<dart::AbstractTypePtr, dart::CompressedAbstractTypePtr, (std::__1::memory_order)0>:
->  0x108150f24 <+12>: str    w2, [x1]
    0x108150f28 <+16>: tbz    w2, #0x0, 0x108151084     ; <+364>
    0x108150f2c <+20>: mov    x20, x1
    0x108150f30 <+24>: mov    x8, x0
Target 0: (Runner) stopped.

Version
flutter version: 2.10.3
drift: ^1.5.0
sqlite3_flutter_libs: ^0.5.0

Database
import 'dart:io';

import 'package:drift/native.dart';
import 'package:drift/drift.dart';
import 'package:path_provider/path_provider.dart';
import 'package:path/path.dart' as p;
import 'package:seek2/database/chat_dao_m.dart';
import 'package:seek2/database/notification_dao_m.dart';

part 'database.g.dart';

class NotificationMessages extends Table {
  IntColumn get id => integer().autoIncrement()();
  IntColumn get notificationId => integer().nullable()();
  IntColumn get belongUserId => integer().nullable()();
  TextColumn get title => text().nullable()();
  TextColumn get body => text().nullable()();
  TextColumn get type => text().nullable()();
  TextColumn get clickAction => text().nullable()();
  TextColumn get referenceData1 => text().named('reference_data_1').nullable()();
  TextColumn get referenceData2 => text().named('reference_data_2').nullable()();
  BoolColumn get read => boolean().withDefault(const Constant(false))();
  BoolColumn get delete => boolean().withDefault(const Constant(false))();
  DateTimeColumn get createdAt => dateTime().nullable()();
  DateTimeColumn get updatedAt => dateTime().nullable()();
}

class ChatRooms extends Table {
  IntColumn get id => integer().autoIncrement()();
  TextColumn get documentId => text().nullable()();
  TextColumn get type => text().nullable()(); //Single or Group
  BoolColumn get block => boolean().withDefault(const Constant(false))();
  TextColumn get imageUrl => text().nullable()();
  TextColumn get name => text().nullable()();
  IntColumn get blockByUserId => integer().nullable()();
  BoolColumn get online => boolean().withDefault(const Constant(false))();
  BoolColumn get isSeller => boolean().withDefault(const Constant(false))();
  IntColumn get opponentId => integer().nullable()();
  IntColumn get belongUserId => integer().nullable()();
  IntColumn get badge => integer().withDefault(const Constant(0))();
  DateTimeColumn get createdAt => dateTime().nullable()();
  DateTimeColumn get updatedAt => dateTime().nullable()();
  DateTimeColumn get profileUpdateAt => dateTime().nullable()();
}

class ChatMessages extends Table {
  IntColumn get id => integer().autoIncrement()();
  TextColumn get documentId => text().nullable()();
  TextColumn get parentId => text().nullable()();
  IntColumn get senderId => integer().nullable()();
  TextColumn get type => text().nullable()();
  TextColumn get content => text().nullable()();
  TextColumn get extra => text().nullable()(); //Not purpose now
  BoolColumn get isDelete => boolean().withDefault(const Constant(false))();
  BoolColumn get isRead => boolean().withDefault(const Constant(false))();
  DateTimeColumn get createdAt => dateTime().nullable()();
  DateTimeColumn get updatedAt => dateTime().nullable()();
}

class ChatRoomUsers extends Table {
  IntColumn get userId => integer().nullable()();
  TextColumn get chatRoomDocumentId => text().nullable()();
  TextColumn get imageUrl => text().nullable()();
  TextColumn get name => text().nullable()();
}

LazyDatabase openConnection(Future<File> file) {
  // the LazyDatabase util lets us find the right location for the file async.
  return LazyDatabase(() async {
    // put the database file, called db.sqlite here, into the documents folder
    // for your app.
    return NativeDatabase(await file, logStatements: true);
  });
}

@DriftDatabase(tables: [
  NotificationMessages,
  ChatRooms,
  ChatMessages,
  ChatRoomUsers,
], daos: [
  NotificationDaoM,
  ChatDaoM
], queries: {
  'allRooms':
      'select chat_rooms.*, cm.content, cm.is_read, max(cm.created_at) as msg_created_at from chat_rooms left outer join chat_messages cm on cm.parent_id = chat_rooms.document_id where chat_rooms.belong_user_id = :user_id group by chat_rooms.document_id order by cm.created_at desc'
})
class MyDatabase extends _$MyDatabase {
  // we tell the database where to store the data with this constructor
  MyDatabase() : super(openConnection(dbFilename()));

  MyDatabase.connect(DatabaseConnection connection) : super.connect(connection);

  static Future<File> dbFilename() async {
    final dbFolder = await getApplicationDocumentsDirectory();
    return File(p.join(dbFolder.path, 'db.sqlite'));
  }

  // you should bump this number whenever you change or add a table definition. Migrations
  // are covered later in this readme.
  @override
  int get schemaVersion => 2;

  @override
  MigrationStrategy get migration {
    return MigrationStrategy(
      onCreate: (Migrator m) async {
        await m.createAll();
      },
      onUpgrade: (Migrator m, int from, int to) async {
        if (from < 2) {
          // we added the badge property in the change from version 1 to
          // version 2
          await m.addColumn(chatRooms, chatRooms.badge);
        }
      },
    );
  }
  // The rest of the class can stay the same
}

This looks like a bug in either Flutter or the Dart VM, unfortunately I don't know what to make of that trace. But it happening in a function of the Dart VM sounds like it's something that would have to be resolved there.
Can you push a repro of this somewhere and then maybe try opening an issue on the Dart SDK repository?


Can't remove "placeholder" from datetime alias

Describe the bug

Input format (dd/MM/yyyy): <input type="text" class="test-day-month-year">

$('.test-day-month-year').inputmask({
  alias: 'datetime', inputFormat: 'dd/MM/yyyy', jitMasking: true, placeholder: ''
});

When you start typing, it includes a "M" in the month part even if I specify jitMasking: true and placeholder: '' (even if I'm not sure placeholder is needed here), but that doesn't happen if you have another format like MM/yyyy, for example.

Add a link to a codepen, jsfiddle or other example page which shows the problem
https://jsfiddle.net/cp4dkqas/

OS:
Tested on macOS Catalina 10.15.4.

Browser
Tested on Chrome 87 and Safari 13.

Inputmask version
5.0.5.

@rafaelss95 ,
The issue is fixed in version 5.0.6-beta.25


Peek: wrong icons used to pin/unpin

Microsoft PowerToys version
0.70
Installation method
PowerToys auto-update
Running as admin
No
Area(s) with issue?
General
Steps to reproduce
Open something with Peek. Look ar pin/unpin icons
✔ Expected Behavior
No response
❌ Actual Behavior
The icon/button that you click to pin is the strike-though icon. E718 should be used here.
The icon/button that you click to unpin is only a fill icon, designed to be able to set a fill color. E77A should be used here.

Other Software
No response

Current logic does the following in TitleBar.xaml.cs:
return pinned ? "\xE841" : "\xE77A";
Should be a simple fix.


(Refact): Converting the daemonset into job in node cpu hog lib

Signed-off-by: Raj<EMAIL_ADDRESS>
What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Checklist

[x] Does this PR have a corresponding GitHub issue?
https://github.com/litmuschaos/litmus/issues/1279
[ ] Have you included relevant README for the chaoslib/experiment with details?
[ ] Have you added debug messages where necessary?
[ ] Have you added task comments where necessary?
[ ] Have you tested the changes for possible failure conditions?
[ ] Have you provided the positive & negative test logs for the litmusbook execution?
[ ] Does the litmusbook ensure idempotency of cluster state?, i.e., is cluster restored to original state?
[ ] Have you used non-shell/command modules for Kubernetes tasks?
[ ] Have you (jinja) templatized custom scripts that is run by the litmusbook, if any?
[ ] Have you (jinja) templatized Kubernetes deployment manifests used by the litmusbook, if any?
[ ] Have you reused/created util functions instead of repeating tasks in the litmusbook?
[ ] Do the artifacts follow the appropriate directory structure?
[ ] Have you isolated storage (eg: OpenEBS) specific implementations, checks?
[ ] Have you isolated platform (eg: baremetal kubeadm/openshift/aws/gcloud) specific implementations, checks?
[ ] Are the ansible facts well defined? Is the scope explicitly set for playbook & included utils?
[ ] Have you ensured minimum/careful usage of shell utilities (awk, grep, sed, cut, xargs etc.,)?
[ ] Can the limtusbook be executed both from within & outside a container (configurable paths, no hardcode)?
[ ] Can you suggest the minimal resource requirements for the litmusbook execution?
[ ] Does the litmusbook job artifact carry comments/default options/range for the ENV tunables?
[ ] Has the litmusbooks been linted?

Special notes for your reviewer:

Logs- pod-cpu-hog.txt

Logs- pod-cpu-hog.txt

pod-cpu-hog.txt

pod-cpu-hog.txt

@ispeakc0de Now you can review

pod-cpu-hog.txt


[Gally]: master <- dev

Automatically created by Git-Ally

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Avoid dealing with Cells and Rows via Workbook

@fahadadeel

As per XML Schema and looking at Workbook structure, cells and their contents belong to Worksheet. Therefore, any interactions with cells and contents belong to Worksheet instead of Workbook. Ideally, the objects flow should be like Workbook -> Worksheet -> Cell and then any operations should be performed via Cell object something like this:
Workbook wb = new Workbook(); Worksheet sheet = wb.Worksheets[0]; Cell cellA1 = sheet.Cells["A1"];
Then do something with contents of the cell. Therefore, I propose to remove all methods dealing with Cells from Workbook like below:

DeleteTextFromCell(String, String, UInt32)
GetCellValue(String, String)
so on

@sabir-aspose
I'm pleased to inform you that the issue has been addressed and resolved in my latest PR. Once the PR is merged, the fix will be available in the main branch.
Please find a demonstration of the corrected behavior:
using (Workbook wb = new Workbook(filePath))
{
Worksheet firstSheet = wb.Worksheets[1];
Cell cell = firstSheet.Cells["D2"];
cell.PutValue("Fahad");
wb.Save();
}
I encourage you to pull the changes from the main branch once merged and verify on your end. Let me know if you encounter any further concerns! Thanks


Logo digiwf.oss.muenchen.de

Is your feature request related to a problem? Please describe.
Currently we have only the it@M logo on https://digiwf.oss.muenchen.de/
Describe the solution you'd like
There is a new (?) logo in our intranet workspace "DigiWF", lets us this

@klml could you please provide the image from the internal workspace and add it to the issue

@klml I added the digiwf logo to our docs page (see https://digiwf.oss.muenchen.de/)


Add API for maintenance policy id

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

/azp run automation - sdk

Can one of the admins verify this patch?

/azp run automation - sdk

/azp run automation - sdk

@fengzhou-msft Can you please remove DoNotMerge label and review this?

@akning-ms this PR adds a property in response. Please help merge.


Unable to delete shortened URL's

[ ] I've read the guidelines for Contributing to YOURLS Projects
[ ] This request isn't a duplicate of an existing issue
[ ] I've read the docs and followed them (if applicable)
[ ] This is not a personal support request that should be posted on the YOURLS Discourse community

Describe the bug
We have cron executing https://domain.com/yourls-api.php?signature=&format=simple&action=prune&scope=expired that cannot be executed until an error occurs.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /var/www/html/includes/vendor/aura/sql/src/ExtendedPdo.php on line 748
The cause for this may be a large number of records.
To Reproduce
Steps to reproduce the behavior:

Go to https://domain.com/yourls-api.php?signature=&format=simple&action=prune&scope=expired
See error

Expected behavior
It will remove old links and execute without errors
Actual behavior
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /var/www/html/includes/vendor/aura/sql/src/ExtendedPdo.php on line 748

YOURLS doesn't define any "prune" action, nor does it support expiring links. This plugin does, though. Please take this issue to the YOURLS Discourse forum for help and advice from other users, or take it to the plugin's issue tracker if you think it's a bug with the plugin and not your server setup.


executor: coverage collection in snapshotting mode is broken

Cc @dvyukov
Context: we've been observing weird corpus state when syzkaller is run under the snapshot mode - almost all programs were prefixed by openat$nci. Also, signal and corpus were much lower than one would normally expect.
The problem is related to thread prepopulation -- it goes away after this small change
diff --git a/executor/snapshot.h b/executor/snapshot.h
index 5479a162f..7d5766153 100644
--- a/executor/snapshot.h
+++ b/executor/snapshot.h
@@ -143,7 +143,7 @@ constexpr size_t kInputPopulate = 64 << 10;
 constexpr size_t kGlobalsPopulate = 4 << 10;
 constexpr size_t kDataPopulate = 8 << 10;
 constexpr size_t kCoveragePopulate = 32 << 10;
-constexpr size_t kThreadsPopulate = 2;
+constexpr size_t kThreadsPopulate = 0;

 static void SnapshotSetState(rpc::SnapshotState state)

I think the underlying issue is that the thread worker (see below) is executed before we have received a program and called parse_execute().
https://github.com/google/syzkaller/blob/e1bdb00a5405a6f7a63704d60d7b3d9f37731821/executor/executor.cc#L1371-L1376
So we effectively never get coverage from all programs that execute on the first two threads.

Good find!
Eventually we should run machine check in snapshot mode as well, I assume it would have detected the bug.


*: use fileutil.TouchDirAll

there are a bunch of places that we should use makedir instead of touchdir since we want to ensure we successfully make a dir. please change back.

@xiang90 Just fixed up only to use in server.go.

touchdir will not return an error if the dir already exists.

I think if we want that behavior, we should use os.Mkdir instead?
We already use os.MkdirAll that doesn't return errors even when the directory already exists.
err := os.MkdirAll("test", 0700)
// nil

err = os.MkdirAll("test", 0700)
// nil

err = os.Mkdir("test", 0700)
// mkdir test: file exists

Thanks!

lgtm. and you are right. probably we should make some of the code more strict.

I will double-check other parts, and make them consistent next time. Merging this first because it's not urgent. Thanks!


Question: Mailing list or slack channel?

Are there any group communication channels? I could not find this in looking through the Wiki, blog post,....

https://groups.google.com/forum/#!forum/wherehows
is the group

Thank you! Perhaps this would be useful info in the README.md or on the wikie.

Try gitter: https://gitter.im/wherehows/Lobby


rancher exception restart, now don't use

Rancher versions:
rancher/server or rancher/rancher: 2.0.0
rancher/agent or rancher/rancher-agent: 2.0.0
Infrastructure Stack versions:
healthcheck:
ipsec:
network-services:
scheduler:
kubernetes (if applicable):
Docker version: (docker version,docker info preferred)
1.12.1
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
centos7.4.1804
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
vm
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
Steps to Reproduce:
Results:

I'm sorry, but I think you're discription of the problem is insufficient for us to know whats going on.
That said, I see "no space left on device" as the last log line. Possible you ran out of disk space?

@cjellick which node ? rancher server？
is this?

#13471 This error occurred one night when rancher went down and logged a lot of logs.

@seanly Can you provide the reproduce steps for both https://github.com/rancher/rancher/issues/13490 and https://github.com/rancher/rancher/issues/13471, please?

when use `https://github.com/seanly/dsky-charts' deploy dsky-jenkins charts.
Here are the configuration parameters：

The following is the deployment exception tip：

Here is the log of the rancher service：

The lack of disk space is that the log is constantly duplicated .

The logs are growing fast @cjellick @loganhz

when restart rancher server ,log result :


[ Core ] Charts choke handling datasets with Infinity datapoints

Chart.js does not seem to gracefully handle Infinity datapoints (chart partially renders, or not at all).
It should be quite trivial to update Chart.scale.getRightValue to return NaN when given Infinity, and thus skip those problematic data points.

I agree that we should support this. 👍

Oh my, I've been beaten to it. Thanks, @bcongdon !


Changelog or Version History? Notifications on new versions of locast2tuner?

This is probably my ignorance on how Github works, but is there a place that shows a Changelog or Version History?
Also, if I wanted to be notified of new versions of locast2tuner, what would be the best way to do that?
Right now I just look at the main "code" page and see if there is a new version for Cargo.lock or Cargo.toml, but figured there is a better way.

This is probably my ignorance on how Github works, but is there a place that shows a Changelog or Version History?

Changelog/version history is mostly handled per-project, but on a project's main page you can see when the last commit was made up at the top:

You can also click release over on the right to see the list of releases:

Also, if I wanted to be notified of new versions of locast2tuner, what would be the best way to do that?

At the top right of the screen click "Watch" and you can select what kind of notifications you receive.

Depending on the project size I generally want all notifications (issues, commits, releases, etc.), but you can pick and choose.

Hey Roddie,
Thanks so much for helping a newbie. This is exactly what I was looking for!
Chris


Feat: Added Matrix Demo

A small demo of chars falling like the matrix demo.

I seem to have found a problem with this after PR


Many crashes

Since some months the app doesn't work at all. It crashes, with the message "the app unexpectedly closed".
Environment
K-9 Mail version: 5.205
Android version: 8.1.0
Account type (IMAP, POP3, WebDAV/Exchange): POP3
Please take some time to retrieve logs and attach them here:

You need to provide logs

You're using K-9 v5.205 which is from 2017...
Please use v5.700, or if you want to try out the new UI, use v5.703.

If "5.205" was a typo and you're using a recent version of the app please provide a debug log. See https://github.com/k9mail/k-9/wiki/LoggingErrors


examples: sync.ml doesn't seem to be working

When I run dune exec examples/sync.exe, I get the following error:
Fatal error: exception (Invalid_argument "Sync.pull_exn: not found")
Raised at Lwt.Miscellaneous.poll in file "src/core/lwt.ml", line 3068, characters 20-29
Called from Lwt_main.run.run_loop in file "src/unix/lwt_main.ml", line 31, characters 10-20
Called from Lwt_main.run in file "src/unix/lwt_main.ml", line 60, characters 2-13
Re-raised at Lwt_main.run in file "src/unix/lwt_main.ml", line 124, characters 4-13
Called from Dune__exe__Sync in file "examples/sync.ml", line 43, characters 9-31

It looks like we're using Mimic.empty in instances where we should probably prefer Git_unix.ctx (Happy_eyeballs_lwt.create ())


CTR should handle a null exitCode if the endDate is not null [Do Not Merge until Task merges PR 46]

While this case is highly unlikely, a null exitCode is technically possible.
resolves #47

@ilayaperumalg: It'd be great if you can check this as well.


Record Collection incorrect solution passed all tests

Challenge Record Collection has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

// Setup
var collection = {
    2548: {
      album: "Slippery When Wet",
      artist: "Bon Jovi",
      tracks: [
        "Let It Rock",
        "You Give Love a Bad Name"
      ]
    },
    2468: {
      album: "1999",
      artist: "Prince",
      tracks: [
        "1999",
        "Little Red Corvette"
      ]
    },
    1245: {
      artist: "Robert Palmer",
      tracks: [ ]
    },
    5439: {
      album: "ABBA Gold"
    }
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line

function updateRecords(id, prop, value) {
  if (value !== "" && prop !== "tracks") {
    collection[id][prop] = value;
  } else if (prop === "tracks" && value !== "") {
    /*if(collection[id].hasOwnProperty(prop))
      collection[id][prop].push(value);
    else
      collection[id][prop]=[value];
    //collection[id][prop].push(value);*/
    collection[id][prop]=[value];
  } else if (value === "") {
   delete collection[id][prop];
  }

  return collection;
}

// Alter values below to test your code
updateRecords(2548, "tracks", "ABBA");

This shouldn't work because its redefining tracks instead of pushing value to it (in the case when value isn't null).But it passed all tests .So ,you should not only just check that the last element of tracks should be val but also that the previous array elements are also present in it or maybe check that the size of tracks is increased and isn't reduced/unaltered (if tracks property is present).

Hi,
I also got stuck in this challenge.
Here's my code:
`
// Setup
var collection = {
2548: {
album: "Slippery When Wet",
artist: "Bon Jovi",
tracks: [
"Let It Rock",
"You Give Love a Bad Name"
]
},
2468: {
album: "1999",
artist: "Prince",
tracks: [
"1999",
"Little Red Corvette"
]
},
1245: {
artist: "Robert Palmer",
tracks: [ ]
},
5439: {
album: "ABBA Gold"
}
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));
// Only change code below this line
function updateRecords(id, prop, value) {
if(value !== "") {
if(prop === "tracks") {
collection[id][prop].push(value);
} else
collection[id][prop] = value;
} else {
delete collection[id][prop];
}
return collection;
}
// Alter values below to test your code
updateRecords(5439, "tracks", "Take a Chance on Me");
`
I still don't understand why it is showing me this,

TypeError: Cannot read property 'push' of undefined.
Shouldn't we use .push to add the value onto the end of the array. It got me confused.

But for now, I'll copy your code so I could move on. haha.

@eljaygalvez you got that error because in the collection object the object with id 5439 doesn't have tracks property predefined .So when you try to push into the tracks property (which is undefined currently for this object) ,the push operation cannot be performed as it is only defined for arrays.If you will see the commented part in my solution ,you will be able to find the correct solution

@UtkarshShukla7 Thanks man for the explanation.  This was so frustrating, I think every other solution using google search is not correct for this challenge update. As you said, it's "re-defining" track instead of pushing it?

@UtkarshShukla7 Well spotted. This is truly an issue in the code checking routine.

@UtkarshShukla7

So ,you should not only just check that the last element of tracks should be val but also that the previous array elements are also present in it or maybe check that the size of tracks is increased and isn't reduced/unaltered (if tracks property is present).

Great point. There should be some additional tests that check for the pre-existing elements in the arrays after new ones have been pushed to it.

@erictleung Thanks for the review ! Also ,one test can be added to check if tracks property is an array before pushing into it but I guess we can let it go as we know how our object looks like and the description states that you have to push value into it (which tells that tracks would always be an array, if present).

@UtkarshShukla7 the pushing to an non-existent array issue should be resolved soon with #9034 once it's pushed to the live site.

@erictleung That seems to be covered then . :+1:


Is there a way to specify "latest" image version when registration a function?

Hi there,
Here's some trouble I encounter,
We are developing some "functions" on iron, and we check in code to Git and use CI (jenkins) to build code and automatic push and register function to iron.  This iteration will happen dozen of times during developing time, but I can't find a way to register version number like "latest" on iron. I have to delete docker images on node, every time after rebuilding our code (the same version number ex: 0.0.1).  Or since there's a the same docker image file on registry , iron won't try to pull the latest one before trigger.
Is there a better way to do this?
I try to change version to latest thru UI , I get error like this,
Failed to pull image 'myfunctionxxxx:latest': manifest unknown: manifest unknown
request_id: d7351dd2-e680-540b-bdd4-8f4ecdb88a32

you can specify docker image version using Iron Function's API. such like this :
curl -ss -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"route":{"image":"DOCKER_IMAGE_URL:NEW_VERSION_NAME"}}' http://IRON_FUNCTION_SERVER:8080/v1/apps/APP_NAME/routes/ROUTE_NAME
so... simply call the Iron Function's API after build job finished.
If you want to check the current version of docker image, then call API like this :
curl -ss http://IRON_FUNCTION_SERVER:8080/v1/apps/APP_NAME/routes/ROUTE_NAME

Hi @eugenegwon,
Let me clarify a bit here , I know how to specify a "new" version number when route creating. And how to check docker image version.
The thing is , during developing period, we will build docker again and again using the same version number (ex: 0.0.1) When local node already load this docker images, ( ex: test-imageName:0.0.1 ) it won't try to pull images again since it's already exist in this node repo. I know this is normal , but docker images actually can specify "latest" string as version number , to pull images if any update happened.
My question is , is there any similar way to let iron pull images "only" when images update.  It seems I can't use "latest" as version number thru iron command or UI.
Thank you for help.

@sss0350 the normal work flow with IF, you bump the image version with fn bump when you want release a new image. this will iterate the version and also assign latest tag to it. Is there anything that is preventing you from using fn bump ?

Thanks , I'll give a try.


Figure out how to collect Azure Functions logs

I want to start collecting Azure Functions logs and sending them to an Event Hub to prepare the ingestion using the Elastic Agent.

Summary

install dependencies
create a FunctionApp project
run in locally
deploy on Azure
generate logs

Install dependencies

The Azure Functions Core Tools version 4.0.4785 or later.
Azure CLI version 2.4 or later.

Create a FunctionApp project
Create a virtualenv for this project:
$ python3 -m venv venv

$ func init hello-world --python
Found Python version 3.8.10 (python3).
Did you know? There is a new Python programming model in public preview. For fewer files and a decorator based approach, learn how you can try it out today at https://aka.ms/pythonprogrammingmodel
Writing requirements.txt
Writing getting_started.md
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing /home/zmoog/code/projects/zmoog/public-notes/36/hello-world/.vscode/extensions.json

Here's the result:
$ tree hello-world/
hello-world/
├── getting_started.md
├── host.json
├── local.settings.json
└── requirements.txt

Now move into the function app project and create a new function:
cd hello-world

$ func new --name hello --template "HTTP trigger" --authlevel "anonymous"
Select a number for template:HTTP trigger
Function name: [HttpTrigger] Writing /home/zmoog/code/projects/zmoog/public-notes/36/hello-world/hello/__init__.py
Writing /home/zmoog/code/projects/zmoog/public-notes/36/hello-world/hello/function.json
The function "hello" was created successfully from the "HTTP trigger" template.

Run in locally
$ func start
Found Python version 3.8.10 (python3).

Azure Functions Core Tools
Core Tools Version:       4.0.4895 Commit hash: N/A  (64-bit)
Function Runtime Version: <IP_ADDRESS>86

Functions:

        hello: [GET,POST] http://localhost:7071/api/hello

For detailed output, run func with --verbose flag.
[2023-05-17T08:04:33.279Z] Worker process started and initialized.
[2023-05-17T08:04:36.188Z] Host lock lease acquired by instance ID '000000000000000000000000000C2005'.

Let's test the function and the HTTP trigger are running fine:
$ curl -i http://localhost:7071/api/hello
HTTP/1.1 200 OK
Content-Type: text/plain; charset=utf-8
Date: Wed, 17 May 2023 08:06:26 GMT
Server: Kestrel
Transfer-Encoding: chunked

This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.

Deploy on Azure
To deploy the FunctionApp on Azure we need to set up some infrastructure first. To keep things as simple as possible, we can use the Azure CLI.
Create the resources
$ az group create --name mbranca-test-rg --location eastus
{
  "id": "/subscriptions/3e5e69b7-ff74-421e-bc42-66cbbbf888df/resourceGroups/mbranca-test-rg",
  "location": "eastus",
  "managedBy": null,
  "name": "mbranca-test-rg",
  "properties": {
    "provisioningState": "Succeeded"
  },
  "tags": null,
  "type": "Microsoft.Resources/resourceGroups"
}

$ az storage account create --name mbrancatestsa --sku Standard_LRS --resource-group mbranca-test-rg
{..}

$ az functionapp create --consumption-plan-location eastus --runtime python --runtime-version 3.9 --functions-version 4 --name mbranca-test-function --os-type linux --storage-account mbrancatestsa --resource-group mbranca-test-rg
{..}

Deploy
With all the cloud resources ready to go, we can deploy the function code in Azure:
$ func azure functionapp publish mbranca-test-function
....
Deployment successful. deployer = Push-Deployer deploymentPath = Functions App ZipDeploy. Extract zip. Remote build.
Remote build succeeded!
Syncing triggers...
Functions in mbranca-test-function:
    hello - [httpTrigger]
        Invoke url: https://mbranca-test-function.azurewebsites.net/api/hello

Test
Quick test to check everything is okay:
$ $ curl -i https://mbranca-test-function.azurewebsites.net/api/hello
HTTP/2 200
content-type: text/plain; charset=utf-8
date: Wed, 17 May 2023 08:23:51 GMT
server: Kestrel
request-context: appId=cid-v1:513cc8f4-05ea-4cd3-a52e-b50bc3e57638

This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.

Generate logs
watch -n 5 curl -i https://mbranca-test-function.azurewebsites.net/api/hello

Here are the logs from the Azure Portal perspective:

Route the logs to an event hub

Visit Monitoring > Diagnostic settings
Click on Add diagnostic settings

Then select all logs and route them to an event hub:

Clean up
Be a good cloud citizen, and tear down the cloud resources when you don't need them anymore:
$ az group delete --resource-group mbranca-test-rg

Deleting the resource group should be enough.


The libertyCreate task is not copying the modified src server.xml to the server directory

If I modify the src server.xml and then run 'gradle libertyCreate', the changes do not get copied to the server directory in the build folder.

Cindy pointed out the following: You can use the --rerun-tasks option to force it and that works. Gradle thinks the task should not run when it should.

Confimed issue with Gradle 4.3.1 on MacOS. Can we get an updated plugin asap, please?

@eharris369, @cthigh , I have a config file that includes another file.   The included file is not being copied over.  Is this a known problem?

@keithchong If you are just specifying a config file then the included file will not be copied. You can use the configDirectory property to copy the folder that contains both of these files into the server directory.

Thanks @mattbsox .  That's what was missing.  It works, and it also copies the subfolders too.


Sentence completion on max pooling

Completed a sentence on max pooling (the receptive field size discussion)

Actually, we will need to update that sentence some. Convs with stride > 1 are now favored over max pooling.


comments

ok, so we can all sign :writing_hand: that @en-GB is a big brain mastermind here. our jaws have dropped several times playing with this and watching the youtube video.
so, it's quite unfortunate that there are very little comments about what the code does in the 3_less.c and 3_roomgen.py programs. i think a reasonable level to put comments on is that anyone with a basic understanding of opengl should be able to figure out what's going on.
cheers

I tried to comment the roomgen file but it's mainly a file to create another and I don't know anything about openGL only python so I tried my best to explain everything.
File here

ill get to it eventually

the opengl part is pretty simple tho maybe i can do that right now


Duplicate _id on embedded collections.

I searched everywhere for a solution to this but cannot find anyone else who has had this issue.
We have a mobile app that syncs with our web app. The mobile app uses sqlite and we have noticed that things are getting overwritten because the embedded documents do not have unique ids. (That was interesting trying to figure out)
I can see why the uniqueness of ids across embedded documents would not be performant, but now I am stuck in this situation where I should migrate my embedded documents to their own collection (not ideal or very fun or performant for my web app) or I figure out a way to make them unique.
So, is there any suggested way to make embedded docs have unique ids across the parent collection? I could make my own validation but is there any default way of setting/regenerating the _id manually as well?
Thanks in advance for any help.

Turns out the clash was from cloning the parent objects, and thus the embedded objects were not getting regenerated ids.
Easy fix!


Abus SHHA10000 missing

Which device is missing?
One of my personal devices are missing.

Abus Wall Plug SHHA10000 https://products.z-wavealliance.org/products/3144?selectedFrequencyId=1

What are the IDs?

Abus Wall Plug
Manufacturer ID: 0x0403
Product type: 0x0003
Product ID: 0x0003

Did you check if we really don't have it?

[X] It is not in the configuration DB
[X] It was not merged recently or has a pending PR
[X] It is not in the TODO list

Do you have a link to the PDF manual?
See the link to alliance above and a extra german manual -> https://www.abus.com/var/ImagesPIM/d110001/medias/docus/22/ABUS_SHHA10000_BDA_DE_1.3.pdf
Info
When I find some time I will try to add the devices by myself if nobody else do it..will create the issue to track it.

If you find the time to do this, please go ahead.

Closed as changes already merged.


Add Task.get_all_users_in_commits

This is a first step towards https://trello.com/c/ZIazywAF/209-as-an-admin-i-want-to-see-a-list-of-all-users-who-contributed-to-a-given-task
Still have to track reviews somehow.

 As an Admin, I want to see a list of all users who contributed to a given Task.

@jgerigmeyer let me know what else you think this needs; I suspect we want to at least surface this info in the admin interface, but before I do that, let me know if I'm missing anything else.

@jgerigmeyer ready for actual review.

@wlonk I'll let you merge, once you've had a chance to review my changes.