Multi-selection selection panel reborn

Context
The current implementation of the selection panel is comically useless when multiple items are selected, and incurs undue code complexity (e.g. UiLayout::SelectionPanelLimitHeight). For the longest time, our dream has been to come up with some "merged" view of the current selection, but this hardly is actionable as a starting point:

https://github.com/rerun-io/rerun/issues/4251

Proposal
This issue is about getting the ball rolling on this front with a two-step, actionable, minimalistic take on the  selection panel with multi-selection:

show a list of what is currently selected
...and that's basically it

Current attempt:


Extension issue

Issue Type: Bug
Extension Name: php-intellisense
Extension Version: 2.3.10
OS Version: Windows_NT x64 10.0.17763
VSCode version: 1.38.0

:warning: We have written the needed data into your clipboard. Please paste! :warning:

let me guess, you can no longer ctrl/cmd click on function name and open file?
I don't know if it is intended or not, but something from vendor is missing. go to extension directory (open integrated terminal and go to output tab. it will show the error and path) then run composer install
extension will works again. but somehow it cause high cpu load on my laptop. the fan is spinning like crazy.


CircleCI integration

I've added under https://circleci.com/gh/StackStorm/st2web/edit#env-vars ENV Variables related to Bintray, which are required by bintray.sh to upload packages.
But I'd suggest to create your account in https://bintray.com/ so I can invite you/give access in organization there. I guess it's interesting to see everything from A to Z)

I can bring commits for deployment if you want tomorrow only, but it's nothing really hard here. If you want to go through entire thing to understand it better - I'm for it :+1: and can guide you.
Regarding circle.yml, what we'll need:
1.) Deploy single .deb file to trusty_staging, wheezy_staging, jessie_staging Bintray repos
2.) Deploy single .rpm file to el6_staging, el7_staging Bintray repos.
Looks like duplication, but it's useful to install all packages from 1 repo, without adding second one during installation.
Nice to copy .deb and .rpm files to ~/packages artifacts dir. So we'll have artifacts in CircleCI too: https://circleci.com/docs/build-artifacts (just nice feature to have)
Also we'll need to discover st2web revision number for the next build, see: https://github.com/StackStorm/st2-packages/blob/master/.circle/buildenv.sh#L47, seems bintray.sh needs adjustments here. I'll bring the change tomorrow, but for now 1 revision should work well (not a blocker).

If you want to switch to other task like flow - I'm more than OK to finish Bintray/Circle tomorrow. So only depends on your interest/curiousity here :cake:

Yeah, I guess I'm actually interested in going all the way through. I wonder though at what point staging packages becoming production ones? Do we have a tooling for that, are we planning to do it in the future or are we going to do it manually?
Also, do you mind pointing me where exactly are we using payload.json?

Yeah, so in this picture:

https://github.com/StackStorm/discussions/issues/111
CircleCI work is to build and deploy packages to Bintray Staging repos.
Once they're in Staging the rest work is up to st2 box to install those newly created packages, run all important tests like acceptance/end2end and only after that if everything OK -> deploy tested packages to Bintray Production and Docker Hub.
So the st2 staging box should decide if packages are good enough for production or not.
See execution plan here, Staging CI: https://github.com/StackStorm/discussions/issues/134 is up to Lakshmi and Manas.
The payload.json is the file which contains more detailed metadata of CircleCI build, needed for st2 staging/build box to consume. The important is information which version and revision number of packages were just created.
For example: https://circleci.com/gh/StackStorm/st2-packages/199
Find respective section:
In fact payload.json is a CircleCI artifact, ex: https://circle-artifacts.com/gh/StackStorm/st2-packages/199/artifacts/0/home/ubuntu/packages/payload.json


GDTTransformer not closed

I am opening a new issue as the other one is closed and the issue I see might not be the same one as I'm certain that I have updated my firestore dependencies to newest version.  I have testet on iOS 10, 12 and 14 devices and I only see this on iOS 14.
The app never crashes, but we cannot release as long as we see this. Is there anyway I can debug why this is happening?

I tried deleting the whole Carthage folder along with the whole carthage cache folder(~/Library/Caches/org.carthage.CarthageKit) and then bootstrap it again.
I'm still seeing the issue in both simulator and on actual device.
here is my cartfile.resolved (relevant part):
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseABTestingBinary.json" "6.33.0"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" "6.33.0"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json" "6.33.0"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseCrashlyticsBinary.json" "6.33.0"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseFirestoreBinary.json" "6.33.0"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseMessagingBinary.json" "6.33.0"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebasePerformanceBinary.json" "6.33.0"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseProtobufBinary.json" "6.33.0"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseRemoteConfigBinary.json" "6.33.0"

I tried inspecting the .framework for a version number but the result looks strange:
plutil -p /Carthage/Build/iOS/FirebaseFirestore.framework/info.plist
{
  "CFBundleExecutable" => "FirebaseFirestore"
  "CFBundleIdentifier" => "com.firebase.Firebase-FirebaseFirestore"
  "CFBundleInfoDictionaryVersion" => "6.0"
  "CFBundleName" => "FirebaseFirestore"
  "CFBundlePackageType" => "FMWK"
  "CFBundleVersion" => "1"
  "DTSDKName" => "iphonesimulator11.2"
}

Could this in anyway be related to us applying this fix: https://github.com/Carthage/Carthage/issues/3019#issuecomment-699143260 to accommodate for the Carthage / XC12 issue? As Carthage is simply downloading the binaries for firestore my guess is that is should not be related...
Originally posted by @icedice in https://github.com/firebase/firebase-ios-sdk/issues/6258#issuecomment-702024388

It may potentially be related to #6404.

@icedice Thank you for creating a separate issue with additional details. Sorry you have the issue.
As we could not reproduce the issue on our end so far, we will most likely need a sample project with steps to reproduce the issue to make progress.

Ok, so I used quite some time researching this. And what I found was embarrassing. It turns out that I was never actually adding the "GoogleDataTransport" framework to my project. As soon as I added it the error wend away.
The reason that I missed this is that the app was working as expected (except from the warning) on all simulators and devices I tested it on.
I'm now trying to understand how the app would actually run without actually having "GoogleDataTransport". I suspect it was using a version from a shared cache or something like that but I really don't know. If anyone could explain it it would be great. Having solved the issue is nice, but not really understanding it is frustrating.

Yep, GoogleDataTransport must have been linked in somehow. We would need to see the project to say more.


www add test route to app.py

How to run flask app:
cd dlab_core/www
flask run

The information has been added in app.py,
Thanks


Add support for \u{X} form

This implements support for the \u{1234} Unicode form which allows for an arbitrary number of hex digits. Rust is using these for escaping as well, so by implementing this unescape should now cover most cases of str::escape_default. A test for this has been added as well.

It is included in https://github.com/hack-ink/unescaper now.


Updates as per discussion in the website call

Signed-off-by: Utkarsh Mishra<EMAIL_ADDRESS>Description
Updates as per discussion in the website call
This PR fixes #
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

🚀 Preview for commit 78ca873593cec8cd0dcb6d451110b168aa00d694 at: https://6361234a163a55371954355a--service-mesh-patterns.netlify.app

@leecalcote Changed 🙌

🚀 Preview for commit 0983fd65382fac8ed6b554b32bb393ba9ab12653 at: https://6361248406aa033c0ad39c25--service-mesh-patterns.netlify.app

🚀 Preview for commit d492b413f209074d75a9ad38b64dc68e94df00c8 at: https://63612564d17e5d3d3af582a7--service-mesh-patterns.netlify.app


Health Bar - animation of health bar does not honor 0 for delay

In the health bar class, when you use the setMeterPercentageAnimated method, you have an option to pass a delay, which is used for the length of time the animation will play for. If you pass 0 for this value, the code treats this as if a value was not provided and the default value is used.
To fix this, we need to check if that value is undefined, or add fallback logic if a 0 was provided. Example:
duration: options?.duration || options?.duration === 0 ? 0 : 1000,

For this bug, the code and video has already been released, so I will need to address as part of a bug fix video.


chore: Added Leethub

Related Issue #1301
Closes #1301

Description
Added leethub a chrome extension
Screenshots

Checklist

[x] My code adheres to the established style guidelines of the project.
[x] I have included comments in areas that may be difficult to understand.
[x] My changes have not introduced any new warnings.
[x] I have conducted a self-review of my code.

@JasonDsouza212 kindly add gssoc23 tag


Realm Details Panel

[x] Keyboard Shortcuts UI

[ ] Buildings Sidebar

[x] Responsive design

[ ] Goblins Sidebar

[ ] Relic Sidebar

[x] Raid Panel - undecided whether best to name as "Raid" panel (doesnt make sense if own Realm - and might be best to keep menus same for owned/other realms for keyboard shortcuts etc) - maybe a "Military" panel could work including raid history, defensive/attacking troops, and option to build (if own realm) or raid if settled and not owned. The components required are virtually the same as the Combat panel - so it could be best to share the component (as full screen modal on top of realm detail page)

I'm going to take the food panel


VLSRelief + MultiSURF run time

Thank you for this library, it is most useful!
I'm currently running VLSRelief with 230k features, 2350 samples, and 3 classes (it's a very noisy dataset, BTW). It's running for 14:30 hours in a Google Cloud instance with 64 vCPUs (CPU utilization is near 100% at all times) and not yet finished.
Here are the settings I've used:
selector = VLSRelief(
    core_algorithm="MultiSURF",
    num_feature_subset=200,
    size_feature_subset=1000,
    n_jobs=-1
)

Is it expected to take that long in a dataset of this size? Any suggestions on how to speed it up while keeping a high accuracy?
Thank you.

It took a total of 32h to run.


The king positions might be -260, -40, 0 instead of -26, -4, 0

[Enter feedback here]

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

ID: 522f021d-e4ac-5efe-22e6-9a8959b78c16
Version Independent ID: 422f61eb-0594-e6ea-6566-717ae48e128e
Content: 2. Initializing your project and first application - Mixed Reality
Content Source: mixed-reality-docs/unreal-uxt-ch2.md
Product: mixed-reality
Technology: mr-dev
GitHub Login: @hferrone
Microsoft Alias: v-haferr

Hi @SharkiBoom, did you resize the board and King piece properly? I'd be interested to see a screenshot showing where the King ends up on your board with (-260, -40, 0) instead of (-26, 4, 0)


krita: 4.0.2 -> 4.0.3

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/krita/versions.
These checks were done:

built on NixOS
Warning: no invocation of /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3/bin/krita had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 4.0.3 with grep in /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3
directory tree listing: https://gist.github.com/23ba1bbd1767e4a61fafcd9646d63898
du listing: https://gist.github.com/4eed85b1634be0fb42b59cdc55799267

meta.description for krita is: '"A free and open source painting application"'.
cc @abbradar for testing.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: krita
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: krita
Partial log (click to expand)
shrinking /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3/lib/libkritatextlayout.so.16.0.0
shrinking /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3/lib/libkritatext.so.16.0.0
shrinking /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3/lib/libkritalibkra.so.16.0.0
shrinking /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3/lib/libkritalibpaintop.so.16.0.0
shrinking /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3/bin/krita
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3/lib  /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3/bin
patching script interpreter paths in /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3
checking for references to /build in /nix/store/603q26b9pswma12ypz68l39jqyrxbvvy-krita-4.0.3...
postPatchMkspecs


dl_properties should include the name and infrastructure type

Describe the bug
The deployment location properties need to include the name of the deployment location and it infrastructure type so that these can be accessed in any underlying ansible
Environment: (please complete the following information where applicable):

OS: [e.g. Ubuntu 18.04]
Version 1.1.0
Stratoss LM 2.1

If it helps, I believe the deploymentLocation is available on the systemProperties: https://github.com/accanto-systems/ansible-lifecycle-driver/blob/master/docs/property_handling.md#accessing-lm-properties-in-scripts
I think you're right about infrastructure type though, not sure that's provided to the scripts.


query! macro broken in master

I know y'all are aware of it from chatting in Discord, but so I can reference the issue elsewhere and get a notification when solved, I am creating an issue to track it.
error[E0432]: unresolved import `sqlx`
error: aborting due to 2 previous errors
  --> src\db\mod.rs:20:9
   |
20 |         sqlx::query!("SELECT 1 + 1 AS result").fetch_one(self).await;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `arguments` in `sqlx`
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0107]: wrong number of type arguments: expected 2, found 1
  --> src\db\mod.rs:20:9
   |
20 |         sqlx::query!("SELECT 1 + 1 AS result").fetch_one(self).await;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 type arguments
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 2 previous errors

Glad you opened this. I was having the same issue with 0.4.0-pre and didn't think to check the Discord.

Yeah the refactors @mehcode did haven't taken the macros into account so they probably need some significant TLC. I'll try to find some time to work on them soon.

Most of it should be super minor but I did forget to tweak stuff like the derives as the Encode trait has a lifetime now, for instance.

Cool. I am super keen for the changes in the 0.4 series but can wait until y'all get some time to look into this (soon hopefully!) 💗

As @mehcode said in Discord yesterday, prob first step is just to get the CI builds functioning properly again, so that it doesn't mask breakages like this. I doubt I can be helpful there, but I'm willing to try if that would be useful.


closes #511 CyberArk Conjur logo fixes

Deploy preview for landscape ready!
Built with commit 7031d0f9d9b9e91118de71883dcddd2d6b89832a
https://deploy-preview-528--landscape.netlify.com


np message

Hello, just a minor change to add a  ':white_check_mark:  No problems' message

I'd rather say nothing if there are no errors.

The rule of silence, also referred to as the silence is golden rule, is an important part of the Unix philosophy that states that when a program has nothing surprising, interesting or useful to say, it should say nothing.

http://www.linfo.org/rule_of_silence.html

could it be an option then standard --verbose | snazzy --verbose ?


small question

Hi, what does the double brackets (( used here mean, I have not found a similar usage description?
    pattern-either:
      # type-based patterns (some types are missing)
      - patterns:
        - pattern: sizeof((char * $PTR))
        - pattern-not: sizeof("...")
      - pattern: sizeof((int * $PTR))
      - pattern: sizeof((float * $PTR))
      - pattern: sizeof((double * $PTR))

These are typed metavariables. Please refer to Semgrep's official documentation at https://semgrep.dev/docs/writing-rules/pattern-syntax/#typed-metavariables


Add Ruby 3.1 to CI

Adds Ruby 3.1 to the CI matrix.  I used an include approach as that required the least change.

Thank you—why only test against Rails 7 though? Sounds as if Rails 6.1 should also be compatible.

@magnusvk There's some debate about whether Rails 6.1 is compatible with Ruby 3.1.  But most things seem to work.
That said, to get it to work generally requires a modification to the Rails 6.1 Gemfile.  We need to conditionally include the `net/smtp', 'net/pop', and 'net/imap' gems when the Ruby version is 3.1 or greater.   If you want me to add that let me know and I can make the necessary modifications.

@magnusvk Please let me know how you want to resolve the above comment.  I can add Rails 6.1 with the Ruby 3.1+ hackery in the rails_6_1.gemfile or just leave it as is.  And if there's anything else required to get this merged, please let me know.

@magnusvk Anything I can do to move this forward?  Thanks.

Sorry for the radio silence, I just tried this in #357 and it worked fine without extra changes. Thanks for the contribution!


Support for websocket subprotocol field

Currently cowboy does not allow us to control the sec-websocket-protocol field in the upgrade response. This is needed for proper upgrade negotiation with some browsers (Safari 5.1.5 for example).

Not sure if this is the right place (let me know if not, and I'll create a new issue) but we recently discovered two things:

Recent versions of Chrome (not sure which exactly, just tried latest) requires the response header sec-websocket-protocol to be set to the same value as the request, otherwise the web socket silently fails to open. Should this behavior be the default in Cowboy? It's kind of weird that a web socket opened with Chrome doesn't work out of the box with Cowboy. (It's also really hard to figure out that this is the problem from web searches)
The subprotocol example in the Cowboy documentation doesn't work. Calling cowboy_req:parse_header(<<"sec-websocket-protocol">>, Req0) returns a list of binaries, and not a tuple list, so calling lists:keymember/3 on it won't work.

Please open a ticket for 2. About 1, yes it's normal to close, and no Cowboy should not just echo back this value. For example if the client was requesting MQTT over Websocket and you echo back the value but then don't use the MQTT protocol, it's not going to work very well.


feat :  define ContinuousFunctionalCalculus Instance for Hermitian Matrices over an RCLike Field

This file contains the requisite lemmas needed to define a ContinuousFunctionalCalculus for Hermitian Matrices over an RCLike Field.

[x] depends on: #13729
[x] depends on: #13765
[x] depends on : #13837
[x] depends on : #13838

Co-Authored by @j-loreaux

@JonBannon build still falling

Weird let me have a look.
On Sat, Jul 6, 2024, 11:55 AM Jireh Loreaux @.***>
wrote:

@JonBannon https://github.com/JonBannon build still falling
—
Reply to this email directly, view it on GitHub
https://github.com/leanprover-community/mathlib4/pull/13697#issuecomment-2211803944,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOJJJTTBBW6W652HF3X5AR3ZLAHOVAVCNFSM6AAAAABJCYSOLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRHAYDGOJUGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Looks like I have to put HermitianFunctionalCalculus.lean into the Mathlib
file...because we created a new file. I'll bet that's what is happening.
J
On Sat, Jul 6, 2024 at 12:18 PM Bannon, Jon @.***> wrote:

Weird let me have a look.
On Sat, Jul 6, 2024, 11:55 AM Jireh Loreaux @.***>
wrote:

@JonBannon https://github.com/JonBannon build still falling
—
Reply to this email directly, view it on GitHub
https://github.com/leanprover-community/mathlib4/pull/13697#issuecomment-2211803944,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOJJJTTBBW6W652HF3X5AR3ZLAHOVAVCNFSM6AAAAABJCYSOLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRHAYDGOJUGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@dupuisf I'll need you (or another reviewer, but you make the most sense I think) to take over here, because I've contributed too much to even feel comfortable putting it on the maintainer merge-queue.

bors r+

bors r+


is it possible to create k8s tls secret when I store crt and key into vault?

is it possible to create k8s tls secret when I store crt and key into vault?
any advice or sample?

vault kv put /tls/xxx.com<EMAIL_ADDRESS><EMAIL_ADDRESS>I store as kv


Class fcm.sender does not exist

when i call:
$downstreamResponse = FCM::sendTo($this->tokens, $this->options, $this->notification,$this->data);
can someone help?

Hi,
I think that you have forgotten to add the FCMServiceProvider in the file config/app.php for laravel or boostrap/app.php for lumen.
you can find more information  in the installation section of the readme https://github.com/brozot/Laravel-FCM.
Can you give me a feedback if this solution solve your issue or not.
Best
Nicolas

Please am facing the same error even though I have added         LaravelFCM\FCMServiceProvider::class to the config/app.php.

Hey @aliuwahab21 did you try --
composer dumpautoload
php artisan config:cache
php artisan optimize

I try what you said but nothing work well, any suggestion please?!


[liblas]Fix ${_IMPORT_PREFIX} in liblas-depends-*.cmake.

Since liblas generates depends.cmake instead of target.cmake, fix ${_IMPORT_PREFIX} in these cmake files.
Related: #7749.

@pwm1234 Can you test this?
Thanks.

@JackBoosY: This is a case for vcpkg_fixup_cmake_targets

either improve  vcpkg_fixup_cmake_targets to incoparate the case of this port
or give vcpkg_fixup_cmake_targets an additional parameter like: TARGET_FILENAME which specifies the targetfile which needs to be fixed

@pwm1234 Nope, I will fix it in this PR.

@pwm1234 Could you re-test it? Thanks.


Scanner first draft

Scanner should be mostly complete. In sum, this what we support:

all keywords (i think)
all operators (i think)
string literals
int literals
boolean literals
simple float literals
identifiers
🔥 nested comments 🔥
line numbers 🔑💯👌

todos:

[x] expand syntax for floats?
[x] figure out how these exceptions work
[x] do we want all these boolean operators?
 I think that it would severely limit our scope if we didn't have them.

Re: makefile, fine for now--we can just file a GitHub issue and make sure that it is changed later

Yeah I mean I'm fine with not having it

On Feb 26, 2017, at 1:21 AM, John Hui<EMAIL_ADDRESS>wrote:
@j-hui commented on this pull request.
In src/frontend/scanner.mll:

+| "true" | "false" as tf  { BOOL_LIT(bool_of_string tf) }
+| int as i                { INT_LIT(int_of_string i) }
+| float as f              { FLOAT_LIT(float_of_string f) }
+| string                  { STRING_LIT(unescape s)}
+| id as n                 { ID(n) }

+(* ye good olde )
+| eof       { EOF }
+
+
+( The Reign of Error )
+| '"'       { raise (Exceptions.UnmatchedQuotation(!lineno)) }
+| _ as e    { raise (Exceptions.IllegalCharacter(!filename, e, !lineno)) }
+
+
+( comments *)
this doesn't, but i realised that maybe it's not such a good idea to do that. I can add that in if we really want, but I'm starting to wonder if it's too much of a syntactic restriction?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.


Changed some dates

I was really pleased to see that you put this info (such as key dates) in one file so it doesn't have to be changed in multiple places.  👍

Glad you like it. :smile:


Crash with Silverwood Planks

When they appears in my inventory or when i'm looking for them in creative and in Jei (Just enough itens), the game crashed

Maybe a dupe of #1222
Without any log files, it's hard to say what's crashing. There should be a crash-reports folder, search for the latest crash, post it on gist or pastebin and link the report here...

I solved it
It was the Connected Textures mod
But thank you all

@SrUca I'm glad you were able to solve your problem. Would you mind closing this issue? Besides closing an issue that you open yourself, I think Azanor is the only one who can close issues, so you can save him a minutes or two of having to look at this (already resolved) issue.


Silk with ImGui.NET - Attempted to read or write protected memory

I am using the Window sample and trying to integrate ImGui.NET to show the demo window inside a Silk.NET window. I am experiencing memory issues which I assume is because I am trying to render the gui in the wrong place.
unsafe private void Render()
{

    _data.GL.Clear((uint)ClearBufferMask.ColorBufferBit);
    _data.GL.BindVertexArray(_vertexArray);
    _data.GL.UseProgram(_shader);
    _data.GL.DrawElements(PrimitiveType.Triangles, (uint)_indices.Length, DrawElementsType.UnsignedInt, null);

    ImGui.ShowDemoWindow();
}

ImGui.NET has examples of how to do this with Veldrid (Veldrid also has extensions for an ImGuiRenderer to make it easier).

Sadly it isn't that simple to hook in ImGui.NET. Luckily, we've done all the heavy lifting in the SilkExtensions repo (pretty obscure and hard to find sorry, we're considering merging it into the main repo dw)
In there is a working sample using Silk.NET.OpenGL for windowing

Oh awesome, I hadn't come across that repo. Thanks for the quick reply

Maybe you could just publish it as Silk.NET.Extensions.ImGui or something

It's published today as Ultz.SilkExtensions.ImGui, but yeah we need to discuss whether to bring it together in the main repo.


Convert commands to list of strings

Solves https://github.com/teemtee/tmt/issues/1378.

@janhavlin a couple of things I discovered. These changes fix issues within /plans/features/core I ran into.
SHELL_OPTIONS
This has been sort of hidden, but SHELL_OPTIONS is not just "options", but rather a full-fledged set command and its options. Therefore I changed to a list of command-lines, a list of lists, just in case we get more such commands:
diff --git a/tmt/utils.py b/tmt/utils.py
index a7bcf41f..f38dff42 100644
--- a/tmt/utils.py
+++ b/tmt/utils.py
@@ -83,7 +83,9 @@ DEFAULT_SELECT_TIMEOUT = 5

 # Default shell and options to be set for all shell scripts
 DEFAULT_SHELL = "/bin/bash"
-SHELL_OPTIONS = ['set', '-eo', 'pipefail']
+SHELL_OPTIONS = [
+    ['set', '-eo', 'pipefail']
+]

 # Defaults for HTTP/HTTPS retries and timeouts (see `retry_session()`).
 DEFAULT_RETRY_SESSION_RETRIES: int = 3

This requires changes to how SHELL_OPTIONS is used:
diff --git a/tmt/steps/execute/internal.py b/tmt/steps/execute/internal.py
index 06734cfa..d4dee6bd 100644
--- a/tmt/steps/execute/internal.py
+++ b/tmt/steps/execute/internal.py
@@ -153,7 +153,10 @@ class ExecuteInternal(tmt.steps.execute.ExecutePlugin):

         # Prepare the test command (use default options for shell tests)
         if test.framework == "shell":
-            command = [*tmt.utils.SHELL_OPTIONS, ';', test.test]
+            command = [
+                ' '.join(options) + ';'
+                for options in tmt.utils.SHELL_OPTIONS
+            ] + [test.test]
         else:
             command = [test.test]

diff --git a/tmt/steps/prepare/shell.py b/tmt/steps/prepare/shell.py
index 9512460a..d414079f 100644
--- a/tmt/steps/prepare/shell.py
+++ b/tmt/steps/prepare/shell.py
@@ -63,5 +63,8 @@ class PrepareShell(tmt.steps.prepare.PreparePlugin):
         # Execute each script on the guest (with default shell options)
         for script in scripts:
             self.verbose('script', script, 'green')
-            script_with_options = [*tmt.utils.SHELL_OPTIONS, ';', script]
+            script_with_options = [
+                ' '.join(options) + ';'
+                for options in tmt.utils.SHELL_OPTIONS
+            ] + [script]
             guest.execute(script_with_options, cwd=self.step.plan.worktree)

Note also how ; is applied, it terminates each command from SHELL_OPTIONS - maybe we could rename the variable, to better reflect it's not "options".
local plugin
diff --git a/tmt/steps/provision/local.py b/tmt/steps/provision/local.py
index fa5db559..74731f94 100644
--- a/tmt/steps/provision/local.py
+++ b/tmt/steps/provision/local.py
@@ -90,7 +90,7 @@ class GuestLocal(tmt.Guest):
         environment.update(kwargs.pop('env', None) or {})
         environment.update(self.parent.plan.environment)
         # Run the command under the prepared environment
-        return self.run(remote_command, env=environment, shell=True, **kwargs)
+        return self.run([' '.join(remote_command)], env=environment, shell=True, **kwargs)

     def stop(self) -> None:
         """ Stop the guest """

remote_command is a list of strings, but since local plugin is going to run this very command directly, without any SSH involved, but with shell=True, remote_command needs to be merged into a single string which would be passed to whatever shell is spawned by Popen() down the stream.

Note also how ; is applied, it terminates each command from SHELL_OPTIONS - maybe we could rename the variable, to better reflect it's not "options".

Possibly SHELL_OPTIONS_COMMANDS as in list of commands which set shell options? It is quite long which makes it hard to fit the line into 100 char length. :)
Personally I find this hard to read (mostly because of the + operator which in this case is used for both str joining and list joining:
            command = [
                ' '.join(options) + ';'
                for options in tmt.utils.SHELL_OPTIONS
            ] + [test.test]

Maybe this is more readable?
        shell_options_commands_joined = []
        if test.framework == "shell":
            shell_options_commands_joined = [
                ' '.join(options) + ';' for options in tmt.utils.SHELL_OPTIONS
            ]
        command = [*shell_options_commands_joined, test.test]

I've changed most of the commands in the code to use list unpacking and I find it much clearer to read than list joining.

Note also how ; is applied, it terminates each command from SHELL_OPTIONS - maybe we could rename the variable, to better reflect it's not "options".

Possibly SHELL_OPTIONS_COMMANDS as in list of commands which set shell options? It is quite long which makes it hard to fit the line into 100 char length. :)

Sure, SHELL_OPTIONS_COMMANDS doesn't sound bad at all.

Personally I find this hard to read (mostly because of the + operator which in this case is used for both str joining and list joining:
            command = [
                ' '.join(options) + ';'
                for options in tmt.utils.SHELL_OPTIONS
            ] + [test.test]

Maybe this is more readable?
        shell_options_commands_joined = []
        if test.framework == "shell":
            shell_options_commands_joined = [
                ' '.join(options) + ';' for options in tmt.utils.SHELL_OPTIONS
            ]
        command = [*shell_options_commands_joined, test.test]

Maybe we could add a helper function for this operation? It's already used twice, a function to produce this merged-per-command form could be useful and less puzzling.

Maybe we could add a helper function for this operation? It's already used twice, a function to produce this merged-per-command form could be useful and less puzzling.

Something like this? Just not sure about the function name.
SHELL_OPTIONS_COMMANDS: List[CommandLine] = [
    ['set', '-eo', 'pipefail']
]

def shell_options_commands_joined() -> List[str]:
    return [' '.join(options) + ';' for options in SHELL_OPTIONS_COMMANDS]

And then in e.g. internal.py:
        if test.framework == "shell":
            command = [*tmt.utils.shell_options_commands_joined(), test.test]
        else:
            command = [test.test]

+1 from me.

Ready to be rebased on top of the #1730 which has been just merged to main. However, looking briefly through the changes, I'd say the pull request can be closed as basically all the essential changes has be already covered.

Ready to be rebased on top of the #1730 which has been just merged to main. However, looking briefly through the changes, I'd say the pull request can be closed as basically all the essential changes has be already covered.

I think so, too. On the other hand, rebasing helped me realize there are some loose ends in prepare/install, mixing scripts and command in a not so clear ways, so I'll create a patch for this are in any case.

Here's the follow-up PR for prepare/install: https://github.com/teemtee/tmt/pull/1772 - my original PR did not clear things enough for the plugin.

Ok, agreed, closing. The rest to be addressed by #1772.


Command line arguments ignored in default settings mode

running win-acme using the latest version v<IP_ADDRESS>8 (x64, ReleasePluggable)
wacs.exe --store centralssl --centralsslstore "C:\Certificates" --pfxpassword "********"
doesn't store the certificates in the CCS but instead in WebHosting CertificateStore.
The command above used to work as expected (placing the certs in the CCS) in the previous version v<IP_ADDRESS>4.

The interactive menu in default settings mode (N) ignored the command line parameters since the refactoring a few releases ago, but you can still use the full options mode (M) to do it. It will be fixed in the next release.

Fix released in 2.1.9


Migrate transport-blockhound-tests tests to JUnit 5

https://github.com/netty/netty/issues/10757#issuecomment-848445551

@kashike thanks a lot!


Consent element references to be corrected in IG and examples.

Consent contains two references; patient and organization. In order for these to meet FHIR standard, the URL must contain a FHIR resource within the reference e.g https://demographics.spineservices/Patient/6101231234
IG and examples need to be updated to reflect this.

I think you'll want this to include the FHIR version in the URL - i.e.  https://demographics.spineservices.nhs.uk/STU3/Patient/6101231234

Thanks Adam. I'm not 100% sure if the STU3 needs to be added. It's not a FHIR server that's being referenced, so in theory I don't need to provide a FHIR version. The reason /Patient/ is in there, is to meet the FHIR spec on literal references, that states any reference points to a FHIR resource whether or not the endpoint is a FHIR RESTful server.  It's a valid point you've made, and once I didn't think about, so I'll get a definitive answer before making any changes to the IG.

It will be a FHIR endpoint once the PDS FHIR API is developed - hence why it needs to follow the same policy as all other FHIR endpoints.

Thanks Adam.

What is the expected delivery date for PDS FHIR API? Does NOO live rollout have a dependency on PDS/ ODS APIs?

NDOP has no dependency on any other API and there is not current requirement to resolve any references at this time, although I understand that there will be in the future.


Added deploy-test.sh for integration tests with Open Enclave.

The deploy-test.sh script will deploy an ACC node using the credential parameters, wait for deployment to complete, then connect to the newly deployed system and set appropriate environment variables and run the Open Enclave SDK sample tests.  These sample tests will perform remote attestation (both quote generation and verification) between two enclaves.
I plan on expanding this script to support the soon to be proposed "caller ID" mechanism that @msft-jonnadul is writing a document for, which should really just add a new parameter to the job (which will pass down as an environment variable to this script).
Tagging @soccerGB @msft-jonnadul

For an example run of this script in a Jenkins job, check out: https://oe-jenkins.eastus.cloudapp.azure.com/job/oe-integration-PCK-test-endpoint/33/console

Closing this PR due to this script no longer being used for testing!


Update to Chromium 84.0.4147.89

This PR is currently incomplete, as I have not managed to successfully build yet. More commits will be on the way.
Notable changes:

A snapshot of LLVM 11.0.0 is in use.
Ninja has been updated to 1.10.0.
The full_wpo_on_official GN flag has been removed, as it is no longer used.

Current issues:

/showIncludes needs to be removed from build/toolchain/win/BUILD.gn.
Whatever it is that is happening here:

C:/Python27/python.exe ../../third_party/blink/renderer/bindings/scripts/generate_bindings.py enumeration --web_idl_database gen/third_party/blink/renderer/bindings/web_idl_database.pickle --root_src_dir ../../ --root_gen_dir gen --output_core_reldir third_party/blink/renderer/bindings/core/v8/ --output_modules_reldir third_party/blink/renderer/bindings/modules/v8/
Traceback (most recent call last):
  File "../../third_party/blink/renderer/bindings/scripts/generate_bindings.py", line 86, in <module>
    main()
  File "../../third_party/blink/renderer/bindings/scripts/generate_bindings.py", line 82, in main
    dispatch_table[task](web_idl_database=web_idl_database)
  File "E:\ungoogled-chromium-windows\build\src\third_party\blink\renderer\bindings\scripts\bind_gen\enumeration.py", line 360, in generate_enumerations
    generate_enumeration(enumeration)
  File "E:\ungoogled-chromium-windows\build\src\third_party\blink\renderer\bindings\scripts\bind_gen\enumeration.py", line 354, in generate_enumeration
    write_code_node_to_file(header_node, path_manager.gen_path_to(header_path))
  File "E:\ungoogled-chromium-windows\build\src\third_party\blink\renderer\bindings\scripts\bind_gen\codegen_utils.py", line 153, in write_code_node_to_file
    format_result = style_format.auto_format(rendered_text, filename=filepath)
  File "E:\ungoogled-chromium-windows\build\src\third_party\blink\renderer\bindings\scripts\bind_gen\style_format.py", line 53, in auto_format
    return clang_format(contents, filename)
  File "E:\ungoogled-chromium-windows\build\src\third_party\blink\renderer\bindings\scripts\bind_gen\style_format.py", line 61, in clang_format
    return _invoke_format_command(command_line, filename, contents)
  File "E:\ungoogled-chromium-windows\build\src\third_party\blink\renderer\bindings\scripts\bind_gen\style_format.py", line 74, in _invoke_format_command
    command_line, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 394, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Whatever it is that is happening here:

Maybe it's trying to run clang_format but it isn't able to find the executable?

Whatever it is that is happening here:

Maybe it's trying to run clang_format but it isn't able to find the executable?

Hi,
I think you are right, it's trying to run clang-format.exe on: ...\src\out\Default\gen\third_party\blink\renderer\bindings\core\v8\v8_text_track_mode.h
but it isn't able to find it, because it doesn't exist in "out" directory.
How did you fix this issue on your macos build? Because I got the same error there...
I have tried to "delete" all dependencies "v8:generated" from various BUILD.gn files ( as well as generate_bindings_enumeration, generate_enumeration and every other associated stuffs ) and then it can build to the end with some more fixes ( like deleting more safe_browsing stuffs that cause build to fail ), but then after package.py, and installation, it doesn't even open chromium...
Probably this was a wrong way to fix that issue, but rn I'm learning how it works

Wouldn't it be smart to skip version 83 and focus on 84? There are some changes on v8 and maybe this problem can be bypassed.

good luck


Outlook OST and PST files not protected by Windows Information Protection

In this Gitlab thread it appears that Outlook OST and PST files are not protected by Windows Information Protection by default, and hence if Outlook is used in Cached Exchange Mode (the default), any mailbox data downloaded by Outlook will not be removed as part of a remote device wipe, nor will it be protected by WIP encryption by default.
This should be highlighted as a major limitation in WIP until it is no longer the case.
https://github.com/MicrosoftDocs/windows-itpro-docs/issues/6172

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

ID: 6f23c9b6-81aa-b06d-5c19-196ac933b6ff
Version Independent ID: 0c7eb396-4274-c546-6063-6d38382b956d
Content: Limitations while using Windows Information Protection (WIP) (Windows 10) - Microsoft 365 Security
Content Source: windows/security/information-protection/windows-information-protection/limitations-with-wip.md
Product: w10
Technology: windows
GitHub Login: @DulceMontemayor
Microsoft Alias: dansimp

@ChrisAtMAF .   Email attachments downloaed from. Outlook. We can able to block or disabled through. Windows defender ASR rules

@RAJU2529 But the attachment data is also stored in the OST files so it will still be left on the device in another form, unencryped, if WIP is enabled.

@ChrisAtMAF .  I am taking Attack Surface Rule, once you enabled the standard rules via powershell . dangerous aattachments will not will be blocked

@ChrisAtMAF - Thank you for submitting feedback.
From our understanding, the issue has been resolved based on this merged commit https://github.com/MicrosoftDocs/windows-itpro-docs/commit/90f70b5981d8c347cbe4ced42e1041dad36a0a3e.
Thank you for your contribution to make the docs better! Much appreciated!


call_constructor doesn't seem to work with factories for simple usertypes

Using call_constructor with a factories instance when creating a simple usertype results in no matching function call takes this number of arguments and the specified types when trying to use the call constructor from Lua. This seems to be the case regardless of any other factors I tested (number of arguments to the factory function, the existence/non-existence of a "new" function, SOL_CHECK_ARGUMENTS/SOL_SAFE_USERTYPE defs, etc).
Note: Using call_constructor with factories works fine with regular usertypes (although there's currently no tests for the call_constructor/factories combo in the sol test cases).
Test code:
#define CATCH_CONFIG_MAIN
#define SOL_CHECK_ARGUMENTS
#include <catch.hpp>
#include <sol.hpp>

TEST_CASE("simple_usertype call_constructor with factories")
{
	struct FactoryTest {};

	sol::state lua;
	lua.open_libraries(sol::lib::base);

	auto factories = sol::factories([]() { return FactoryTest(); });

	lua.new_simple_usertype<FactoryTest>("FactoryTest",
		sol::meta_function::construct, factories,
		sol::call_constructor, factories
	);

	REQUIRE_NOTHROW(lua.script("a = FactoryTest.new()"));
	REQUIRE_NOTHROW(lua.script("b = FactoryTest()"));
}

Results:
-------------------------------------------------------------------------------
simple_usertype call_constructor with factories
-------------------------------------------------------------------------------
main.cpp(6)
...............................................................................

main.cpp(21): FAILED:
  REQUIRE_NOTHROW( lua.script("b = FactoryTest()") )
due to unexpected exception with message:
  lua: error: [string "b = FactoryTest()"]:1: sol: no matching function call
  takes this number of arguments and the specified types

Thanks for reporting. There are tests now for it and it's not fairly well-vetted. Try pulling from the latest or from:
https://github.com/ThePhD/sol2/releases/tag/v2.15.8

Appreciate the quick fix. The simple test I posted above works, but I am having a weird issue with my real use case. Will investigate it a bit more and post a new test case for you.

Okay, this test is rather convoluted and strangely constructed, but hopefully it's useful in tracking down what's going on. Basically, a table of structs, when passed to a factory constructor is detected as a table of structs (using sol::object::is) when going through new but not when going through the call_constructor. Seems like it's probably just a weird symptom of something only tangentially related, but who knows.
#define CATCH_CONFIG_MAIN
#define SOL_CHECK_ARGUMENTS
#include <catch.hpp>
#include <sol.hpp>

TEST_CASE("simple_usertype call_constructor with a factory that takes a table of userdata")
{
	struct thing {};

	struct FactoryTest {};

	sol::state lua;
	lua.open_libraries(sol::lib::base);

	auto factories = sol::factories(
		[](const sol::object& obj) {
			REQUIRE(obj.get_type() == sol::type::table);
			auto tbl = obj.as<sol::table>();
			for (auto v : tbl)
			{
				REQUIRE(v.second.valid());

				// This fails only when the call_constructor is used:
				REQUIRE(v.second.is<thing>());
			}
			return FactoryTest();
		}
	);

	lua.new_simple_usertype<FactoryTest>("FactoryTest",
		sol::meta_function::construct, factories,
		sol::call_constructor, factories
	);

	lua.new_simple_usertype<thing>("thing");

	lua.script("things = {thing.new(), thing.new()}");

	// This succeeds:
	SECTION("new")
	{
		REQUIRE_NOTHROW(lua.script("a = FactoryTest.new(things)"));
	}

	// This fails:
	SECTION("call_constructor")
	{
		REQUIRE_NOTHROW(lua.script("b = FactoryTest(things)"));
	}
}

The result (omitted the atpanic error that results from REQUIRE failing during the lua.script call):
-------------------------------------------------------------------------------
simple_usertype call_constructor with a factory that takes a table of userdata
  call_constructor
-------------------------------------------------------------------------------
main.cpp(46)
...............................................................................

main.cpp(24): FAILED:
  REQUIRE( v.second.is<thing>() )
with expansion:
  false

This is now fixed, sorry about that: pull from the latest.


fix: config flow errors related to the betas

Codecov Report

Merging #41 (e4dc657) into dev (4bb4f62) will decrease coverage by 3.62%.
The diff coverage is 57.89%.

@@            Coverage Diff             @@
##              dev      #41      +/-   ##
==========================================
- Coverage   94.61%   90.98%   -3.63%
==========================================
  Files           5        5
  Lines         334      366      +32
==========================================
+ Hits          316      333      +17
- Misses         18       33      +15

Impacted Files
Coverage Δ

custom_components/openei/__init__.py
84.76% <57.14%> (-3.78%)
:arrow_down:

custom_components/openei/config_flow.py
90.05% <58.33%> (-5.22%)
:arrow_down:


Add atomic increment/decrement operations to IDistributedCache

It would be really nice to have for scenarios like rate limiting.
I don't know about SQL Server support for this, but I guess this would map to Redis' INCR and DECR operations.
If the key does not exist, it would be set to 0 before performing the operation. The methods would return the value of key after increment/decrement.
I propose the following new members:
namespace Microsoft.Extensions.Caching.Distributed
{
    public interface IDistributedCache
    {
        // Existing members:
        byte[] Get(string key);
        Task<byte[]> GetAsync(string key, CancellationToken token = default(CancellationToken));
        void Set(string key, byte[] value, DistributedCacheEntryOptions options);
        Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token = default(CancellationToken));
        void Refresh(string key);
        Task RefreshAsync(string key, CancellationToken token = default(CancellationToken));
        void Remove(string key);
        Task RemoveAsync(string key, CancellationToken token = default(CancellationToken));

        // New members:
+       long Increment(string key, DistributedCacheEntryOptions options);
+       Task<long> IncrementAsync(string key, DistributedCacheEntryOptions options, CancellationToken token = default(CancellationToken));
+       long Decrement(string key, DistributedCacheEntryOptions options);
+       Task<long> DecrementAsync(string key, DistributedCacheEntryOptions options, CancellationToken token = default(CancellationToken));
+       long IncrementBy(string key, long value, DistributedCacheEntryOptions options);
+       Task<long> IncrementByAsync(string key, long value, DistributedCacheEntryOptions options, CancellationToken token = default(CancellationToken));
+       long DecrementBy(string key, long value, DistributedCacheEntryOptions options);
+       Task<long> DecrementByAsync(string key, long value, DistributedCacheEntryOptions options, CancellationToken token = default(CancellationToken));
    }
}

@Eilon @Tratcher @davidfowl Is this something you'd consider for 3.0?

This seems like a different service than IDistributedCache, no? (Aside from it's obviously a breaking change.)

This seems like a different service than IDistributedCache, no?

You mean because you operate on numbers instead of bytes? I dunno, it's pretty common to cache "counters" like this.

When I think distributed caching, I don't think of atomicity. What you are describing sounds more like a distributed semaphore (which consul implements for example), which does seem like it belongs to a separate interface.

Yeah, fair point. Why not do that rather than wait for an abstraction:
var redis = StackExchange.Redis.ConnectionMultiplexer.Connect("localhost");
var db = redis.GetDatabase();
db.*Increment(...

You already a transitive dependency on StackExchange.Redis.Signed from the distributed caching extension.

Because I'm writing a middleware that I'd like to keep decoupled from Redis. Because ASP.NET Core already has the IDistributedCache abstraction, I thought it would be a good fit.

We don't intend to support this behavior in the IDistributedCache.

So, for implementing throttling/rate limiting, what kind of service would you recommend I use to store the number of requests for the current IP, without forcing all my users to use Redis? Does it exist? 🤔

Can you tell me more about the caching primitives other platforms provide? I'm certainly not opposed to this if there's prior art. Redis has an INCR primitive, but that's not necessarily something an abstraction can depend upon. Increment is also very difficult (if not impossible) to implement on top of our existing abstraction (i.e. in terms of Get/Set) since it requires some kind of transactionality, so it would be a breaking change that would force all providers to find a way to do this.
It sounds like you're basically looking for a "database" (for lack of a better term) here rather than a cache, since you're storing data that you're relying upon. Caches generally are targeted at transient data storage backed up by some underlying store. What would happen to the throttling data when the cache drops your key as part of scavenging/expiration? Redis (as an implementation) is more of a database, so using it directly for this makes some sense, or providing your own abstraction in your middleware component.
I'm not necessarily opposed to having an abstraction for this, just trying to understand how this fits into the area of "caching".

Can you tell me more about the caching primitives other platforms provide?

[Laravel] (https://laravel.com/docs/5.8/cache)

Laravel provides an expressive, unified API for various caching backends. Laravel supports popular caching backends like Memcached and Redis out of the box.

The increment and decrement methods may be used to adjust the value of integer items in the cache. Both of these methods accept an optional second argument indicating the amount by which to increment or decrement the item's value.

Rails
Has an abstract cache store class with implementations for in-memory, Memcached and Redis out of the box.
Has both an increment and decrement method, both taking an optional amount.
Django

Django comes with a robust cache system that lets you save dynamic pages so they don’t have to be calculated for each request. For convenience, Django offers different levels of cache granularity: You can cache the output of specific views, you can cache only the pieces that are difficult to produce, or you can cache your entire site.

You can also increment or decrement a key that already exists using the incr() or decr() methods, respectively. By default, the existing cache value will be incremented or decremented by 1. Other increment/decrement values can be specified by providing an argument to the increment/decrement call.

This was just the first three I looked, in ten minutes on my phone. They're also some of the most popular web frameworks out there. All of them expose increment and decrement operations directly in their caching primitives. The most popular stores like Memcached and Redis support these operations natively.

Redis has an INCR primitive, but that's not necessarily something an abstraction can depend upon.

Why not? 🤔

Increment is also very difficult (if not impossible) to implement on top of our existing abstraction (i.e. in terms of Get/Set) since it requires some kind of transactionality, so it would be a breaking change that would force all providers to find a way to do this.

Yes, tell me about it. It works somewhat, but has no transactional guarantees. Hence this suggestion. I'm not saying that must be a guarantee, but it would be nice to have if the backend support it.

It sounds like you're basically looking for a "database" (for lack of a better term) here rather than a cache, since you're storing data that you're relying upon. Caches generally are targeted at transient data storage backed up by some underlying store.

No, I'm looking for a cache. I know what a cache is. What is a cache if not a "database"? The most popular caches support these operations.

What would happen to the throttling data when the cache drops your key as part of scavenging/expiration

That's also a key point here. You want to be able to reason about expiry etc. as well. In the throttling example you'd like to have a sliding expiration so whenever someone makes a request, it gets incremented and the expiration is reset. When the expiration goes out, the counter is removed (reset).

Redis (as an implementation) is more of a database, so using it directly for this makes some sense, or providing your own abstraction in your middleware component.

I doubt anyone using any other cache backend would use throttling middleware that only support Redis. Especially when their existing cache already supports what they need (and could be used instead).
Sure, I could roll my own abstraction, but that means I'd have to either leave the implementation up to the end user or ship separate ThrottleMiddleware.Redis, ThrottleMiddleware.Memcached and ThrottleMiddleware.InMemory etc. packages. I'd much rather rely on the existing packages in the shared framework if I could.

What is a cache if not a "database"?

Our understanding of caching here has traditionally been that the data in the cache can never be expected to remain there, it could disappear at any time (due to scavenging, expiration, etc.).

The most popular caches support these operations.

Yeah, that does seem to be the case. Fair point.
Alright, I can see those points. I guess I'm still not totally clear on how scavenging affects this but I can buy that it's a common enough pattern to be warranted.
We still have to reconcile the breaking change angle, since adding this API would force any caching provider to support it. Perhaps we can do something hacky with default interface members but it would require making a lot of assumptions. It's much too late to do this in 3.0 but I'll reopen and backlog this.

We still have to reconcile the breaking change angle, since adding this API would force any caching provider to support it. Perhaps we can do something hacky with default interface members but it would require making a lot of assumptions. It's much too late to do this in 3.0 but I'll reopen and backlog this.

I'm totally fine with introducing a new interface and do a cast check on the injected IDistributedCache to utilize the new methods if available, like DI's ISupportRequiredService 😉 Then fall back to what I'm currently doing if it's not available.

when is this feature getting rolled out

@abhiyx at this point we have no scheduled release for this feature. We're in the midst of planning for 5.0, and this will be considered there (it will have to be prioritized against other work we have to plan for 5.0 though, so there are no guarantees :)).


[OTHER] Remove docs folder

What would you like to share?
Hey @aggre, would it be okay if I remove the docs directory? it confused us.
Additional information
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hey @aggre, would it be okay if I remove the docs directory? it confused us.

Yes, of course!


zelda a bug between walls II

Priority: critical
Type: logic
Frequency: everytime you throw zelda to that wall, but depending on distance
Results: if you throw zelda to this specific place, she gets bugged like she was on first level and then if you move forward game crash
Add info:

Status: Open

fixed


[Bug Report] vue/test-util cannot mount "ElSelectDropdown"

Element UI version
2.4.6
OS/Browsers version
mac os
Vue version
2.5.17
Reproduction Link
https://github.com/valterbarros/trackthings
Steps to reproduce
try to mount a component with el-select inside throw :
---> <ElSelectDropdown>
       <Transition>
         <ElSelect>
           <ElFormItem>
             <ElForm>
               <Anonymous>
                 <Root>

TypeError: Cannot read property '$el' of undefined
at VueComponent.mounted (/Users/mhanne/src/report-builder/viewer/node_modules/element-ui/lib/element-ui.common.js:9131:54)
at callHook (/Users/mhanne/src/report-builder/viewer/node_modules/vue/dist/vue.runtime.common.js:2919:21)
at Object.insert (/Users/mhanne/src/report-builder/viewer/node_modules/vue/dist/vue.runtime.common.js:4156:7)
at invokeInsertHook (/Users/mhanne/src/report-builder/viewer/node_modules/vue/dist/vue.runtime.common.js:5958:28)
What is Expected?
Mount le select input
What is actually happening?
test crash. with jest or ava same issues

We face the same issue and tried to find the issue. And I found that the problematic line in ElSelectDropdown is the line it accessing $ref in mounted() as below.
mounted() {
...
this.referenceElm = this.$parent.$refs.reference.$el;
...
}

The Vue official documents for $ref usage specifies.

An important note about the ref registration timing: because the refs themselves are created as a result of the render function, you cannot access them on the initial render - they don’t exist yet! $refs is also non-reactive, therefore you should not attempt to use it in templates for data-binding.

As per document, the this.$parent.$refs does not contains child references on mounted. This seems quite clear.

@JaekwanLee Have you find a solution ?

@matthieuHanne Not really. Just testing it with shallowMount for now. It is weird that it seems working when it runs on browser though.

Hi, is there any development @JaekwanLee ? or @matthieuHanne have found some kind of solution ? I'm currently adding some unit tests with Mocha to my Vue project and I have the same issue.
Thank you :)

We've also encountered exactly same issue in tests

@ziyoung @wacky6 Any ideas what is to be done here?

I write a simple demo https://github.com/ziyoung/vue-test-with-jest
All test cases pass.
 PASS  src/components/__tests__/hello-world.test.js
 PASS  src/components/Select/__tests__/select.test.js
  ● Console

    console.log src/components/Select/select.vue:18
      HTMLParagraphElement {}

@ziyoung Here's a patch to your vue-test-with-jest that will allow you to reproduce the issue:
ref.txt

Also having exactly same issue in tests

https://vue-test-utils.vuejs.org/api/components/
import { config } from '@vue/test-utils'
config.stubs.transition = false
This may solve this problem.
The built-in transition component has property named abstract, but transitionStub does not.
vue/src/core/instance/lifecycle.js

export function initLifecycle (vm: Component) {
  const options = vm.$opti

  // locate first non-abstract parent
  let parent = options.parent
  if (parent && !options.abstract) {
    while (parent.$options.abstract && parent.$parent) {
      parent = parent.$parent
    }
    parent.$children.push(vm)
  }
 ...
}

This causes the child component to have the wrong parent component.

add this 'config.stubs.transition = false;' is ok.
why?

Why is the PR https://github.com/ElemeFE/element/pull/13098 closed and not merged?

Thank you @huihao.
@matthieuHanne @syn-zeta it should work for you. https://github.com/ziyoung/vue-test-with-jest/blob/master/src/components/tests/hello-world.test.js

This is the same mistake.

@huihao
Thank you for your solution!

We face the same issue and tried to locate the culprit. And I found that the problematic line in ElSelectDropdown is the line it accessing $ref in mounted() as below.
mounted() {
...
this.referenceElm = this.$parent.$refs.reference.$el;
...
}

I couldn't find where this this.referenceElm is used. What is this variable for?
I commented it out and both the tests and browser view worked fine.

@ziyoung I would like to ask if this issue could be reopened. I am still having that same exact error, and huihao's answer
import { config } from '@vue/test-utils';
config.stubs.transition = false;

doesn't solve it. Did anyone find a workaround or a working solution?

Heads up for anyone Googling this in the future, the work around is no longer needed in Vue Test Utils 1.3.1

Heads up for anyone Googling this in the future, the work around is no longer needed in Vue Test Utils 1.3.1

Thanks a thousand times


Create  ISSUE_TEMPLATE.md

Will make issue handling a little easier.

good idea, thanks for taking this step

We could also have one for PRs : https://help.github.com/articles/creating-a-pull-request-template-for-your-repository/
But I'll leave this one to actual coders : @santisiri @LucasIsasmendi @medied

Awesome yea, one for PRs could be useful later down the road. Thanks for getting the issue template in there though!


Infinite recursion when setting entity.parent = entity

There should be a guard against this in Entity's set_parent(). I'd make a pull request, but I'm not sure how you want to handle such errors.
Also, _add_child() should be private, and children shouldn't have public write access. Again, sorry if you're already aware of all this, I know things are in the works right now.
Edit: More generally, there needs to be some way of preventing/dealing with circuits in the parent-child relationship graph. A grandparents() function that walks through parents could be handy.

https://github.com/underscorediscovery/luxe/commit/a189ad2017cb985d62f79c5f5bd6d652a0d9b912
Also _add_child was hidden with @:noCompletion, it was semi private at one point. As with a lot of other things. Sometimes I prefer things to be accessible by users that want to bypass the internal stuff and construct there own, without hacking in the core.
It's usually only a problem If you're using flash develop - for some reason it ignores these haxe features and shows them anyway. For now I switched them to more fine grained control.


Value error with nested type on interface{}

I'm getting a validation error when using a map[string]interface{} as the value.
Here's the example:
Json Schema
{
  "$id": "https://example.com/blog-post.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A representation of a blog post",
  "type": "object",
  "required": ["title", "content", "author"],
  "properties": {
    "title": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "publishedDate": {
      "type": "string",
      "format": "date-time"
    },
    "author": {
      "$ref": "https://example.com/user-profile.schema.json"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}

The data
data := map[string]interface{}{
  "title":         "New Blog Post",
  "content":       "This is the content of the blog post...",
  "publishedDate": "2023-08-25T15:00:00Z",
  "author": map[string]interface{}{
	  "username": "authoruser",
	  "email"<EMAIL_ADDRESS>  },
  "tags": []string{"Technology", "Programming"},
}

Error:
"/tags"
"Value is unknown but should be array"

I am getting the same error, because my type is map[interface {}]interface {}

I am getting the same error, because my type is map[interface {}]interface {}.
Update: Using go-yaml/yaml#139 I was able to get my same YAML to be type map[string]interface{} but the library fails to work because it gives no errors in ToList, however I get from .Error() -> evaluation failed. :(

I'm sorry to see this message just now, can you submit the wrong code completely? There is no problem after my test. If yaml is parsed into map[interface{}]interface{}, his error is "type": "Value is unknown but should be object"


Improve Logs for Comedian

Adding Errors and Info logs to project. Trying to catch every Error and the majority of processes into INFO logs.
Logs messages are written CAPITALIZED. Is it OK or not.

Coverage decreased (-7.05%) to 69.3% when pulling d2fa4f5ae280559f1a9eb6d38d8f3e4ca552a326 on logs into 38646f784cb25af06d68a3cd0b9a8bf4cc9025e0 on master.


[Bug]: isEqual ignores trailing undefineds in arrays

Version
29.4.2
Steps to reproduce
Run expect([1, 2]).toEqual([1, 2, undefined]) in any Jest test. Or alternatively add any number of additional undefined elements on the end.
If you would like a minimal reproduction repo, feel free to download this one: https://github.com/CodingItWrong/jest-isequal-undefined-array-element
Expected behavior
I would expect this matcher to fail, because a two-element array is not the same as a three-element array where the third element is undefined.
Actual behavior
The matcher succeeds, treating the two different arrays as equal.
Additional context
I ran across this during a real false positive in a test: I wanted to ensure I was filtering falsy values out of an array, but because my falsy value was an undefined at the end, my test passed even though the falsy value was not filtered out.
Environment
System:
    OS: macOS 13.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 18.14.0 - ~/.nvm/versions/node/v18.14.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.14.0/bin/yarn
    npm: 9.4.1 - ~/.nvm/versions/node/v18.14.0/bin/npm
  npmPackages:
    jest: ^29.4.2 => 29.4.2

You should use .toStrictEqual().
Would be good to include a note in docs next to .toEqual().

@mrazauskas Got it, thank you. I will look into PRing a note in the docs. I think this bug can be closed.

I started working on a note already. Soon will open a PR which will close the issue.
Thanks for drawing the attention!

@mrazauskas That doc update is super clear; thank you!


Java Gradle and Maven buildpacks should support build arguments

Is your feature request related to a problem? Please describe.
Currently, the Gradle and Maven buildpacks have hardcoded build arguments:

Gradle runs https://github.com/GoogleCloudPlatform/buildpacks/blob/d72f286edd1101b2e00630a15928123fd0261a79/cmd/java/gradle/main.go#L86
Maven runs https://github.com/GoogleCloudPlatform/buildpacks/blob/d72f286edd1101b2e00630a15928123fd0261a79/cmd/java/maven/main.go#L95

However, there are cases where projects want to override the build arguments to suit their needs, such as adding flags for modifying logging, stacktraces, etc.
Describe the solution you'd like
Similar to how other buildpack providers do this, it would be nice if the Gradle and Maven buildpacks had a way to let users specify the build arguments. For example:
GOOGLE_GRADLE_BUILD_ARGS="clean assemble -x test --build-cache"
GOOGLE_MAVEN_BUILD_ARGS=""clean package --batch-mode -DskipTests -Dhttp.keepAlive=false"
Describe alternatives you've considered
There could be a general environment variable, but i would assume there might becases where projects use a combination of Gradle and Maven

Some additional context, there is an existing GOOGLE_BUILD_ARGS environment variable that exists today but that only appends the values to the existing build command for the participating buildpack. So if you're looking to just append a few additional commands this works, but you can't completely replace it.
We wouldn't be able to change the behavior of this environment variable as it would constitute a breaking change, so this is why I'm proposing two new variables.
Alternatively it could be something like GOOGLE_BUILD_ARGS_OVERRIDE or something

Hey @jama22 just checking if there is any update on this?
Thanks
Shalva

We have started working on this and will update once the changes are in.

Hi @skakauridze-clgx, the changes for this got checked in. You can try using GOOGLE_MAVEN_BUILD_ARGS and/or GOOGLE_GRADLE_BUILD_ARGS now. Let me know if you run into any issues. Thanks

The documentation for this change can be found here : https://cloud.google.com/docs/buildpacks/service-specific-configs.


added react 19 to peerDependencies

Objective
Add react 19 to peerDependencies to get no warning in react 19 Projects.
Description
Added 19 to peerDependencies
Acceptance
I updated a react project to 19 with the control and everything worked. I just got this warning:
npm warn Could not resolve dependency:
npm warn peerOptional react@"^17 || ^18" from<EMAIL_ADDRESS>

Thank you for your contribution. This will be added in #74.


Nested serializers are being deprecaded from netbox 4

Netbox plugin migration guide instructs plugin developers to remove Nested API serializers and add support for "brief" mode to regular serializers .
In netbox-inventory plugin I have done as the migration guide instructs and now users cannot use netbox-inventory with netbox-attachments. See this issue for detailed description.
The problem originates here by calling get_serializer_for_model with prefix argument.
You should probably change this to get a regular serializer and pass brief=True when calling it.
If you wanted to keep backward compatibility you could first try to get nested serializer as it is now and on netbox.api.exceptions.SerializerNotFound error get the regular serializer with brief=True.
I can submit a pull request if you'd like.

I'll take a look at it, I also need to do some other changes.

Seems to work fine, thank you. I tested attachments on netbox_inventory.Asset (plugin) model and dcim.DeviceType.


What is utils_cv ?

I m trying to execute .ipynb code in Google colab , everytime I'm facing issue of utils_cv.
Can you locate that (utils_cv) file ? Or
How can I fix it ?
Thanks ,

utils_cv is the main library and needs to be imported. See implementation here:
https://github.com/microsoft/computervision-recipes/tree/master/utils_cv

Hi could you share the codes to import the main library to colab? thanks


Backwards compatibility for RN < 0.40

Allow older applications to use 4.0.0+ without updating RN.

This reverts some of the changes made by 380b3a5661c25dae4a50baaebe22aac0f2ed07cd.

Thanks for your PR! Sorry for being slow to review this, but can you undo the changes to the example projects?

@oblador I think this should cover it.

@oblador Ping

@RobCherry Still seeing the changes in the package.json files 🤔

@oblador Sorry, I think I misread your original comment.  I have undone the example changes.

Thanks! Released in 4.0.1.


It appears that macos is stopping the charge at 80%

I am attempting to write a script that mimics the aldente program feature of calibrating a battery in which it discharges to 15%, charges to 100% and holds for 1 hour, then discharges to 80% and maintains the charge.
My script is here if you'd like to take a look
My issue is that after the discharge, upon recharging it stops at 80% and appears to override 'battery' commands completely. Do you have any suggestions? Thanks

Since I'm using a third party baterry manager, I disabled the "Optimized Battery Charging" option from the Battery options.

It's on my radar, closing this issue as duplicate. Thanks for reporting.


qwen support

Is there currently a plan to launch support for the qwen model?

目前是否有计划推出对 qwen 模型的支持？


[Feature Request] set dap.defaults options

nvim-dap has a remarkable amount of configuration options behind the require('dap').defaults. See :h dap.defaults for a subset and more of them in :h dap-configuration.
I'd like to set those options through nixvim.
what does not work
In a normal neovim setting, those should be set after calling setup(). Which I think is the reason for why the following does not work in my nix configuration:
# this errors with a "option does not exist"
dap.defaults.fallback.exception_breakpoints = "default";  # the global behavior
dap.defaults.python.exception_breakpoints = ["uncaught"];  # the python-specific behavior

# this is ignored
dap.extraOptions.defaults.python.exception_breakpoints = ["uncaught"];
dap.configurations.python.exception_breakpoints = ["uncaught"];
dap.configurations.python.defaults.exception_breakpoints = ["uncaught"];

workaround
I now work around this with
  autoCmd = [{
    event = [ "BufEnter" "BufWinEnter" ];
    pattern = [ "*.py" "*.md" "*.qmd" "*.ipynb" ];
    command = "lua require('dap').defaults.python.exception_breakpoints = {'uncaught'}";
  }];

proposed interface
I think it would be nice if defaults could be set with
dap.defaults.<configuration or fallback> = { };

since that's closest to the lua interface. Stuff like
dap.configurations.<configuration or fallback>.defaults = { };
# or worse:
dap.configurations.<configuration or fallback> = { };

seems less intuitive to me.
a probably bad idea for generalization
Maybe, you'd even want to generalize by always making it so that in nixvim, options that aren't accepted by the setup are then attempted to be added to the plugin's table.
So this
plugin.option = "value";

does something like (forgive the python)
plugin = require(plugin)
setup_options = {}
other_options = {}
# this loop is a botched and surely-inaccurate attempt for me to gesture at
# what I think is the status quo for how you check whether a setup function
# accepts particular options
for option, value in user_supplied_options.items():
    # in actuallity you're probably doing something more recursive here
    if option in arguments_of(plugin.setup):
        setup_options[option] = value
    else:
        other_options[option] = value

plugin.setup(setup_options)
for option,value in other_options.items():
    assert has_attr(plugin, option)  # this might or might not be good enough error handling
    plugin.option = value

though, this is not my main issue. If the above code makes you go "what the bleep are you talking about?" then feel free to just ignore it (and politely don't tell me what word the "bleep" masked out).
offered help
I would at some point make a pull requiest if no one did this but "at some point" is probably >2 months in the future.
If you'd like to wait for my pull request, I'd appreciate (but I do not feel entitled to) a pointer on how post-setup lua code tends to be run for plugins that have setup for that.
Or, if you'd never want this functionality for the dap plugin, then that'd also be nice to know (I think I'd disagree, but respectfully so) and I'll just keep using my workaround.

oops, sorry for that "bug" label, that's inaccurate

I'd appreciate a pointer on how post-setup lua code tends to be run for plugins that have setup for that.

Generally speaking, I think we normally do pre/post setup code by calling setup manually.
Plugins implemented with mkNeovimPlugin tend to automatically generate code to call setup, but mkNeovimPlugin could easily be extended to accept pre/postExtraConfigLua arguments if needed.

In a normal neovim setting, those should be set after calling setup(). Which I think is the reason for why [it] does not work in my nix configuration

I don't think we ever call a DAP setup function, however we do do some "setup config" by adding lines to plugins.dap.extensionConfigLua (internal option) and here:
https://github.com/nix-community/nixvim/blob/40598fc1bd8c93adc3759aff5d5a39d4e66790e5/plugins/dap/default.nix#L86-L99
Maybe someone more familiar with our DAP module could help better here.

Maybe, you'd even want to generalize by always making it so that in nixvim, options that aren't accepted by the setup are then attempted to be added to the plugin's table.

I'm not sure what you mean by this, since the plugin settings table is what is passed to the setup function.
As for options unknown to nixvim, these are included in the table passed to setup (as-per RFC42) for any module that has been written/refactored recently.

The chances of me implementing this myself dropped since I'm more fine interspersing lua code throughout my nixvim config.
Even though this feature is too my knowledge, still unimplemented, I'm fine with closing it.

Even though this feature is too my knowledge, still unimplemented, I'm fine with closing it.

If you think others may find it useful, you're welcome to leave it open and "unsubscribe" if you're not interested in notificatione. Otherwise if you think it has no value, closing is fine.


Cli flag name confusing

The module is offering an append option.
For reverse CHANGELOGs (blog style), it could be useful to offer a prepend option.

The log is either in append or prepend mode (the current behaviour)

You mean that prepend mode is the default mode.
Append mode can be choosen by the -a option.
Right?

Yeah

Ok, I tested it, prepending is possible.
It is however a bit complicated to have this behaviour. As far as I tested, we are obliged to specify the prepended file twice!
conventional-changelog --preset angular --context changelog.json --infile CHANGELOG.md --outfile CHANGELOG.md --release-count 1

In fact, the overwrite option allows to prepend the file:
-w, --overwrite           Overwrite the infile

The resulting command line is then:
conventional-changelog --preset angular --context changelog.json --infile CHANGELOG.md --overwrite CHANGELOG.md --release-count 1

But using an overwrite parameter for prepending is really confusing as it is not overwriting at all.
Maybe the parameter name should be changed as the following:
-s, --same           Ouputting to the infile in prepending mode

In fact, the most confusing thing is that it is the --release-count that set if the file will be overwritten or not.

--release-count 1 => file prepended
--release-count 0 => file overwritten

I agree the flag names might be a bit confusing

Also we should probably remove --raw-commits-opts, --parser-opts and --writer-opts and expose useful options of them with each single flag. --context can still be a json file.

@oupala you happy with the cli help message?
https://github.com/stevemao/conventional-changelog-cli/blob/master/cli.js#L13-L46

@stevemao Yes, it's good. Except that you kept the spelling mistake I made: change Ouputting to Outputting.
You also use camelCase sometime while you're using lowercase sometime. For example sameFile and infile and outfile (see https://github.com/stevemao/conventional-changelog-cli/blob/master/cli.js#L50-L52).

Good catch @oupala !
infile and outfile are kinda convention? but samefile looks weird. Thoughts?

samefile does not look weird to me. But it might be a question of personal feeling.
I don't really mind about this variable name. It was just in case you did not realized you were using difference camelCase styles.
In my opinion, using camelCase and lowercase looks weird to me. But is is not that important.

Will probably keep them like this for now as I can find reference of infile and outfile. But other values are camelCased
https://github.com/substack/node-browserify#usage

If you have a look at advanced Options from https://github.com/substack/node-browserify#usage, we mayeb should use --same-file instead of --sameFile.
It would be more consistent.

It is --same-file

It converts to camelCased property.

Ok then, it's good.


Blocker fails when searching on google because of the redirect link

If you perform a google search for one of the blocked sites, or it shows up there accidentally in one of the searches, the site will still open up, although visually broken because of the subcomponent blocking.
For example searching a porn site like PornHub by name and then clicking on the first link in google search opens up the site.
It may be possible to still block the sites by using a redirect prefix or something, but I'm not exactly sure how.

Thank you for this @defa02005.
I'm on a Mac with our default hosts file, and I can access Pornhub.
I run the following bash script to download latest hosts with the porn hosts extensions
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
curl "https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts" | sudo tee /private/etc/hosts
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

When I run this, I can't access PornHub anymore.  This is an immediate effect, because I explicitly flush cache in the script.
I then search Pornhub in Google. following your steps.  I can't access Pornhub.
Therefore maybe you have pornhub.com domains in your DNS or browser caches?

It's strange since I always use incognito on chrome(the extension is enabled in incognito), so I don't think that's possible.
I'm on a corp laptop. I think that is the reason for this behaviour. Closing this bug. Thanks for looking into this, and for the hostlist in general.


MudCollapse: Remove aria-expanded binding

Description

aria expanded is not allowed on divs. It should be handled by the button that controls the collapse.

Elements must only use allowed ARIA attributes: ARIA attribute is not allowed: aria-expanded="true"
<div aria-expanded="true" aria-hidden="false" class="mud-collapse-container mud-collapse-entered mud-navgroup-collapse" style="height:auto;">

See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded#buttons
Reverts part of #9059 and Resolves #9711
How Has This Been Tested?

Type of Changes

[X] 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 not work as expected)
[ ] Documentation (fix or improvement to the website or code docs)

Checklist

[X] The PR is submitted to the correct branch (dev).
[X] My code follows the code style of this project.
[ ] I've added relevant tests.

Interesting! I assume having aria-expanded on a div is fine (or even encouraged) if it acts as a button (or the listed valid ARIA roles). In this case, since that's not the case, the change makes sense to me.


All survive...barely

Our warriors, even armed to the teeth barely manage to survive, thanks to the grossly OP weapons they started with and the pre-med action of Conan, who drank a Healing Potion as he charged into battle

Not many people know that Conan is pre-med. It's fairly obvious, when you think about it: he loves anatomy, surgery, and hematology.


[Event Request] Table 210 "Job Journal Line" - Field "Posting Date" - trigger OnValidate()

field(4; "Posting Date"; Date)
        {
            Caption = 'Posting Date';

            trigger OnValidate()
            begin

----------------------- ADD EVENT ----------------------
                IsHandled := false;
                OnValidatePostingDateOnBeforeCheckPostingDate(Rec, IsHandled);
                if not IsHandled then
----------------------------------------------------------

                     if not IsTemporary() then
                        TestField("Posting Date");

                Validate("Document Date", "Posting Date");
                if "Currency Code" <> '' then begin
                    UpdateCurrencyFactor();
                    UpdateAllAmounts();
                end
            end;
        }
...............

[IntegrationEvent(false, false)]
local procedure OnValidatePostingDateOnBeforeCheckPostingDate(var JobJournalLine: Record "Job Journal Line"; var IsHandled : Boolean)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Installing failed on windows 10

Installing<EMAIL_ADDRESS>failed.Hide output…

<EMAIL_ADDRESS>install C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron
node-pre-gyp install --fallback-to-build

Failed to execute 'C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release' (1)
C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr
`-- (empty)
node-pre-gyp ERR! Tried to download(500): https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v2.0-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(electron-v2.0 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack     at C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack     at C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe" "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release\serialport.node" "--module_name=serialport" "--module_path=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release"
gyp ERR! cwd C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\..\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron\build\Release' (1)
node-pre-gyp ERR! stack     at ChildProcess. (C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe" "C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\node_modules\arduino-upload\node_modules\serialport-builds-electron
node-pre-gyp ERR! node -v v6.9.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\package.json'
npm WARN apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr No description
npm WARN apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr No repository field.
npm WARN apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr No README data
npm WARN apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr No license field.
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\bin\node.exe" "C:\Users\tom\AppData\Local\atom\app-1.28.1\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\tom\.atom\.apm\.apmrc" "--userconfig" "C:\Users\tom\.atom\.apmrc" "install" "C:\Users\tom\AppData\Local\Temp\d-11866-22924-oti06s.srls68ncdi\package.tgz" "--runtime=electron" "--target=2.0.4" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport-builds-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs serialport-builds-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls serialport-builds-electron
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\tom\AppData\Local\Temp\apm-install-dir-11866-22924-w4fcsr.tbkuyxpqfr\npm-debug.log
npm ERR! code 1

Is the issue that the following file is unavailable: https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v2.0-win32-x64.tar.gz

@sergerold If it is, then it looks like it's a repeat of #40.

which should be fixed when updating to latest serialport dependency, but, you know, time...

@sergerold I was unable to replicate this. The only thing I can think of that would be different between our apm instiances would be build tools. Did you properly config apm for your msvs version and point it to python with apm config set msvs_version [your-year-here] and apm config set python [your-path]\python.exe? I don't know why that would change anything, but it's the only thing I can think of.

@rodrigocaus I ended up having to do a similar thing but I skipped the Node.js installation using this package. It's a bit fidgety and still requires some configuration but if anyone else needs to do this and doesn't wish to have 2 Node installs I gave a little bit of insight on that method.

@StaticRocket I don't use MSVS and don't know how to use it. I didn't think I needed it to install the arduino-upload package for atom - I recall using this package a while ago without using MSVS. Are there any instructions on what I need to do with MSVS?
Thanks

@sergerold If you followed rodrigocaus' instructions MSVS 2015 should have been installed. npm was automatically configured but apm may not have been. Simply send the command apm config set msvs_version 2015 and you should be good for MSVS. Then just be sure to config apm for python like stated above. apm acts as a wrapper for npm and if you do an isolated npm install it may need to be configured for apm, so you should expect to need to do the same for python.


tweepy.error.TweepError: [{'message': 'Application cannot perform write actions. Contact Twitter Platform Operations through https://help.twitter.com/forms/platform.', 'code': 261}]

I've made a bot who is working well but after a certain amount of time I keep getting this error and I don't know why:
tweepy.error.TweepError: [{'message': 'Application cannot perform write actions. Contact Twitter Platform Operations through https://help.twitter.com/forms/platform.', 'code': 261}]
My code: https://pastebin.com/XtmEHPFZ

The most likely cause of Code 261 is:

The App that you are using with the API does not have the proper permission level set for its access token and access token secret. Please navigate to the 'Keys and tokens' tab on the Twitter Apps dashboard and check the permission levels assigned to your access token and access token secret. If it is set to anything other than 'Read, write and Direct Messages,' then you are going to have to adjust the settings under the 'Permission' tab and regenerate your access token and access token secret to apply the new settings.

https://developer.twitter.com/en/support/twitter-api/error-troubleshooting
This is likely happening when you try to update you status.

Ok I will try thanks for the answer

The most likely cause of Code 261 is:

The App that you are using with the API does not have the proper permission level set for its access token and access token secret. Please navigate to the 'Keys and tokens' tab on the Twitter Apps dashboard and check the permission levels assigned to your access token and access token secret. If it is set to anything other than 'Read, write and Direct Messages,' then you are going to have to adjust the settings under the 'Permission' tab and regenerate your access token and access token secret to apply the new settings.

https://developer.twitter.com/en/support/twitter-api/error-troubleshooting
This is likely happening when you try to update your status.

I just what you send so if I understand well I need to pay to have a better api?

Like it says, you simply need to use the proper permission level. It has nothing to do with paying.

Like it says, you simply need to use the proper permission level. It has nothing to do with paying.

Ok thanks and I have another question what is the difference between standard app and standalone app?

That's not relevant to this issue, but see https://developer.twitter.com/en/docs/apps/overview.


Remove broken link

Will resolve #545

  Link to the durations component on the patterns page shouldn't be there


Any way to get this working on windows 10?

Hi!
This app is built on Electron, so the server application would run on windows. However, the app gets Zoom status using AppleScript, which runs only on Mac.
By using utilities such as https://github.com/oldjohngalt/ZoomStatus, this may work on windows 10, I think.

Thank you I have had some luck with this but using python is not ideal, do you know if this could be done in powershell?