css and protected directory

I am new in programming by the way my major field is civil engineering but i am learning code for myself also and want to contribute in  project across the globe.
I am trying  PH7CMS DATING for learning and what i found is , the css is not working . when I applied custom css code (bootstrap 4.4) then only general setting was displayed in admin homepage.
more, the file manager system ( public file and protected files) is also not working in my chrome v 81.04.
what i expected is , no doubt to say that cms dating software is so far so goodd but it still needs improve in admin panels and the css design.
moreover, please check screesnshot attached.
I Heartly thank you.

Hey @ph7ali!
Welcome to the community! 🎉
Can you check for me if the Apache .htaccess has been correctly transfered to the root directory where pH7CMS is installed?

Yes i checked  it first.  I removed it so it shows first page.. then i put my own htaccess with just 3 to 4 lines  so it worked till homepage and after it it shows again same error. After it, i added new line of indexes so it worked. . But the problem later it became like malfunction and unsecured.  So What i did is  removed a small piece of code from htaccess. It was  for apache  version.   But I don't understand that my local server is running well its all services and function which is older version.  While my live host server is latest.  For me , Just need to work for css and few things in admin panel.  In admin panel i cannot deleted or aprove the users   . So i need to work on it in my way if i could find a solution.
For my opinion, sonce an admin is a boss and master controller for a website  so the admon panel must be 0 failure chance. . Becaus if something wrong happens  nothing will be left  jst bcuz of a singke small mistake..

@ph7ali Hi !
The problem you are getting here is one that seems to be happening pretty often.
However we'd need at first that you do part of the job to get helped.
When you say "I removed some line","I changed some other","It kinda worked"... It is pretty hard for anyone to give you a hand there.
It sound like "Could you build me something like a bridge but underground, but not a tunnel. It's kinda to pass wire but not really either". I think you get the point here...
The clearer you are, the more chance you'll have to get helped.
We are all volunteers around here and we'll do our best. But the easiest you make it, the more chance you'll get to have a helping hand.
If you write in a clear fashion then this would also make it somewhat easier.
Not all software offer forward compatibility so some code working with older version of Apache may not work with the newer one. This is why we actually have conditional sections.
I give you a link to a page we wrote that should help you a bit...
https://github.com/pH7Software/pH7-Social-Dating-CMS/wiki/How-to-ask-for-help
https://github.com/pH7Software/pH7-Social-Dating-CMS/wiki/[DRAFT]-Problem-Getting-Assets-(CSS-JS)-cURL
If you like the software, you can add a star on Github, that would be very nice from you and a reward for all those years of labor.

@ph7ali You can post some screenshot. This would be more useful than just saying you get error.

dear all , I am  seeking your guidence at all. I did following thing to fix it. I also request you to let me know if i did something wronng. Alike my above post i tried to explain best as i can.

uploadeded folders on live server normally without any failure or error.

the browser shows " Internal Server Error 500
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at<EMAIL_ADDRESS>to inform them of the time this error occurred, and the actions you performed just before this error."
More information about this error may be available in the server error log.
3.The htaccess is removed

website installed
It show the text version of user index  and if i click to process more , it showed the error 404.(for example:page url/page.php not found)

the htaccess is places then, in same folder where i installed the site in my case folder was /public/"dating(installation folder)"

I got internal server error again checkd log then added handler application x-httpd-php70

uncomment and added  into root directory rewrite base  /dating/

I placed htaccess in root and found same errors 500 like in the step 2

I rearrange some code as following

""  AddHandler application/x-httpd-php70 .php

RewriteEngine On
RewriteBase /dating/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

Options +FollowSymLinks
Options -MultiViews -Indexes

 "
at the top of file just above the php flag url off <in myy case above the line 19>

It worked and logged into admin panel and went to users to delete or any operation for the users then it showed another message " Wrong parameter in URL!"

12 at last, i put following at the top
""
AddHandler application/x-httpd-php70 .php

RewriteEngine On
RewriteBase /dating/
RewriteCond %{REQUEST_FILENAME} !-f ( line 665 of original htaccess)
RewriteCond %{REQUEST_FILENAME} !-d

Options +FollowSymLinks
Options -MultiViews -Indexes

"
13.finnally, it is working along with css and its function till the time i post at.

Hello,
I have the same problem as Ph7ali. No files have been modified. Ph7cms is in version 15.4 hosted on a shared server with IONOS / 1 & 1, I tested on two versions of PHP (7.2 / 7.3) with the same result. The solution given here "[DRAFT] Problem Getting Assets (CSS JS) cURL" does not work. I get 500 errors when I click on any link. However when I install locally with Uwamp everything works fine. I attach a screenshot of the result after installation.

(Sorry for my English, it's a google translation).
Thanks for your help.


Added Javadocs to library

Depends on #1.
Doesn't include automatic javadoc generation. That is addressed in #5.

Build fails because Travis isn't configured until #2.

:+1:

Looks good!


ExplorerView#getActiveFile only uses file-uris

Trying to understand why remote files aren't reveal in the explorer brings me to this: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/files/browser/views/explorerView.ts#L363. Unclear why and why we don't try to lookup a uri in the explorer model?

/cc @bpasero for clarification

Yes I think this check is bogus now that other resources are shown in the explorer. The intent is to show and reveal the active file of the editor in the explorer. I think the explorer view model would be fit enough to deal with any schemes now.

@isidorn Can we tackle this for September? I would make the demo nicer

@jrieken yes, I can look into this today

@bpasero looking at the code @jrieken pointed out it is enough to just remove filter: 'file'.
The only way to match the resource agains the explorerModel is to compare uri, thus I would first need to get a uri which defeats the purpose, since that is all we want.

@isidorn I do not understand the problem, sorry.

@bpasero sorry for not being clear. There is no problem, I just propse a fix which I just pushed 6dc90eace42ae18437850354970af6fa4c4f5db5
Apart from this I question the use of a filter Shuold we try to remove this?

@isidorn ah sorry, I read your last comment wrong. yes I think we need to revisit every use of this filter thing and make sure to get rid of it if possible.

Ok I can look into the filter. My commit should fix this issue though -> closing

Thanks Isi


Validation of transactions submitted

Right now EVM gateway will forward transaction no matter the contents and rely on EVM Core to validate it and process it. We should validate the transactions in EVM gateway to prevent invalid transactions being forwarded but also to do further validation based on configuration.
Some rules should be implemented:

Check that the transaction submitted doesn't have gas price set that is lower than the minimum accepted by EVM GW config
(think about other validation rules, reference go-eth implementation).

Another validation we should add is the gas limit isn't beyond the maximum allowed.

The transaction validation logic from Geth: https://github.com/ethereum/go-ethereum/blob/master/core/txpool/validation.go#L202


Support historical data

Fixer.io provides historical rates from any day since 1999 (e.g: http://api.fixer.io/2015-10-20).
It should be fairly simple to support this. Usage might look something like:
Fixer.Convert(Symbols.USD, Symbols.GBP, 5000, new DateTime(2015, 10, 20));
Fixer.Rate(Symbols.USD, Symbols.GBP, new DateTime(2015, 10, 20);

Resolved by #4


Task - DwC-A Workbench - Add message and error handling to dropzone

When I drop a zipped archive onto the dropzone, then I the request (may) raise:

[x] DarwinCore::EncodingError - No support for encodings other than utf-8 or utf-16 at the moment, but the interface does not catch and report failed drop.
[x] TypeError - no implicit conversion of nil into String:

Add handling for these and:

[ ] Add message in Dropzone to indicated what is expected (a zip?)

DarwinCore::EncodingError - No support for encodings other than utf-8 or utf-16 at the moment, but the interface does not catch and report failed drop.

This is now catch on backend-side but I need to submit code to dwc-archive gem to provide a message along with the exception to not make the validation message too programmers-oriented.


New waypoint+measure threadview

This is a complete rewrite of how the thread view works. My hope is the comments in the code is enough to describe whats going on. if not please point out whats confusing so we can update the comments

@keybase/react-hackers this is ready

seems basically fine on Windows

I just want to mention again it might be useful to think about removing the ordinal list altogether. In a world where the JS just hits the service everytime it wants to put messages on the screen, it doesn't seem necessary for the ordering information to be present in Redux at all. It seems like not having to maintain that list might be a perf win, as well as simplifying the code.

We likely are going to merge this in for the release candidate Monday. It's changed enough that it needs rereview

@react-hackers


Security fault reported as cmderr

Based on spec version v0.0.0, 2024-03-26 I have the following questions and note about security faults, as they can happen independent of abstract command (for example during halt on reset or hartreset) but they're logged in abstractcs.cmderr:

how will the external debugger know which hart the security fault applies to?
a) It could happen that one hart gets a security fault while another is executing an abstract command. In that case, what happens with regard to error priorities if the abstract command actually gets a non-security fault error?
The cmderr is no longer restricted to only being set if an abstract command fails, which is what it’s defined as in the original debug spec.

If it’s acceptable not to know which hart the security fault applies, I think these points should be explicitly stated in the spec so that it’s clear that this has been considered.

Yes, your points make sense. Raising error in abstractcs.cmderr for halt/reset/hartreset/keepalive/ndmreset operation seems not a good idea.
Probably we could propose to add extra two bits in dmstatus (at 0x11), anysecfault, allsecfault, to indicate the error caused by aforementioned operations?

I think that could work. For that case I have the following questions:

So the DM would be expected to track a per hart bit of secfault as well as the new secfault option in cmderr and sberror?
If a hart got a secfault during execution of an abstract command, would that set cmderr plus the hart specific secfault?
How would the hart specific secfault bits be cleared? Only by resetting the DM?
For a secfault caused by the debugger attempting ndmreset, which isn't hart-specific, what would that set? All existent harts' secfault bits? Or some separate general secfault bit? Or something else?

Discussed in this week's TG meeting - we will add extra bits to indicate the error caused by halt/reset/hartreset..etc
For ndmreset we probably don't need a dedicate error, debugger can always read the register and find out that the feature is not implemented.
@AoteJin  please update the proposal


Add action option to skip cache prune

Hello, wondering if it was possible to have the option to skip pruning the cache prior to saving it.
The prune completely removes all downloads and I saw in here that this is normally wanted behavior because re-downloading is often faster than downloading the cache.  But in my particular use case, I'm using a private registry with large packages and we pay egress fees to download.  So, GitHub cache is actually cheaper.
If this isn't a feature you want to have in this action, that is totally okay, I'll just continue to use actions/cache@v4.
Cheers and thanks!

I have opened a PR implementing this: #134

Thanks so much!


Wrong type for get_configuration keys

Expected Behavior
Expecting keys parameter in get_configuration is List[str] or Tuple[str,...]
Actual Behavior
Type definition for keys parameter in get_configuration is str, but all examples using list parameters, e.g. ['key1'].
Steps to Reproduce the Problem
Look at source code.
Release Note

RELEASE NOTE: FIX Wrong typing for keys param in get_configuration

@ryou90 do you want to open a PR for this and fix it? :)


GDScript: Fix type highlighting after whitespace

Fix regression from #86176.
Reported by @nlupugla here.

Before:

After:

There is a small quirk in highlighting incomplete keyword statements, but I don't think it's important:

It it doesn't "color things red" after in like... the letter "a" after writing and a it's fine I think.

Thanks!


[Dashboards] update 1.1 manifest to use tags

Description
Update OpenSearch Dashboards 1.1.0 manifest to use git tags.
Signed-off-by: Kawika Avilla<EMAIL_ADDRESS>Issues Resolved
n/a
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

In #896 we replaced these with saying tags explicitly, should do it here too please.


Fixes on the Grid Energy multiplier

Fixed on the meter grid energy in/out multiplier

The changes as discussed in #12 gives more accurate value to the meter grid energy import and export. Tested by comparing with the readings from my ShellyEM CT clamp.
These entities can be used to measure grid in HA Energy dashboard.

Grid Energy In Total
Grid Energy Out Total


opt use NUMERIC_PRECEDENCE in int div

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run compile

run buildall


MGMT-18997: Use downward API to acquire namespace

Rather than get the namespace from the service account static files we are able to get it from an environment variable.  This benefits being able to run the controller from the command line for testing purposes.

/cc @pixelsoccupied

/lgtm

I think you need to update the clusterversion of the bundle make bundle

I think you need to update the clusterversion of the bundle make bundle

yes, of course.  Sorry... hit commit too quickly!

/lgtm
Question outside the scope of this pr:
Why is the manager watching resources in all namespaces? What you are introducing on this pr is a common pattern to narrow the scope of an operator https://sdk.operatorframework.io/docs/building-operators/golang/operator-scope/#configuring-watch-namespaces-dynamically.

Why is the manager watching resources in all namespaces? What you are introducing on this pr is a common pattern to narrow the scope of an operator https://sdk.operatorframework.io/docs/building-operators/golang/operator-scope/#configuring-watch-namespaces-dynamically.

That's a good question.  I don't have the answer/history on this... my assumption is that we are watching other cluster resources on the provisioning side of things that do not live in our namespace.

/approve


erorr in FF's Main.hs

Latest commit won't build, with this error:
example/Main.hs:8:19:
Module ‘FF.Input’ does not export ‘parseDomain’
Is this because I shouldn't "cabal install", but rather use runhaskell or ghci?

I've been working in ghci, loading in that test file I sent you a while
back.
—
Reply to this email directly or view it on GitHub
https://github.com/elliottt/story/issues/1.

Well, I think that this issue is probably not too relevant anymore, as I've re-started development from a clean slate :)
I have added an executable that builds and will output grounded domain/problem combinations though, which is a start on the road to actually processing interesting problems!


Notification dismissed

How to detect if a notification has been dismissed?

@darshil123332
Your question is better suited for support channels like StackOverflow, so please ask the same there.
Closing from here.


[電源の BI および ExpressRoute] needs to be replaced with [Power BI と ExpressRoute]

https://docs.microsoft.com/ja-jp/office365/enterprise/managing-office-365-endpoints
[電源の BI および ExpressRoute] → [Power BI と ExpressRoute]
Power BI と ExpressRoute

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

ID: 8762d73c-32fc-a4f9-162a-b81ae4052ea3
Version Independent ID: 554cc99d-b929-8db0-7ab7-0f666438e8cf
Content: Managing Office 365 endpoints
Content Source: Enterprise/managing-office-365-endpoints.md
Service: o365-administration
GitHub Login: @JoeDavies-MSFT
Microsoft Alias: josephd

@hyoshioka0128 - thanks for the feedback, I'll get this over to the Enterprise content team for consideration.

@hyoshioka0128 The link text has been updated. Thanks for letting us know.


Shuffle buttons and other entities are unavailable.

Hi,
For some reason my shuffle button entity is showing up like this:

I am not too bothered about the other entities but it would be nice to get them working too.
This is for a Echo Show

They are active when you actually have something to shuffle or display.

They are active when you actually have something to shuffle or display.

My Echo has been playing my playlist for 10 minutes and the button hasn't become active the whole time.
Is there another way to shuffle Apple Music playlists?

Is it active in the Alexa app?

Is it active in the Alexa app?

it isn't is this to do with Apple Music?

Yes, we can only emulate what the Alexa app can do. If it's not available there, we can't do it.

As a work around I made a routine that shuffles the playlist and ran it with this integration. The routine I made was
Customised > "Alexa, shuffle playlist "


Unable to sign up for Insomnia with company email

Expected Behavior
I'm reaching out because my team at Mercury is currently blocked by an issue on Insomnia.
We are trying to create a team subscription to Insomnia. In order to do that, each one of the team members needs to create an individual Insomnia account with their work email.
Actual Behavior
However, whenever I try to Sign Up with my Mercury email address, I run into an "unexpected internal server error"

I'm pretty sure this is an internal issue on Insomnia. This error is different from the error that occurs if I re-enter my password incorrectly, for example.
I have been able to create an account for my personal email address without any issue.
Reproduction Steps
No response
Is there an existing issue for this?

[X] I have searched the issue tracker for this problem.

Additional Information
No response
Insomnia Version
2023.2.0
What operating system are you using?
macOS
Operating System Version
Apple M1 Max (MacOS 13.4.1 (22F82))
Installation method
Download from Insomnia REST
Last Known Working Insomnia version
No response

We recognized the cause for this issue. We will add a fix to it shortly.

You may try again this time, but we are wondering if you ever signed up in February and deleted an account.

is it not possible to just re-register?

You can re-register.


Allow VFIO devices to be passed through as VFIO devices

This patches series implements a fix for https://github.com/kata-containers/agent/issues/833.
It's based on pull requests for other issues, specifically https://github.com/kata-containers/agent/pull/782 and https://github.com/kata-containers/agent/pull/836, so those should be merged first.
This series on its own won't do anything without corresponding host-side fixes for https://github.com/kata-containers/runtime/issues/2938 which I'm still polishing for a PR.

/test

Adding a comment here as a reminder to go through this in the next few days.
@devimc, regardless of how many other reviewers will review this one, I'd appreciate your input before merging this series.

New push fixes some of Christoph's comments (others I still need to look at).
I now have a first draft of the kata-runtime changes which go with this at https://github.com/kata-containers/runtime/pull/2963

New push fixes some of Christoph's comments (others I still need to look at).
I now have a first draft of the kata-runtime changes which go with this at kata-containers/runtime#2963

Cool, I will look at it. I will also update the comment I made regarding the runtime part with your link.

New update is a substantial rework, rebased on #850

/test-ubuntu

Folks, this PR has been stale and I'm closing it as we're walking towards the final 1.13.0 release of the kata-containers-1.x.
From now on, all the development will happen as part of https://github.com/kata-containers/kata-containers/ and fixes should be provided to that repo.
Thanks a lot for your contribution, we're sorry that for some reason it got stale, and we hope to see you around for new adventures in the kata-containers-2.x land.


pb push fails when no message is given.

Hello,
I really loved this tool. I played with it for a while. This is what I encountered.

The tool doesn't send the message after reading one or multiple lines of input. I have attached a screenshot of the problem I faced.

Also, echo "Hello" | pb push sends an empty push with title "Note" and empty body.
I might be wrong. @r-darwish Could you please take a look at it?
Also, I would love to contribute. In case if this is a legitimate issue, may I work on this?

Thank you.

Ctrl+C terminates the program. Ctrl+D should work

Hi @r-darwish , Ctrl+D doesn't send any push message, but while trying Ctrl+Z terminates the command and sends an empty push "Note".

Should be fixed in version 0.7.5. Thanks for reporting


GUI render weird on windows

Hi,
I'd like to try this project, but gui is wired, looks like some resolution error:

OS: win7 x64
Resolution settings:

Hi eromoe, this is caused by some display problem of framework tkinter. There are two ways to solve it:

You can make the window full screen or drag the edge to enlarge the window.
If the first method fails, just set the font size smaller, by modifying the 54th line of the code:
"self.textRow = 20", set the number as 18 or other smaller number.

Please tell me if you success or fail after trying those method.
Thank you very much.

Both work, thank you!


AppVeyor build problems

Currently our build is broken, see https://ci.appveyor.com/project/JayBazuzi/pash/build/0.0.216
Need to fix that.

It's already night at my location, but I'll try to take care of it tomorrow if nobody else wants to do it before.

Apparently the build machine has a newer version of the PowerShell assemblies which require .NET 4.5. Maybe we could either try to force AppVeyor to use an older OS on the build machine, or build against the current assemblies by increasing our TargetFramework. I'm not sure whether we actually want to do the latter, though.

I thought maybe we could ask AppVeyor to run on a downstream OS, but apparently they only support WS2012R2. So we'll have to deal with that.
My hesitation around .NET 4.5 is compatibility with other systems.
How is Mono's 4.5 support?
How 'bout Travis? They officially support recent versions of Mono, according to https://docs.travis-ci.com/user/languages/csharp/#Choosing-Mono-version-to-test-against.
We should give it a try and see if things work.

http://www.mono-project.com/docs/about-mono/compatibility/
It seems that .NET 4.5 have good support on Mono 4.0+. I can remember some problems regarding generic Array.Empty<T>, but that's all.
I've been  testing .NET 4.5 project on Travis, here's a .travis.yml example. mono: latest does the right thing.

Moved to .NET v4.5 with PR #424


Closing Observatory quits Flutter app on IOS emulator

Steps to Reproduce
I'm running my Flutter app on a Macbook, with an IOS emulator (iPhone 6s Plus). I'm starting my app and observing console logs through Atom. While my app is running, if I press the Observatory button, it opens a webpage in Chrome showing me the observatory stats. However, as soon as I close this page, my app crashes with the error messages below.
Flutter Doctor
[✓] Flutter (on Mac OS, channel alpha)
• Flutter at /Users/emshack/vanadium/flutter
• Framework revision 0eab5e6 (4 days ago), engine revision f790903
[✓] Android toolchain - develop for Android devices (Android SDK 23.0.2)
• Android SDK at /Users/emshack/Library/Android/sdk
• Platform android-23, build-tools 23.0.2
• Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
[✓] iOS toolchain - develop for iOS devices (Xcode 7.2.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 7.2.1, Build version 7C1002
[✓] Atom - a lightweight development environment for Flutter
• Atom installed; Flutter plugin version 0.2.1
Logs and Crash Reports
SpringBoard: HW kbd: Failed to set (null) as keyboard focus
com.apple.CoreSimulator.SimDevice.894BD26A-F0F6-4633-AD4A-E1FA78B3FA28.launchd_sim[1027] (UIKitApplication:com.yourcompany.testapp[0xc230]: Service exited due to signal: Broken pipe: 13
SpringBoard: Application 'UIKitApplication:com.yourcompany.testapp[0xc230]' exited abnormally via signal.
assertiond: assertion failed: 15E65 13C75: assertiond + 12188 [8CF1968D-3466-38B7-B225-3F6F5B64C552]: 0x1
(last message repeated 1 time)
assertiond: notify_suspend_pid() failed with error 7
SpringBoard: Reply Error: Connection interrupted
routined: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104

Thanks for the report!

This was fixed with a recent Dart roll. Please reopen if you run into this again.


[Bug]: react/no-danger — TypeError: Cannot read properties of undefined (reading 'split')

Is there an existing issue for this?

[X] I have searched the existing issues and my issue is unique
[X] My issue appears in the command-line and not only in the text editor

Description Overview
Hi team, thanks for your work on this lib 🙏

Using react/no-danger rule with option ['error', { customComponentNames: ['*'] }] cause a command-line error.
Documentation about it: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-danger.md

Here is how I use the rule in my eslint configuration:
    'react/no-danger': ['error', { customComponentNames: ['*'] }],

When I run eslint ./src on my project, an error occurred (only using customComponentNames option):
❯ eslint ./src

Oops! Something went wrong! :(

ESLint: 8.57.0

TypeError: Cannot read properties of undefined (reading 'split')
Occurred while linting /Users/sylvain/react-app/src/App.tsx:74
Rule: "react/no-danger"
    at Minimatch.match (/Users/sylvain/react-app/node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js:743:9)
    at minimatch (/Users/sylvain/react-app/node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js:125:42)
    at /Users/sylvain/react-app/node_modules/.pnpm/eslint-plugin-react@7.37.0_eslint@8.57.0/node_modules/eslint-plugin-react/lib/rules/no-danger.js:82:83
    at Array.some (<anonymous>)
    at JSXAttribute (/Users/sylvain/react-app/node_modules/.pnpm/eslint-plugin-react@7.37.0_eslint@8.57.0/node_modules/eslint-plugin-react/lib/rules/no-danger.js:82:68)
    at ruleErrorHandler (/Users/sylvain/react-app/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/linter.js:1076:28)
    at /Users/sylvain/react-app/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/Users/sylvain/react-app/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/Users/sylvain/react-app/node_modules/.pnpm/eslint@8.57.0/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
/Users/sylvain/react-app:
Exit status 2

This error is triggered by this line https://github.com/jsx-eslint/eslint-plugin-react/blob/ec27e20c67c125321d645a9eaa461dec7dc65421/lib/rules/no-danger.js#L82
Actually I don't know why, but sometimes functionName is undefined https://github.com/jsx-eslint/eslint-plugin-react/blob/ec27e20c67c125321d645a9eaa461dec7dc65421/lib/rules/no-danger.js#L80
Expected Behavior

Locally I patched eslint-plugin-react like this:
diff --git a/lib/rules/no-danger.js b/lib/rules/no-danger.js
index fb702632082068b08954ebb849d0994da6fac5b6..be0f82185cd9bc8358f29f5a19104ad3343996d7 100644
--- a/lib/rules/no-danger.js
+++ b/lib/rules/no-danger.js
@@ -77,10 +77,9 @@ module.exports = {

     return {
       JSXAttribute(node) {
-        const functionName = node.parent.name.name;
-
-        const enableCheckingCustomComponent = customComponentNames.some((name) => minimatch(functionName, name));
+        const functionName = node.parent.name.name ?? '';

+        const enableCheckingCustomComponent =  customComponentNames.some((name) => name === '*' || minimatch(functionName, name));
         if ((enableCheckingCustomComponent || jsxUtil.isDOMComponent(node.parent)) && isDangerous(node.name.name)) {
           report(context, messages.dangerousProp, 'dangerousProp', {
             node,

The first change is made to prevent functionName from being undefined (although this doesn't explain why).
The second change is made to skip the check on component names if we defined the rule on '*'.
I can make a PR if you want.
eslint-plugin-react version
v7.37.0
eslint version
v8.57.0
node version
v20.16.0

Can you provide the code that this is crashing on?

I have the same issue and it seems that there are two conditions that need to be present for this error to be thrown:

The component is rendered using dot notation.
The component receives props.

import React from 'react';

const Component = () => <></>;

const NestedComponent = () => <></>;

Component.NestedComponent = NestedComponent;

export const RenderTest = () => <Component.NestedComponent key=""/>;

@halouvi that test case passes for me. What eslint config are you using?

@ljharb these are my eslint package versions:
"eslint": "8.27.0",
"@typescript-eslint/eslint-plugin": "5.30.5",
"@typescript-eslint/parser": "5.30.5",
"eslint-config-airbnb-typescript": "16.2.0",
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-typescript": "2.7.1",
"eslint-plugin-filenames": "1.3.2",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.37.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-styled-components-a11y": "0.1.0",

And this is my eslintrc.json:
{
    "root": true,
    "env": {
        "browser": true,
        "es6": true
    },
    "extends": [
        "airbnb-typescript",
        "prettier",
        "plugin:styled-components-a11y/recommended"
    ],
    "parserOptions": {
        "ecmaFeatures": {
            "jsx": true
        },
        "ecmaVersion": 2018,
        "sourceType": "module",
        "project": "./tsconfig.json",
        "extraFileExtensions": [".html"]
    },
    "parser": "@typescript-eslint/parser",
    "plugins": [
        "react",
        "react-hooks",
        "jsx-a11y",
        "filenames",
        "import",
        "@typescript-eslint",
        "prettier"
    ],
    "rules": {
        "react/require-default-props": [0],
        "import/prefer-default-export": "off",
        "no-debugger": [1],
        "no-console": [1],
        "no-return-await": "off",
        "no-plusplus": "off",
        "no-prototype-builtins": "off",
        "no-underscore-dangle": "off",
        "no-use-before-define": "off",
        "arrow-body-style": "off",
        "@typescript-eslint/no-use-before-define": "off",
        "camelcase": "off",
        "react/button-has-type": [0],
        "react/no-unescaped-entities": [0],
        "no-param-reassign": [
            "error",
            {
                "props": false
            }
        ],
        "@typescript-eslint/indent": "off",
        "@typescript-eslint/camelcase": "off",
        "prefer-object-spread": "off",
        "react/no-danger": [
            "error",
            { "customComponentNames": ["*"] }
        ],
        "react/jsx-props-no-spreading": "off",
        "react/prop-types": "off",
        "react/jsx-fragments": "off",
        "react-hooks/rules-of-hooks": "error",
        "react-hooks/exhaustive-deps": "error",
        "lines-between-class-members": "off",
        "class-methods-use-this": "off",
        "filenames/match-exported": 2,
        "import/no-extraneous-dependencies": [
            "error",
            {
                "devDependencies": [
                    "**/*.stories.tsx",
                    "**/*.test.tsx",
                    "**/*.test.ts",
                    "./setupTests.ts"
                ]
            }
        ],
        "import/no-cycle": "off",
        "jsx-a11y/click-events-have-key-events": "warn",
        "jsx-a11y/interactive-supports-focus": "warn",
        "prettier/prettier": "error",
        "react/destructuring-assignment": "off",
        "jsx-a11y/label-has-associated-control": "off",
        "jsx-a11y/label-has-for": "warn",
        "jsx-a11y/mouse-events-have-key-events": "warn",
        "jsx-a11y/no-static-element-interactions": "warn",
        "jsx-a11y/alt-text": "warn",
        "styled-components-a11y/accessible-emoji": "warn",
        "styled-components-a11y/anchor-has-content": "warn",
        "styled-components-a11y/anchor-is-valid": "warn",
        "styled-components-a11y/aria-activedescendant-has-tabindex": "warn",
        "styled-components-a11y/aria-props": "warn",
        "styled-components-a11y/aria-proptypes": "warn",
        "styled-components-a11y/aria-role": "warn",
        "styled-components-a11y/aria-unsupported-elements": "warn",
        "styled-components-a11y/autocomplete-valid": "warn",
        "styled-components-a11y/click-events-have-key-events": "warn",
        "styled-components-a11y/control-has-associated-label": "warn",
        "styled-components-a11y/heading-has-content": "warn",
        "styled-components-a11y/img-redundant-alt": "warn",
        "styled-components-a11y/interactive-supports-focus": "warn",
        "styled-components-a11y/label-has-associated-control": ["warn"],
        "styled-components-a11y/label-has-for": "off",
        "styled-components-a11y/media-has-caption": "warn",
        "styled-components-a11y/mouse-events-have-key-events": "warn",
        "styled-components-a11y/no-access-key": "warn",
        "styled-components-a11y/no-autofocus": "warn",
        "styled-components-a11y/no-distracting-elements": "warn",
        "styled-components-a11y/no-interactive-element-to-noninteractive-role": "warn",
        "styled-components-a11y/no-noninteractive-element-interactions": "warn",
        "styled-components-a11y/no-noninteractive-element-to-interactive-role": "warn",
        "styled-components-a11y/no-noninteractive-tabindex": "warn",
        "styled-components-a11y/no-onchange": "warn",
        "styled-components-a11y/no-redundant-roles": "warn",
        "styled-components-a11y/no-static-element-interactions": "warn",
        "styled-components-a11y/role-has-required-aria-props": "warn",
        "styled-components-a11y/role-supports-aria-props": "warn",
        "styled-components-a11y/alt-text": "warn",
        "styled-components-a11y/scope": "warn",
        "styled-components-a11y/tabindex-no-positive": "warn",
        "styled-components-a11y/html-has-lang": "off",
        "styled-components-a11y/iframe-has-title": "off",
        "@typescript-eslint/lines-between-class-members": "off",
        "@typescript-eslint/naming-convention": "off",
        "@typescript-eslint/keyword-spacing": "off",
        "@typescript-eslint/return-await": "warn",
        "curly": ["error", "all"],
        "react/jsx-key": ["error", { "checkFragmentShorthand": true }],
        "react/jsx-indent": "off",
        "react/jsx-indent-props": "off",
        "react/jsx-no-bind": "off"
    },
    "settings": {
        "import/parsers": {
            "@typescript-eslint/parser": [".ts", ".tsx"]
        }
    }
}

Thank you @ljharb to find how to trigger the issue.
Here is a sandbox that reproduce it. Uncomment <Component.NestedComponent /> and you will see eslint crashing.
https://codesandbox.io/p/devbox/react-no-danger-reading-split-error-9c2fy7?file=%2Fsrc%2FApp.tsx%3A5%2C1

Thanks, that helped!

@ljharb Thanks for the fix 🙏 Do you know when the next version containing this fix is scheduled to be released?

There's no release schedule, but probably within the next week or two.

@ljharb I don't mean to bother but do you think there's any chance of releasing a version this week?

I also encountered this problem now. If the release cannot be published yet, would you consider making a "canary"/"next" release, that is just the newest from the master branch? @ljharb

@chribjel no, that would be identical to just publishing the default branch.

@ljharb respectfully, is there a schedule for a version release? it's been two months now.

There's no release schedule

https://github.com/jsx-eslint/eslint-plugin-react/releases/tag/v7.37.3 has been released.

@ljharb Appreciate it! 🙏


[BUG] Centralite 3200-sgb

My CentraLite 3200-Sgb works fine for on off and power reporting but have a couple of issues.

it's discovered as a light not a switch resulting in it being in the light domain causing issues with Google home etc

power reporting after a while like 3 weeks decides to 10x the figure so what was 100w is now showing as 1000w not sure if ZigBee or HA fault. - removing the plug and then factory reset and readding it back fixes the issues till it happens again.

Note just factory resetting plug and readding without removing device does not temporarily fix the issue.
Expected behavior
Should be added as a switch and in the switch. Domain.
Power reporting to work like it does when first added for ever.
Screenshots

post zigbee inforrmation for  the device

post zigbee inforrmation for the device

Sorry I'm a big noob when it comes to this how can I get you the info you need?

The device reports itself as "device_type": "0x0100" which corresponds to ON_OFF_LIGHT in Zigbee specs.
To make it a switch, you would need to add the following in your configuration.yaml
zha:
  device_config:
    00:0d:6f:00:0f:3b:20:2d-1:
      type: "switch"

this would override the light as a switch.

as for the 2nd issue

power reporting after a while like 3 weeks decides to 10x the figure so what was 100w is now showing as 1000w not sure if ZigBee or HA fault. - removing the plug and then factory reset and readding it back fixes the issues till it happens again

going to need logs and isolating the steps which trigger/reproduce this effect. See https://www.home-assistant.io/integrations/zha/#debug-logging on how to enable logging.
I see to possibilities:

device just starts reporting wrong values
ZHA couldn't get corrrect multiplier and/or divisor for some reason, although once it gets it, it should keep the value cached.

When it happens next time, can you pinppoint when exactly it happened and if happened after a restart.
Read the following attributes of the "Electrical Measurement" cluster

"ac_power_divisor",
"power_divisor",
"ac_power_multiplier",
"power_multiplier",

Actually, read those attributes when device is reporting correct and incorrect measurements.
When it start reporting wrong values:

Does HA restart fix it
Does Config panel -> ZHA -> Pick the plug -> Reconfigure Device fix it? just make sure plug is available and not off the network

Right so the first issues I can just list them all and force it to think it's a switch? Will I need to reads them or anything or will it switch to a switch after a restart?
For your second post issues I'll get the info next time it happens but I can say now that a HA restart doesn't correct the issue neither does reconfiguring it.
Only way I know to fix it is remove device factory reset device and add back then it reports values correctly.

The device reports itself as "device_type": "0x0100" which corresponds to ON_OFF_LIGHT in Zigbee specs.
To make it a switch, you would need to add the following in your configuration.yaml
zha:
  device_config:
    00:0d:6f:00:0f:3b:20:2d-1:
      type: "switch"

this would override the light as a switch. You could use the same to change switches to light. the "key" in device config is the "ieee address" of the device, "dash" and "endpoint number". In some more specific cases you may have to ad "dash" + "cluster_id", eg 00:0d:6f:00:0f:3b:20:2d-1-6

Thanks this at least gets around the issue. The new smartthings plugs 2019 correctly show as switches from the get go at least. although the energy monitoring doesn't work gets detected as a sensor but just shows unavailable, power monitoring works though. Would it be possible to make it work or is energy monitoring not supported? would need some kind of UI to reset it etc.

as for the 2nd issue

power reporting after a while like 3 weeks decides to 10x the figure so what was 100w is now showing as 1000w not sure if ZigBee or HA fault. - removing the plug and then factory reset and readding it back fixes the issues till it happens again

going to need logs and isolating the steps which trigger/reproduce this effect. See https://www.home-assistant.io/integrations/zha/#debug-logging on how to enable logging.
I see to possibilities:

device just starts reporting wrong values
ZHA couldn't get corrrect multiplier and/or divisor for some reason, although once it gets it, it should keep the value cached.

When it happens next time, can you pinppoint when exactly it happened and if happened after a restart.
Read the following attributes of the "Electrical Measurement" cluster

"ac_power_divisor",
"power_divisor",
"ac_power_multiplier",
"power_multiplier",

Actually, read those attributes when device is reporting correct and incorrect measurements.
When it start reporting wrong values:

Does HA restart fix it
Does Config panel -> ZHA -> Pick the plug -> Reconfigure Device fix it? just make sure plug is available and not off the network

Right it happened again it seems that it is happening after a HA restart but the values for those clusters dont change between when its working and when its getting the wrong reading.
It also seems like it does sometimes fix it when HA restarts.
It seems to happen quite frequently anyway to fix it?

The device reports itself as "device_type": "0x0100" which corresponds to ON_OFF_LIGHT in Zigbee specs.
To make it a switch, you would need to add the following in your configuration.yaml
zha:
  device_config:
    00:0d:6f:00:0f:3b:20:2d-1:
      type: "switch"

this would override the light as a switch. You could use the same to change switches to light. the "key" in device config is the "ieee address" of the device, "dash" and "endpoint number". In some more specific cases you may have to ad "dash" + "cluster_id", eg 00:0d:6f:00:0f:3b:20:2d-1-6

Thanks this at least gets around the issue. The new smartthings plugs 2019 correctly show as switches from the get go at least. although the energy monitoring doesn't work gets detected as a sensor but just shows unavailable, power monitoring works though. Would it be possible to make it work or is energy monitoring not supported? would need some kind of UI to reset it etc.

Hi.
I am also having this issue with the ST plug showing as a Light and not a switch. I have put the code in my yaml file but its still showing as a light. Have i missed something? The device details of the plug are below.
Device info
3200-Sgb
by CentraLite
Connected via Electrolama Zigbee Coordinator
Firmware: 0x30065310
Zigbee info
IEEE: 00:0d:6f:00:0f:3b:1d:32
Nwk: 0xb77e
Device Type: Router
LQI: Unknown
RSSI: Unknown
Last Seen: 2022-02-07T20:52:05
Power Source: Mains

The device reports itself as "device_type": "0x0100" which corresponds to ON_OFF_LIGHT in Zigbee specs.
To make it a switch, you would need to add the following in your configuration.yaml
zha:
  device_config:
    00:0d:6f:00:0f:3b:20:2d-1:
      type: "switch"

this would override the light as a switch. You could use the same to change switches to light. the "key" in device config is the "ieee address" of the device, "dash" and "endpoint number". In some more specific cases you may have to ad "dash" + "cluster_id", eg 00:0d:6f:00:0f:3b:20:2d-1-6

Thanks this at least gets around the issue. The new smartthings plugs 2019 correctly show as switches from the get go at least. although the energy monitoring doesn't work gets detected as a sensor but just shows unavailable, power monitoring works though. Would it be possible to make it work or is energy monitoring not supported? would need some kind of UI to reset it etc.

Hi.
I am also having this issue with the ST plug showing as a Light and not a switch. I have put the code in my yaml file but its still showing as a light. Have i missed something? The device details of the plug are below.
Device info 3200-Sgb by CentraLite Connected via Electrolama Zigbee Coordinator Firmware: 0x30065310 Zigbee info IEEE: 00:0d:6f:00:0f:3b:1d:32 Nwk: 0xb77e Device Type: Router LQI: Unknown RSSI: Unknown Last Seen: 2022-02-07T20:52:05 Power Source: Mains

Sorry this is working. I had missed the -1: off the end of the address. Thanks for providing a solution


DCOS 1.8.8 Support

This is a WIP, still in testing, but getting it out for an initial review.

Hi @colemickens, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor. If you're full-time or an intern, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

Thanks @JackQuincy @raveeram for the catches. Looks like it's still not working, but probably closer. Check latest commits for the fixes. (Will squash eventually before merging).

Something I'm not seeing that I would expect is a change in the bootstrap id for 188. in 187 it is defined in custom data on line like so

content: 'BOOTSTRAP_ID=5b4aa43610c57ee1d60b4aa0751a1fb75824c083

@JackQuincy Thanks for the catch, testing now. Any reason that isn't parameterized out like the other "guid" values?

it wasn't as it didn't need to be. The other ones change based on number of masters. This one is consistent 1,3, or 5 masters

@JackQuincy hm okay. Thanks for the help here. Looks like everything is healthy.
Ran through the entire DCOS walkthrough... all works as expected.
ping @anhowe for another review


Add more information to helpdm embeds.

Implements part 1 of #1960

@Qwerty-133 What's your status on this PR?
Thanks!

Hey @Xithrius! I'll be finishing this up soon, thanks for the reminder

@Qwerty-133 Hey, been a while. Thoughts on reviving this PR?
Thanks!

Since this is quite old and there are a lot of conflicts since this was made before we moved to forum help channels, i'll close this. It probably also needs some more discussion about what parts are still relevant/need changing on the issue before continuing.


Use pylint in build

To make sure that code not styled correctly doesn't get into the repository, I would like to add pylint to the build process so build fails if there are style warnings.

All Python files directly under the hadiths/ folder are now under the inspection of pylint. Any new file added to this folder will also be automatically. But if new folders are created, then they will have to be added to the list of folders to be inspected for errors.


Bug Report: Fix Text in About Page

Reproduction steps
I went to the About page and encountered a typo in the 'Why Use AEC Library' section.

In the below sentence, the preposition 'by' is not the right one to use.

The software has been designed to be flexible and user-friendly by librarians and media specialists.

Expected behavior
The preposition 'by' needs to be changed to 'for'.
Hence, the sentence should be:

The software has been designed to be flexible and user-friendly for librarians and media specialists.

Actual Behavior
The sentence is using an incorrect preposition 'by'.
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

solved in PR #1276 @SauravMukherjee44 can you please check and merge the PR

solved in PR https://github.com/SauravMukherjee44/Aec-Library-Website/pull/1276 @SauravMukherjee44 can you please check and merge the PR


vds-time-slider should update while scrubbing

When scrubbing through the video using TimeSlider (I'm using React if that matters) the --vds-slider-fill-percent css var isn't updated until I lift the mouse button.

We'll be implementing a separate track for seeking while dragging. I'll open a new issue up for it.


Enhancement: Keep packages sorted in composer.json

This PR

[x] keeps packages sorted in composer.json

💁♂ For reference, see https://getcomposer.org/doc/06-config.md#sort-packages.

Thank you guys :)

Thank you, @Jan0707 and @Jean85!


Fix for data packages upload sequence

Please, specify which package should be uploaded first of them?
"300 - Supply chain - PIFB	Load this package after the PICH Supply chain package.
300 - Supply chain - PICH	Load this package after the PIFB Supply chain package."

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

ID: 3fc92d46-8f1c-dc72-82c0-dcbccf014c18
Version Independent ID: 934a9f55-fd2a-a08c-b8ce-cfd0c1fbb975
Content: Generate demo data by using data packages - Finance & Operations | Dynamics 365 | #MSDyn365FO
Content Source: articles/dev-itpro/data-entities/generate-demo-data-packages.md
Service: dynamics-ax-platform
GitHub Login: @ryansandness
Microsoft Alias: ryansand

I have typically done PICH before PIFB, but since they are both labeled as 300, we don't believe there to be any dependency and either could be run first.


fix(secret)remove implicit repo secrets and clean up secrets testing

This pr is to create a net-new pr for https://github.com/go-vela/types/pull/210, which was reverted in https://github.com/go-vela/types/pull/229. That pr was for a breaking change, that we decided not to introduce into an RC to be cut today.

It was an accidental merge. Just prior to it we decided to freeze current state across core repos for the RC unless they were dependency upgrades.

@KellyMerrick anything else needed here?


tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[3] = [202, 1] does not index into param shape [100,4,4]          [[{{node mrcnn_anchor_loss/GatherNd}}]]

Hi,
I am trying to train your model on on pretrained weights i.e mask_rcnn_coco.h5. I am using all the configuration provided by your environment file and requirement.txt file provideed in the repository.  However, it gives the error
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[3] = [202, 1] does not index into param shape [100,4,4]
[[{{node mrcnn_anchor_loss/GatherNd}}]].
Moreover, it changes to various numbers upon every attempt.like as under
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0] = [0, 5] does not index into param shape [100,4,4]
[[{{node mrcnn_anchor_loss/GatherNd}}]]
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0] = [0, 6] does not index into param shape [100,4,4]
[[{{node mrcnn_anchor_loss/GatherNd}}]]
Can you please help in this regard.
Regards

As the model architecture is not same as maskrcnn, you cannot use the weights directly. Check the layers and dimensions and see where you can use the pre-trained weights.

Thanks for the response. actually i am removing the 4 layers of pretrained weights by the following command during loading pretrained weights.
model.load_weights(model_path, by_name=True, exclude=["mrcnn_class_logits", "mrcnn_bbox_fc" , "mrcnn_mask", "mrcnn_bbox"]).
Moreover, can you please let me know that whether you have trained the model in the same pretained weight as of mask rcnn or not.

Additionally even training from scratch and not using any pretrained weight gives the same error too.

I have used the COCO pre-trained weights in my network.
Please check the dimensions of the input data you are providing, radar and RGB both. Check the paper, for more details on input.

But your available pre-trained (BIRANet1024w.h5) weights are not working directly with your code.

Hi, I have the same problem now, did you find the solution?

Facing same problem here


fix: Update copyright year

Update copyright year in governance related module
To fix issue #3094

BTW you do not finish all the changes. There are still other source files which need to be updated. Anyway I will merge this pull request.


Message is not passed to pinterest

Hi,
I am trying to share the photo and message to Pinterest through share via method. Photo is successfully passed but message is not passed.
This is my code
$cordovaSocialSharing.shareVia('com.pinterest','pinterest','events','imgUrl',null,
function(result){
console.log(result);
},
function(errormsg){
console.log(errormsg);
});
Thanks in advance,

Correct, that's Facebook policy. Meh.


Fix 2 typos in hints

s/find s client-side/find a client-side/
s/againt/against/

Thx for the corrections! 👍


gestalt-framework: version 1.5.1

working on the examples merge request right now

closing, too old


Modernize sample

What's in this PR?
This PR made a small improvement on the sample MainActivity.kt. Make it nicer and doesn't look like it gets abandoned.

This is just a simple update. I will merge this in. :)


Compiler crash: "`` at  has no type (Exception)"

Behavior
Compiler is not happy with the code below and is going to crash.
Notes
According to the error message, it may be duplicate of #7017, but I don't think so.
Example code
class MyClass
  @@connections = {} of String => Channel(String)

  alias Key = {String, Fiber}
  alias Value = { String, Int32 }
  @@fiber_connections : Hash(Key, Value) = {} of Key => Value

  def self.test(target : String, &block)
    fiber_target = {target, Fiber.current}
    channel = @@connections.fetch(target){ raise "UNFOUND" }
    db, call_count = @@fiber_connections.fetch(fiber_target){ {channel.receive, 0} }
  end

end

MyClass.test("default"){}

Current work-around
Strangely, initial call to hash setter will let the compiler compile. This code below COMPILE
class MyClass
  @@connections = {} of String => Channel(String)

  alias Key = {String, Fiber}
  alias Value = { String, Int32 }
  @@fiber_connections : Hash(Key, Value) = {} of Key => Value

  def self.init
    @@connections["t"] = Channel(String).new #< Any data in @@connections and it works!
  end

  def self.test(target : String, &block)
    fiber_target = {target, Fiber.current}
    channel = @@connections.fetch(target){ raise "UNFOUND" }
    db, call_count = @@fiber_connections.fetch(fiber_target){ {channel.receive, 0} }
  end

end

MyClass.init
MyClass.test("default"){}

Additional notes

Related to https://github.com/anykeyh/clear/issues/61
Real case where it happens can be found here: https://github.com/anykeyh/clear/blob/master/src/clear/sql/connection_pool.cr
The problem is no big deal in this real-case, since the "work-around" is the normal expected behavior.

Changing Channel to Channel::Buffered removed the crash.  I tried to play around with abstract, generic, abstract and generic etc.. but I can't reproduce unless with Channel as object :unamused:

It looks like this was fixed in 0.31 https://carc.in/#/r/8kw1


Made wharf-api v5.0.0 compatible

[x] I've added a new note in the CHANGELOG.md file, according to docs:
https://iver-wharf.github.io/#/development/changelogs/writing-changelogs
[ ] Wait for merge and release of https://github.com/iver-wharf/wharf-api-client-go/pull/29.

[ ] Make sure import references wharf-api-client-go master branch again.
[ ] Update CHANGELOG.md entry with the correct wharf-api-client-go version.

Summary
Aimed to change the code just enough to work with the aforementioned wharf-api-client-go update.
There should be no behavioral changes.
Motivation
Supporting wharf-api v5.0.0 faster and more smoothly when it gets released.
Keep up-to-date.

Pushed changes that should satisfy https://github.com/iver-wharf/wharf-provider-azuredevops/pull/49#discussion_r781021851


mirror node does not allow searching for block by 32 byte hash

Description
Etherscan allows for blocks to be searched using their 32 byte blockHash for example eth mainnet block 16490362.
However on hashscan the 48 byte blockHash has to be used for example hedera previewnet block 244702.
Hashscan should support the 32 byte blockHash as well.
Steps to reproduce
The above description is sufficient evidence of the issue.
Additional context
No response
Hedera network
previewnet
Version
<EMAIL_ADDRESS>Operating system
None

Since mirror node supports look-up using both 48-byte hash its 32-byte prefix:

https://previewnet.mirrornode.hedera.com/api/v1/blocks/c5549204a0fe23df12e374a7bff02725c818a4d96a05f2eceb94036e16d6544a
https://previewnet.mirrornode.hedera.com/api/v1/blocks/c5549204a0fe23df12e374a7bff02725c818a4d96a05f2eceb94036e16d6544ac7c03dc38f2acb0273aad6669d7fcc30

we should probably also support both forms in HashScan.


cryptomator: 1.6.7 -> 1.6.8

Description of changes

Update to latest version
Fix desktop entry not being installed  https://github.com/NixOS/nixpkgs/pull/160628#issuecomment-1085619716
Fix version number not displayed in about dialog https://github.com/NixOS/nixpkgs/pull/160628#issuecomment-1085619716

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

/cc @mannp

Result of nixpkgs-review pr 166927 run on x86_64-linux 1

1 package built:

cryptomator

'About' now shows the version 👍🏻 and not sure how to test the icons appearing in gnome, but I see your code adding it back and will test on release.

I just verified and the menu entry now shows up again on KDE Plasma including icon


[Bug Fix] Update test for DeleteCompanyCommand and LogicManager

Fix typos and test issues commented by Yingxuan in previous PR

For DeleteCommandParser, overwrite with PR#101

For DeleteCommandParser, overwrite with PR#101

I think can merge this PR first and then yours so that the condition is still checking if the num of argument == 2


TEP-0118: Add validation for matrix pipeline context parameter variables

[TEP-0090: Matrix] introduced Matrix to the PipelineTask specification such that the PipelineTask executes a list of TaskRuns or Runs in parallel with the specified list of inputs for a Parameter or with different combinations of the inputs for a set of Parameters.
To build on this TEP-0018 introduced Matrix.Include, which allows passing in a specific combinations of Parameters into the Matrix.
This PR validates that matrix pipeline context  parameter variables including include params are used appropriately.
Note: This is still in preview mode. Other forms of validation and implementation logic will be added in subsequent commits.
/kind feature
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[x] Has Docs included if any changes are user facing
[x] Has Tests included if any functionality added or changed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including
functionality, content, code)
[x] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[x] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
[x] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

/lgtm
Thank you @EmmaMunley 👍 Also, please highlight the changes in the PR description since it's a part of a bigger effort.
This PR validates that matrix pipeline context parameter variables including include params are used appropriately.


[BUG] Trinkets cannot recharge themselves

I have a trinket with a recharge function. While holding another item, it can recharge that item successfully. But if it tries to recharge itself (i.e., I hold the trinket in the offhand with no other items in hand) it fails, claiming, "Recharge Item needs a rechargeable item in the other hand but got nothing."
Wiresegal said this was surprising and I should report it.

trinkets also seem to be unable to erase themselves. And they also don't seem to be able to write to themselves,
Trying to use a trinket to cast Craft Trinket results in
"Craft Trinket needs Trinket in the other hand but got nothing"
instead of
"Craft Trinket needs a place to write iotas to in the other hand but got 1x [Trinket]"


Added check and replace for record name "@" to "" in getMatchingRecord

Addresses #5
The API request expects a blank rather than "@" when looking up records for the root domain.

👋 thanks for the PR, I ended up doing this in #12 as there was some missing functionality for both:

Creates
Updates

I also wanted an integration test to ensure things actually worked. Will be including this in my next release

Thanks a lot! I didn't change those others as, from my testing, unlike with getMatchingRecord, the API still accepted '@' still with those, but better to follow the API more closely.


can't revoke/invalidate/cancel old email confirmation token

i allow newly created users who know their password and isn't confirmed yet to change their registration email (as long as it's not registered in my database)
the problem is that if they changed the email, i generate new email confirmation token, but the old token could still validate them, which pretty much could mean that people could use their mail at first, change it to some other mail they don't have access to, and validate from the old one, which is a big security hole for me to just leave
is there any way to remove/revoke the old token? (technically i could create a new user and delete the old one, the old token wouldn't work on new user, yet i think there should be a better solution for this)

solved by calling the user's manager UpdateSecurityStampAsync, with the new security stamp the old confirmation token was revoked, thanks anyway

@theeunforgiven , which .Net core version are you using?

.net core 1.1
On Mon, May 29, 2017 at 3:56 PM, Ponant<EMAIL_ADDRESS>wrote:

@theeunforgiven https://github.com/theeunforgiven , which .Net core
version are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/Identity/issues/1249#issuecomment-304666962,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKGOPb4s0fSf_fz0y6nXImuH-zTqetCkks5r-s5-gaJpZM4NpNMp
.


Include 'writers' config value

Internally, I already have things seperated out into specalized writers. I don't see any reason why this couldnt be expanded on so people could make custom writers, like a changelog writer that would create balance changelogs.
Setting this up would be pretty simple, and I would expect the API to be very easy as well, since it will just be (stats, scripts, osiris).

Depending on the status of Norbyte's STAT to TXT converter, I need to make this a higher priority and include a stat.txt writer because having to rebuild these files by hand is a massive pain

After talking with Norbyte, I didn't realized the tool he was talking about was a txt -> stat converter. I need the other direction, so I will likely be creating this very soon. It's one of the most annoying things about this app right now.


PostCSS Plugin of Magic

Hi, I created a PostCSS Plugin based in your project.
https://www.npmjs.com/package/postcss-magic-animations

Very good thanks!

Il giorno 25 apr 2016, alle ore 23:54, Joan Leon<EMAIL_ADDRESS>ha scritto:
Hi, I created a PostCSS Plugin based in your project.
https://www.npmjs.com/package/postcss-magic-animations https://www.npmjs.com/package/postcss-magic-animations
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/miniMAC/magic/issues/30


Error using Cart

Whenever I try to use Cart facade, I get the following error:
ReflectionException in Container.php line 741:
Class cart does not exist
in Container.php line 741
at ReflectionClass->__construct('cart') in Container.php line 741
at Container->build('cart', array()) in Container.php line 631
at Container->make('cart', array()) in Application.php line 674
at Application->make('cart') in Container.php line 1163
at Container->offsetGet('cart') in Facade.php line 151
at Facade::resolveFacadeInstance('cart') in Facade.php line 120
at Facade::getFacadeRoot() in Facade.php line 205
at Facade::__callStatic('count', array()) in PageController.php line 38
at Cart::count() in PageController.php line 38
at PageController->home(object(Request))
What's wrong? I followed all the install instructions in the main readme file.

have you added the 'use Cart;' at the top?

Which version are you on?

Yes, i added "use Cart;". Version 1.3
Em 31 de mai de 2016 02:43, "Rob Gloudemans"<EMAIL_ADDRESS>escreveu:

Which version are you on?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Crinsane/LaravelShoppingcart/issues/152#issuecomment-222597143,
or mute the thread
https://github.com/notifications/unsubscribe/AF_dO3GuzIyX9F7NidtrBcdnWWmOOGYjks5qG8pogaJpZM4IpuRv
.

@Crinsane it's in laravel v5.2.39 actually latest i don't where bug originated by whenever you try to use Cart facade in your controller it's throw FatalErrorException  Class 'Cart' not found even if we have added use Cart;

Can't reproduce, seems to work perfectly fine, so must be something in your app
https://github.com/Crinsane/LaravelShoppingcart/issues/156#issuecomment-226988559

@Crinsane  i found that this error on our project is caused by forgeting to clear old cached configuration
whenever any other person meet this error be sure to clear old config cache
php artisan config:cache or register this package serviceprovider straight in routes.php
App::register('Gloudemans\Shoppingcart\ShoppingcartServiceProvider'');

@mucyomiller
It works if i add it in routes/web.php:
App::register('Gloudemans\Shoppingcart\ShoppingcartServiceProvider');
But why it does not work after registering in config/app service providers. I dont understand.
I did php artisan config:cache too.

@kaloraat
Thank you very much. It works for me.
Currently using Laravel 5.4 and shopping cart 2.3


Uncaught Exception: TypeError: data should be a string, Buffer or Uint8Array

Hi there, thanks for building this wrapper!
I got a issue with parsing the options, when i pass a boolean i got this error:
Uncaught Exception: TypeError: data should be a string, Buffer or Uint8Array
I this this is related to this question; https://stackoverflow.com/questions/63938549/axios-data-should-be-a-string-buffer-or-uint8array.
I think you can fix this by wrapping all (or only the boolean's) in JSON.stringify().
Greetings!

Hi, thanks for pointing this out, I can confirm that every param should be a String due to FormData, as you can see from the source too:
https://github.com/DavideViolante/ocr-space-api-wrapper/blob/master/index.js#L43
I assume you tried to pass a boolean for one of the options.
I will fix that converting to String any param that is passed.

Let me know if the new version works for you now, even passing booleans in options.

@DavideViolante thanks for fixing!


Split course 1 into course 0 and course 1

Proposed changes
Divide Course 1 into Course 0 and Course 1
Type of change

[ ] Bug fix (change which fixes one or more issues)
[ ] New feature (change which adds functionality or features to the course)
[ ] Translations (change which adds or modifies translations of the course)
[x] Documentation (change which modifies documentation related to the course)
[ ] This change requires an update to the course's z/OS environment

Checklist:

[x] I have read the Contributing Guideline
[x] I have included a title and description for this PR
[x] I have DCO-signed all of my commits that are included in this PR
[x] I have tested it manually and there are no regressions found
[x] I have commented my code, particularly in hard-to-understand areas (if appropriate)
[x] I have made corresponding changes to the documentation (if appropriate)

@tanto259 Please review the following pull request for changes suggested to course 1. I have updated all the necessary files for the same.


Configure the lumia admin theme

Configure the lumia admin theme in codigniter

ok...let me try..

done it..

great job


Avoid race on mock zipkin and increase test port range

There is a race on MockZipkinCollector that cause frequent CI crashes. Also the port range gets very limited depending on the process and thread ID, trying to avoid that by starting with low port value, thus increasing the port range used by the tests.

One crash that may be related: https://dev.azure.com/signalfx/767e0a0b-7429-47d0-b68e-26770411d549/_apis/build/builds/5507/logs/50
2021-06-22T06:26:06.2639602Z ##[error]The active test run was aborted. Reason: Test host process crashed : Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
2021-06-22T06:26:06.2641027Z ##[error]   at System.Net.HttpConnection.get_LocalEndPoint()
2021-06-22T06:26:06.2642086Z ##[error]   at System.Net.HttpListenerRequest.FinishInitialization()
2021-06-22T06:26:06.2643163Z ##[error]   at System.Net.HttpConnection.OnReadInternal(IAsyncResult ares)
2021-06-22T06:26:06.2644273Z ##[error]   at System.Net.HttpConnection.OnRead(IAsyncResult ares)
2021-06-22T06:26:06.2647273Z ##[error]   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
2021-06-22T06:26:06.2648466Z ##[error]   at System.Net.ContextAwareResult.CompleteCallback()
2021-06-22T06:26:06.2649485Z ##[error]   at System.Net.ContextAwareResult.<>c.<Complete>b__15_0(Object s)
2021-06-22T06:26:06.2651359Z ##[error]   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
2021-06-22T06:26:06.2652833Z ##[error]--- End of stack trace from previous location where exception was thrown ---
2021-06-22T06:26:06.2654131Z ##[error]   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
2021-06-22T06:26:06.2656293Z ##[error]   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
2021-06-22T06:26:06.2657448Z ##[error]   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
2021-06-22T06:26:06.2659419Z ##[error]   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
2021-06-22T06:26:06.2660721Z ##[error]   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionCallback(Int32 numBytes, SocketError errorCode)
2021-06-22T06:26:06.2662260Z ##[error]   at System.Net.Sockets.OverlappedAsyncResult.CompletionCallback(Int32 numBytes, Byte[] socketAddress, Int32 socketAddressSize, SocketFlags receivedFlags, SocketError errorCode)
2021-06-22T06:26:06.2664065Z ##[error]   at System.Net.Sockets.SocketAsyncContext.BufferMemoryReceiveOperation.InvokeCallback(Boolean allowPooling)
2021-06-22T06:26:06.2665894Z ##[error]   at System.Net.Sockets.SocketAsyncContext.OperationQueue`1.ProcessAsyncOperation(TOperation op)
2021-06-22T06:26:06.2667145Z ##[error]   at System.Net.Sockets.SocketAsyncContext.ReadOperation.System.Threading.IThreadPoolWorkItem.Execute()
2021-06-22T06:26:06.2669076Z ##[error]   at System.Threading.ThreadPoolWorkQueue.Dispatch()
2021-06-22T06:26:06.2670185Z ##[error]   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2021-06-22T06:26:06.2671648Z ##[error]Test Run Aborted.
2021-06-22T06:26:06.2700944Z ##[error]1
2021-06-22T06:26:06.2702647Z ##[error]The process '/usr/local/bin/docker-compose' failed with exit code 1
2021-06-22T06:26:06.2797578Z ##[section]Finishing: docker-compose run IntegrationTests.Alpine.Core30

Let's merge as it is and investigate this failure separately.


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

I have been using google-images-download for a few weeks. It used to work without issues. Over the past few days I am running into a recurring issue.
I am running searches in a batch mode (searchterms are stored in a DB). When I launch the scraping, it starts off ok, but then after a few iterations I get the error below ('NoneType' object has no attribute 'find').
What is it due to and how come I start off ok, but then I get an error?
I've seen other posts with similar error logs, but I'm not sure they're similar as in my case, the first few iterations are without mistakes, only later (a few minutes) does it fail...
Thanks
  File "/home/ubuntu/jim/9raphs_project/9raphs/DB/DBUtils.py", line 120, in GoogleImgDownload_NewSearch
    response.download(arguments)
  File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/google_images_download/google_images_download.py", line 843, in download
    items,errorCount,abs_path = self._get_all_items(raw_html,main_directory,dir_name,limit,arguments)    #get all image items and download images
  File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/google_images_download/google_images_download.py", line 695, in _get_all_items
    object, end_content = self._get_next_item(page)
  File "/home/ubuntu/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/google_images_download/google_images_download.py", line 660, in _get_next_item
    start_line = s.find('rg_meta notranslate')
AttributeError: 'NoneType' object has no attribute 'find'

python 3.6
Environment: Ubuntu 16.04 on AWS

Same here. Did you guys solve it ?


Update pixels.json

Checklist

[ ] I ran npm test locally and it passed without errors.

[x] I only edited the _data/pixels.json file.

[ ] I entered the username in the pixels.json that I'm also using to create this pull request.
[ ] I acknowledge that all my contributions will be made under the project's license.

Honestly, i have no idea of what i did. But i did something after lots of reading


upgrading the UI of the main page

such as fixing the card sizes,having good bg colors,changing the font style to make it look more standard

Hey @ANSHIKA-26
I am good designer and I want to work on the UI
please assign me.


camera preview size is not proper(iOS)

Above is the attached screenshot from iPad, Wanted to change the width of the preview camera....

I'm not very familiar with the native side of the iOS piece. @NathanWalker would know best.

Ok
Thank You for your time :)
On Sun, Feb 18, 2018 at 4:04 AM, Brad Martin<EMAIL_ADDRESS>wrote:

I'm not very familiar with the native side of the iOS piece. @NathanWalker
https://github.com/nathanwalker would know best.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nstudio/nativescript-camera-plus/issues/10#issuecomment-366476407,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AixtTswFyA5-OkKekRrrcrEQmVhj9_4aks5tV1QFgaJpZM4SH4cL
.

Same here. Not problem on android. Just ios devices size not proper.

Same problem here (#18).

Try wrap in AbsoluteLayout like this;

@mriza1815 the component fills the whole ipad, but the camera preview is only part of it - see this screenshot

@mriza1815 For me, <AbsoluteLayout> simply moved the camera view to the right a little bit.

@NathanWalker could we change this from a question to a bug?

I assume no one has a work around for this??

Perhaps this SwiftyCam issue is related??

same issue....


memory allocation optimisations?

this is sarama, 1baff7ce02f768e4b13248fb7aaa0c4788fbcec8, aka a git checkout 10 days old.
i noticed my app's doing a lot of allocations and am trying to reduce them. so here's some insights from a heap profile while my app is running and consuming
go tool pprof --alloc_objects metrictank heap-prof
(pprof) top50
94470972 of 97026992 total (97.37%)
Dropped 162 nodes (cum <= 485134)
      flat  flat%   sum%        cum   cum%
  30229363 31.16% 31.16%   30229363 31.16%  github.com/tinylib/msgp/msgp.ReadStringBytes
  20623244 21.26% 52.41%   20623247 21.26%  time.NewTimer
  12075967 12.45% 64.86%   14107614 14.54%  github.com/Shopify/sarama.(*MessageBlock).decode
   7554518  7.79% 72.64%   21662132 22.33%  github.com/Shopify/sarama.(*MessageSet).decode
   7209180  7.43% 80.07%   37438543 38.59%  gopkg.in/raintank/schema%2ev0.(*MetricData).UnmarshalMsg
   7070097  7.29% 87.36%    7070097  7.29%  github.com/Shopify/sarama.(*partitionConsumer).parseResponse
   6586467  6.79% 94.15%    7384885  7.61%  github.com/raintank/metrictank/mdata.(*AggMetric).Add
   2031647  2.09% 96.24%    2031647  2.09%  github.com/Shopify/sarama.(*Message).decode
    614432  0.63% 96.88%    1204270  1.24%  github.com/raintank/metrictank/mdata.NewAggMetric
    393224  0.41% 97.28%    1089580  1.12%  github.com/raintank/metrictank/mdata.NewAggregator
     56176 0.058% 97.34%     503642  0.52%  github.com/raintank/metrictank/mdata.(*cassandraStore).processWriteQueue
      8740 0.009% 97.35%     493185  0.51%  encoding/json.Unmarshal
      8192 0.0084% 97.36%   21672845 22.34%  github.com/Shopify/sarama.versionedDecode
      7202 0.0074% 97.36%   21671855 22.34%  github.com/Shopify/sarama.(*brokerConsumer).fetchNewMessages
      2521 0.0026% 97.37%   21664653 22.33%  github.com/Shopify/sarama.(*FetchResponse).decode
         2 2.1e-06% 97.37%    1204272  1.24%  github.com/raintank/metrictank/mdata.(*AggMetrics).GetOrCreate
         0     0% 97.37%   21664653 22.33%  github.com/Shopify/sarama.(*Broker).Fetch
         0     0% 97.37%   21705613 22.37%  github.com/Shopify/sarama.(*Broker).sendAndReceive
         0     0% 97.37%   21662132 22.33%  github.com/Shopify/sarama.(*FetchResponseBlock).decode
         0     0% 97.37%   21671855 22.34%  github.com/Shopify/sarama.(*brokerConsumer).(github.com/Shopify/sarama.subscriptionConsumer)-fm
         0     0% 97.37%   21671855 22.34%  github.com/Shopify/sarama.(*brokerConsumer).subscriptionConsumer
         0     0% 97.37%   27663305 28.51%  github.com/Shopify/sarama.(*partitionConsumer).(github.com/Shopify/sarama.responseFeeder)-fm
         0     0% 97.37%   27663305 28.51%  github.com/Shopify/sarama.(*partitionConsumer).responseFeeder
         0     0% 97.37%   49336726 50.85%  github.com/Shopify/sarama.withRecover
         0     0% 97.37%     529350  0.55%  github.com/raintank/metrictank/defcache.(*DefCache).Add
         0     0% 97.37%   46519964 47.95%  github.com/raintank/metrictank/in.In.Handle
         0     0% 97.37%    9081421  9.36%  github.com/raintank/metrictank/in.In.process
         0     0% 97.37%   46519964 47.95%  github.com/raintank/metrictank/in/kafkamdm.(*KafkaMdm).consume
         0     0% 97.37%   97026992   100%  runtime.goexit
         0     0% 97.37%   20623247 21.26%  time.After

the NewTimer is from time.After which is from responseFeeder:
         .          .    421:		for i, msg := range msgs {
         .          .    422:			select {
         .          .    423:			case child.messages <- msg:
         .   20593208    424:			case <-time.After(child.conf.Consumer.MaxProcessingTime):
         .          .    425:				child.responseResult = errTimedOut
         .          .    426:				child.broker.acks.Done()

I tried the following patch, which unfortunately does not work.
diff --git a/consumer.go b/consumer.go
index c001794..a1d0f60 100644
--- a/consumer.go
+++ b/consumer.go
@@ -413,15 +413,17 @@ func (child *partitionConsumer) HighWaterMarkOffset() int64 {

 func (child *partitionConsumer) responseFeeder() {
        var msgs []*ConsumerMessage
+       var after <-chan time.Time

 feederLoop:
        for response := range child.feeder {
                msgs, child.responseResult = child.parseResponse(response)

                for i, msg := range msgs {
+                       after = time.After(child.conf.Consumer.MaxProcessingTime)
                        select {
                        case child.messages <- msg:
-                       case <-time.After(child.conf.Consumer.MaxProcessingTime):
+                       case <-after:
                                child.responseResult = errTimedOut
                                child.broker.acks.Done()
                                for _, msg = range msgs[i:] {

the reason is it will always allocate new stuff, apparently:
(pprof) list NewTimer
Total: 30747639
ROUTINE ======================== time.NewTimer in /home/dieter/code/go/src/time/sleep.go
   6108880    6108883 (flat, cum) 19.87% of Total
         .          .     70:}
         .          .     71:
         .          .     72:// NewTimer creates a new Timer that will send
         .          .     73:// the current time on its channel after at least duration d.
         .          .     74:func NewTimer(d Duration) *Timer {
   4134488    4134488     75:	c := make(chan Time, 1)
         .          .     76:	t := &Timer{
         .          .     77:		C: c,
         .          .     78:		r: runtimeTimer{
         .          .     79:			when: when(d),
         .          .     80:			f:    sendTime,
         .          .     81:			arg:  c,
   1974392    1974392     82:		},
         .          .     83:	}
         .          3     84:	startTimer(&t.r)
         .          .     85:	return t
         .          .     86:}
         .          .     87:
         .          .     88:// Reset changes the timer to expire after duration d.
         .          .     89:// It returns true if the timer had been active, false if the timer had

beyond that, you can see there's some more sarama stuff where allocations happen.
maybe those can be solved by some sync.Pool usage or some otherwise reusing of buffers?

I don't see an obvious way to remove the allocation from the timer path; Go doesn't expose any other methods for managing low-level timers without allocating a new one each time. I suppose in the common case we might be able to re-use the same time.After call for every message in the batch if you added additional retry logic in the case when the timer fired, but it would be kind of messy.
The protocol decoding could plausibly use pools in some places, but it's not high on our list of priorities right now. We'd be happy to take PRs though.

Maybe use time.NewTimer replace time.After is better, we can control when to stop the timer .If large numbers of partitionConsumer there,the memory rise very fast and can not be released according to my test.
func (child *partitionConsumer) responseFeeder() {
	var msgs []*ConsumerMessage
	tm := time.NewTimer(child.conf.Consumer.MaxProcessingTime)
	defer tm.Stop()
feederLoop:
	for response := range child.feeder {
		msgs, child.responseResult = child.parseResponse(response)
		for i, msg := range msgs {
			tm.Reset(child.conf.Consumer.MaxProcessingTime)
			select {
			case child.messages <- msg:
			case <-tm.C:
				child.responseResult = errTimedOut
				child.broker.acks.Done()

Oh good point, I somehow missed that Timer objects could be reset without an additional allocation.

yesss. this looks awesome.
here's another profile run with a similar workload.
looks basically same as before but the timer allocations are obliterated :+1:
~/g/s/g/r/metrictank ❯❯❯ go tool pprof --alloc_objects metrictank heap.o
Entering interactive mode (type "help" for commands)
(pprof) top30
30450999 of 30985299 total (98.28%)
Dropped 115 nodes (cum <= 154926)
Showing top 30 nodes out of 63 (cum >= 340261)
      flat  flat%   sum%        cum   cum%
  12217352 39.43% 39.43%   12217352 39.43%  github.com/tinylib/msgp/msgp.ReadStringBytes
   3735896 12.06% 51.49%    5243247 16.92%  github.com/Shopify/sarama.(*MessageBlock).decode
   2916396  9.41% 60.90%    3184513 10.28%  github.com/raintank/metrictank/mdata.(*AggMetric).Add
   2886946  9.32% 70.22%    2886946  9.32%  github.com/Shopify/sarama.(*partitionConsumer).parseResponse
   2534174  8.18% 78.39%   14751526 47.61%  gopkg.in/raintank/schema%2ev1.(*MetricData).UnmarshalMsg
   2367997  7.64% 86.04%    7611244 24.56%  github.com/Shopify/sarama.(*MessageSet).decode
   1507351  4.86% 90.90%    1507351  4.86%  github.com/Shopify/sarama.(*Message).decode
    610340  1.97% 92.87%    1110062  3.58%  github.com/raintank/metrictank/mdata.NewAggMetric
....
(pprof) list responseFeeder
Total: 30985299
(.. filtered out other routine that's not interesting)
ROUTINE ======================== github.com/Shopify/sarama.(*partitionConsumer).responseFeeder in /home/dieter/go/src/github.com/Shopify/sarama/consumer.go
         0    2886946 (flat, cum)  9.32% of Total
         .          .    415:	var msgs []*ConsumerMessage
         .          .    416:	expiryTimer := time.NewTimer(child.conf.Consumer.MaxProcessingTime)
         .          .    417:
         .          .    418:feederLoop:
         .          .    419:	for response := range child.feeder {
         .    2886946    420:		msgs, child.responseResult = child.parseResponse(response)
         .          .    421:
         .          .    422:		for i, msg := range msgs {
         .          .    423:			expiryTimer.Reset(child.conf.Consumer.MaxProcessingTime)
         .          .    424:
         .          .    425:			select {
(pprof)


Some peripheral tests are failing if CONFIG_BT_EXT_ADV=n

Describe the bug
Some BLE qualification tests are failing if tester application is build without CONFIG_BT_EXT_ADV=y.
This seems to affect peripheral role privacy tests.
Affected tests:
GAP/BROB/BCST/BV-03-C
GAP/CONN/UCON/BV-06-C
GAP/PRIV/CONN/BV-10-C
There seems to be some discrepancy in host on how privacy and peripheral role works with and without ExtAdv enabled.
tester application doesn't have any CONFIG_BT_EXT_ADV dependent code and simply calls bt_le_adv_start().
Note that tester is always advertising with legacy PDUs
To Reproduce
Build tester application with CONFIG_BT_EXT_ADV=n and execute any of mentioned qualification tests.
Expected behavior
Tests should pass regardless of CONFIG_BT_EXT_ADV being enabled or not.

Hi @sjanc, PTS is not fast to install and setup, would you have any logs that you could attach to this issue?

Hi,
Attaching logs from pass and failed runs for GAP/BROB/BCST/BV-03-C.
Only difference between those two is tester configuration prj.conf:
CONFIG_BT_EXT_ADV=y for pass
CONFIG_BT_EXT_ADV=n for fail
GAP_BROB_BCST_BV_03_C_FAIL.zip
GAP_BROB_BCST_BV_03_C_PASS.zip


Deploy Fails for .NET 8 Azure Functions

Describe the bug
After updating the Api project in a Blazor template from .NET 7 to .NET 8 the deploy fails.
To Reproduce
Steps to reproduce the behavior:

Create a new SWA project which will default to .NET 7.
Change the settings.json file to:
"azureFunctions.deploySubpath": "Api/bin/Release/net8.0/publish",
Change the Api.csproj file to:

    <TargetFramework>net8.0</TargetFramework>
...
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.16.2" OutputItemType="Analyzer" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.19.0" />

Commit the changes to GitHub and let the action run and you will get this during the deploy:

Deployment Failed :(
Deployment Failure Reason: Failed to deploy the Azure Functions.

Expected behavior
The application deploys the Azure Functions running on .NET 8.

@scottkuhl, functions are working on some improvements to improve their deployments for .NET 8. Right now, as a temporary workaround, downgrading Microsoft.Azure.Functions.Worker.Sdk to 1.15.1 helps but still is flaky at times. Check out my repo with the temporary workaround https://github.com/thomasgauvin/BlazorOnSWA
We expect Functions to roll out these changes later this week, for deployments to go without a hitch regardless of Microsoft.Azure.Functions.Worker.Sdk version

Hey @scottkuhl, we rolled out some changes to Functions regions West US 2, East US 2, West Europe and East Asia. These regions have the fix in place, see this repo https://github.com/thomasgauvin/Blazor-SWA-demo/actions fix coming to Central US

@thomasgauvin Thanks, my app is in Central US, so I will test the update when it gets there.

Excellent, thanks for the confirmation @scottkuhl!


e2e test not included

in vitest.shared.js e2e test file is excluded.
Removing exclude value lead to activate e2e test
import { defineProject, mergeConfig } from 'vitest/config';
export const browserConfig = defineProject({
  test: {
    globals: true,
    coverage: {
      exclude: ['examples/**'],
      reporter: ['json'],
    },
    environment: 'jsdom',
  },
});

export const nodeConfig = defineProject({
  test: {
    globals: true,
    coverage: {
      //TODO: the exclude is not working, therefore the coverage result are not correct.
      exclude: ['examples/**'],
      reporter: ['json'],
    },
    environment: 'node',
  },
});

export const allEnvs = mergeConfig(browserConfig, nodeConfig);

@cre8 Please share your thoughts :)

I think I wanted to separate unit tests and e2e tests in the first place. But I am fine running them together :D
Speaking of tests, do we need to run it on different node versions? You can use the matrix feature in GitHub to do so.

Let's just test them together. :) It's few cases
Running it on different node versions is good idea. I think we need to test it in node 16,18, and 20


Update 'get started' portal images.

@sptramer,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

latest/docs-ref-conceptual/media/get-started-with-azure-cli/storage-prompt.png
:white_check_mark:Succeeded
View (azure-cli-latest)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Where can I find 'your_identity_secret' ?

Need help

Hi! Your identity secret is a secret string generated when you first enable 2FA on your account. If you're using an account with 2FA already enabled from a mobile device, you can get the secrets from that file on your phone. There are several tutorials on this for Android and iOS (here's one for iOS I found from Google: http://forums.backpack.tf/index.php?/topic/45995-guide-how-to-get-your-shared-secret-from-ios-device-steam-mobile/). If you're using Steam Desktop Authenticator, your identity secret is also stored in your profile file. Finally, if you don't have 2FA enabled, you can either keep it disabled and remove that part from your code, or you can enable it using node-steam-user (strongly suggested).
Hope this help!


Measurement interval setter

The measurement interval setter works perfectly for the current execution...but if I start the 'usage example' a second time, the measurement interval is set to 2 again.
Am I missing something? (Because the constructor sets the interval to 2 and I am not able to bypass this)
Many thanks in advance.

According to the datasheet the 2 sec interval is the default value, also as you mentioned we set this value in the initialization code.  When you setup the interval to another value does this not change.
Just to clarify if you run the example code a second time, the class will be created again and the time interval will be set to 2 secs:
https://github.com/adafruit/Adafruit_CircuitPython_SCD30/blob/259e369076df04b1ed101ddf46c3ed5da16ab3c6/adafruit_scd30.py#L98
Thanks


⚠ Bofrost.de has degraded performance

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

HTTP code: 200
Response time: 1011 ms

Resolved: Bofrost.de performance has improved in 2e16fdc after 6 minutes.


Incomplete command breaks all other commands

The changelog says: "Errors in one command in the scrapbook no longer stop functionality for other commands"
Perhaps I just found an edge case?

The codelens is gone and I get this message when I try to run one of the complete commands

#609.  I agree this hasn't been fixed for all cases.  I'll modify the changelog.

The cannot read error should have been fixed (#591). Are you using the most recent version?  I get this:
Error near line 3, column 4, text 'test'. Please check syntax.

Yeah - just updated to latest (aka 0.7.0 as shown in my screenshot) and still getting that error:


Chore: Update to Babel 6

You can probably copy the babel config, roughly, from here: https://github.com/alexkrolick/preact-photon-electron-quick-start


CTest Test Explorer Support

On this page here:
https://docs.microsoft.com/en-us/visualstudio/test/writing-unit-tests-for-c-cpp?view=vs-2019
it says that CTest support in Test Explorer is not available.
However on this page I'm writing feedback for it says that it is? Can someone confirm which it is?

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

ID: 7d3f12b8-8048-3c19-8582-2ab35cbda74e
Version Independent ID: 860805e8-915b-1c76-b6d3-4addc07da1a0
Content: How to use CTest for C++ - Visual Studio
Content Source: docs/test/how-to-use-ctest-for-cpp.md
Product: visual-studio-windows
Technology: vs-ide-test
GitHub Login: @mikeblome
Microsoft Alias: mblome

@danewalton Thank you for the feedback, assigning this to the author for review.


[THORN-2426] update to latest SmallRye releases

[x] Have you followed the guidelines in our Contributing document?
[x] Have you created a JIRA and used it in the commit message?
[x] Have you checked to ensure there aren't other open Pull Requests for the same issue?
[ ] Have you built the project locally prior to submission with mvn clean install?

The failing test is using IOUtils.toString(new URI(url), "UTF-8") to perform an HTTP request to http://localhost:8080/openapi and convert the response to a String, all in an in-container test! Gonna change that to use an actual HTTP client and @RunAsClient, but I'll first investigate why it's failing now.

I bisected SmallRye OpenAPI between 1.0.1 and 1.0-1.0.1 and it turns out it used to depend on commons-io until this commit: https://github.com/smallrye/smallrye-open-api/commit/aaff7e43e32e3f90891aa994c84bcc915eb9c007 That's why commons-io is no longer available to the deployment.