Global theme is not applied after Next.js Fast Refresh

Steps to reproduce
Scenario 1:

Create custom global Flowbite theme
Wrap your page content in Flowbite component with theme passed as theme prop
Launch Next.js dev server and perform Fast Refresh
Notice no custom theme for any component
Hard refresh
Notice custom theme is applied as expected

Scenario 2:

Create custom global Flowbite theme
Wrap your page content in Flowbite component with theme passed as theme prop
Launch Next.js dev server and open any Dropdown
Notice no custom theme applied to Dropdown items
Perform Fast Refresh
Notice custom theme applied to Dropdown items

I assume both scenarios are somehow related to each other, hence no separate bug report.
Current behavior
Custom theme is hard to use during development. Also, Dropdowns avoid custom themes altogether.
Expected behavior
Custom theme to be applied as expected.
Context
I'm wrapping my Next.js app content in Flowbite component as follows:
layout.tsx
<body className={classNames(poppins.className, "dark")}>
    <Flowbite theme={{ theme: theme }}>
        <Navigation />
        {children}
    </Flowbite>
</body>

Running latest verion of Next.js, Flowbite and Tailwind.
tailwind.config.ts
const config: Config = {
    content: [
        "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
        "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
        "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
        "./src/configs/**/*.{js,ts,jsx,tsx,mdx}",
        "node_modules/flowbite-react/lib/esm/**/*.js",
    ],
    theme: {},
    plugins: [require("flowbite/plugin")],
}

./src/configs/theme.ts contains the custom Flowbite theme
I have tried rendering all themed components with "use client", but this has no different results.

So it looks like themes work as expected with Fast Refresh on Next.js 13.0.3, but no longer work with Fast Refresh on 13.0.4.

I am using Next 13+ and I can only get themes to work if I directly wrap the individual components. Wrapping the entire app (e.g. in the layout) does not theme my components (doesn't seem related to fast refresh here). Client vs server components didn't seem to make a difference either.

I am using Next 13+ and I can only get themes to work if I directly wrap the individual components. Wrapping the entire app (e.g. in the layout) does not theme my components (doesn't seem related to fast refresh here). Client vs server components didn't seem to make a difference either.

Does it work when u refresh the page?

Does it work when u refresh the page?

Negative

Revisiting this, did u try to upgrade next? or scaffold a new app and test the same custom theme approach?

I'm having the same issue. I'm running next 14.2.4, latest version of flowbite-react (0.10.1). Same as scenarios described above. I'm wrapping everything within  tag of the root layout with the customTheme.
On dev server start the custom theme isn't applied. On page refresh the custom theme is applied. On Fast Refresh the custom theme is unapplied.

Not sure if we can do much since Next.js decides how it does the HMR internally, and the <Flowbite> provider is based on a singleton (in-memory variable), not using any React context to pass data in.
The issue is that if the HMR replaces one of the core pieces in which the <Flowbite> provider has set values to, the scope is gone as well, therefore the values are gone, probably until the next re-render (i need to test it).


Feature: Appointment scheduling events

Patient appointment scheduling events are stored in a separate db schema.
Scheduling event statistics implemented.

 [E6.1] As an admin I want to observe appointment scheduling statistics so that I can improve our bussines decisions. [5]

 [E6.1] As an admin I want to observe appointment scheduling statistics so that I can improve our bussines decisions. [5]

 (0) PR Feature: Appointment scheduling events

 (0) PR Feature: Appointment scheduling events


Receive Invalid Swift Suport (don’t match dylib) issue if I upload the IPA exported by GYM.

Issue Description
The situation is the exactly same as @chebur said in #5125.
But I want to help about just Invalid Swift Support problem here.
I got the following email from Apple.
Dear developer,

We have discovered one or more issues with your recent delivery for "XXXX". To process your delivery, the following issues must be corrected:

Invalid Swift Support - The files libswiftCoreLocation.dylib, libswiftDarwin.dylib, libswiftObjectiveC.dylib, libswiftUIKit.dylib, libswiftCoreImage.dylib, libswiftFoundation.dylib, libswiftContacts.dylib, libswiftCore.dylib, libswiftCoreData.dylib, libswiftCoreGraphics.dylib, libswiftDispatch.dylib don’t match /Payload/XXXX.app/Frameworks/libswiftCoreLocation.dylib, /Payload/XXXX.app/Frameworks/libswiftDarwin.dylib, /Payload/XXXX.app/Frameworks/libswiftObjectiveC.dylib, /Payload/XXXX.app/Frameworks/libswiftUIKit.dylib, /Payload/XXXX.app/Frameworks/libswiftCoreImage.dylib, /Payload/XXXX.app/Frameworks/libswiftFoundation.dylib, /Payload/XXXX.app/Frameworks/libswiftContacts.dylib, /Payload/XXXX.app/Frameworks/libswiftCore.dylib, /Payload/XXXX.app/Frameworks/libswiftCoreData.dylib, /Payload/XXXX.app/Frameworks/libswiftCoreGraphics.dylib, /Payload/XXXX.app/Frameworks/libswiftDispatch.dylib. Make sure the files are correct, rebuild your app, and resubmit it. Don’t apply post-processing to /Payload/XXXX.app/Frameworks/libswiftCoreLocation.dylib, /Payload/XXXX.app/Frameworks/libswiftDarwin.dylib, /Payload/XXXX.app/Frameworks/libswiftObjectiveC.dylib, /Payload/XXXX.app/Frameworks/libswiftUIKit.dylib, /Payload/XXXX.app/Frameworks/libswiftCoreImage.dylib, /Payload/XXXX.app/Frameworks/libswiftFoundation.dylib, /Payload/XXXX.app/Frameworks/libswiftContacts.dylib, /Payload/XXXX.app/Frameworks/libswiftCore.dylib, /Payload/XXXX.app/Frameworks/libswiftCoreData.dylib, /Payload/XXXX.app/Frameworks/libswiftCoreGraphics.dylib, /Payload/XXXX.app/Frameworks/libswiftDispatch.dylib.

Once these issues have been corrected, you can then redeliver the corrected binary.

Regards,

The App Store team

I can make and upload binary correctly If I use XCode8 IDE.
Have anyone knowledge about this?
Complete output when running fastlane, including the stack trace and command used
[20:47:33]: -------------------------------------------------
[20:47:33]: --- Step: Verifying required fastlane version ---
[20:47:33]: -------------------------------------------------
[20:47:33]: fastlane version valid
[20:47:33]: ------------------------------
[20:47:33]: --- Step: default_platform ---
[20:47:33]: ------------------------------
[20:47:33]: Driving the lane 'ios deploy' 🚀
[20:47:33]: -----------------
[20:47:33]: --- Step: gym ---
[20:47:33]: -----------------
[20:47:34]: $ xcodebuild -list -workspace ./XXXX.xcworkspace
[20:47:35]: $ xcodebuild clean -showBuildSettings -workspace ./XXXX.xcworkspace -scheme XXXX
[20:47:37]: Using legacy build system - waiting for radar to be fixed: https://openradar.appspot.com/radar?id=4952000420642816

+----------------------+----------------------------------------------+
|                       Summary for gym 1.10.0                        |
+----------------------+----------------------------------------------+
| scheme               | XXXX                                   |
| workspace            | ./XXXX.xcworkspace                     |
| destination          | generic/platform=iOS                         |
| output_name          | XXXX                                   |
| clean                | false                                        |
| output_directory     | .                                            |
| silent               | false                                        |
| codesigning_identity | iPhone Distribution: XXXX (XXXX) |
| use_legacy_build_api | true                                         |
| buildlog_path        | ~/Library/Logs/gym                           |
+----------------------+----------------------------------------------+

[20:47:37]: $ set -o pipefail && xcodebuild -workspace ./XXXX.xcworkspace -scheme XXXX -destination 'generic/platform=iOS' -archivePath /Users/distiller/Library/Developer/Xcode/Archives/XXXX-XX-XX/XXXX\ XXXX-XX-XX\ 20.47.37.xcarchive archive CODE_SIGN_IDENTITY=iPhone\ Distribution:\ XXXX\ \(XXXX\) | tee /Users/distiller/Library/Logs/gym/XXXX-XXXX.log | xcpretty

[20:51:22]: $ /usr/bin/xcrun /tmp/PackageApplication4Gym -v /Users/distiller/Library/Developer/Xcode/Archives/XXXX-XX-XX/XXXX\ XXXX-XX-XX\ 20.47.37.xcarchive/Products/Applications/XXXX.app -o '/var/folders/jm/fw86rxds0xn69sk40d18y69m0000gp/T/gym_output20161004-2807-w75g65/XXXX.ipa' exportFormat ipa --sign iPhone\ Distribution:\ XXXX\ \(XXXX\)
[20:51:40]: $ zip --recurse-paths '/var/folders/jm/fw86rxds0xn69sk40d18y69m0000gp/T/gym_output20161004-2807-w75g65/XXXX.ipa' SwiftSupport > /dev/null
[20:51:46]: Compressing 31 dSYM(s)
[20:51:46]: $ cd '/Users/distiller/Library/Developer/Xcode/Archives/XXXX-XX-XX/XXXX XXXX-XX-XX 20.47.37.xcarchive/dSYMs' && zip -r '/Users/distiller/XXXX-iOS/XXXX.app.dSYM.zip' *.dSYM

[20:51:52]: Successfully exported and compressed dSYM file
[20:51:52]: Successfully exported and signed the ipa file:
[20:51:52]: /Users/distiller/XXXX-iOS/XXXX.ipa
[20:51:52]: --------------------------------------------------------------------------------------------
[20:51:52]: --- Step: cp /Users/distiller/XXXX-iOS/XXXX.ipa /tmp/circle-artifacts.9FszYpa ---
[20:51:52]: --------------------------------------------------------------------------------------------
[20:51:52]: $ cp /Users/distiller/XXXX-iOS/XXXX.ipa /tmp/circle-artifacts.9FszYpa
[20:51:54]: -----------------------------------------------------------------------------------------------------
[20:51:54]: --- Step: cp /Users/distiller/XXXX-iOS/XXXX.app.dSYM.zip /tmp/circle-artifacts.9FszYpa ---
[20:51:54]: -----------------------------------------------------------------------------------------------------
[20:51:54]: $ cp /Users/distiller/XXXX-iOS/XXXX.app.dSYM.zip /tmp/circle-artifacts.9FszYpa
[20:51:54]: -------------------
[20:51:54]: --- Step: pilot ---
[20:51:54]: -------------------
[20:51:55]: Login to iTunes Connect<EMAIL_ADDRESS>[20:51:57]: Login successful
[20:51:58]: Ready to upload new build to TestFlight (App: xxxxxxxxx)...
[20:52:00]: Going to upload updated app to iTunes Connect
[20:52:00]: This might take a few minutes. Please don't interrupt the script.
[20:54:22]: iTunes Transporter successfully finished its job
[20:54:22]: ------------------------------------------------------------------------------------------------------
[20:54:22]: Successfully uploaded package to iTunes Connect. It might take a few minutes until it's visible online.
[20:54:22]: ------------------------------------------------------------------------------------------------------
[20:54:22]: Successfully uploaded the new binary to iTunes Connect
[20:54:22]: If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option
[20:54:22]: Waiting for iTunes Connect to process the new build
[20:54:54]: Variable Dump:
[20:54:54]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios testflight", :IPA_OUTPUT_PATH=>"/Users/distiller/XXXX-iOS/XXXX.ipa", :DSYM_OUTPUT_PATH=>"/Users/distiller/XXXX-iOS/XXXX.app.dSYM.zip", :XCODEBUILD_ARCHIVE=>"/Users/distiller/Library/Developer/Xcode/Archives/XXXX-XX-XX/XXXX XXXX-XX-XX 20.47.37.xcarchive"}
[20:54:54]: Error receiving the newly uploaded binary, please check iTunes Connect

+------+---------------------------------------------------------------+-------------+
|                                  fastlane summary                                  |
+------+---------------------------------------------------------------+-------------+
| Step | Action                                                        | Time (in s) |
+------+---------------------------------------------------------------+-------------+
| 1    | Verifying required fastlane version                           | 0           |
| 2    | default_platform                                              | 0           |
| 3    | gym                                                           | 258         |
| 4    | cp /Users/distiller/XXXX-iOS/XXXX.ipa /tmp/circle- | 1           |
| 5    | cp /Users/distiller/XXXX-iOS/XXXX.app.dSYM.zip /tm | 0           |
| 6    | pilot                                                         | 179         |
+------+---------------------------------------------------------------+-------------+

[20:54:54]: fastlane finished with errors

[!] Error receiving the newly uploaded binary, please check iTunes Connect

bundle exec fastlane testflight returned exit code 1

Action failed: bundle exec fastlane testflight

Configuration Files
Please copy the complete content of your Fastfile and any other configuration files you use below:
Fastfile:
fastlane_version "1.104.0"

default_platform :ios

platform :ios do
  lane :deploy do
    gym
    pilot
  end
end

Environment
fastlane version (run fastlane -v):
1.104.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane)?
Yes
Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)?
No
Additional:
Run on circle ci.

Carthage: 0.16.2
Cocoapods: 1.0.1
Xcode: 8.0

Why is it using the legacy build API even though you didn't declare it? Could you try not using the legacy API? This will solve the Swift issue

OH, It's exactly my oversight. I don't know why that option is true, but it works after I put explicit use_legacy_build_api: false.
Thanks!

@RyogaK No problem. Hope you have a great week!


Fix VanillaJavaApp's stdin and env

The output from the classpath gathering step currently includes Brooklyn's "Executed ... , result: 0" info, which means that classpaths look like this:
CLASSPATH="/tmp/brooklyn-sam/apps/l8wk2l74in/entities/VanillaJavaApp_zn86w6blx8/lib/derby-<IP_ADDRESS>.jar:/tmp/brooklyn-sam/apps/l8wk2l74in/entities/VanillaJavaApp_zn86w6blx8/lib/my-app-1.0.jar:/tmp/brooklyn-sam/apps/l8wk2l74in/entities/VanillaJavaApp_zn86w6blx8/lib/Executed:/tmp/brooklyn-sam/apps/l8wk2l74in/entities/VanillaJavaApp_zn86w6blx8/lib**/tmp/brooklyn-20160629-191833075-b9bF-customizing-classpath_VanillaJ.sh,**:/tmp/brooklyn-sam/apps/l8wk2l74in/entities/VanillaJavaApp_zn86w6blx8/lib/result:/tmp/brooklyn-sam/apps/l8wk2l74in/entities/VanillaJavaApp_zn86w6blx8/lib/0"
Did something change internally? It's hard to believe that this has always been the case.

This affects Brooklyn 0.8.0-incubating and 0.9.0 too.


Migrated to nnbd.

This PR converts flip to null safety.
Can you please accept this PR and publish an updated version to pub.dev.
Thanks.

@js94766524
Any chance you can accept this PR?
2.12 is now released!

Thank you, but bad news, I have no vpn to publish a new version to pub.dev now.
Perhaps you can import this widget by github link or else.
Sorry!

@js94766524
Any chance you can accept this PR?
2.12 is now released!

I have published this PR! Sorry for your waiting


feat: add an optional input for checkout so it can be skipped, if needed

The checkout remains the default, but can be skipped if set to false. This can be useful when there are prior steps to build elements that should be packed into the wheelhouse. For example, some projects have a step to build cython .pyd files and those .pyd files should go into the wheel file. The checkout step would purge the repo and clear the files from the previous build step. Now, projects that have this requirement can opt to skip the checkout.

@ansys-reviewer-bot review

Fixed the syntax of the condition and verified it works with true, false, and without the parameter (defaults to true).

LGTM! Merging. We will do a patch release with this change.

Release on the way - v6 will have your change


Make it way more clear how to message someone from chat window

Make the message box at the bottom more obvious, maybe move it to the top? or make the list of people to add to the message smaller and less dominant.
And start with focus in message box, not in the add more people box.
Also add placeholder text to the add more people box so people know what is going on there

replaced by https://github.com/Hylozoic/hylo-evo/issues/909


[BUG] add_implicit_resolver() - use of "first" argument required?!

Describe the bug
parse_config() uses this code to decide which YAML entries to actually look at: loader.add_implicit_resolver(tag, pattern, None) The third parameter, first, is intentionally set to None. However, if one takes a look at the YAML documentation, this exact argument controls whether a YAML entry should be looked at.
And indeed, it does not matter which value is passed as tag, as it will only be used to tag the entries and process them. But all entries will be processed, prefixed with the tag or not. As soon as first is also set to the value of tag, things start to work as expected: loader.add_implicit_resolver(tag, pattern, tag)
To Reproduce
Steps to reproduce the behavior:

Add a prefixed and a non-prefixed environment variable substitution attempt to a YAML file, e. g.:

test:
  with-prefix: !ENV ${DPT_EXISTING_ENV}
  without-prefix: ${DPT_EXISTING_ENV}

Try to use parse_config() on this YAML file, with tag set to different values as well as None.
Each time both entries will be acted upon, as there is no first set and the pattern matches.

Expected behavior
Only the entries prefixed with the tag should be acted upon.
Additional context
Add any other context about the problem here.

Python version: 3.6 (sadly)
OS: Debian Buster
pyaml_env: 1.1.5

PR ready.


Delegate-reference-yaml

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:
Cleans up the YAML examples in the reference, to make way for a section of delegate resources that I'm completing with Arpit. This PR includes redirects, a new folder, moved files, and a title change or two. Some of the examples may be folded into articles down the road but this should clean up some formatting issues in the interim.
House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ x] Tested Locally
[ ] Optional Screen Shoot.

Preview environment: https://ci.pr.harness.io/pr-426

Preview environment: https://ci.pr.harness.io/pr-426


Update build action

The functionality needed (setting #none and retrieving the tags even when there was no bump) is yet to be released. Should monitor this: https://github.com/anothrNick/github-tag-action/issues/121


Adding the column 'timestamp with time zone' gives an error with the new version 0.27.3

The following code will generate an error (invalid column data type "timestamp with time zone") when using the latest version, 0.27.3.
const { Kysely, sql, PostgresAdapter, DummyDriver, PostgresIntrospector, PostgresQueryCompiler } = require('kysely');
const db = new Kysely({
    dialect: {
        createAdapter: () => new PostgresAdapter(),
        createDriver: () => new DummyDriver(),
        createIntrospector: (db) => new PostgresIntrospector(db),
        createQueryCompiler: () => new PostgresQueryCompiler(),
    }})
const query = db.schema.alterTable('users').addColumn('registerDate', 'timestamp with time zone');
console.log(query.compile().sql);

When using the previous version (0.27.2), this code will work.

Hey 👋
If the data type is not in the list, you should use sql template tag.

duplicate of #908.

Thank you very much for your prompt and clear reply. It is greatly appreciated.


Resubmission Needed for File to LA Secondary Feed

A report needs resubmitted to LA's secondary feed:
159ed7c1-71b4-49e2-9a5a-de429a248d19	2022-05-26T21:28:11.629679-04:00

The report does not need any corrections. It just needs resent.

Hey team! Please add your planning poker estimate with ZenHub @brick-green @greene858 @jbiskie @jorg3lopez @MauriceReeves-usds @oslynn @TomNUSDS


Observatory port closed when iOS device goes to sleep

If possible, it would be really helpful to keep the Observatory port open even if the iOS device goes to sleep.
There doesn't seem to be a way to re-establish an Observatory connection after the device goes to sleep. Which means, if I spend a few minutes exploring Observatory's Web UI, and my iOS device goes to sleep, I need to rebuild (flutter run --profile), get a new port number, and start my profiling all over.
Thanks for any help here! :)

cc @johnmccutchan

@chinmaygarde Any idea why iOS is shutting down the port?

Is this still an issue?

I assume this is still an issue, and it's therefore likely to be seen by many users on iOS, so I'm leaving it in the current milestone.

https://github.com/flutter/flutter/issues/9351 will partly alleviate this but we can't keep the port open indefinitely using available iOS APIs.


Loosen control type and some fixes

The control type of the PR here was so strict that it would a breaking change:
https://github.com/ComponentDriven/csf/pull/75
At least for our monorepo it was. So I loosened it, and also made some fixes such as that options could only be strings.

📦 Published PR as canary version: 0.1.4--canary.83.ab72fee.0

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

:rocket: PR was released in v0.1.4-next.0 :rocket:

:rocket: PR was released in v0.1.4 :rocket:


Remove unnecessary parentheses

/cc @DamianEdwards

@dougbu can you merge this is too

Sure I'll :shipit: for you

1e3b462

Thanks @hishamco


There is no filed of customer other info .

after installation of fresh copy of django and django crud adminlie .I found there is not other filed like , just showing this
https://i.imgur.com/ku0kvFL.png
So I am missing something ?

Hey @tousif12, what versions of Django and django-cruds-adminlte are you using? is it supposed to be the demo/testapp?. Are there some other errors in the django log or in the browser developer tools console?.

django is 2.7  and  django-cruds-adminte    I got pull from master

Hi, What do you want to see when install django-cruds-adminlte,  I think you are looking the demo site. But remember you need to create your own models and register as view to see something different.
In other hands I am working in some incompatibilities with django 2.x and python 3.

@luisza   I am not seeing on customer tab ( Additional info tab to upload image of customer and additional info ) .why Its not appearing ?

Hi, I discover the error. :)
Basically in test app are not follow the documented behavior, it's using custom_forms but this attribute it's not supported in CRUDView class, I don't know why this parameter is set.
I will update demo test in few hours and make a PR.

I guest #81 solve this

Sorry django is 2.0.5.  when I did   django-admin.py version   within demo . And according to #81 resolved I updated but no luck . maybe its due to some plugin ?  that other information and image uploader section

And kindly last thing.  I got customer tab all crud froms in demo /template/testapp/customer/ccrud   . while where are address and invoices templates ? I just found there views . kindly help in that aswell . I know its irrespective to this platform


Add Support for Alexa to control compatible HAP-NodeJS devices

After 6 months of beta testing with users, I ready to submit this a pull request against the main version.   This changes adds an additional API to HAP-NodeJS, that support control from Alexa of compatible devices.  The implemented API, emulates enough of a Philips Hue Hub API to enable to Alexa to think that HAPNode-JS is a Hue hub.  Currently only LightBulb, Outlet, Switch, and Fan devices are exposed to Alexa.
At this time the feature can only be enabled via homebridge, I will send that pull that request as well.

Hi there,
First I'd really like to thank you for spending time working on this, I'm glad it worked out for you.
However, I'm afraid I will not merge this to the library since the library itself is about acting as a simple layer for HAP and I don't think adding SSDP and fake Hue API is a reasonable thing to do in this library.
Please let me know if you think otherwise.
Thanks!

I’m okay with not merging this in, do you have any thoughts on other integration patterns?  I was trying to do this without forcing a lot complexity onto the end users to enable the feature.  A homebridge plugin would work, but it would need access to all the accessories and be able to control them.  Are there any examples of that?

On Oct 11, 2017, at 8:16 PM, Khaos Tian<EMAIL_ADDRESS>wrote:
Hi there,
First I'd really like to thank you for spending time working on this, I'm glad it worked out for you.
However, I'm afraid I will not merge this to the library since the library itself is about acting as a simple layer for HAP and I don't think adding SSDP and fake Hue API is a reasonable thing to do in this library.
Please let me know if you think otherwise.
Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Right now there isn't a proper way for homebridge plugin to get all accessories hosted by homebridge. Technically this should cover the need for a plugin to achieve this goal but right now there is no timeline for building that enhancement...

I spent the evening looking at alternate approaches, and was looking at the event bus in HAP-NodeJS.  If the event bus from HAPServer was exposed to a homebridge plugin, it would expose all accessories and the ability to control.
My experience with the nodejs event framework is limited so if it is already exposed, sorry about the question.

On Oct 12, 2017, at 1:36 AM, Khaos Tian<EMAIL_ADDRESS>wrote:
Right now there isn't a proper way for homebridge plugin to get all accessories hosted by homebridge. Technically this should cover the need for a plugin to achieve this goal but right now there is no timeline for building that enhancement...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

The HAPServer is not designed to be modified by plugin. The ideally solution would be have homebridge provide it's own abstraction on top of the HAP layer (accessory, service and characteristic), and then provide event hooks for plugin to access registered accessories.


Can something be added to the deprecation notice to describe what we should use instead?

The big yellow bog says that Kubernetes web dashboard is deprecated, but doesn't say which alternative(s) exist and should be used.

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

ID: 2ba1dad2-9792-2a7b-cdb6-68da0524cff3
Version Independent ID: 42736112-f6db-d241-e89b-48fd2c35ceb7
Content: Manage an Azure Kubernetes Service cluster with the web dashboard - Azure Kubernetes Service
Content Source: articles/aks/kubernetes-dashboard.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

@JohnRusk
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

@mlearned
Can you please check and add your comments on this doc update request as applicable.

@JohnRusk, thanks for your feedback!
The replacement for the web dashboard is the Kubernetes resource view in the Azure portal. It's described in Access Kubernetes resources from the Azure portal (Preview). I updated the web dashboard page to link to the alternative, the update should be live in a few hours.
#please-close


Google Auth - unsupported_response_type

I'm currently using the following code to attempt to authenticate with google.
var auth = new OAuth2Authenticator(
"clientId",
"openid email",
new Uri("https://accounts.google.com/o/oauth2/auth"),
new Uri("http://localhost"));
However, after entering my password, I receive an error: "unsupported_response_type".  Any ideas on how to move forward?  I've seen some other people having the same problem that suggest registering a "web" client in the google console instead of the "android" client, but I don't want to do that because it requires embedding a client secret in my android app (which is insecure).  It seems like there should be a better way to get this working.  Any ideas?

Why do you think that embedding a client secret is insecure? Even if somebody gets access to it, all they can do is impersonate your app, but nothing more. If they create a malicious app then its the users fault for installing it. If they create a webservice then your redirect URL would prevent them from getting the Auth token.

Someone else impersonating my app is still not ideal, right (even if the impact is maybe minimal)?  Perhaps the answer is "there is no other way right now", and that's an acceptable answer.  I'm really looking for confirmation one way or the other, but I don't want to give up without pursuing the best path possible.  If this were a native android app, I wouldn't have to embed a client secret (instead it uses a SHA-1 hash of your signing cert.  This seems better because Google can verify that it was me that made the request without ever embedding a secret).  Since this is possible in native Android, I was hoping it would also be possible with Xamarin.

According to Googles own article, "A client id and client secret, which are strings that identify your app to the service"
Even if you are able to achieve what you mentioned, in the future if you need to support OAuth platforms apart from Google, you would have to implement the same functionality again.

When app (credentials) is created in google developers console there are several options (Web app, Native Android, Native iOS, etc)... Web app was trick workaround to use Xamarin.Auth, but web apps use Authorisation Code Grant flow where in 2nd step request contains client_secret. Web apps are considered secure (more secure than mobile/installed apps).
In this case ctor was created for Implicit grant (with response_type=token) and google needed response_type=code. Thus the error.
New Native UI OAuth by google does not require client_secret (this should not be saved/located on insecure client - mobile app)

closing


WorkSpan connector new actions

New Action: Get Report List
New Action: Get Report Data

Usability Enhancements:
       Added Report.Submit object for subscription in Subscribe to WorkSpan Object Events trigger.

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)

[ ] I attest that the connector works and I verified by deploying and testing all the operations.
[ ] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[ ] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[ ] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[ ] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[ ] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[ ] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[ ] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[ ] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

@WorkSpan-Engineering Since you have raised a new PR, I am closing this PR. Please feel free to reopen the PR if you are trying to add something new than the latest PR. Thanks


Bugfix/azuread next page

We are having some large groups in Azure AD with more than 100 members and @odata.nextLink is not getting processed

closes #72

fixes #81


Update all Files to .txt

Currently, the mix with the filetype of .txt is inconsistent and random.
With the upcoming addition of karma.txt in #26 and log.txt from #18, all files should be made into .txt files.
This will also help with compatibility for users who wish to run DankReddit bots outside of the ecosystem I have created on my machine. (File structure, order, name, etc.) As well as helping file sorting by file type and separate it from the LICENSE and .gitignore files.
This will include changing the file names for Twitter, reddit, and Imgur account information files.
Also the posts file.

Added these changes. Testing bot now.

Changes seem to have desired effect; Pushing soon.

Pushed. Closed in commit db78ba95e7.


Virustotal, 1/72 seccurity vendor (Bkav Pro) flagged this file as malicious

Hello friend! Im trying to download the script for Youtube DLS. I followed the instructions of your yb video but i had to stop the process due to a detection of a probable malware that shows Virus total. I start to look more deeply into the information to confirm if it was a false positive or not, and everything indicate that indeed it was a false positive, until I look into the Relations of yt-dlp.exe.
On the graph is possible to notice that the "Relation execution parents" is full of Exe files that have several detections of probable Malware.
Im really looking into try your contribution, but this scared me really hard.
Can you do something about it? Idk much about scripts but is it possible to find a way to "save" or update the file? or can you explain to me how this work if i misintepret everything xD.
Thank you for your time and i hope you could help me.
Peace c:

If I have understood correctly, it is yt-dlp.exe that you are referring to, not any of the scripts written by me?
Based on what I have seen, the Relations tab, particularly the Execution Parents (which has the highest amount of flags) shows that the file (yt-dlp.exe) is being used by some malware that is masquerading as video downloaders. Which does not mean that YT-DLP is malware.
If YT-DLP was indeed malware, it would be a massive problem as it is used in a lot of different applications. But it would be difficult for it to, well, be malware, since it is open-source (makes it easier to audit the code) and is used by so many people and services.

Could you explain what you mean by "save or update the file"? I am not sure I understand what you mean by that.

Closing due to inactivity


release 1.10/ack improvement highcpu consumption

Fixes #
Highcpu consumption. Introduced by PR https://github.com/knative-extensions/eventing-natss/pull/267/commits/41b2d7661ba85cb6b8e77ea404179cb7f0a0db37 to solve jetstream redelivery. It should be controlled by AckWait consumer configuration.
cc @dan-j
Proposed Changes
Removed code which created timer for each incomming message to mark InProgress to prevent redelivery from JetStream steam.

🐛 Fix bug

Release Note
Fixes high cpu consumption of dispatcher

So I added this because we ran into an issue where the time to spin up a Knative Service from 0-replicas was longer than the default AckWait. The dispatcher doesn't know when the *nats.Msg has expired, and the request is held on the knative activator until the service is ready. By the time the request is actually handled the AckWait has passed and the Ack fails.. However, now JetStream thinks the message hasn't been delivered so attempts a redelivery.
In an ideal scenario, the dispatcher would know about the AckWait and dispatch the actual HTTP request using a context with timeout AckWait - jitter (some jitter to make sure there's time for the dispatcher to do it's processing before/after the request). It doesn't look like you can access the AckWait/deadline on the *nats.Msg directly, but you could get the ConsumerInfo from the *nats.Subscription when creating the Consumer during Dispatcher#subscribe(). The ConsumerInfo has a Config.AckWait field, but I'd double check this is properly set if defaults are used when it's created.
I wouldn't want to merge this PR as-is until we have a solution for this 0-replica cold-start issue, but happy to hear any alternative solutions?

Ah, another point...
I'm not 100% sure, but I feel like nats.QueueSubscribe() receives messages in batches and then calls the MsgHandler in serial. I observed this when working on https://github.com/knative-extensions/eventing-natss/commit/41b2d7661ba85cb6b8e77ea404179cb7f0a0db37, which is why forwarding the actual event is done in another goroutine.
If this PR changes to my suggestion of setting a timeout on the request context, the jitter also needs to take into account that, from an AckWait perspective, the message is considered as "delivered" the moment it's received by the client. I'm not sure there's a way to know what this duration is, I imagine it will typically be sub-milliseconds but could spike to longer if there's high load.

So I added this because we ran into an issue where the time to spin up a Knative Service from 0-replicas was longer than the default AckWait. The dispatcher doesn't know when the nats.Msg has expired, and the request is held on the knative activator until the service is ready. By the time the request is actually handled the AckWait has passed and the Ack fails.. However, now JetStream thinks the message hasn't been delivered so attempts a redelivery.
Regarding this part, you can set AckWait bigger and set request timeout. E.g. it take 20sec to spin up a service and 30 seconds to process a request, then you set delivery.timeout to 35sec and Channel AckWait to 35(number of retries)+delta, e.g. 120sec

@dan-j ,  overall as I understand you need to calculate AckWait based on delivery.retry and delivery.timeout you set to you channel's subscription. What is the problem just to set it big enough, e.g. 300s? and control slow consumers by MaxAckPending.
Having that timer you basiclly set AckWait to unlimited and add additional load on cpu. In my case I have broker and around 30 triggers which leads to 30 consumers with MaxAckPending=1000 it becomes 30000 timers in the worst case, it creates very big load on CPU.

I'm not 100% sure, but I feel like nats.QueueSubscribe() receives messages in batches and then calls the MsgHandler in serial.

I'm not sure about that, it is push based consumer, if I scale dispatcher it round-robin messages one by one in turn.

Regarding this part, you can set AckWait bigger and set request timeout. E.g. it take 20sec to spin up a service and 30 seconds to process a request, then you set delivery.timeout to 35sec and Channel AckWait to 35*(number of retries)+delta, e.g. 120sec

Yeah this is what I'm getting at. You could do that, but this PR would still introduce bugs in our environment, because the request dispatcher doesn't set any timeout/deadline on the request's context.Context. Which is what I mean about not wanting to merge this as-is.
I'm happy to remove the ticker, your issue is a real one which I agree needs fixing, just we need a solution which works for both of us.
One concern I've always had with the operator is how we handle retries. At the moment it's really confusing because we retry in multiple places: 1) at the JS layer via a consumer's maxDelivery and 2) at the in-memory layer via the DispatchMessageWithRetries() function which configured by the Subscription.
It would be nice to solve both issues here.
The simplest option is to remove redelivery from the JS layer and reuse the DispatchMessageWithRetries() functionality. However this would result in message loss in the event of a pod failure.
The more robust solution is to remove NatsJetStreamChannel.spec.consumerConfigTemplate.ackWait and NatsJetStreamChannel.spec.consumerConfigTemplate.maxDeliver from the CRDs, and calculate the proper JS consumer options based on the Subscription.spec.delivery configuration. Then let JS do all the retrying and use DispatchMessage instead of DispatchMessageWithRetries, setting the context.Context properly to abort requests which time out. This might be a bit of a headache to do exponential backoffs because ackWait would need to be the maximum possible, and the context's timeout would need to be calculated on each retry (which is possible because you can get the redelivery counter from meta, _ := msg.Metadata(); meta.NumDelivered)

hey @dan-j , I've done initial implementation (have not tested it though), your review is welcomed.

Just to add to the above. We've load tested both the current version and this PR and definitely recognise the performance improvements so I'm happy to merge once my one comment above is addressed.
However, I believe there's still more to look into regarding performance, we're noticing a steady increase in CPU over time when put under continuous load, but memory use remains stable, which is a bit confusing. After some thought, our theory is it's on the NATS client itself, but requires us to do some profiling to know for sure.
But, this should be a new issue and not block this PR. I can create a new issue once we have some more concrete evidence, it could just be a configuration thing we need to document, or an issue on NATS itself.

@dan-j , here are results of load test. Scenario is pretty simple:
http workers -> broker (channel) -> trigger (sub) -> functionQ
A functionQ processes a request with random sleep.
Trigger has request timeout, so that functionQ 25% of times fails to process in time.
Please pay attention on blue line, it is http latency of the dispatcher.
Retries are in-memory:

Retries are based on JetStream:

Awesome stuff! Thanks for the graphs too 👍
It's a shame we've had to reimplement the whole message_dispatcher logic but from our earlier conversations this was going the be the only way.
I'm happy to merge this, but need to fix my permissions on the github org so I can't do it just yet

Codecov checks are failing:

https://github.com/knative-extensions/eventing-natss/pull/426/checks?check_run_id=18216441538
https://github.com/knative-extensions/eventing-natss/pull/426/checks?check_run_id=18216441749

@dan-j , now it is green , ready to merge

@pierDipi could we have this merged? I will try to sort my permissions on knative/org or wherever it is this week

/assign @pierDipi

Hi @astelmashenko,
is there a reason, why you're targeting directly 1.10 branch and not main and then backporting it?

Because we are using it in production. I'll backport to later versions with e.g. cherry-pick or manually.

@astelmashenko can we update the PR to go into main and then cherry-pick afterwards.

@dan-j , I would not do that, main was updated and, afaik, is not directly compatible with this PR

Ah, fair enough. Let's try and get this all wrapped up this week. I've created knative/community#1479 to add us both as approvers.
@zhaojizhuang at the moment you're the only approver of this repo, or there's probably an eventing admin who can look.
Once this is in, I'll get the changes onto latest too

/lgtm
/approve

@astelmashenko and I are now approvers, but since this is being merged into knative-extensions:release-1.10 the OWNERS_ALIASES file isn't updated.
Can someone from @knative-extensions/eventing-writers please approve this PR?

@dan-j we can backport the approvers update, feel free to open a PR

/cherrypick main


DataList does not display data/render when bind to the jsonList property

If a data list renders a list of Json, the data does not get displayed. Example: There's a driver entity which has a Json property (subform) and a list of Json property(dataList). The json property is rendered within a subform and within the subform, it has a list of wheels which the data does get displayed. However when the dataList renders on it's own, the data does not gets displayed
Steps to reproduce the behavior:

Go to 'https://function-adminportal-test.shesha.dev/dynamic/Boxfusion.SheshaFunctionalTests.Common/driver-details?id=dfb29cb0-80d7-423e-881b-88d8422a199d'
Check the data displayed and check the section name 'data List Json'
Actual Results: The data list bind to the jsonList property form does not show/data from the jsonList does not display
Navigate to: https://function-adminportal-test.shesha.dev/shesha/forms-designer?id=0100d52f-8a53-42a1-a2a0-9f0743c8c462
Check the configurations
Actual Results: The data list configuration shows and the endpoint called from the frontend only shows data from the json property only

Expected behavior
The json List data should display within the dataList
Data showing from get endpoint on the frontEnd

Data showing directly from swagger:
 {
  "result": {
    "mainCar": {
      "make": "April Test Change",
      "model": "Nissan Upgrade",
      "vinNumber": "HH9090GP",
      "wheels": [
        {
          "type": "Brown",
          "size": 45,
          "spoke": null,
          "_className": "Boxfusion.SheshaFunctionalTests.Common.Domain.Domain.JsonWheel"
        },
        {
          "type": "Red",
          "size": 46,
          "spoke": null,
          "_className": "Boxfusion.SheshaFunctionalTests.Common.Domain.Domain.JsonWheel"
        },
        {
          "type": "Green",
          "size": 47,
          "spoke": null,
          "_className": "Boxfusion.SheshaFunctionalTests.Common.Domain.Domain.JsonWheel"
        }
      ],
      "_className": "Boxfusion.SheshaFunctionalTests.Common.Domain.Domain.JsonCar"
    },
    "otherCars": [
      {
        "make": "Other Cars1",
        "model": "VW GP",
        "vinNumber": "VVV7890GP",
        "wheels": [
          {
            "type": "Test1",
            "size": 90,
            "spoke": null,
            "_className": "Boxfusion.SheshaFunctionalTests.Common.Domain.Domain.JsonWheel"
          },
          {
            "type": "Test2",
            "size": 92,
            "spoke": null,
            "_className": "Boxfusion.SheshaFunctionalTests.Common.Domain.Domain.JsonWheel"
          }
        ],
        "_className": "Boxfusion.SheshaFunctionalTests.Common.Domain.Domain.JsonCar"
      },
      {
        "make": "Other Cars 2",
        "model": "Model Change",
        "vinNumber": "VVV789000",
        "wheels": null,
        "_className": "Boxfusion.SheshaFunctionalTests.Common.Domain.Domain.JsonCar"
      }
    ],
    "id": "dfb29cb0-80d7-423e-881b-88d8422a199d"
  },
  "targetUrl": null,
  "success": true,
  "error": null,
  "unAuthorizedRequest": false,
  "__abp": true
}

This issue might be related to this: #1248


Bumping axios to 0.21.1

This will get the fix for the security vulnerability on axios.
https://github.com/axios/axios/pull/3410

Hi! Just chipping in to say that this needs to get merged fast.
Google Cloud blocks deployment due to this vulnerability, and so renders Postmark useless for e.g. Firebase Functions-projects.

Hi! Just chipping in to say that this needs to get merged fast.
Google Cloud blocks deployment due to this vulnerability, and so renders Postmark useless for e.g. Firebase Functions-projects.

we released new version couple of minutes ago, with latest axios version

we released new version couple of minutes ago, with latest axios version


Feature request: Support CSS object arrays as the first argument

I would like Styled Components to support CSS object arrays as the first argument to:

css
styled
createGlobalStyle

Currently, these functions only support a single CSS object as the first argument—while an array of CSS objects can be passed as the second argument:
import styled, { css } from "styled-components"

const styleArray = [{ color: "red" }, { color: "blue" }]
const styleFunc = () => styleArray

const css1 = css({}, styleArray) // Works
const css2 = css(...styleArray) // Works
const css3 = css(stylesFunc) // Works
const css4 = css(styleArray) // Doesn't work. Only { color: "red" } is applied

const Div1 = styled.div({}, styleArray) // Works
const Div2 = styled.div(...styleArray) // Works
const Div3 = styled.div(stylesFunc) // Works
const Div4 = styled.div`${styleArray}` // Works
const Div5 = styled.div`${stylesFunc}` // Works
const Div6 = styled.div(styleArray) // Doesn't work. Only { color: "red" } is applied

Given that an array of CSS objects can be used as the only argument in a tagged template literal as demonstrated in Div4 and can also be returned from an interpolation function as demonstrated in css3 and Div3—it would make sense for Styled Components to support an array of CSS objects as the first argument as demonstrated in css4 and Div6.
This small change would make for a more intuitive API when using CSS objects. For those of us that prefer to use CSS objects, the current implementation is a bit of a gotcha.
I am working on a library called onno which is based on some of the ideas introduced by Styled System and Theme UI. Onno's css function takes a CSS object or an array of CSS objects and returns an array of CSS objects. The function signature for onno's css function looks like this:
function css(styles: CSSObject | CSSObject[]): CSSObject[]

Consistently returning the same type from this function makes it easier to map/reduce/compose the results without having to check whether the result is an array or object. Working with CSS object arrays also allows for styles to be predictably overridden and applied as demoed with the 2 color styles in the example above.
In order for onno to work gracefully with Styled Components, the css/styled/createGlobalStyle functions would need to support an array of style objects as the first argument.
With the current implementation, I need a section in the onno docs outlining the variations that do work and those that don't as demonstrated above.
I have written some integration tests for Styled Components and Emotion with onno's css and props functions. As you will see, Emotion's css and styled functions are compatible with the result of onno's css and props functions while Styled Components requires a superfluous empty object to be passed first.
Introducing this proposed change would allow me to remove the empty object passed as the first argument to Styled Components' css and styled functions.
Thank you for your consideration.

I'm ambivalent... @mxstbr, @kitten?


[Question] How To Send Break Signal?

Is there a way to send break signal to a port.

Not in the lib, there is a PR: https://github.com/tarm/serial/pull/110 but it looks like the author no longer maintaining this lib


Unmark nix-diff as broken

Motivation for this change
nix-diff is currently marked as broken, but it builds cleanly. See #84116
Things done

Unmarked nix-diff as broken

Put myself as maintainer for this package since I am using it

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)

Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"

[x] Tested execution of all binary files (usually in ./result/bin/)

[ ] Determined the impact on package closure size (by running nix path-info -S before and after)

[ ] Ensured that relevant documentation is up to date

[x] Fits CONTRIBUTING.md.

Tested this locally, looks good. Thanks for fixing this up!


I would like to have an animation on deleteItem like fade

maybe i can made it with onItemDeleting?

The problem currently is a behavior of the grid on item deleting. It refreshes the grid.
Here I explained how it works and how it maybe changed.
Thus, it's doable now with a little tricky workaround:
jsGrid.loadStrategies.DirectLoadingStrategy.prototype.finishDelete = function(deletedItem, deletedItemIndex) {
    var grid = this._grid;
    grid.option("data").splice(deletedItemIndex, 1);
    var $row = grid._rowByItem(deletedItem);
    $row.fadeOut({
        done: function() {
            $row.remove();
        }
    });
};

See working fiddle: http://jsfiddle.net/tabalinas/z6ffzah5/

Decided not to implement for the moment. For now the workaround above can be used.

I need to achieve this but the workaround is not working (2015 issue I know...)


[Errorlog] Delete elog verbose console logging

Suppress delete error log entries.

https://gerrit.openbmc-project.xyz/#/c/5060/


bug: kitty-scrollback.nvim hangs after kitten ssh (blank screen after ssh)

Thank you for the plugin.
I really wanted a vi mode in scroll back.
It seems to work well for me for local commands, but if I enter an ssh server, neovim is blank in scrollback mode.
Has anybody tried in ssh?
Using the default less works fine in ssh.

Hey @ismasou, thanks for reporting.
I have successfully used it over ssh. Could you provide some steps to reproduce or a video/screenshot?
Also, could you provide the output of :KittyScrollbackCheckHealth ? This will help me get information about your setup.

@ismasou , I just pushed a fix for that a few minutes ago 🙂. Could you pull latest and try again for the checkhealth?

@ismasou interesting, I just tried with kitten ssh and aliasing ssh to kitten ssh and didn't have any issues. Do you have any extra configs around kitten ssh that you can share?

I am hitting the same problem when I use the kitten ssh which unfortunately I need to do every time on some destinations that have ephemeral home directories.
Here is my :KittyScrollbackCheckHealth.
Screenshot below, although it's a bit useless:
.
If I press i, it changes to this:

Finally, to exit out of this I press Escape twice and get slightly better error message:

Here is my kitty.conf from the time the screenshots were taken.
ps. just to confirm, it works without kitten.

@skrobul thanks for the info, that was helpful. I was finally able to reproduce using Linux, I couldn't reproduce on a Mac. I'll dig into this

Hey @skrobul and @ismasou thank you for reporting the issue, I have investigated a bit on my end and think I have it working. Would you mind testing with the branch troubleshoot-kitty-ssh https://github.com/mikesmithgh/kitty-scrollback.nvim/pull/113.
The problem seems to go away when I unset the environment variable KITTY_KITTEN_RUN_MODULE. I need to further investigate the impact of this, but this looks to be used around ssh_askpass. I don't think it should impact anything since it is only modified in the scope of kitty-scrollback.nvim.
Please let me know if it works and if you discover any other issues. I don't use kitten ssh that often (although I may start to now 😹) so you may know of some other edge cases that I am not aware of.

Would you mind testing with the branch troubleshoot-kitty-ssh https://github.com/mikesmithgh/kitty-scrollback.nvim/pull/113.

After checking out a3c152a the problem is resolved for me, thank you very much !

@skrobul awesome! merged 😸


am-jpn-cost

Here is pull request for am-jpn-cost. I hope I'm doing right thing in right way.

Looks good


Support for Dvorak / alternative keyboard layouts

Hey! I love this project, but I use Dvorak to type.
Let's say I want to go to fj. In order to jump to a certain location on the screen, I have to press the hardware key that corresponds to where f and j are on the QWERTY keyboard; not where they are located on my keyboard layout (Dvorak).
Is there an existing way that I can use a Dvorak keyboard with Warpd? If not, I am more than happy to make the changes myself, but I don't know where to make changes to enable this.
Is there current support for alternative software-level keyboard layouts (in particular Dvorak)?

This should be fixed in the latest commit. I assume you are running an older version.

Hi -- this issue isn't resolved.
I've tried with the Mac pre-installed Dvorak version, and with a custom .keylayout file that I compiled myself. Both ultimately use the QWERTY key layout to move the mouse.
Here's my version info:
> warpd --version
warpd v1.3.4-osx (built from: daf11b2)

And here are all the keyboard layouts that I tested. All of these keyboard will default to the QWERTY built-in keyboard.
                {
            InputSourceKind = "Keyboard Layout";
            "KeyboardLayout ID" = "-25082";
            "KeyboardLayout Name" = "JDvorak keyboard (iso)";
        },
                {
            InputSourceKind = "Keyboard Layout";
            "KeyboardLayout ID" = 16300;
            "KeyboardLayout Name" = Dvorak;
        },
                {
            "Bundle ID" = "com.google.inputmethod.Japanese";
            "Input Mode" = "com.apple.inputmethod.Japanese";
            InputSourceKind = "Input Mode";
        },
                {
            InputSourceKind = "Keyboard Layout";
            "KeyboardLayout ID" = "-1";
            "KeyboardLayout Name" = "Unicode Hex Input";
        },
                {
            "Bundle ID" = "com.apple.inputmethod.SCIM";
            "Input Mode" = "com.apple.inputmethod.SCIM.Shuangpin";
            InputSourceKind = "Input Mode";

        }

What's the current method that's detects what keyboard layout a user is using?

I found the fix!
Uninstalling and re-granting Accessibility permissions inside System Preferences worked, and now warpd works with all the above-listed keyboards.
But... there's still a bug.
It seems that warpd only checks the keylayout once.  The same is true if I start running warpd when my keyboard is in QWERTY, and later switch to Dvorak.


Detects a new image but doesn't download it

The program recognizes that an image was placed in the channel but fails to download it.

nvm i think i found the mistake

nvm that didnt fix shit

@piealex Can you show output from the bot with "debugOutput": true, in the settings?


Mafia finally grows docs

:100:

Would be nice to mention the script, makes it pretty easy to get started.
Folks also might expect mafia install to install the package in pwd
:shaved_ice: awesome

Folks also might expect mafia install to install the package in pwd

Yeah I was thinking a bit about that, it would also be awesome to be able to say:
$ $(mafia install ambiata/mismi/mismi-s3)/s3

and have it install executables from github repos

@charleso @thumphries added a section on using the script

Worth mentioning the project.submodules file for pointing to non-git submodule dependencies.
@jystic

@tmcgilchrist oh yeah, good point

For those monorepo savages.

@tmcgilchrist you know what, i think i might just fix it so you don't even need the .submodules file, probably easier than explaining its legacy.

:rocket:
On Wed, Feb 17, 2016 at 1:22 PM, Jacob Stanley<EMAIL_ADDRESS>wrote:

@tmcgilchrist https://github.com/tmcgilchrist you know what, i think i
might just fix it so you don't even need the .submodules file, probably
easier than explaining its legacy.
—
Reply to this email directly or view it on GitHub
https://github.com/ambiata/mafia/pull/80#issuecomment-184980566.


Add type parameters to allow for schema type constraints

Concurrently with #17, we should investigate adding phantom type parameters to ObjectType and SelectionSpec representing a type marker corresponding to a type from the target schema:
type ObjectType schemaType
    = ObjectType

type SelectionSpec schemaType selectionType result vars
    = SelectionSpec AST.Selection (AST.SelectionSet -> Decoder result) (List (Variable vars)) (List AST.FragmentDefinitionInfo)

This would allow each module that provides helper functions for an object/interface/union type to constrain those functions such that they only operate in correct ways according to the source schema. For example:
module Schema.Types.User exposing (..)

import GraphQL.Request.Builder exposing (..)
import Schema.Types as Types

name : SelectionSpec Types.User String vars
name =
    field "name" [] string

projects :
    List ( String, Arg.Value vars )
    -> ValueSpec NonNull (ObjectType Types.Project) result vars
    -> SelectionSpec Types.User (List result) vars
projects args projectSpec =
    field "projects" args (list projectSpec)

Note: instead of adding this parameter to ObjectType, it may be preferable to add it to ValueSpec, and allow it for non-object types as well. SelectionSpec should then get the same parameter which refers to the type of the containing object.

Closing for the foreseeable future along with #17.


Feature request: Intel AI optimized ResNet50 v1.5 in CM/Docker

Please add Intel's implementation of ResNet50 v1.5 for CPU and XPU (desktop, mobile, Arc, Flex, Max, etc. optimizations) to the CM Docker-based workflow.
Thanks!

Sorry @WarrenSchultz I couldn't update you on this. Intel ResNet50 implementation was a bit difficult to add but we are still working on it. I'll update you tomorrow.

No worries, thanks for the update!

Hi @WarrenSchultz unfortunately I couldn't complete it today. And this Friday we are having a tutorial on CM for MLPerf inference and so I'll be able to fix this only next week. Please feel free to join the tutorial if you have time.

Hi @arjunsuresh , I see that there was a PR merged last week. Any update on getting this running (or if it is implemented at some level, docs to do so?) Thanks!

Hi @WarrenSchultz it is only partially done currently and we are working on it today. Hope to get it running by EOD.

Great, thank you!

I hate to ask before everything is checked in, but as I was looking through the code in progress as it currently stands, I wanted to confirm the Intel GPU (Arc, NPU, etc) code is going to be supported in the CM implementation (e.g. https://www.intel.com/content/www/us/en/support/articles/000097597/processors.html )
Thanks!

No worries @WarrenSchultz. We are adding the official Intel code - AFAIK it only supports CPU that too Intel 13th generation and above for most of the benchmarks. If there is any Intel documentation for benchmarking on Intel GPUs we can add them in CM.
We have finished adding ResNet50 Intel implementation and getting expected performance - 5800 QPS on a 24 core machine. But the accuracy is only 1% - so we are debugging what is happening here.

Thanks @arjunsuresh , this is the code I was referencing, I forgot to include it with the link above. We're working with mobile Arc GPUs, so I'm not positive that it will work with the current hardware we're testing, but we have done testing with datacenter-grade Intel GPUs in the past.
https://github.com/intel/models/tree/master/models_v2/pytorch/resnet50v1_5/inference/gpu

Example hardware would be from the Core Ultra 9/7/etc series, which is supposed to support
"OpenVINO™, WindowsML, DirectML, ONNX RT, WebGPU".
https://www.intel.com/content/www/us/en/products/sku/236849/intel-core-ultra-9-processor-185h-24m-cache-up-to-5-10-ghz/specifications.html
Thanks!

We have finished adding ResNet50 Intel implementation and getting expected performance - 5800 QPS on a 24 core machine. But the accuracy is only 1% - so we are debugging what is happening here.

I missed this edit. Thanks for digging into it.

Thank you @WarrenSchultz for sharing the link. It should not be difficult to add that in CM but I believe there are no MLPerf loadgen support for it from Intel - they might do it in the next round of inference submissions. You are looking to get MLPerf scores on Intel GPU right?
We are still checking the accuracy issue for Intel R50 but the workflow is now working in docker and so you can try it for getting the performance. This needs pytorch build from src.
cm run script --tags=run-mlperf,inference --implementation=intel --model=resnet50 --quiet --docker

@arjunsuresh Great, thanks, I'll give it a shot. Do you know the memory requirements for this offhand to build?

Not exactly. We have tested on 64G systems but we do have a lot of swap space. Most probably 32G should be sufficient. The accuracy issue is partially solved by using the Intel published quantization scales - so the problem is in generating them locally.

Accuracy file: /home/cmuser/CM/repos/local/cache/f88c69500c934b67/test_results/9cfb69cca02c-intel-cpu-pytorch-vdefault-default_config/resnet50/offline/accuracy/accuracy.txt

accuracy=74.474%, good=37237, total=50000

Oh, @arjunsuresh just to confirm, this is from gateoverflow@cm4mlops or is there a better repo?

yes thats the repo for the Intel MLPerf docker command, but this change is not pushed as it is not perfect yet. Today we have a presentation on CM scripts and so won't be able to fix this issue. Hopefully it'll be resolved tomorrow.
Also, now we have pip install cm4mlops which does the cm pull repo mlcommons@cm4mlops --branch=mlperf-inference which is a more stable version than gateoverflow@cm4mlops which is where the MLPerf development happens. We normally sync these every couple of days.

buildlog.txt
Testing based on what is in the gateoverflow repo as of this moment, worked fine on an older machine, but failed on a Core Ultra 9. I teed the output to the attached file in case it helps.

@WarrenSchultz I believe the failure there is due to some micro-architecture specific compilation. We are testing on Intel sapphire rapids - will give a try on i9 now. The accuracy issue is now sorted as well.

Same issue here. It fails on i9 but works fine on Xeon.
(cm) arjun@intel-spr-i9:~/CM/repos/gateoverflow@cm4mlops/script$ lscpu
Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          46 bits physical, 48 bits virtual
  Byte Order:             Little Endian
CPU(s):                   32
  On-line CPU(s) list:    0-31
Vendor ID:                GenuineIntel
  Model name:             13th Gen Intel(R) Core(TM) i9-13900K
    CPU family:           6
    Model:                183
    Thread(s) per core:   2
    Core(s) per socket:   24
    Socket(s):            1
    Stepping:             1
    CPU(s) scaling MHz:   17%
    CPU max MHz:          5800.0000
    CPU min MHz:          800.0000
    BogoMIPS:             5990.40
    Flags:                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtsc
                          p lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_
                          cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dn
                          owprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 er
                          ms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat
                          pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm
                          md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities
Virtualization features:
  Virtualization:         VT-x
Caches (sum of all):
  L1d:                    896 KiB (24 instances)
  L1i:                    1.3 MiB (24 instances)
  L2:                     32 MiB (12 instances)
  L3:                     36 MiB (1 instance)

arjun@arjun-spr:~/CM/repos/gateoverflow@cm4mlops/script/install-pytorch-from-src$ lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         52 bits physical, 57 bits virtual
  Byte Order:            Little Endian
CPU(s):                  48
  On-line CPU(s) list:   0-47
Vendor ID:               GenuineIntel
  Model name:            Intel(R) Xeon(R) w7-2495X
    CPU family:          6
    Model:               143
    Thread(s) per core:  2
    Core(s) per socket:  24
    Socket(s):           1
    Stepping:            8
    CPU(s) scaling MHz:  62%
    CPU max MHz:         4800.0000
    CPU min MHz:         800.0000
    BogoMIPS:            4992.00
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp
                          lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cp
                         l vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm a
                         bm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 invpcid_single intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi fle
                         xpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt c
                         lwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect
                          avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni
                          vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serial
                         ize tsxldtrk pconfig arch_lbr ibt amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities
Virtualization features:
  Virtualization:        VT-x
Caches (sum of all):
  L1d:                   1.1 MiB (24 instances)
  L1i:                   768 KiB (24 instances)
  L2:                    48 MiB (24 instances)
  L3:                    45 MiB (1 instance)

Well, that's not awesome. Do you see a way around that on your side, or should I try to engage with Intel?

Our first priority is to reproduce the Intel submissions on Xeon. But I can try to use some compilation flags to see if it works on i9. Do you have the CPU info of the old system where it ran fine?

Sorry I missed this. The one that worked is an older Xeon.
 lscpu Architecture:            x86_64   CPU op-mode(s):        32-bit, 64-bit   Address sizes:         46 bits physical, 48 bits virtual   Byte Order:            Little Endian CPU(s):                  64   On-line CPU(s) list:   0-63 Vendor ID:               GenuineIntel   Model name:            Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz     CPU family:          6     Model:               85     Thread(s) per core:  2     Core(s) per socket:  32     Socket(s):           1     Stepping:            7     BogoMIPS:            5786.40     Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse ss                          e2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology tsc_rel                          iable nonstop_tsc cpuid pni pclmulqdq vmx ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 x2apic movbe p                          opcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid                          _single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi ept vpid ept_ad fsgsbase tsc_adjust                          bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx5                          12bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512_vnni md_clear flush_l1d arch_capabilities Virtualization features:   Virtualization:        VT-x   Hypervisor vendor:     Microsoft   Virtualization type:   full Caches (sum of all):   L1d:                   1 MiB (32 instances)   L1i:                   1 MiB (32 instances)   L2:                    32 MiB (32 instances)   L3:                    22 MiB (1 instance) Vulnerabilities:   Gather data sampling:  Unknown: Dependent on hypervisor status   Itlb multihit:         KVM: Mitigation: VMX disabled   L1tf:                  Not affected   Mds:                   Not affected   Meltdown:              Not affected   Mmio stale data:       Mitigation; Clear CPU buffers; SMT Host state unknown   Retbleed:              Mitigation; Enhanced IBRS   Spec rstack overflow:  Not affected   Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp   Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization   Spectre v2:            Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence   Srbds:                 Not affected   Tsx async abort:       Mitigation; TSX disabled

Thank you @WarrenSchultz . It seems the Intel ResNet50 kernel code is using intrinsics and they are done only for Xeon processors. I'm not familiar with the difference between Xeon and i9 series. Passing different "-march" flag didn't help because the intrinsic code is hardwired. Did Intel confirm that their code can run on desktop processors?
All the dependencies are working fine - only the final R50 kernel code is the problem.

This is the code. If we see the official MLPerf results, Intel (including their server partners) has only submitted results on only a couple of server configurations and so we can't easily get a support from their MLPerf team for running on a different CPU.

Got it, thanks. Looking into it. Also, the container did eventually run on an 11th gen i7. (But at 16GB of RAM, it took an eternity to do so)
Architecture:            x86_64
CPU op-mode(s):        32-bit, 64-bit
Address sizes:         39 bits physical, 48 bits virtual
Byte Order:            Little Endian
CPU(s):                  8
On-line CPU(s) list:   0-7
Vendor ID:               GenuineIntel
Model name:            11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
CPU family:          6
Model:               140
Thread(s) per core:  2
Core(s) per socket:  4
Socket(s):           1
Stepping:            1
BogoMIPS:            5990.42
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_ts
c arch_perfmon rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 movbe popcnt aes xsav
e avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase bmi1 avx2 smep bmi2 erms invpc
id avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512vbmi umip
avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm avx512_vp2intersect md_clear flush_l1d arch_capabilities
Virtualization features:
Hypervisor vendor:     Microsoft
Virtualization type:   full
Caches (sum of all):
L1d:                   192 KiB (4 instances)
L1i:                   128 KiB (4 instances)
L2:                    5 MiB (4 instances)
L3:                    12 MiB (1 instance)
Vulnerabilities:
Gather data sampling:  Unknown: Dependent on hypervisor status
Itlb multihit:         Not affected
L1tf:                  Not affected
Mds:                   Not affected
Meltdown:              Not affected
Mmio stale data:       Not affected
Retbleed:              Mitigation; Enhanced IBRS
Spec rstack overflow:  Not affected
Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2:            Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Srbds:                 Not affected
Tsx async abort:       Not affected

oh. So, the R50 build worked fine on 11th gen i7 and fails on 13th gen i9? That's surprising...

Closing this issue. Feel free to reopen if issue persists.


Reachability class name conflict

What would you like to share?
【Reachability.h】 and 【Reachability.m】 may have the same name as in other projects，this can cause symbol conflicts when compile. Please replace Reachability with OIMReachability.
Additional information
No response

Please update the SDK.


using ctrlp locks cursor

I'm usin Ctrlp.vim for fuzzy file finding , when i open ctrlp with Ctrl+p, Cursor goes down to the ctrlp search results list, after that , i can move the cursor but its not shown and the cursor blinking block is locked at the bottom .
Before opening Ctrlp:

Look at the cursor, its totally free and normal.
While using Ctrlp:

Look at the cursor, now it selected the > character in ctrlp search results list.
After opening a file with Ctrlp:

Look at the cursor, now its locked , showing > character in the position that it was while using ctrlp.

Hi :)
Thanks for this issue report.
I believe this issue is the same issue as #309 based on your description.
The fix for this issue has already been included in master and is fixed in the latest version.
Could you please check if the issue is reproduced in the latest CI artifacts?
https://github.com/akiyosi/goneovim/actions/runs/1802571992

@akiyosi
Hi :D I installed a new distro and i faced the same problem with goneovim-bin package so i went to build goneovim-git but im getting this errors:

Any help ?

@ehsanghorbani190
Hi :)
Hmm, I'm not sure since there are no errors, but I recently updated the library goqtflamelesswindow that I use in goneovim, so the library in your environment is still old from a previous build, which is why goneovim is failing to build It may be.
I don't know how the dependent libraries are managed though, since goneovim-bin is not directly maintained by me.
I'm out of town for a bit right now, so I'll look into it some more when I get home.

@akiyosi ok :) i'll be waiting for updates. have a nice time :D

You can download the AUR package for goneovim-bin and modify the PKGBUILD to install nightly version. That's what I do. To do that, modify the url in source to nightly url and replace the checksum for it (the first one) with 'SKIP'. Then, install it using makepkg -fsi.
If it helps, I put all AUR packages inside a folder and have the below script in that folder. I also added a shell alias for this to make installation easier. You'll have to use full path inside the alias. Another thing to note is that, line 24 has ZSH-specific code, if you're going to use a different shell, don't forget to change it.
#!/bin/zsh

set -e
#set -x

local build_dir=/tmp/local-aur_builds
local aur_dir=$(dirname "$0")

if [[ "$#" -eq 0 || "$1" = "--help" ]]
then
  echo "No package name given." >&2
  echo "Usage: $0 <package_name>" >&2
  echo
  echo "\t-a\tInstall all packages."
  echo "\t-l\tList available packages."
  return 1
fi

local -a pkgs
# add an option to ignore given packages and maybe
# use zsh optparse.
case "$1" in
  (-l)
    find -files0-from =(print -rNC1 -- "$aur_dir") -mindepth 1 -maxdepth 1 -type d
    ;;
  (-a)
    for d in "$aur_dir"/*
    do
      [ -d "$d" ] && pkgs+=$(basename "$d")
    done
    ;;
  (*)
    pkgs=("$@")
    ;;
esac

# Don't pollute $aur_dir
for v in PKGDEST SRCDEST SRCPKGDEST LOGDEST
do
  export "$v"="$build_dir/$v"
done

for pkg in "$pkgs[@]"
do
  local pkg_dir="$aur_dir/$pkg"

  if [ ! -d "$pkg_dir" ]
  then
    echo "Error: aur-install: Not a package dir: $pkg_dir" >&2
    continue
  fi

  echo "Entering pkg dir: $pkg_dir"
  pushd "$pkg_dir"

  makepkg --printsrcinfo >! .SRCINFO
  makepkg -fsi

  echo "Exiting pkg dir."
  popd
done


[AD] Support container names in file based AD

What does this PR do?
The ad_identifiers section in check config files now supports container names in Kubernetes environments. Before this feature, only container short images were supported.
Motivation
Needed to target a specific container, when multiple containers are using the same image in the same Pod (e.g the Datadog Agent pod)
Describe your test plan

closing in favor of https://github.com/DataDog/datadog-agent/pull/6819


Allow default rule to be override

It can be a bit redundant to always pass default_rule: nil when validating domains if your use case never needs it.

Hi @unixcharles, sorry for the silence. I just wanted to let you know I read the PR, and I haven't merged it because I'm a little bit torn about promoting this customization.
This library is designed to implement the PSL algorithm, and the official algorithm explain that if no rule matches, * should be used. I decided to leave it customizable on single cases bases because sometimes it makes sense.
Making it super easy may seems to be an open invite to make it the default behavior, and I'm not sure I want to encourage it. In my mind, if you find yourself using this setting quite often, a wrapper seems to be an appropriate solution.
Do you mind to share some extra information on where you had this need, and why you found it useful?

We're using the gem to validate TLDs from user input and extract the different part of the domain  (tld, sld, trd etc) for public available services. In our context it make no sense to allow non public DNS.
I had a look at the algorithm page but its not clear what is the expected behaviour of *. I was really confused by this behaviour change in 2.0.

I had a look at the algorithm page but its not clear what is the expected behaviour of *. I was really confused by this behaviour change in 2.0.

Fair enough, the documentation may not be the most extensive one. The specific section is the point 2 under algorithm:

If no rules match, the prevailing rule is "*".

* represents a 1-part suffix. For example:
*

foo -> invalid, .foo is suffix
something.foo -> valid: something is the SLD, foo is the suffix

*.foo

foo -> invalid, .foo is suffix
something.foo -> invalid, something.foo is suffix
other.something.foo -> valid: other is the SLD, something.foo is the suffix

Yeah, but in practice this default behaviour is quite problematic when dealing with user input. For example, we have the "URL" input and user will enter about.html.
And guess what, it's a valid tld!
PublicSuffix.valid?('about.html')
=> true

Certainly not something I would expect...

@pjg the main problem is that you expect this library to be a validation tool, whereas it's not (the PSL is not designed to validate). I think it's simply a problem of expectations.

Sure. But there is no better tool to use for validation, so you have to make do with what there is (and PSL is an awesome project!).


Android: message display shows as white text on white background

On my phone, in the Messages screen, the sent messages from the app are unable to be seen as they appear to be colored white on the white bubbles (see image below). The correct message text is in there I can tell, as I can copy/paste it out of the bubbles. As well, in the Type Message Here entry field the text is invisible (white).
App version: 1.0.3 Build (466)
Android Details: Pixel 6, Android 12.

Need to update BC Wallet Theme

Hi, which app you used to sent a message to the bifold app ya?


Should the Apply implementations of List and ListT match?

What kind of effect-sequencing behavior is ListT supposed to exhibit? I ask because in haskell, ListT m a is a newtype wrapper of m [a], and if purescript's ListT is meant to be modeled after haskell's, ListT Effect Int should perhaps then behave like Effect [Int]. However, the haskell community has also considered alternative models for ListT like the following:
-- https://github.com/nikita-volkov/list-t/blob/master/library/ListT.hs
newtype ListT m a =  ListT (m (Maybe (a, ListT m a)))

Because ListT in Pursuit's 'transformers' package is defined as ...
newtype ListT f a = ListT (f (Step a (ListT f a)))
data Step a s = Yield a (Lazy s)  | Skip (Lazy s)  | Done

... Volkov's ListT (shown above) seems to be the underlying model for purescript's own ListT.
What kind of effect-sequencing behavior, then, should Volkov's ListT exhibit? Unfortunately, at the moment, I can't experiment with his code directly; however, it seems that, under specific conditions, Volkov's ListT m Int should behave similarly to [m Int] -- in particular, when a list-like construct in either case (ListT m Int or [m Int]) is fully traversed/consumed with pre-order congruence and the final effect of ListT is pure or ignored. (Or at least I assume; perhaps there are details that invalidate this comparison.)
If this comparison is sound, users in purescript-land might expect values of the analogous purescript types ListT Effect Int, List (Effect Int) and Compose List Effect Int, under appropriate conditions, also to exhibit identical behavior. I'm not sure that's the case, however.
Consider, for example, product0 and product1 below:
import Control.Monad.List.Trans as T
-- other imports ...

io :: forall a b. Show b => b -> a -> Effect a
io x y = log (show x) *> pure y

-- `list0` and `list1` below are meant to have congruent sequences of data AND effects.

list0 :: ListT Effect Int
list0 = fromEffect (io 2 2) <|> fromEffect (io 1 1) <|> fromEffect (io 0 0) <|> T.nil

list1 :: Compose List Effect Int
list1 = Compose $ pure (io 2 2) <|> pure (io 1 1) <|> pure (io 0 0) <|> Nil

f0 :: ListT Effect (Int -> Int)
f0 = fromEffect (io "id" identity)

f1 :: Compose List Effect (Int -> Int)
f1 = Compose (pure (io "id" identity))

product0 = f0 <*> list0 :: ListT Effect Int
product1 = f1 <*> list1 :: Compose List Effect Int

If product0 and product1 are fully traversed, results like the following occur:
sequenceListT :: forall a. ListT Effect a -> Effect (List a)
sequenceListT = foldl' (\x y -> pure (x <> pure y)) Nil

sequenceCompose :: forall a. Compose List Effect a -> Effect (List a)
sequenceCompose = sequence <<< unwrap

-- PROMPT> sequenceListT product0
-- "id"
-- 2
-- 1
-- 0
-- (2 :  1 : 0 : Nil)

-- PROMPT> sequenceCompose product1
-- "id"
-- 2
-- "id"
-- 1
-- "id"
-- 0
-- (2 : 1 : 0 : Nil)

Other helpful comparisons to try might include the following:
product2 = T.nil <*> list0 :: ListT Effect Int
product3 = pure Nil <*> list1 :: Compose List Effect Int
product4 = Backwards f0 <*> Backwards list0 :: Backwards (ListT Effect) Int
product5 = Backwards f1 <*> Backwards list1 :: Backwards (Compose List Effect) Int

Although I've tried to model the same sequence of bundled data and effects as both an instance of ListT Effect Int and as an instance of Compose List Effect Int and although I (myself at least) expect similar behavior because of my assumptions listed above, the two values product0 and product1 have different overall effects when traversed.
The source of this difference in behavior appears to be related to the Apply typeclass. Whereas List's apply member has a static flavor, ListT's implementation of apply is monadic and therefore directionally biased.
I'm not sure which style of applicative multiplication might be generally preferable. I'm not even sure that List and ListT should have exactly identical effect-sequencing semantics (in relevant scenarios). However, because this difference in behavior surprised me at least, I figured I'd note this distinction as an issue for maintainers to consider. Perhaps it's a point confusing/interesting enough to include in documentation.
Thanks much

For some background, look around for "ListT done right".
http://h2.jaguarpaw.co.uk/posts/listt-done-wrong/
https://wiki.haskell.org/ListT_done_right

Hi. Thanks for the references. I'm checking out your first link now, and actually, your second link is how I found my way to Volkov's implementation. The discussion online about how and when List and ListT is pretty interesting. But I guess I wasn't asking so much about their implementations as monads as instead their implementations as applicatives. I'm just wondering how similar List and ListT should be in those kinds of scenarios.

Wow, Tom Ellis's explanation of the ListT-monad issue is good. It gets to the point, and it makes the problem immediately apparent. Really, thanks for the link.

I was experimenting with some code when I noticed what seemed to me an interesting discrepancy between List and ListT, but opening an issue about this difference was probably overly enthusiastic. PureScript's core team of maintainers is doing a phenomenal job, but they have a lot on their plates. I don't want to overwhelm them with minor stuff like this, so I think I'll just close this issue. Thanks, though, for any looks this issue has already gotten.

I wouldn't say overly enthusiastic - the documentation here can definitely be improved, so I think this is worth keeping open.

Oh, ok. I'm glad this issue has some value then after all. Thanks for reopening it.


Errors submitting when a course has no released homeworks

Even as a username on the dev team, I got the error "not a valid assignment", when submitted to an assignment, the only one in the class.json file, if it was not released.

Could you attach the .json files used for configuring the class (namely, what is the value of 'dev_team'?

It was actually very similar to the default config that is created with create_course.sh.  I set all of the assignments to released=false.  I was in the dev_team list, so I could see the assignments, but when I tried to upload I got the failure.  I think there is a bug in the logic in public/controller/data_functions.php but I didn't investigate more thoroughly.  I just set released=true for one assignment and then I could submit to both.

So you have two assignments and if both are not released, you cannot submit at all, but if at least one is released, you can submit to both? What happens if you submit to one, then un-release the assignment?
Seriously, it would help having the .json files from you (as I'm not sure where they're located on HSS machine) to more easily replicate this and check everything as the logic looks sound enough on first glance. If you don't want to post the stuff here, please email me the files.
Relevant lines:
data_functions.php#L131 is your error message (and only place you'd have gotten it).
is_open_assignment returns false, then we throw the error message. This would mean either the assignment submitted wasn't found in $class_config or user wasn't on dev team.
function on_dev_team might be returning false

Yes :)  I studied the code before posting the issue and didn't see an obvious  bug in the logic either.  It was a problem with a fresh, out-of-the-box installation.  Once folks have standalone full installs up & running we can try to reproduce it on the non-live server.  I've made more changes to the files since then, so they are not helpful to share.

Melissa (& others), please try to reproduce this error.

I just tried to reproduce this on the VM labstaff produced. My steps:

Run following commands:

sudo bash
addgroup csci1200
addgroup csci1200_tas_www
adduser developer csci1200
adduser developer csci1200_tas_www
adduser hwphp csci1200_tas_www
adduser hwcron csci1200_tas_www
cd /usr/local/hss/bin
./create_course.sh f15 csci1200 developer csci1200_tas_www

Navigate to /var/local/hss/courses/f15/csci1200 and run ./BUILD_csci1200.sh
Navigate to configs and edit class.json to be:

{
    "dev_team": ["developer"],
    "upload_message": "Prepare your assignment for submission exactly as described on the course webpage.  By clicking $
    "assignments": [
        {
            "assignment_id":"lab01",
            "assignment_name":"Lab 1 Getting Started",
            "released":false,
            "ta_grade_released":false,
            "due_date":"2015-09-02 23:59:59.0"
        },
        {
            "assignment_id":"pythontest",
            "assignment_name":"CS1 Homework 1 Part 1",
            "released":false,
            "ta_grade_released":false,
            "due_date":"2015-09-02 23:59:59.0"
        }
    ]
}

Navigate to https://<IP_ADDRESS>/index.php?course=csci1200, submit to both assignments

Encountered no errors and both were picked up by grade_student.sh and executed.

This is still a bug on the system.  We just saw it this morning with the OpSys class.  Just 1 homework, configured, unreleased.   No assignments received.  When the dev team member tried to do a first test submit, nothing happened (after pressing submit, the selected file was cleared and nothing was received, the directories didn't exist).
It might be a bug in the URL?  It said "assignment_id="  instead of "assignment_id=hw01".
Just changing it to released to "true", and the submission was successful.
(further testing not possible, folks had to run to lecture)

It's more likely it's a bug in the URL that's a part of this function. Should add a "is_valid" type function for checking assignment_ids when parsing them.


Make example instructions for running clear for non-online editor

Just adds instructions to save the example into a file and run elm-reactor. Not much of a change but someone I was teaching asked me what to do once they ran elm-package locally, so this may help clear things up.

Lots of folks were confused by that, so I redid the README to have a smoother path.
I route people on to elm-architecture-tutorial which has more complete instructions on how to get your environment set up.
Thanks for the PR, and please let me know if the new README resolves the root issue you ran into!

Looks good, exactly the sort of change needed!


(Chore) Add coveralls

Add coveralls integration and badge.

@vbaranov @fernandomg This is ready for review now.


Fix standardjs problems

I've fixed some standardjs problems in bin/reload

So standard is hitting the bin file anyways because it doesn't have a .js file extension. Seems like we should give it a .js extension?

Maybe this is a fix for the ubuntu problem. Giving the bin file a .js ending will mean that you run reload.js instead of reload

It's just right now that that bin file doesn't get ran by standard when I run it (at least on Windows)

Maybe you should try to find a way to force standard to check the bin file

Yeah that was another things I was prowling through standards docs to see if they supported a way to force a file to be checked didn't really see a way. If you come across please let us know in here.

Hows this

Didn't mean to close the PR

@alallier, could you test whether this works in windows

Great idea to include both in the test call. Two things there:

Can you restore the original logic, have the script standard call both and the test script just call standard?
Can you target branch v2.0.0. This might be helpful https://github.com/blog/2224-change-the-base-branch-of-a-pull-request

The new test works exactly like the old one, it just finds the files in the bin folder

@alallier is this good enough

@yamboy1 won't have time to look until later today

This looks good thank you. Going to merge!


VS doesn't restore on build/rebuild

Repro:

Clone https://github.com/aspnet/antiforgery and sync (i.e. git reset --hard) to 5cb5178619d9211eee0722d8737b425e2eec1375 (this is currently dev~2 or pre-migration)
Open sln found in the root
Migrate project when VS asks you to do so
Build/Rebuild
Notice that restore doesn't happen and errors that the project is not restored

VS build: 15.0.0-RC.4+26130.1.d15rel
I have previously tested this exact scenario on one of the previous builds (26020) and it has worked before (I was unable to repro it working - possibly some of the nuget packages disappeared - I did errors during restore though which means that at least VS tried to restore).
cc: @srivatsn @rrelyea

@srivatsn I've labelled as blocking release, as this seems like a rather bad one.

Another project that demonstrates this issue: https://github.com/exceptionless/Exceptionless.Net/commit/31ef359ae1f778c7c0a39a268323ad1f3c12381a.

@natidea can you take a look to see if we're not nominating or if restore is not happening?

NuGet is being nominated correctly for all the projects, but I do not see any project.assets.json generated. Let me get some logs to determine if there is a NuGet error.
/cc @alpaix @rrelyea

Duplicate to NuGet/Home#4419. The fix will be inserted into VS soon.
As a temporary workaround add $(PackageVersion) property to every .csproj file in the solution
<PackageVersion>1.0.0</PackageVersion>

Here is the NuGet Exception:

System.InvalidOperationException: Sequence contains more than one element at
System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source) at
NuGet.SolutionRestoreManager.VsSolutionRestoreService.GetNonEvaluatedPropertyOrNull(IVsTargetFrameworks tfms, String propertyName) at
NuGet.SolutionRestoreManager.VsSolutionRestoreService.GetPackageVersion(IVsTargetFrameworks tfms) at
NuGet.SolutionRestoreManager.VsSolutionRestoreService.ToPackageSpec(ProjectNames projectNames, IVsProjectRestoreInfo projectRestoreInfo) at
NuGet.SolutionRestoreManager.VsSolutionRestoreService.ToDependencyGraphSpec(ProjectNames projectNames, IVsProjectRestoreInfo projectRestoreInfo) at
NuGet.SolutionRestoreManager.VsSolutionRestoreService.NominateProjectAsync(String projectUniqueName, IVsProjectRestoreInfo projectRestoreInfo, CancellationToken token)

This was introduced by this PR: https://github.com/NuGet/NuGet.Client/pull/1146
Inspecting the project after migration, I see:

TFM
PackageVersion

net451
<IP_ADDRESS>

netcoreapp1.1 or netstandard1.3
1.2.0 or 1.0.0

This is what is causing this exception. I was able to resolve this by removing the <VersionPrefix>1.2.0</VersionPrefix> in all projects where it occurred.
NuGet explicitly does not handle cases where different PackageVersions are returned for different TFMs, though perhaps it shouldn't crash restore, especially if this is a common migrate scenario.
/cc @alpaix @rrelyea @emgarten

We need better error handling for parsing errors. It was assumed initially all exceptions from the Nominate API would be caught without crashing VS. This story is also covered in NuGet/Home#3870.

@alpaix To clarify, this does not crash VS, it just breaks restore. But I think that's what you meant.
I believe the fix to NuGet/Home#4419 only covers the case where the conflict is between <IP_ADDRESS> and 1.0.0. In the first sample, the entry <VersionPrefix>1.2.0</VersionPrefix> is in some projects post migration and this appears to only set PackageVersion for the netcoreapp TFMs. A simple repro is the following project which fails to restore:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFrameworks>netcoreapp1.0;net451</TargetFrameworks>
    <VersionPrefix>1.2.0</VersionPrefix>
  </PropertyGroup>

</Project>

Should we move this over to NuGet (you can use: https://github-issue-mover.appspot.com/)

This issue was moved to NuGet/Home#4487

why does migrate put the version into versionprefix?

@piotrpMSFT - should migration do a fix here. multitargetting projects that mix netfx and netcore-ish TFMs will hit a restore error.
Potential Fix:
have migration use version instead of versionprefix when migrating 1.67.0.* from project.json.
or similar...
Workaround:
Have user change x.y.z in migrated multitargetting project to x.y.z


upgrade to quagga2 and attempt QR code support (so people can share chat IDs)

https://github.com/ericblade/quagga2
https://github.com/ericblade/quagga2-reader-qr

this will also merge the "scanner" tab into the chat tab