koki selector match label is added by default during the creation of persistent volume claim

Issue:
koki selector match label is added by default during the creation of persistent volume claim which is expecting the persistent volume to be labelled in the same way.
Expectation:
Match labels should be added only if it is provided by the user
Actual:
Match label is added by default
CC @rrati

In koki_pvc_to_kube_pvc.go, revertPVCSpec calling revertRSSelector which provides the default match labels, it needs to be modified


Adding groups doesn't work due to JSON deserialization

All boolean values from the browser are encoded in JSON with a value like ["name"] instead of true or false.
This breaks adding new groups.
Error log:  error: json: cannot unmarshal array into Go struct field Group.policy_updates_enabled of type bool (same for policy_safe_mode and policy_office_hours)

In the edit dialog the encoding is correct.


Update UG

Added an input requirements section as well to explain how to format certain parameters

Codecov Report

Merging #57 (8bd30b0) into master (5ead7af) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #57   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

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 5ead7af...8bd30b0. Read the comment docs.

LGTM


TesterHelper registry security issue

Hi,
When running in an environment of least privilege, you cannot run DSC tests making use of TestHelper.psm1.

The helper attempts to make registry changes on line 373. My analysis seems to show that we don't need to make this change at a system level, for all future executions of PowerShell. My recommendation is to remove like 373. If removal cannot occur, then place the correct # requires statement to ensure that it is executed as an Administrator.

The script modifies the execution policy. Once again this creates issues on multiple levels. This logic should be removed, and recommendations made on how the environment should be setup.

Moving this to https://github.com/PowerShell/DscResource.Tests


Create tagging schema for "Barangay Hall"

Create tagging schema for "Barangay Hall".
A "barangay" in the Philippines is the smallest administrative government unit.
According to taginfo, "barangay" is the third most used value for townhall:type, and one of the most popular POI added by mappers from the Philippines.
I'm new to adding id tagging schemas, so please be gentle with me. :) Feedback is welcome!

ah, one last suggestion: we could split up the tags section of the preset into two parts, like this:
    "tags": {
        "amenity": "townhall",
        "townhall:type": "barangay"
    },
    "addTags": {
        "amenity": "townhall",
        "townhall:type": "barangay",
        "admin_level": "10"
    },

This would have the benefit that if the admin_level tag is missing on an existing OSM object, iD would suggest to add it.

merged as 699e10f7


Update requirement: [compat] ScientificTypes = "0.1.3" and add unpack

Updates requirement on ScientficTypes.jl to v0.1.3, to mitigate bug with coercion of column scitypes for tables that are also AbstractVectors

Adds new method unpack for splitting tables, as in y, X = unpack(df,==(:target),!=(:dummy)). See  doc-string for details.

PR on hold: Tests need to wait for registration of ScientificTypes.jl 0.1.3.


fix the issue that decimal divide not round.

What problem does this PR solve?
Issue Number: close https://github.com/pingcap/tiflash/issues/6393, close https://github.com/pingcap/tiflash/issues/6462, close https://github.com/pingcap/tiflash/issues/4488
Problem Summary: The result of decimal divide won't round at some precision.
What is changed and how it works?
add round logic
Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[x] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

fix the issue that decimal divides not round in some precision.

/rebuild

/run-all-tests

/merge

/merge

/merge

/merge


Effects triggered by unmounting a Widget

I'm seeing my animation being applied when the widget is added to my UI, but how would I indicate the animation which should play when the widget is removed from the render tree?

Good question. I'll have to look into this. If anyone wants to tackle this in the interim, it would be very welcome, even if it's just to throw some ideas at it.

As a follow up question: How do you see this working, not in terms of specific implementation in the library but in terms of how you'd use it as a developer? Feel free to sketch some code examples.

Bear in mind I haven't thought about your internals and how they might be impacted by such an API...
Under typical conditions, the "remove animation" should happen automatically when Flutter determines my widget will no longer be rendered.
Text("Hello").animate()
  .fadeIn(delay: 300.ms, duration: 500.ms)
  .then()
    .slide(duration: 400.ms)
  .then(delay: 200.ms)
  .blur()
  .remove()
    .fadeOut(delay: 300.ms)

For example, I have a TextField inside of a Card that I expose (height animation currently) based on a user's tapping on a card. If they tap on the card again, I want the TextField to animate shut. In my code, I don't want to be concerned about any of this, I just want to be able to declaratively control whether my TextField is rendered or not.
Column(
  ...
  children: [
    ...
    if (selected) TextField().animate(
      effects: MyGlobalEffects.transitionIn,
      removeEffects: MyGlobalEffects.transitionOut,
    ),
    ...
  ]
),

I don't think there's any way to interrupt or defer a removal like that in Flutter. That widget is simply not created in that build, so it and the Animate instance are disposed.
The easiest way to get something similar is to use target, but that requires that the "out" animation is just a reverse of "in".
foo.animate(target: selected ? 1 : 0).fadeIn().slideX()

Otherwise, I think you're going to have to do some state management, and the hardest bit will likely be avoiding a starting transition out. For example, this would mostly work I think, except it would run the "out" transition on the first build:
Animate(
  effects: selected ? [...] : [...],
  child: foo,
)

Maybe this could be solved with a more specific wrapping widget that maps the state change to appropriate effects for you? Something like this:
ToggledAnimate( // naming TBD
  toggle: selected ? true : false,
  inEffects: [...],
  outEffects: [...],
  child: foo,
)

Where the above would hold on the zero position for "inEffects" if it starts with toggle=false, then play when toggle=true, then switch to playing outEffects when toggle returns to false. You could then use VisibilityEffect to effectively get rid of the widget when it's hidden. I hope that makes sense.

I would like to see a syntax similar to what AnimatedSwitcher or AnimatedCrossFade provide but with the ease of flutter_animate e.g.:
Animate().toggle(
  index: 0, // 1, 2, 3....
  duration: 100.ms,
  inEffects: [FadeInEffect(), ScaleInEffect()],
  outEffects: [FadeOutEffect(), ScaleOutEffect()],
  builder: (context, index) {
    if (index == 0) {
      return Container(
        width: 40,
        height: 40,
        color: Colors.red,
      );
    } else if (index == 1){
      // and so on...
    } else {
      //
    }
  },
)

This would make for a pretty generic variant of AnimatedCrossFade that typically allows only for switching 2 widgets. In case of removing a widget this would mean switching from actual widget to a SizedBox or something similar


My History / History alignment

I think this is only present on the web client, but the list items should be right aligned with the headers here. (At least for Amount and Value)

It's because the header is in a different table from the the rest to enable scrolling while keeping the header fixed. It's pretty much impossible to get this right imo so I'd prefer to just leave it like that instead of spending lots of time trying to get it right. One solution could be to add a library for this but again it will be a lot of work for very little gain..

Moving to a late January date.

This was actually fixed in a unrelated commit, the actual reason was the show-for-x foundation utility class, I removed that so this is no longer an issue.


Node <4 support with babel

Would you consider using babel to support older versions of node.js using babel transpilation?
I'm offering help with PR on this, if you like.
In every case, thank you for this lib, it is the only one which works correctly with XLSX files for me.

Why do you want to support older versions?

I don't know the exact statistics, but I guess that more than 50% of current installations are using node <4.
My project jsreport would like to depend on this library, and in my case there is no need to force users to upgrade node.js except this particular lib.
I can easily fork this... I just wanted to know if you(or maintainers) would considering supporting older versions.

No, I won't introduce a compilation step to support versions below 4.x.x.


update link

Update link

Hi @pengj-ibm ,
Which bug this PR is for? PR name should include defect number and brief of changes
Also PR description should list the details which we are modifying here
You have updated the link to documentation I think and removed old unsupported MongoDB.
Please list the changes PR.


Listing Block crashes when switching to Image Gallery Template

Steps to reproduce:

add a new listing block to page
Choose Image Gallery as template. (Do not add any criteria before!)
-> TypeError: item[_config__WEBPACK_IMPORTED_MODULE_4__.settings.listingPreviewImageField] is undefined

It does not happen when a criteria is set.

fixed by #1723


prompt: allow control of auto-complete word delimiters

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

21 of 21 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.2%) to 97.909%

Totals

Change from base Build<PHONE_NUMBER>:
1.2%

Covered Lines:
2388

Relevant Lines:
2439

💛  - Coveralls


Can't start new processes after some time running

Your Windows build number
Microsoft Windows [Version 10.0.17134.81]
What you're doing and what's happening
After system boot all works fine. But after some time running (I have running WSL processes all the time) - running processes looks like dead and I can't start new processes. So, symtoms are:

System uptime: more than 10 days
Opened ssh sessions are dead (Ctrl+C/Ctrl+D don't work)
Can't stop running docker-compose
I can start new bash and only some commans inside it
uptime in bash shows me:12:37:48 up -24855 days, -3:-14,  0 users,  load average: 0.52, 0.58, 0.59

ps faux:USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   8304    96 ?        Ss   Sep04   0:00 /init ro
soar        58  0.0  0.0 161156   816 ?        Ss   Sep04   0:01 gpg-agent --daemon --verbose
root       112  0.0  0.0  14300   284 ?        Ss   Sep04   0:00 socat UNIX-LISTEN:/tmp/keeag
soar      2552  0.0  0.0  16464  3804 ?        Ss   Sep04   1:35 tmux
soar      2553  0.0  0.0  16676  1900 pts/1    Ss   Sep04   0:00  \_ zsh
soar      2623  0.0  0.0  15416  2272 pts/1    S    Sep04  30:37  |   \_ htop
soar     11155  0.0  0.0  17736  3076 pts/2    Ss   Sep05   0:00  \_ zsh
soar     11267  0.0  0.0  17736  3076 pts/3    Ss   Sep05   0:00  \_ zsh
soar     13177  0.0  0.0  17740  3000 pts/13   Ss   Sep06   0:00  \_ zsh
soar     13239  0.0  0.0  11940  1484 pts/13   S    Sep06   0:00      \_ docker-compose up
soar     13240  0.0  0.0<PHONE_NUMBER>6 pts/13   Sl   Sep06   0:16          \_ docker-compose up
Signal 11 (SEGV) caught by ps (procps-ng version 3.3.10).
root     16033  0.0  0.0   8304    92 tty1     Ssps:display.c:66: please report this bug
[1]    16085 segmentation fault (core dumped)  ps fuax

initial strace here - I've tried to kill process, where it crashes, and got anothre strace
trying to run gedit (strace here):** (gedit:16483): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process org.a11y.Bus received signal 6
GLib:ERROR:/build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gasyncqueue.c:431:g_async_queue_pop_intern_unlocked: assertion failed: (retval || !wait || end_time > 0)

ping - executes successfully, but Ctrl+C doesn't work in it
mc, top, htop - start successfully
ssh client starts, but stuck on getting authorization through socat socket.

What's wrong / what should be happening instead
All commands should be executed successfully.
Strace of the failing command, if applicable
Here are straces for all command above: https://gist.github.com/soar/e792610ab01d8d79fb3953825467497f

Microsoft Windows [Version 10.0.17134.81
...
12:37:48 up -24855 days

#3252 #3434. Should be okay in 17738.


feat: user-selectable slippage

Description
Add user-selectable slippage.
Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[x] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
Closes https://github.com/shapeshift/web/issues/3469
Risk
TODO
Testing
TODO
Engineering
Operations
Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #5022

PR #5023   👈

This comment was auto-generated by Graphite.


[BUG] Optional Government support URI deserialization exception

Library name and version
Azure.ResourceManager.Resources
Describe the bug
When getting a managed app instance using the management API, the supportUrls property can contains an empty string value for supportUrls.azureGovernance
Since the value is not null the current implementation tries to build an Uri object from the empty string which is breaking the deserialization with an exception
This is the piece of code involved:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ArmApplicationPackageSupportUris.Serialization.cs#L34-L40
Since it's a generated code, I'm not sure I can propose a PR with this kind of change https://github.com/Azure/azure-sdk-for-net/compare/main...sdib:azure-sdk-for-net:fix/managed-app-support-urls-deserialization to fix
Expected behavior
An empty string value for this optional azureGovernment support URL should not break Azure Managed App deserialization.
Actual behavior
Exception:

Invalid URI: The URI is empty.
System.UriFormatException:
   at System.Uri.CreateThis (System.Private.Uri, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Uri..ctor (System.Private.Uri, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at Azure.ResourceManager.Resources.Models.ArmApplicationPackageSupportUris.DeserializeArmApplicationPackageSupportUris (Azure.ResourceManager.Resources, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at Azure.ResourceManager.Resources.ArmApplicationData.DeserializeArmApplicationData (Azure.ResourceManager.Resources, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at Azure.ResourceManager.Resources.ApplicationsRestOperations+d__6.MoveNext (Azure.ResourceManager.Resources, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.ResourceManager.Resources.ArmApplicationResource+d__14.MoveNext (Azure.ResourceManager.Resources, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Microsoft.ManagedApp.Notifications.Listener.Services.AzureManagedApplicationService+d__2.MoveNext (Microsoft.ManagedApp.Notifications.Listener, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null: /home/runner/work/jdf-customer-instance-notification-listener/jdf-customer-instance-notification-listener/src/Microsoft.ManagedApp.Notifications.Listener/Services/AzureManagedApplicationService.cs:29)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Microsoft.ManagedApp.Notifications.Listener.EventsHandler+d__6.MoveNext (Microsoft.ManagedApp.Notifications.Listener, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null: /home/runner/work/jdf-customer-instance-notification-listener/jdf-customer-instance-notification-listener/src/Microsoft.ManagedApp.Notifications.Listener/InitializeCustomerConfig.cs:60)

Reproduction Steps

Create Azure Marketplace Offer in partner center
In the offer listing, provide a value for Azure Government support URL
Publish the offer
Remove the value for Azure Government support URL
Publish the offer
Install managed app from marketplace offer
Run

az rest -m GET -u https://management.azure.com/<managedapp_resourceid>?api-version=2019-07-01 | jq .properties.supportUrls

Response should contain:

...
"supportUrls": {
      "governmentCloud": "",
      "publicAzure": "https://something/contact/support"
},
...

Environment
dotnet SDK 6.0.301
<PackageReference Include="Azure.ResourceManager" Version="1.3.1" />
<PackageReference Include="Azure.ResourceManager.Resources" Version="1.3.0" />

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

This is a common issue as the .NET SDK tends to use a more specifc type (prefers Uri/IPAddress/Guid than string), but services sometimes return empty string as the value, breaking the SDK deserialization of such specific types. While this issue could be resolved by using custom code to overwrite the generated code, we may need to fix it with a more general solution such as adding a generator configuration to tweek the generated code.

Fixed with custom code in Azure.ResourceManager.Resources 1.4.0. A general solution is tracked in https://github.com/Azure/autorest.csharp/issues/2802


OpenSSL 1.1.0g and 1.0.1e-fips compatibility

Hello!
I have Ubuntu 18.04 with OpenSSL 1.1.0g and CentOS 7.3.1611 with OpenSSL 1.0.1e-fips.
I build my project on Ubuntu 18.04 with '-lcrypto -lssl' libraries and try to run the binary in CentOS and it leads to the following error:
$ ./prog
./prog: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
I know about that table https://abi-laboratory.pro/?view=timeline&l=openssl
Could you please hint me how to fix that issue or the only one way is to install "OpenSSL 1.1.0g" on CentOS?

The OpenSSL 1.1.x series and 1.0.x series aren't compatible, and this is expressed in a difference in library SONAME.
You either need to rebuild your application on CentOS or install OpenSSL 1.1.0g on CentOS.


Fix lab3 toc links

For issue #14

@philbenjamin Are you okay with these changes? Anything else you would like added/changed?

@btulchinsky  looks good to me. Just merged it in.


The screen freezes when loading windows

The screen freezes when loading windows.
I can access the bios without problems, the problem is that windows does not start.

Hi, Checkout this
https://github.com/jwagnervaz/DUAL-CPU-ZX-DU99D4-V1.31-BIOSMOD/issues/6


[FLINK-4516] [cluster management]leader election of resourcemanager

This pull request is to implement resourceManager leader Election, which including:

When a resourceManager is started, it starts the leadership election service first and take part in contending for leadership
Every resourceManager contains a ResourceManagerLeaderContender, when it is granted leadership, it will start SlotManager and other main components. when it is revoked leadership, it will stop all its components and clear everything.

Main difference are 3 points:

Add ResourceManagerLeaderContender
Add getResourceManagerLeaderElectionService method in HighAvailabilityServices, NonHaServices, TestingHighAvailabilityServices to get leadership election service for resourceManager
Add a test for ResourceManager HA

@mxm , thanks for your review. I had change the code based on your advice, the changes are following:

move all code in the methods handleGrantLeadership, revokeLeadership, onLeaderElectionError  to ResourceManagerLeaderContender class from ResourceManager
change getAddress method in ResourceManagerLeaderContender.
change callAsync method in TestingSerialRpcService, now it will be executed immediately rather than wait for some time.
change TestingSerialRpcService to extend RpcService directly rather than TestingRpcService.

Thank you for the update @beyond1920. I will merge your changes later on.

@mxm , Thanks for your review. And I change the ResourceManagerHATest to use a mocked RpcService instead of TestingSerialRpcService.

Thank you. Merging.

Auto-closing from a commit doesn't in the feature branch. Could you please close the PR?

Hi @mxm , thanks so much. I already close the PR.


Allow any IEnumerable as return type to DynamicData source member

Fixes #4363

Flakiness on timeout acceptance tests, I'll force merge


Non-blocking directive

Issue: #2
Directives can be blocking and non-blocking
(non-blocking for i.e. availability checks, blocking for i.e. simulation of API calls).
This PR implements Non-blocking directive

must be deployed with https://github.com/RedHatInsights/topological_inventory-satellite/pull/15 (satellite master is not compatible with this PR)

Based on #6

Closing. I'll continue only in #5. It includes this PR


Hyperlink fixes

Fixed issues brought up in #1817 , please report any additional problems, and don't be afraid to ask questions, I am sure there will be some.

The ascii_check checker still does not create the proper hyperlink for the given line number.

Because of the GIT hash not being available at compile time when compiling in CircleCI, we should also add a command line option to the inspect tool which allows to specify the hash to be used on the tool's command line. Something like:
inspect --git-hash=eda56f5255eb9a27a7e3d1f2daffe5a1ac3bbc1f ...

Internally, the inspect tool should use the HPX_HAVE_GIT_COMMIT constant by default, but prefer using the command line argument if given.


Cyrillic symbols

It would be great if this font could support cyrillic symbols .

It would be great if this font could support cyrillic symbols .
@thisisbb here you go!

BLOKK Neue Cyr.zip


feat(react): add @felte/react

This PR adds a React wrapper for Felte. Still needs some consideration for the API. And further testing to check for any possible bottlenecks.
TODOS

[ ] Documentation on site
[ ] Unit tests
[ ] README
[ ] Polish exposed API

Codecov Report

Merging #90 (26e1520) into main (5ecfd06) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #90   +/-   ##
=======================================
  Coverage   99.29%   99.29%
=======================================
  Files          49       49
  Lines        1274     1274
  Branches      387      387
=======================================
  Hits         1265     1265
  Misses          6        6
  Partials        3        3

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 5ecfd06...26e1520. Read the comment docs.


Overlord

went for the focus on capybara since that's where I needed a refresher, didn't bother prettying up the page; supervillain can hire a designer.

This is looking good.  Take a look at the comments, refactor and resubmit.  I imagine just one refactor should do it.

thanks, will do


Android Basics: Activities and intents

URL of codelab
In which task and step of the codelab can this issue be found?
Describe the problem
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

The 'starter' code for intents for navigating between activities, already has fragments.  It also already navigates from screen to screen.  This is not starter code.  It is THE FINISHED APP!!!!!  It is difficult enough to learn to code android without the confusion of poorly designed curriclum.


CORS feature is not working

In early 2017 this issue was opened to report a bug in CORS support.
Even though apparently that issue was solved, I believe at some point later it was reintroduced. The expectation is CORS to be enabled by default, but it is not. Actually, even when you do explicitly enable it (in the Spring Boot config file, like seen below) CORS still doesn't work.
graphql:
  servlet:
    corsEnabled: true

Maybe some change reintroduced this bug. Was there a regression test added when this was fixed originally?
I am reporting this bug against version 5.9.0.
Thanks.

I just tested this with that version and works for me... Maybe something else is overriding this setting in your case?


TypeError raised by Promise Subclass in ES6

Operating system: Windows 10
Last upstream commit: d2018a60a02dc0041a8ba8ae1509a85f256b5939
language version: nodejs
Hey there,
I'm encountering an error when trying to incorporate the Node.js example into an Electron project: Uncaught TypeError: undefined is not a promise raised by the line containing class ChainablePromise extends Promise { in the JS Cortex Wrapper.
It seems this is due to the method of extending the Promise class not working in my Electron environment, which makes use of ES6, Webpack and Babel. Running the example raw file works when ran directly with node. The error is encountered when running with babel transpilation.
I'm having a hard time figuring out a way around this without rewriting the Cortex wrapper, which I would prefer not to have to do. Any suggestions?

In order to see whether this was just due to my app's unique webpack config, I created a new React app from scratch and tried to include the Cortex wrapper. Getting a very similar error now: TypeError: calling a builtin Promise constructor without new is forbidden

I'm getting around this error now by directly importing the cortex.js wrapper file into my app's index.html. This is less than ideal and I foresee errors in testing and packaging the app for production, but will work for until the Cortex wrapper can be update to be ES6 compatible

Can we reopen this? I'm going to refactor the example code to remove the Promise subclass and will be filing a PR. Any support would be appreciated

Hey there,
I've created a fork of this repo in which the Promise class is used directly instead of being subclassed. This lets the wrapper and the examples run when used in modern ES6 environments. However, it changes the API a bit by requiring .then to be called in between Cortex functions instead of being able to chain them.
Here's the fork: https://github.com/jdpigeon/cortex-example
If you're interested in adding this support to this main example even though it might change the way you work with the code I'd be happy to make a PR

@jdpigeon , we always welcome all the contribution.


fix conjuncts normalize error

What type of PR is this：

[ ] bug
[ ] feature
[ ] enhancement
[ ] others

Problem Summary(Required) ：
function_call(slot) in (a, b, c) normalized to slot in (a, b, c)
by mistake.
introduce by #3988

please add test cases

case: https://github.com/StarRocks/StarRocksTest/pull/230


Create org permissions of user created via cli client

Description
With (default) settings as
[admin]
DISABLE_REGULAR_ORG_CREATION = false

[service]
DEFAULT_ALLOW_CREATE_ORGANIZATION = true

a user created via gitea admin user create does not have "create org" permissions. If it is intentional that the CLI client does not respect the relevant settings, it might be helpful to add an option to the CLI client.
Gitea Version
1.19.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/nbenn/f4cf2314da1cc32d8d5325b9a0e9cbe3
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker: gitea/gitea:1.19.0
Database
SQLite

Thanks for sharing this issue

Maybe caused by #25330

Maybe caused by #25330

No, it's not related IMO.
Before  #25330, func Init(opts *Options) { also only called loadCommonSettingsFrom, the settings were never fully loaded.
After #25330, the loadCommonSettingsFrom is also called, so it's not related.

I met the same problem with LDAP users.

I can see what happened. The loadCommonSettingsFrom will be loaded but loadServiceFrom will not be included. And DEFAULT_ALLOW_CREATE_ORGANIZATION = true hasn't been loaded.


New element: Abbreviation

This PR adds an Abbreviation element. Abbreviation renders a <abbr> tag. This is something I find myself use from time to time and thought it'd be a nice addition to the collection of Ignite elements.
I added a single test for Abbreviation.

Thank you! I'm not familiar with the element, but perhaps you know: does the abbreviation being displayed on the page always need to be a simple string, or could it involve bold, italics, or more complex elements?

I usually just use simple strings and therefore I did not think about if the abbreviation text can be formatted e.g. italic or bold. It turns out that it can. I will add the appropriate constructors and tests for this :)

Sounds good to me! I'll merge this now. Thank you!


Way to know if the CPU is compliant with scaphandre - could not start on kube with intel CPU

Hello,
I would like to give a try to scaphandre on a kubernetes cluster. I tried to deploy it with the helm chart, but I always have the error:
thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/sensors/powercap_rapl.rs:76:53
After a few research, I checked on the node the module, intel_rapl which is loaded (it's a kernel prior to 5).
ll /sys/class/powercap/
total 0
intel-rapl -> ../../devices/virtual/powercap/intel-rapl
intel-rapl:0 -> ../../devices/virtual/powercap/intel-rapl/intel-rapl:0
intel-rapl:1 -> ../../devices/virtual/powercap/intel-rapl/intel-rapl:1
The CPU is
https://ark.intel.com/content/www/us/en/ark/products/192451/intel-xeon-gold-6254-processor-24-75m-cache-3-10-ghz.html
cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 85
model name	: Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz
stepping	: 7
microcode	: 0x5003006
cpu MHz		: 3100.000
cache size	: 25344 KB
physical id	: 0
siblings	: 18
core id		: 0
cpu cores	: 18
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 cdp_l3 invpcid_single intel_ppin intel_pt ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke avx512_vnni md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities
bogomips	: 6200.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:
There is nothing in power management section.
I had to add the --vm option to make it start. So I guess I met this issue:
https://github.com/hubblo-org/scaphandre/issues/131
Or is that my CPU does not support RAPL? According to the compatibility matrix, it's a recent intel CPU, it should. Or I made a configuration error, but I can not really find what.
Thanks a lot

Hi ! Thanks for reporting that issue.
Do you have a full trace of the crash ?

As you are running on a Xeon Gold, it seems related to #131 as you imagined.
I encourage you to give a try to #198 if you can, or wait for it to be merged/released (#131 to be solved)

Hi ! #131 as been merged.
Could you give a try to the dev branch and see if this solves your issue ?

Closing, as it seems related to the PR mentioned.
Don't hesitate to ask/reopen the issue if this is not fixed on your side.

Hello!
Sorry to be reposting in this, we are facing similar issues with our bare-metal kubernetes cluster.
Scaphandre is working on some nodes but not on others, so i dug into the differences in our machines and I found some differences in the kernel and CPU.
First a screenshot of the scenarion:

Logs from the machines were scaphandre is not working:
Scaphandre prometheus exporter
Sending ⚡ metrics
Press CTRL-C to stop scaphandre
scaphandre::sensors::powercap_rapl: Couldn't find intel_rapl modules.
scaphandre::sensors::powercap_rapl: Couldn't find domain folders from powercap. Fallback on socket folders.
scaphandre::sensors::powercap_rapl: Scaphandre will not be able to provide per-domain data.
thread 'main' panicked at 'Trick: if you are running on a vm, do not forget to use --vm parameter invoking scaphandre at the command line', src/sensors/mod.rs:320:22
stack backtrace:
   0: rust_begin_unwind
             at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5
   1: core::panicking::panic_fmt
             at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14
   2: core::panicking::panic_display
             at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:72:5
   3: core::panicking::panic_str
             at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:56:5
   4: core::option::expect_failed
             at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/option.rs:1817:5
   5: scaphandre::sensors2023-07-28T11:11:03.583249664+02:00 ::Topology::add_cpu_cores
   6: <scaphandre2023-07-28T11:11:03.583259795+02:00 ::sensors::powercap_rapl::PowercapRAPLSensor as scaphandre::sensors::Sensor>2023-07-28T11:11:03.583265629+02:00 ::generate_topology
   7: 2023-07-28T11:11:03.583270786+02:00 <scaphandre::sensors::powercap_rapl::PowercapRAPLSensor as scaphandre::sensors::Sensor2023-07-28T11:11:03.583274608+02:00 >::get_topology
   2023-07-28T11:11:03.583278761+02:00 8: <scaphandre::exporters::prometheus::PrometheusExporter as2023-07-28T11:11:03.583282679+02:00  scaphandre::exporters::Exporter>::run
   9: 2023-07-28T11:11:03.583290428+02:00 scaphandre::run
  10: scaphandre::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Stream closed EOF for default/scaphandre-lsg4f (scaphandre)

I decided to investigate using some linux commands to get system info:
cat /etc/os-release
lsb_release -a
hostnamectl
uname -r
dmesg | grep rapl
ls /lib/modules/$(uname -r)/kernel/drivers/powercap/
lscpu

System information for the machines where scaphandre works:

ubuntu@worker-0:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
ubuntu@worker-0:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.5 LTS
Release:	20.04
Codename:	focal
ubuntu@worker-0:~$ hostnamectl
   Static hostname: worker-0
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: b8e643305cce4e69bec0475fa3c1c2b3
           Boot ID: 2e8dea0794264b67bd272f0b7916be4a
  Operating System: Ubuntu 20.04.5 LTS
            Kernel: Linux 5.4.0-132-generic
      Architecture: x86-64
ubuntu@worker-0:~$ uname -r
5.4.0-132-generic
ubuntu@worker-0:~$ dmesg | grep rapl
ubuntu@worker-0:~$
ubuntu@worker-0:~$ ls /lib/modules/$(uname -r)/kernel/drivers/powercap/
intel_rapl_common.ko  intel_rapl_msr.ko
ubuntu@worker-0:~$ lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          16
On-line CPU(s) list:             0-15
Thread(s) per core:              2
Core(s) per socket:              8
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           158
Model name:                      Intel(R) Xeon(R) E-2288G CPU @ 3.70GHz
Stepping:                        13
CPU MHz:                         2339.355
CPU max MHz:                     5000.0000
CPU min MHz:                     800.0000
BogoMIPS:                        7399.70
Virtualization:                  VT-x
L1d cache:                       256 KiB
L1i cache:                       256 KiB
L2 cache:                        2 MiB
L3 cache:                        16 MiB
NUMA node0 CPU(s):               0-15
Vulnerability Itlb multihit:     KVM: Mitigation: Split huge pages
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Retbleed:          Mitigation; Enhanced IBRS
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:             Mitigation; Microcode
Vulnerability Tsx async abort:   Mitigation; TSX disabled
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm con
                                 stant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg
                                 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid
                                 _single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed
                                 adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabi
                                 lities

System information from a machine where scaphandre does not work:
ubuntu@worker-10:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
ubuntu@worker-10:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.5 LTS
Release:	20.04
Codename:	focal
ubuntu@worker-10:~$ hostnamectl
   Static hostname: worker-10
         Icon name: computer-server
           Chassis: server
        Machine ID: 88a6e50b09bd4dbc8b4a1226cd6fd85a
           Boot ID: 1c86da713abf44e9a61ab693018a5a72
  Operating System: Ubuntu 20.04.5 LTS
            Kernel: Linux 5.4.0-139-generic
      Architecture: x86-64
ubuntu@worker-10:~$ uname -r
5.4.0-139-generic
ubuntu@worker-10:~$ dmesg | grep rapl
[13284554.143685] intel_rapl_common: driver does not support CPU family 6 model 167
ubuntu@worker-10:~$ ls /lib/modules/$(uname -r)/kernel/drivers/powercap/
intel_rapl_common.ko  intel_rapl_msr.ko
ubuntu@worker-10:~$ lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          16
On-line CPU(s) list:             0-15
Thread(s) per core:              2
Core(s) per socket:              8
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           167
Model name:                      Intel(R) Xeon(R) E-2388G CPU @ 3.20GHz
Stepping:                        1
CPU MHz:                         3794.008
CPU max MHz:                     5100.0000
CPU min MHz:                     800.0000
BogoMIPS:                        6384.00
Virtualization:                  VT-x
L1d cache:                       384 KiB
L1i cache:                       256 KiB
L2 cache:                        4 MiB
L3 cache:                        16 MiB
NUMA node0 CPU(s):               0-15
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Retbleed:          Mitigation; Enhanced IBRS
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm con
                                 stant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est
                                 tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fa
                                 ult epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invp
                                 cid mpx avx512f avx512dq rdseed adx smap avx512ifma clflushopt intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves dtherm ida arat
                                  pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_
                                 vpopcntdq rdpid md_clear flush_l1d arch_capabilities

System information form ANOTHER machine where scaphandre does not work:

ubuntu@worker-16:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
ubuntu@worker-16:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.6 LTS
Release:	20.04
Codename:	focal
ubuntu@worker-16:~$ hostnamectl
   Static hostname: worker-16
         Icon name: computer-server
           Chassis: server
        Machine ID: f2e27e067f964ba990e83757d7fd67b8
           Boot ID: 757c2843ae414738902d5a346d85b42b
  Operating System: Ubuntu 20.04.6 LTS
            Kernel: Linux 5.4.0-149-generic
      Architecture: x86-64
ubuntu@worker-16:~$ uname -r
5.4.0-149-generic
ubuntu@worker-16:~$ dmesg | grep rapl
[5532924.548674] intel_rapl_common: driver does not support CPU family 6 model 167
[5533147.957785] intel_rapl_common: driver does not support CPU family 6 model 167
[5533711.154311] intel_rapl_common: driver does not support CPU family 6 model 167
ubuntu@worker-16:~$ ls /lib/modules/$(uname -r)/kernel/drivers/powercap/
intel_rapl_common.ko  intel_rapl_msr.ko
ubuntu@worker-16:~$ lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              2
Core(s) per socket:              6
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           167
Model name:                      Intel(R) Xeon(R) E-2386G CPU @ 3.50GHz
Stepping:                        1
CPU MHz:                         1478.075
CPU max MHz:                     5100.0000
CPU min MHz:                     800.0000
BogoMIPS:                        7008.00
Virtualization:                  VT-x
L1d cache:                       288 KiB
L1i cache:                       192 KiB
L2 cache:                        3 MiB
L3 cache:                        12 MiB
NUMA node0 CPU(s):               0-11
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Retbleed:          Mitigation; Enhanced IBRS
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm con
                                 stant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est
                                 tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fa
                                 ult epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invp
                                 cid mpx avx512f avx512dq rdseed adx smap avx512ifma clflushopt intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves dtherm ida arat
                                  pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_
                                 vpopcntdq rdpid md_clear flush_l1d arch_capabilities

Analysis
The main differences lie in the CPU version and the kernel version (but i think the issue lies more on the side of the CPU)
Model name: Intel(R) Xeon(R) E-2288G CPU @ 3.70GHz
Model Number: 158
Comparing this to the non working machines (worker-16 & worker-10):
Model name: Intel(R) Xeon(R) E-2386G CPU @ 3.50GHz
Model Number: 167
Model name:  Intel(R) Xeon(R) E-2388G CPU @ 3.20GHz
Model Number: 167
It seems that scaphandre has issues with newer CPUs (this seems to be coherent with our setup where scaphandre works on older workers, e.g. worker-0, worker-1... but not on newer workers like worker-10 and worker-16)
We tried using scaphandre latest and 0.5.0.
Scaphandre is started with:
....
spec:
   ....
  containers:
  - args:
    - prometheus
    - --containers=true
    env:
    - name: RUST_BACKTRACE
      value: "1"
    image: hubblo/scaphandre:0.5.0
    imagePullPolicy: Always
    name: scaphandre
    ports:
    - containerPort: 8080
      name: metrics
      protocol: TCP
    resources:
      limits:
        memory: 200Mi
      requests:
        cpu: 75m
        memory: 150Mi
    securityContext:
      allowPrivilegeEscalation: false
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /proc
      name: proc
    - mountPath: /sys/class/powercap
      name: powercap
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-rdv2l
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  nodeName: worker-10.
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    fsGroup: 1
    runAsGroup: 0
    runAsUser: 0
    supplementalGroups:
    - 1
  serviceAccount: scaphandre
  serviceAccountName: scaphandre
  terminationGracePeriodSeconds: 30
  tolerations:
  - operator: Exists
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/disk-pressure
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/memory-pressure
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/pid-pressure
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/unschedulable
    operator: Exists
  volumes:
  - hostPath:
      path: /proc
      type: Directory
    name: proc
  - hostPath:
      path: /sys/class/powercap
      type: Directory
    name: powercap
  - name: kube-api-access-rdv2l
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
....


OPT model quantize_lm_head clarification

While testing for OPT with quant_lm_head=True, here are the result  weights post quantize:
weight keys: ['lm_head.g_idx', 'lm_head.qweight', 'lm_head.qzeros', 'lm_head.scales', 'model.decoder.embed_positions.weight', 'model.decoder.embed_tokens.weight', ...
model.decoder.embed_tokens.weight  is not quantized but lm_head is.  Unforutnately vllm model code and maybe hf transformer also ignores this lm_head layer in weight load? I confirmed this for vllm but not 100% sure for transformer.
But opt's lm_head is actually the same as (soft lnked) model.decoder.embed_tokens in code in vllm and appears to be true in transformers as well. Checked original weights and lm_head exists in weights but size/values exactly same as embed_tokens so model coders appears to think lm_head should be ignored on load.
https://github.com/huggingface/transformers/blob/0ae789e04330e15a90e34cd723c851a8ab8d7ec5/src/transformers/models/opt/modeling_opt.py#L1001
In vllm's model loading code for OPT, the lm_head weights are skipped and soft-linked to embeddings. This appears to be the same for hf transformers as well.
https://github.com/vllm-project/vllm/blob/26f2fb51133c85ad8a57a87c8037f750dda757f4/vllm/model_executor/models/opt.py#L288
So my naive question is who is correct? Autoround correctly finding and quantizing the lm_head layer but this layer is actually ignored by model loaders? ={
This is relation to the testing I am doing for vllm PR:  https://github.com/vllm-project/vllm/pull/4442#issuecomment-2085491133
This becomes an issue loading the quant as vllm and completedly skip lm_head  layers (pre or post-quant) since I assume the model code writer assumed why load the same equivalent weights twice when tensor size and values  are exactly the same.
I am new to all the layers/modules so forgive me if my question itself is based on false premises.  Thank you! I hope to have intel/autoround model support merged into vllm soon.
Here is the original weights before quantization:
https://huggingface.co/facebook/opt-125m
key model.decoder.embed_tokens.weight torch.Size([50272, 768])
key lm_head.weight torch.Size([50272, 768])

So in original OPT-127M model weights, the model.decoder.embed_tokens.weight and lm_head.weight both exists and size and even values of all tensors are exactly the same!
@robertgshaw2-neuralmagic  Is this a bug in vllm OPT model code? Why is it skipping lm_head layer when it actually exists (even though it is an duplicate of embed_tokens)?
@wenhuach21  @WeiweiZhang1

Apologies for the delayed response, as we're currently in a 5-day public holiday.
Indeed, this is a significant issue overlooked by autoround, stemming from the root cause you've already highlighted: the lm-head shares weights with the embedding , a characteristic present in many models but absent in Llama3. Our plan is to quantize the actual embedding layer and export the information to AutoGPTQ. Does this plan sound good to you
And honesty, tied weights will pose challenge to the algorithm part, We'll need to conduct some experiments to determine the most effective approach for tuning these weights.
We will keep you updated！

@wenhuach21  Thanks for the response despite on vacation!

Option 1: A straightforward approach is to disable LM-head quantization if its weights are tied to the embedding. Embedding operations are typically fast, and tied weights will complicate algorithmic processes.

This may be the best temp solution until option 3 is implemented or a big fat warning.

Option 2: Set tied weights to false, allowing the embedding to retain float weights while quantizing the LM-head.

This is the fix I implemented for vllm's OPT model loading code. It works but really doesn't make too much real-world sense as vram usage would actually increase due to the fact the lm_head quantized layer now exists separate side-by-side of the also loaded non-quantized embedding layer.  Ok for testing but should be disabled/user-warned in usage.

Option 3: Quantize the shared weights. To align with linear quantization, we need to configure the embedding layer's group dimension as the output channel and ensure the kernel supports the embedding layer.

If we assume the model will be used in production, then option 1 is actually be the sane temp solution until option 3 is realized. Option 2 is not great as it bloats vram and goes against the goal of deploying quantization.

@Qubitium  Yes, Option 3 seems to be the most optimal choice, however, it may present a challenge to the algorithm.  we have chosen Option 1 as a temporary solution.


Can't create a user from admin

Steps to recreate:

Create a user from admin
Now try logging in from "/" with the new credentials. It doesn't work.

@sanaani This is working now. Could you please check it once.

@vineeshan I don't see any new commits referencing a few on #224 from either master or new_changes. Are you sure the changes have been pushed?

@sanaani Yesterday I've checked the scenario you have specified. But it's working fine for me. I'm not getting any issues. So, could you please check it once.


No call made to API GTW from my Facebook page (via Messenger)

Hi
There have been a couple of times that the message entered into a Facebook page (FB Messenger) has triggered a call to AWS API Gateway. The logs show it to me.
But, without my understanding why, 99.99% of the time, no call is made between Facebook and our API (AWS). How can I see what if something is wrong on the Facebook side? Any steps to follow to troubleshoot the whole thing ?
Thanks

Here is more information. The problem is that nothing happens on the AWS side when someone enters a message in the Facebook page (via FB Messenger). I can confirm that as soon as we use tools like Postman, Powerautomate or even the test tool on the FB Dev page, we see the API call arrive and then the Lambda Inbound function trigger. So it seems obvious to me that there is a problem on the FB side. I followed the procedure to be a valid DEV for this app from FB side. (You're a verified admin on this app.).
Do you have a way to troubleshoot what is happening on the FB side?
FYI, I deleted everything from the app in FB Dev to redo it and I have the same problem. I also tried with another FB page without success.

Hello. The problem is solved. The bug comes from my misunderstanding of how FB applications work and a lack in the documentation of the blog and the Github page. After having done all the procedure, it is necessary to create roles for test users in the FB application. A text mentions it on the app page, but I hadn't noticed it. Thank you again for your help.


FR: removing members from board

Over time, a board's memebrs area can get crowded with old members who have moved on to other teams. I can't find any way to remove them.

This issue was moved to wekan/wekan#816

This issue was moved to wekan/wekan#817


Add URLs to nested objects in record - Data Output Agent

Hey all, trying to figure out how to use a Data Output agent to modify urls nested in an array. The items I want to modify are the sub-item "image" with a pre and post fix url. Such as taking "tif/zz/23/07/13/00/1122071196B7_OM_F" and making it "http://site.com/tif/zz/23/07/13/00/1122071196B7_OM_F.jpg" by adding "http://stie.com/" to the front and ".jpg" to the end. The records don't always have 3 items in the image array which is what's making this more challening
Sample record
{
"color": "Grey",
"image": [
{
"type": "onFront",
"image": "tif/zz/23/07/13/00/1122071196B7_OM_F",
"modelID": "11429647"
},
{
"type": "onBack",
"image": "tif/zz/23/07/13/00/1122071196B7_OM_B",
"modelID": "11429647"
},
{
"type": "offFront",
"image": "tif/zz/23/07/13/00/1122071196B7_OF_F"
}
]
}

You should be able to use liquid templating to append and prepend text:
https://shopify.github.io/liquid/filters/append/
https://shopify.github.io/liquid/filters/prepend/


Copy() in HashRangeExpression is incorrect

I don't think the Copy() method in HashRangeExpression is correct. It seems to only copy one of the N ranges.  @amaliujia please take a look as this was your modification.

Sure. I will take a look at it.

@amaliujia  Is this done ?

See #135


Why does invokeBinding not return metadata to caller?

When using SQL binding (tested with Postgres), sidecar is sending metadata and it is available at java-sdk level as well. However sdk only sends data to the caller, it ignores metadata completely.
Use case where metadata is helpful - Insert/Update/Delete queries (exec operation in sidecar) provide number of rows affected and this information is part of metadata. This information is useful for the application hence it should be sent to the caller.
Do we have any helper to get the metadata after invoking invokeBInding? If not, would like to get inputs for the use case.
Refs:
https://docs.dapr.io/reference/components-reference/supported-bindings/postgres/
https://github.com/dapr/java-sdk/blob/866b166e110a1b335396712b74dffe6410d7a7a9/sdk/src/main/java/io/dapr/client/DaprClientGrpc.java#L256

This is a good point, and I think this highlights the need for some other more flexible options for bindings


Update ESLint

I know that it is not a long-term solution, but would you please update ESLint so I can keep using your extension. I like your extension and would hate to have to uninstall it.
If you can give me a direction to how to get that updated and I will submit a PR if you do not have time.

@rvarbanov I will take a look this weekend. If you want to try to update it yourself in the meantime, all I do is build eslint myself with their browserify build script and place in here in your local interactive linter install.
sorry  I have not had time to make much progress in this extension in a while. :/

@MiguelCastillo you do not need to apologise, I understand!
I will try to build ESLint later today and let you know how that went :)

To be honest, i need to rethink some of this stuff. Current I abstract out eslint into my own container... Which causes issues like loading up rules from modules.  This is one reason I have been putting this whole thing off.  But it seems like it is time to roll up my sleeves and do it.

Yeah, it seems like not an easy task, but I believe in you 😃

@MiguelCastillo I built a new eslint.js file and updated the extension with it. It worked for one of my projects, but I am getting an error on another.
Error processing linter settings
SyntaxError: Unexpected token S

Is there a way to get a more detailed error message?

I don't provide that at the moment...  The error is logged here https://github.com/MiguelCastillo/Brackets-InteractiveLinter/blob/master/linterSettings.js#L89
Try putting a break in there if you really want to debug it.
Can you paste your config file here?

{
	"root": true,
	"env": {
		"es6": true,
		"browser": true,
		"node": true
	},
	"extends": "eslint:recommended",
	"rules": {
		"accessor-pairs": "error",
		"array-bracket-spacing": "error",
		"array-callback-return": "error",
		"arrow-body-style": "off",
		"arrow-parens": "off",
		"arrow-spacing": [
			"error",
			{
				"after": true,
				"before": true
			}
		],
		"block-scoped-var": "error",
		"block-spacing": [
			"error",
			"always"
		],
		"brace-style": [
			"error",
			"1tbs",
			{
				"allowSingleLine": true
			}
		],
		"callback-return": "error",
		"camelcase": ["error", {"properties": "never"}],
		"comma-spacing": [
			"error",
			{
				"after": true,
				"before": false
			}
		],
		"comma-style": [
			"error",
			"last"
		],
		"complexity": "error",
		"computed-property-spacing": [
			"error",
			"never"
		],
		"consistent-return": "off",
		"consistent-this": ["error", "vm"],
		"curly": "error",
		"default-case": "error",
		"dot-location": ["error", "property"],
		"dot-notation": [
			"error",
			{
				"allowKeywords": true
			}
		],
		"eol-last": "error",
		"eqeqeq": "error",
		"func-names": "off",
		"func-style": "off",
		"generator-star-spacing": "error",
		"global-require": "off",
		"guard-for-in": "error",
		"handle-callback-err": "off",
		"id-blacklist": "error",
		"id-length": "off",
		"id-match": "error",
		"indent": ["error", "tab", {SwitchCase: 1}],
		"init-declarations": "off",
		"jsx-quotes": "error",
		"key-spacing": "error",
		"keyword-spacing": [
			"error",
			{
				"after": true,
				"before": true
			}
		],
		"linebreak-style": [
			"error",
			"unix"
		],
		"lines-around-comment": "off",
		"max-depth": "error",
		"max-len": "off",
		"max-nested-callbacks": "error",
		"max-params": "off",
		"max-statements": "off",
		"max-statements-per-line": "error",
		"new-cap": "error",
		"new-parens": "error",
		"newline-after-var": "off",
		"newline-before-return": "off",
		"newline-per-chained-call": "off",
		"no-alert": "error",
		"no-array-constructor": "error",
		"no-bitwise": "error",
		"no-caller": "error",
		"no-catch-shadow": "error",
		"no-confusing-arrow": "off",
		"no-continue": "error",
		"no-div-regex": "error",
		"no-duplicate-imports": "error",
		"no-else-return": "off",
		"no-empty-function": "error",
		"no-eq-null": "error",
		"no-eval": "error",
		"no-extend-native": "error",
		"no-extra-bind": "error",
		"no-extra-label": "error",
		"no-extra-parens": "off",
		"no-floating-decimal": "error",
		"no-implicit-coercion": ["error", {"boolean": false}],
		"no-implicit-globals": "error",
		"no-implied-eval": "error",
		"no-inline-comments": "off",
		"no-invalid-this": "off",
		"no-iterator": "error",
		"no-label-var": "error",
		"no-labels": "error",
		"no-lone-blocks": "error",
		"no-lonely-if": "error",
		"no-loop-func": "error",
		"no-magic-numbers": "off",
		"no-mixed-requires": "error",
		"no-multi-spaces": "error",
		"no-multi-str": "error",
		"no-multiple-empty-lines": "error",
		"no-native-reassign": "error",
		"no-negated-condition": "off",
		"no-nested-ternary": "off",
		"no-new": "error",
		"no-new-func": "error",
		"no-new-object": "error",
		"no-new-require": "error",
		"no-new-wrappers": "error",
		"no-octal-escape": "error",
		"no-param-reassign": "off",
		"no-path-concat": "error",
		"no-plusplus": "error",
		"no-process-env": "off",
		"no-process-exit": "error",
		"no-proto": "error",
		"no-restricted-globals": "error",
		"no-restricted-imports": "error",
		"no-restricted-modules": "error",
		"no-restricted-syntax": "error",
		"no-return-assign": "error",
		"no-script-url": "error",
		"no-self-compare": "error",
		"no-sequences": "error",
		"no-shadow": "off",
		"no-shadow-restricted-names": "error",
		"no-spaced-func": "error",
		"no-sync": "error",
		"no-ternary": "off",
		"no-throw-literal": "off",
		"no-trailing-spaces": "error",
		"no-undef-init": "error",
		"no-undefined": "off",
		"no-underscore-dangle": "off",
		"no-unmodified-loop-condition": "error",
		"no-unneeded-ternary": "error",
		"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
		"no-use-before-define": "error",
		"no-useless-call": "error",
		"no-useless-concat": "error",
		"no-useless-constructor": "error",
		"no-useless-escape": "error",
		"no-var": "off",
		"no-void": "error",
		"no-warning-comments": "off",
		"no-whitespace-before-property": "error",
		"no-with": "error",
		"object-curly-spacing": "off",
		"object-shorthand": "off",
		"one-var": "off",
		"one-var-declaration-per-line": "error",
		"operator-assignment": "error",
		"operator-linebreak": ["error", "after"],
		"padded-blocks": "off",
		"prefer-arrow-callback": "off",
		"prefer-const": "off",
		"prefer-reflect": "off",
		"prefer-rest-params": "error",
		"prefer-spread": "error",
		"prefer-template": "off",
		"quote-props": "off",
		"quotes": [
			"error",
			"single",
			{ "allowTemplateLiterals": true }
		],
		"radix": [
			"error",
			"always"
		],
		"require-jsdoc": "off",
		"require-yield": "error",
		"semi": "error",
		"semi-spacing": "error",
		"sort-imports": "error",
		"sort-vars": "off",
		"space-before-blocks": "error",
		"space-before-function-paren": "error",
		"space-in-parens": [
			"error",
			"never"
		],
		"space-infix-ops": "error",
		"space-unary-ops": "error",
		"spaced-comment": "error",
		"strict": "error",
		"template-curly-spacing": [
			"error",
			"never"
		],
		"valid-jsdoc": ["error", {"requireReturn": false}],
		"vars-on-top": "off",
		"wrap-iife": "error",
		"wrap-regex": "error",
		"yield-star-spacing": "error",
		"yoda": [
			"error",
			"never",
			{exceptRange: true}
		]
	}
}

Oh the issues is highlighted by the github editor in red. .eslintrc files are proper JSON.

Ah, dah.... :)
I translated the file to JSON from JS with find and replace and did not notice that there were errors in it...
Thank you for pointing that out.

Great job @rvarbanov and @MiguelCastillo. but when will we see this available on the next relase?
One of the problems with Brackets is that developers are relying on it, and then have to spend lots of time contributing to it, and debugging it. I really love Brackets and Interactive Linter. But something like the eslinter not being up-to-date is really bad. I was having trouble with it for quite some time, and only now did I realise (with your help) that it was outdated.
Maybe we could, at least, find a way to highlight these issues. console.warn at least, that a new version of the linter should be compiled.

@josegoncalveswho I agree. I am going to publish shortly.  I am going to check if we are out of date in case we should do a last minute update.

Thanks, really appreciate the investment in time. If there is anything you need done, I'm glad to help, with whatever free time I can find. I made some contributions to zaggino's bracket git extension, and am happy to contribute in any way I can.

well - that's wonderful to know. I can always use a hand.  Especially for things that are of interest or somewhat blocking you you are most welcome to submit PRs for.  I want to verify if the version of eslint we have in master is the latest.  If it is, then great.  If its not and you have time to submit a PR, that would be great.  Also, adding a small passage about the new requirements for naming conventions of eslint config files. It is not eslintrc.json.  That change is one reason I haven't updated.  Would you be interested in either of those things?


Added a new game

PR Description 📜
Simple Word Scramble Game is straightforward yet addictively fun. Just unscramble the letters to reveal the hidden words. With each correct answer, you'll feel a rush of satisfaction as you unlock new levels. It's perfect for quick bursts of entertainment or a relaxing challenge anytime, anywhere and the game aims to challenge players' vocabulary and word unscrambling skills while providing an engaging and interactive experience.
Fixes # <3949>

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[] I have added working video of the game in README.md (optional)
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @Bhumika1312 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Hey @Bhumika1312,
Please make sure to link the relevant issue using the appropriate syntax, such as "#issueNumber" 👀.
Follow the proper guideline and make a new PR again 😀.
Happy Hacking 💗

Thank you  @Bhumika1312 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Update versions to latest v1.0.5

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.77%. Comparing base (2efc064) to head (3948b83).

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #45   +/-   ##
=========================================
  Coverage     82.77%   82.77%
  Complexity      176      176
=========================================
  Files            33       33
  Lines          1126     1126
  Branches         99       99
=========================================
  Hits            932      932
  Misses          149      149
  Partials         45       45

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Error receiving request: InvalidRequestLine

We're seeing some reports of this error. We're looking into it.

From a quick debugging session, it seems like instead of the request handling code to run once, it's called twice. The first time the request is properly processed, the second time there's no data to be read so the HTTP request header fails to be parsed. Afterwards the server seems to crash.
The question is why the server is accepting one TCP connection twice.

Is the server actually crashing? It should just be throwing, and as long as you're not try!ing it should be fine.

The server crashing was unrelated to this error. This error is caused by us trying to parse a signal from the remote peer that they are closing the connection. We've updated Hummingbird to throw an error in receive in this situation, and Vapor will handle the error specially instead of printing a scary message.


[Bug]: in jest use Timer Mocks , act executed state batch updates incorrectly

Version
26.6.3
Steps to reproduce

Created a simple countd down timer, that starts from 30 and decrements every second.

CountDownTimer.tsx
import React, { useEffect, useState } from 'react';
import { Text } from 'react-native';

function CountdownTimer() {
  const [seconds, setSeconds] = useState(30);

  useEffect(() => {
    const interval = setInterval(() => {
      if (seconds > 0) {
        setSeconds(seconds - 1);
      } else {
        clearInterval(interval);
      }
    }, 1000);
    return () => clearInterval(interval);
  }, [seconds]);

  return <Text>{seconds}</Text>;
}

export default CountdownTimer;

Testing it should become 0 after 30 s,

CountDownTimer.test.tsx
import React from 'react';
import { act, render } from '@testing-library/react-native';
import CountdownTimer from '../CountdownTimer';

describe('CountdownTimer', () => {
  it('stops at 0', () => {
    jest.useFakeTimers();
    const { getByText } = render(<CountdownTimer />);
    act(() => {
      jest.advanceTimersByTime(30000);
    });
    expect(getByText('0').props.children).toBe(0);
    jest.useRealTimers();
  });
});

This was working fine when I was using react version "17.0.2", when I upgraded to react "18.1.0", this broke. The reason is that the seconds don't get decremented in setInterval calls, basically, all the setInterval calls are executed first, and then the component re-renders in the test. So the value of seconds remains 29 only.  Just one state happens at the end after the timers have advanced.
Expected behavior
The act should trigger re-render multiple times in setInterval, not once.
In react version below 18, act triggers re-render for each setState in setInterval.
Actual behavior
act triggering re-render only once in setInterval.
Additional context
React Version : 18.1.0
New Architecture not enabled.
Environment
System:
    OS: macOS 12.2.1
    CPU: (8) arm64 Apple M1
  Binaries:
    Node: 18.7.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.15.0 - /opt/homebrew/bin/npm

Sounds like an issue with React and not Jest. Your issue is the effect not doing what you want.


Error when installing

$ deno install -frA -n gpt https://deno.land/x/shellgpt/mod.ts
Would you like to run the above command to complete ShellGPT installation?
(y)es [default]
(n)o
leave blank to use default

y

error: Uncaught (in promise) NotFound: program not found
const command = Deno.run({
^
at opRun (ext:runtime/40_process.js:50:14)
at Object.run (ext:runtime/40_process.js:136:15)
at install (https://deno.land/x/shellgpt@0.3.3/lib/update.ts:146:24)
at https://deno.land/x/shellgpt@0.3.3/install.ts:61:22
at eventLoopTick (ext:core/01_core.js:183:11)

Are you on Windows? You could manually run the command there deno install -frA -n gpt https://deno.land/x/shellgpt/mod.ts to see if that works as a workaround.

Same error here (window)

Hey, I just pushed a potential fix in 0.3.6. If you have the time, let me know if it works. @fakoua @kalilfagundes


Optimize status req/resp

Since with mainnet config fetching and deserializing state is expensive and we were doing it 3 times for each status req/resp, this PR alleviate this and should make status a lot quicker.
Pls check this for sanity

@wemeetagain @tuyennhv is forkChoice.getFinalized same as chain.headState().finalizedCheckpoint?

@mpetrunic  yeah should be the case.

forkChoice.getFinalized is the finalized checkpoint of chain
chain.getHeadState() calls forkChoice.headStateRoot() which returns bestTarget state root of justified checkpoint and a bestTarget should always have same finalized checkpoint like the store to be eligible.


Update README.md

This repo is a total joke. This plugin doesn't support webRTC, it supports the proprietary approach of Ant Media to piggy-back on webRTC. It's completely unusable unless you use the paid proprietary stuff of Ant-Media. "We are all very excited to share this plugin with you and expect the community to benefit from the open-source approach we took." (Hamit Demir, employee of Ant Media) Hahaha. It has nothing to do about Open Source. Ant-Media is just the typical company that not only piggies back on top of Open-Source but also draps it under the fake flag "we are supporting Open Source". And obviously, the issues have been removed.

Thank you @ant-media-fake for your comment.
It seems that we think differently. I think having a discussion here is a waste of time for you and for me. On the other hand, If you would like to discuss this, I'm absolutely open, and let's schedule a meeting.
Lastly, I wish I could merge your PR  but it's not something mergeable. So I'm closing this PR.
Take care

We, people, expect every Open Source project should remain Free & Open-Sourced; that too with an MIT license!
Remain Open-Sourced has the biggest challenge, i.e. sustainability! You know, the software is free but the time we contributors put in, is NOT!
Adoption of Open-source projects is easy & growing, but very few generally contribute! If you belong to a "very few"; come forward with a real identity and true spirit of contribution, be a volunteer, and we'll respect you even if it is a small contribution! The way you've acted, I believe, you'll find yourself that contributing is overhead; and hence, the one who contributes; deserves to be respected!
BTW, If you're not even in the capacity of contribute back; we're Apache Licensed which means we're permitting you to adopt AMS for commercial, modification, distribution, and even for private use; would like to see what awesome stuff you can make out of AMS for yourself!


improve unit test and code coverage

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Implement schedule

Add a calendar to the schedule page, customized theme to suit hackutd. The schedule calendar has an issue when reloading where it collapses.

The page did not build. Here is the error:

13:24:05.080
Cloning github.com/acmutd/hackportal-hackutd (Branch: feat/schedule, Commit: 7319f9f)

13:24:05.668
Cloning completed: 588.038ms

13:24:05.696
Analyzing source code...

13:24:08.007
Installing build runtime...

13:24:11.074
Build runtime installed: 3.067s

13:24:14.146
Looking up build cache...

13:24:18.908
Build cache downloaded [85.90 MB]: 4438.483ms

13:24:20.095
Installing dependencies...

13:24:26.087

13:24:26.087
><EMAIL_ADDRESS>prepare /vercel/path0

13:24:26.087
> husky install

13:24:26.087

13:24:26.161
husky - Git hooks installed

13:24:26.787
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.

13:24:26.795
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/@next/swc-darwin-arm64):

13:24:26.795
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})

13:24:26.803
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/@next/swc-darwin-x64):

13:24:26.803
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})

13:24:26.809
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/@next/swc-win32-x64-msvc):

13:24:26.810
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})

13:24:26.819
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/fsevents):

13:24:26.819
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

13:24:26.819

13:24:26.820
up to date in 6.249s

13:24:27.301

13:24:27.301
135 packages are looking for funding

13:24:27.302
run npm fund for details

13:24:27.302

13:24:27.319
Detected Next.js version: 11.1.2

13:24:27.324
Running "npm run build"

13:24:27.535

13:24:27.535
><EMAIL_ADDRESS>build /vercel/path0

13:24:27.535
> next build

13:24:27.535

13:24:29.557
info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5

13:24:30.952
info - Checking validity of types...

13:24:39.944
Failed to compile.

13:24:39.944

13:24:39.944
./pages/calendar.tsx:48:7

13:24:39.945
Type error: Property 'date' does not exist on type 'Readonly<{}> & Readonly<{ children?: ReactNode; }>'.

13:24:39.945

13:24:39.945
  46 |  render() {

13:24:39.945
  47 |  let {

13:24:39.945
> 48 |  date,

13:24:39.945
  |  ^

13:24:39.945
  49 |  localizer,

13:24:39.945
  50 |  min = new Date(2021, 11, 12, 8, 0, 0),

13:24:39.945
  51 |  max = new Date(2021, 11, 12, 22, 0, 0),

13:24:39.971
npm ERR! code ELIFECYCLE

13:24:39.972
npm ERR! errno 1

13:24:39.974
npm ERR<EMAIL_ADDRESS>build: next build

13:24:39.975
npm ERR! Exit status 1

13:24:39.975
npm ERR!

13:24:39.975
npm ERR! Failed at the<EMAIL_ADDRESS>build script.

13:24:39.975
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

13:24:39.979

13:24:39.979
npm ERR!


chore(licenses): create scripts to automatically generate license files

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: dde36f68db99c5464ba9ad2a2bd6b3c259b07776
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: c6949c4fa1b4f20014b4802f4acf963928c85b8c
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 905d1c1b2fc1584b31afa9101213ad7493ff0783
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


new package: tor <IP_ADDRESS>

Description of package
Daemon for The Onion Router.
Checklist

[x] Latest upstream version.
[x] I agree to maintain this package (required).
[x] I agree to notify KISS if I can no longer maintain this package (required).

:+1:


[Editor] Fix missing editor keyboard input

PR Details
See #94
Setting parent to none for the embedded windows (like the scene view) is enough to ensure that all inputs are received, one of the parent control is most likely eating some of the inputs. Debugging the WPF hierarchy would be a real undertaking so I'll leave it at that for now.
This PR sets the WS_CHILD flag off whenever the layout changes, not exactly sure how it works internally but the window still behaves as a child window while properly receiving inputs and testing the rest of the engine didn't result in any unexpected behavior.
Also removed MissingInputHack since it relied on rawinput which isn't part of the editor since the net5 changes I think ?
Related Issue
Fix #94
Types of changes

[x] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

I tested this one more thoroughly again today and it does work quite well. I'll merge it in for the upcoming 4.1, if anyone stumbles on issues in the mean time I'll roll it back.

The style flag update breaks drag & drop of assets into the scene view

We have to revert this for now, and look for another fix or understand the issue better.


English translation issue

I've corrected the line 1046 of the english translation. The target at that line is wrong because of the second chinese char (陆) and the correct one is (录). I've translated by screenshotting and then zooming (using MSPAINT) to then use the live translation of Google Translator app on my phone. I've couldn't select that text at the program. Then, having the approximated translation, I've searched the language file for the key words. After comparing visually every char to find the wrong one, I've had to visually search the right char at another line that appeared similar to the char on the program interface.
That may be wrong on the other translations...
To make that easy, why not add a tooltip on every translated item, showing the original text (in chinese) and the line number of the XML language file that was used to translate that, and also if that translation wasn't found at the XML, the text could be written in red or the tooltip could have an error message about that.
The right properties of that line are:
Target="登录界面默认打开小键盘（by IT之家）"
Link="Enable keypad when login (by ITHome)"
And for the tooltip idea, it could have the following text:
登录界面默认打开小键盘（by IT之家）(en.xml:1046)

The tooltip is not a good idea, unless it is enabled by a specific option/setting.
Tooltips are also used for the interface and are also translated.
So if the setting is enabled, I think that the translated items should just be modified by adding the line number as a leading text
And for Link="Enable keypad when login (by ITHome)"
we would get the text:
"[en:1046]Enable keypad when login (by ITHome)"
The main problem is for the fallback (Chinese), because they are not in the translated resource files but in the C source code of the application and have no other simple references than the Chinese text itself (which is then difficult to locate).
And when this Chinese text changes in the source code, there's no way to match the existing translations easily, the new Chinese text will then appear as a fallback in ALL other translations, that must be fixed manually in their Target="" line and then the following Link="" line also marked as being "fuzzy".
It's frequent to see new Chinese texts appearing that are impossible to locate (and because the C source code of the application is also not published in the repository, we cannot guess what changed, each time we need to contact the support.
There's one exception: Chinese text which are part of selectable custom filters (which are in the repository) and not part of the C source itself.
The other problem is for some resources that are not free text (e.g. a few items at top of resource files that contain font names/sizes for the UI: these cannot be modified by adding a prefix, as they would no longer work as intended).

Closed temporarily, we will reopen again if have response.


adding mapping '/debates?userId={userId}&filterby=tag1%2Ctag2%2Ctag3' into debateController and return list of debates with code 200 when success, code 404 when use r not found, code 401 when nonauthorised

Closed by @chenfeimauzh  in commit 8c069e5


Define selections per simulation on OmniRunner

One more thing! The current location of the notebook means that the file paths are invalid: is this example notebook supposed to be in the OpenMM directory? If not, the file path needs updating. I'm happy for this notebook to not yet have an assigned directory (like the hide solvent script), and to just live in the base examples directory for now.

Ah yes, I have corrected the paths assuming that it will stay where it is for now.

PR approved


Build script for c# samples

Here's my shot at the a CI script for the C# samples.
One key diff is that I used the NUnit3 tool. There's no reason for us to download the nuget package explicitly. It doesn't give a return code, but the result seems fine.
I haven't dealt with moving anything to a subdirectory.

Looks good. You added Travis and AppVeyor yml files, but we don't have them set up yet. I enabled AppVeyor and master should be building now. Could you enable Travis and push a small change to this PR to see if it all works?

Added a few line comments - but looks good!

One key diff is that I used the NUnit3 tool

I explicitly didn't, as wanted to ensure that the NUnit3 runner used matched the version in the samples, and I don't see a way to enforce that with cake. Yours is also different however, in that it's a fixed version of Cake, whereas mine gets the latest. I should probably fix mine - which in turn will at least fix the nunit runner used in cake.
Further thoughts:

build.ps1 (and presumably build.sh) is different in every repo, I think we should standardise where possible. The one in VB I took straight from Cake, I believe this is from the main nunit repo? This one is shorter, so I can go with that.

I'm still totally for a /build subdirectory. =)

It appears that the console runner package isn't getting installed on Linux, so the NUnit3 tool can't find it. I'll have to read up on this.

Odd that it isn't being found on Linux since it is checked into the branch. Did you do that to see if it was an installation vs a tool resolution issue?

No, my .gitignore wasn't set up right. At least that explains why I wasn't seeing it being installed in travis. Let's see what happens now that I removed it.

Well that's strange. It works now!

@ChrisMaddock
The version of the runner used is whatever version you provide for the NUnit3 tool to use. I provide 3.2.0 by specifying that in tools/packages.config. It looks like we have exactly the same entries.
Regarding the cake version, I can't see that we are getting anything different. Have you made changes?
Our build.ps1 should be the same everywhere we use it. Mine is from the nunit project. You can get several different versions of it from the Cake project, one of which matches ours.

Now that this is working, I'll go through and do any needed refactoring, then rebase it. We should discuss some of the key issues and decide which way to go at the same time, to avoid thrashing between different alternatives.

NUnit3 versus Running nunit3-console ourselves...
Pros of NUnit 3:

It encapsulates the whole thing
Rob wrote it. :-)
Cons of NUnit3:
It doesn't give us a return code
Using it in a loop, we can't give sample-specific error messages without hiding other kinds of excpetions.

Details:
There isn't any return code avaiable from a tool. It's just supposed to deal with the errors itself. Folks have complained about this in the Cake issues because they would like to distinguish between NUnit test failures and other kinds of NUnit errors based on the return code. We do that in the NUnit project, for example, where the testing is done "by hand."
We may eventually have a larger number of samples, so I wanted to list all errors at the end, specifying the sample name. I succeeded in doing that using a try / catch. However, the thrown exception for a failure doesn't have any detail so I just list "SampleName test failed". That's probably good enough but there's another problem. In catching the exception, I mask any errors in the tool itself, such as not being able to find the executable. When I remove the try/catch, then I can see those errors.
My conclusion:
Unless Rob can help figure out how to handle these problems easily, we should go back to just running the nunit3-console program and getting an rc for each test. I think the NUnit3 tool is good for simple projects but doesn't allow us to do multiple projects if we want to record the error and then continue, as we do here and in the nunit project.
What do you guys think?

Apologies, I'd made changes where I preferred how you'd done it!

The version of the runner used is whatever version you provide for the NUnit3 tool to use. I provide 3.2.0 by specifying that in tools/packages.config. It looks like we have exactly the same entries.

That's what I thought, but there wasn't an entry in packages.config at the time I commented. Perhaps it was using the installed version on your machine for the first round? Regardless, I think this is a good approach.

Our build.ps1 should be the same everywhere we use it. Mine is from the nunit project. You can get several different versions of it from the Cake project, one of which matches ours.

I didn't realise there were multiple different versions from Cake, I assumed instead that the one in our repo was outdated. (I'll admit I only changed nunit/nunit and nunit/nunit.xamarin - they contain different scripts, the latter being what I had used.)
The differences don't seem to be too relevant, so using the shorter script makes more sense. (I presume we don't need to handle the -mono option in our .ps1?)

Regarding the cake version, I can't see that we are getting anything different. Have you made changes?

Yes - my original build.ps1 pulled a packages.config from cakebuild.net, and automatically fetched the latest version of Cake. With hindsight, locking down to a version would be preferable - I was only aiming to avoid the extra config files.

NUnit3 versus Running nunit3-console ourselves...

Little to add other that 'I agree'. Obfuscating the exceptions doesn't seem an worthwhile to hide a line of code.

No worries about moving ahead!
I don't see any reason to use mono for the script on Windows. That's different, of course, from running our tests under Mono. I think the differences you see may reflect changes in when we pulled down the scripts from Cake.
On NUnit3, I'd like to hear from @rprouse first, since he's the author and we might be missing something. I suspect, however, that the limitations come from the Cake tools infrastructure and can't be remedied without their making changes first.

I was experimenting to see if I could pull a return code out of a CakeException. No luck.

@CharliePoole sorry I missed your request for comment. I see now why you want to get the return code. For now, you may as well use the console. If I get some time, I will submit some PR's to Cake to add return codes or at least push them in that direction. It could be as easy as exposing it on the CakeException?

@ChrisMaddock Give this a review please!

@CharliePoole
Cake script looks good to me! A couple of things that may or may not want changing:

The projects still reference NUnit 3.2.1
In the other sample repo's we included a BUILDING.md, and build (unix wrapper) file. It should be possible to just copy and paste BUILDING.md from the f# samples - that's the only other one we could build in both windows/Linux in the end. Will leave it up to you whether to include the unix build wrapper - but I think BUILDING.md referenced it, so that should be updated if not. :-)

Oh, I was also wondering why the Travis build shows:

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

For the test runs. Any ideas?

Making the suggested changes before merging.
Regarding Travis, that's because we are targetting .NET 2.0 in the samples and the latest mono doesn't support anything below 4.0. We could change the samples to target 4.0, but maybe that can be the next time through. They run fine on Mono 4.0.


<IP_ADDRESS> update broke TaikoModStuff

Title is self explanatory, <IP_ADDRESS> update that released around 10PM CST on February 20th, 2022 broke TaikoModStuff.
Recopying files and all that doesn’t make the config come up anymore, yadda yadda..thanks Namco!

Found up just now, will push an update later tomorrow

Should be fixed in the latest release


How do you install these apps?

I tried to just git clone the entire repo into the WALKOFF/apps directory but doesn't seem to show more actions in the playbooks page, tried restarting the docker containers as well.

these apps need to be in the WALKOFF/apps directory (so just mv the apps you want out of WALKOFF-apps after you git clone)