[BUG] Add-PnPTeamsTab -Type PowerBI

Reporting an Issue or Missing Feature
Adding a new MS Teams Tab with "Add-PnPTeamsTab" and Type PowerBI is not working as expected. The new tab is created but it cannot be configured manually.
Expected behavior
The tab should allow for setting up the Power BI report like it is when adding the tab manually.

Actual behavior
The new Tab is created with the "Ready to set up the tab?" config page

But when clicking "Set up tab", the Power BI pop-up doesn't display anything to select the PBI report and the "Save" button is greyed out.

Steps to reproduce behavior
Add-PnPTeamsTab -Team "TestTeamPBI" -Channel "General" -DisplayName "PBI" -Type PowerBI
What is the version of the Cmdlet module you are running?
2.3.0
Which operating system/environment are you running PnP PowerShell on?

[x] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

It seems to be a limitation of the graph call not allowing any configuration for PowerBi Tab
https://learn.microsoft.com/en-us/graph/teams-configuring-builtin-tabs

@gautamdsheth do we need to close this issue? This because it's not supported to configure a Power BI tab by using the Graph call? This also regarding PnP.PowerShell is just exposing the Graph API of Microsoft.

Docs updated. Closing now.


Example application failed to run

Example application failed to run
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

You might have mismatching versions of React and the renderer (such as React DOM)
You might be breaking the Rules of Hooks
You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem

PlaygroundContainer
src/PlaygroundContainer.js:24
21 | export default function PlaygroundContainer({ title }: { title: string }) {
22 |   const [schema, setSchema] = React.useState('{}');
23 |   const [uischema, setUischema] = React.useState('{}');

24 |   const classes = useStyles();
25 |   return (
26 |
27 |

node --version
v14.5.0

Hello @dmushkov,
Thank you for reporting this issue. We are having trouble reproducing this bug. Could you provide more details about the circumstances under which you encountered it (OS, commands that you ran, whether you are working off of the main branch, etc.)? Also, could you have a look at the package-lock.json files in the main directory and the example directory and let us know whether it is different from what is checked into the branch?

Hello @dmushkov,
Thank you for reporting this issue. We are having trouble reproducing this bug. Could you provide more details about the circumstances under which you encountered it (OS, commands that you ran, whether you are working off of the main branch, etc.)? Also, could you have a look at the package-lock.json files in the main directory and the example directory and let us know whether it is different from what is checked into the branch?

@raymond-lam Sorry for missing information
macOS 11.1 (20C69)
npm version -  6.14.5
node version - v14.5.0
Steps are what provided in docs
git clone main branch
cd  react-json-schema-form-builder/example
npm i (package-lock.json in example and package-lock.json in root folder is now different from files in repo - along with some content changes I notice it says also "lockfileVersion": 1 ?! )
npm start

@raymond-lam Sorry for missing information
macOS 11.1 (20C69)
npm version -  6.14.5
node version - v14.5.0
Steps are what provided in docs
git clone main branch
cd  react-json-schema-form-builder/example
npm i (package-lock.json in example and package-lock.json in root folder is now different from files in repo - along with some content changes I notice it says also "lockfileVersion": 1 ?! )
npm start

@dmushkov There seems to be a Duplicate React. Run npm ls react. The following package.json worked for me.
{
  "name": "@ginkgo-bioworks/react-json-schema-form-builder-example",
  "homepage": ".",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "dependencies": {
    "@ginkgo-bioworks/react-json-schema-form-builder": "^1.1.0",
    "@rjsf/bootstrap-4": "^2.4.1",
    "@rjsf/core": "^2.4.1",
    "classnames": "^2.2.6",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-json-editor-ajrm": "^2.5.13",
    "react-jss": "^10.5.0",
    "react-router": "^5.2.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "^4.0.0-next.117",
    "reactstrap": "^8.8.1",
    "web-vitals": "^0.2.4"
  },
  "devDependencies": {
    "eslint": "^7.16.0"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ]
}

@dmushkov There seems to be a Duplicate React. Run npm ls react. The following package.json worked for me.
{
  "name": "@ginkgo-bioworks/react-json-schema-form-builder-example",
  "homepage": ".",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "dependencies": {
    "@ginkgo-bioworks/react-json-schema-form-builder": "^1.1.0",
    "@rjsf/bootstrap-4": "^2.4.1",
    "@rjsf/core": "^2.4.1",
    "classnames": "^2.2.6",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-json-editor-ajrm": "^2.5.13",
    "react-jss": "^10.5.0",
    "react-router": "^5.2.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "^4.0.0-next.117",
    "reactstrap": "^8.8.1",
    "web-vitals": "^0.2.4"
  },
  "devDependencies": {
    "eslint": "^7.16.0"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ]
}

after updating npm to version 7 and run npm i problem is gone
@iurquiza unfortunate i already update npm version so i was not able to check your fixed package.json

after updating npm to version 7 and run npm i problem is gone
@iurquiza unfortunate i already update npm version so i was not able to check your fixed package.json

after updating npm to version 7 and run npm i problem is gone
@iurquiza unfortunate i already update npm version so i was not able to check your fixed package.json

Awesome! I can confirmed that the issue does not happen with npm v7.3.0.

after updating npm to version 7 and run npm i problem is gone
@iurquiza unfortunate i already update npm version so i was not able to check your fixed package.json

Awesome! I can confirmed that the issue does not happen with npm v7.3.0.

Okay, thank you everyone!

Okay, thank you everyone!

Okay, thank you everyone!

Okay, thank you everyone!

@iurquiza thanks for your help in debugging this.
@dmushkov #21 should hopefully help.

@iurquiza thanks for your help in debugging this.
@dmushkov #21 should hopefully help.


PR: More accurate test for text-like files

In UTF-8 one character can be represented by multiple bytes. If such bytes have not been placed in the same chunk (CHUNKSIZE=1024), function 'is_text_file' from encoding.py will fail on this input.
Solution is to use IncrementadDecoder.
It is possible that issue #2703 is related to this fix. Since the file attached to issue is determined as binary, spyder tries to open it with external program (console) (instead of editing)

@Qlogin, thanks for your work on fixing this problem. Could you upload a file that's showing the error you're reporting here?

@blink1073, you introduced the is_text_file function, so could you give a quick review to this PR?

I think it looks sound, thanks @Qlogin!

@ccordoba12, sorry, I've used GitHub not so long. All I could is to attach archive with test file.
test.zip

@blink1073 / @ccordoba12  is this ready for merging?

I think so.

Thanks a lot for your fix @Qlogin!! I verified that this fixes the reported problem in #2703 :-)


Question: Mapping domain to dat link?

Does Beaker support a DNS record for mapping a domain to a dat link? Say I wanted domain.com to point to dat://..., can I do this?
Apologies, as I know this is probably more of a Dat question than a Beaker question.

Looks like my question was answered at:
https://youtu.be/pi-kreA52oI?t=17m28s

Im actively considering using TLS (https://github.com/beakerbrowser/beaker/issues/227). If you have thoughts on that, please share!


Initial work for integrating the UI tests with Jenkins

Summary
This is for executing the UI tests in Jenkins UI
Technical notes summary
The logic starts in init.sh which prepares the Jenkins executor with the software dependencies and an external node for test execution using a corral package.. The execution logic is then done by the corral script executed. See the package PR.
The variables values come from the Jenkins job. That's a separate PR in a private repo. The Jenkinsfile is also included in this PR. It gets pulled by the Jenkins pipeline.
This makes use of the official Cypress' Docker images. The included one. The image version and type is included as variables in Jenkins.
Cypress reporter modules is installed in the Cypress docker image and the report generates jUnit and HTML reports. reporter-options.json is used to configure the multi-reporter.
HTML publishing in Jenkins is still pending but jUnit is ready.
scpget.sh is a helper script to retrieve the Cypress results from the external test node.

@richard-cox absolutely I will prepare a README.md for the next iteration (recurring execution) of this.
There are many moving parts and that'd be really helpful.


App activity not destroying when back button is pressed

My application has two pages, one is splash screen and dashboard. I just implemented local auth in splash screen. Everything goes well when we use the application for the first time.when we press on back button from dashboard page the app exits but when we reopen the app, the splash screen is not showing. it goes directly to dashboard. But when we clear the application from recent apps it works like charm. please help me to sort out this problem.

Hi @Nishadatgit,
Can you please provide your flutter doctor -v and a minimal complete reproducible code sample?
Thank you

[√] Flutter (Channel stable, 3.3.6, on Microsoft Windows [Version 10.0.19043.2130], locale en-US)
• Flutter version 3.3.6 on channel stable at C:\Users\97155\Documents\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 6928314d50 (2 weeks ago), 2022-10-25 16:34:41 -0400
• Engine revision 3ad69d7be3
• Dart version 2.18.2
• DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc3)
• Android SDK at C:\Users\97155\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.0-rc3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.6)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.3.32929.385
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
[√] VS Code, 64-bit edition (version 1.73.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.52.0
[√] Connected device (5 available)
• SM A515F (mobile)                  • RZ8N31V24NP   • android-arm64  • Android 12 (API 31)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
• Windows (desktop)                  • windows       • windows-x64    • Microsoft Windows [Version 10.0.19043.2130]
• Chrome (web)                       • chrome        • web-javascript • Google Chrome 107.0.5304.89
• Edge (web)                         • edge          • web-javascript • Microsoft Edge 106.0.1370.47
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
my code:
class FingerprintAuthenticationPage extends StatefulWidget {
FingerprintAuthenticationPage({super.key});
@override
State createState() =>
_FingerprintAuthenticationPageState();
}
class _FingerprintAuthenticationPageState
extends State {
final LocalAuthentication auth = LocalAuthentication();
@override
Widget build(BuildContext context) {
WidgetsBinding.instance.addPostFrameCallback((t) async {
final bool canAuthenticateWithBiometrics = await auth.canCheckBiometrics;
  final bool canAuthenticate =
      canAuthenticateWithBiometrics || await auth.isDeviceSupported();
  if (canAuthenticateWithBiometrics && canAuthenticate) {
    try {
      final bool didAuthenticate = await auth.authenticate(
        localizedReason: 'please verify your identity to proceed',
        options: const AuthenticationOptions(
            stickyAuth: true),
      );
      if (didAuthenticate) {
        await auth.stopAuthentication();

        Navigator.pushNamedAndRemoveUntil(
            context, MainRouter.routeDashboard, (route) => false);
      } else {
        exit(0);
      }

    } on PlatformException catch (e) {

  // Handle this exception here.

      log("exception===$e");
       await auth.stopAuthentication();

    }
  } else {
    Navigator.pushNamedAndRemoveUntil(
        context, MainRouter.routeDashboard, (route) => false);
  }
});

return Scaffold(
    body: Center(
        child: Column(
      children: [

      ],
    )),
  ),
);

}
}


Leaving Discord Messenger open for a while causes images and menu entries to stop being displayed

Looks like bitmaps are being invalidated.  The fix for now is to restart the app but this should really be fixed.

I wonder why the menu items are also not showing up when the bitmaps stop showing up.

What menu items?

All of them.

All of them is too vague.  Show screenshots of exactly what you are talking about. What menu you are talking about, and what specific items.

I think it is a GDI Handle leak according to this:

That number keeps going up every few seconds.

Every few seconds is a bit strange.
Also, how many hours of browsing do you typically get before running into this issue?

I'll reply when it happens again with how long it took to happen.

It took around 2 hours and 40 minutes for it to happen. The GDI Handle count stopped being counted at 9,999.

I see.

Fixed in upstream. It turns out there is an issue with the guild list control. It didn't free the result to LoadBitmap().

There's still another leak that is happening.

As far as I know, I've fixed all known leaks. I've tried dragging the window continuously outside of the screen and it doesn't increase the GDI object/handle counter too much.
A tip I can give you to track down the leak is to open it up in Windows XP (or Windows 7 with the basic theme), drag a window over it and slowly reveal every control in the app. That's how I started noticing that the guild list is leaking GDI objects.

Then I wonder why the GDI Handles went up to 9,999 when I left it alone for a while.

I gave you a way to debug it.

I did that and see that the Bitmap number is still going up (but not as quickly).

OK, I've fixed another handle leak. It should be fine now!


Schwab API

Hi @studerw.  Have you heard anything about the TDA API being migrated to Schwab?  My accounts migrate over the weekend and I haven't seen anything other than superficial about it migrating "some day".  Just curious if you had heard anything?
Thanks
Greg

Hi @gporter0205
Yes over the past few months I got numerous notices telling me that my two TDA account (one personal and one from my Health Savings account) would be moving to Schwab.
On October 1st, the HSA account was moved over and when I logged into Schwab after Oct 1st, I would see it as an additional Schwab account (I already had a Schwab trading account from years ago).
Then finally last week or so, my personal TDA account was also moved over to Schwab. So now I see 3 accounts in my Schwab profile. I verified this one for the first time today.
As a test, I tried to log into my TDA acccount just now. I did the typical user & password screen and then the SMS verification, but instead of forwarding me to TDA page, it just shows a button that says "Log Into Schwab."
So it would appear my TDA accounts are are completely migrated, and my TDA access is gone.
That's that :(

@studerw - Thank you for creating this and maintaining it. With the migration to Schwab, does this repo code still work. Based on their description in Ameritrade Developer portal, it looks like they will use the Ameritrade API behind the scenes, but I might be wrong.

@studerw - checking back on this. does this work with Schwab APIs. Or do you plan to update this repo or open a new one to support the Schwab APIs.

@studerw Thanks for maintaining this project for TDA, is there any plan to migrate this API to new Schwab API?

I’ve not been able to get access to Schwab API yet though once I do (if they ever actually provide it) then I may try and port it over.

My account is still with TDA and moving on 10th May. I tried creating a new app in Schwab Developer yesterday, and I was able to create. I can see all APIs, Swagger page etc. (I never received any email from Schwab to create Application, while I created Developer account in August 2023) Steps I followed

Signin https://developer.schwab.com/
Create App https://developer.schwab.com/dashboard/apps
Select both API Products (currently showing only 2 APIs)
they need https endpoint for URL redirect (i used https://127.0.01)
Just after creating app, approval status will go in "Approved - Pending" check in Dashboard link
It takes 1 week to get approved for "Ready to use" but after above 4 steps we can start implementing the APIs.

I got an email on Friday saying I could start development using the Schwab Trader API so I went to the developer portal and requested access. Hopefully, I'll be able to poke around with the new Schwab API next week. I've upgraded my app to use spring boot API calls. I'd be willing to help port this app. Any interest in upgrading it and using spring boot?

@mntripathi I've been working on it as I've had free time, but am still working on the authentication part of it.  I was trying to use the oauth2 features built in to spring boot, but after wrestling with it for a while, finally gave up because the TD/Schwab implementation of oauth2 isn't exactly "standard".  It also doesn't help that every time I change something about my app on developer.schwab.com, it takes several days to week(s) for it to be approved and be able to use the API again.  The most recent change I made to the callback URLs is going on over a week now.  I finally sent them an email about it yesterday.  It's also been maddeningly difficult to do development because you can't use http or localhost in the callback URL so I've had to find workarounds for that and every time I need to change the callback to try something else, I have to wait days/week(s) for it to be approved again.  Rinse and repeat.  So far it's been a very frustrating experience.

There's been some great discussion about the authentication and other issues over on the "Charles Schwab API Club" on Discord. Here's the invite: https://discord.gg/9D4Bnm4B74

@gporter0205 you can use "https://<IP_ADDRESS>" it works. (at least I am able to register my app with this callback URL and app is approved),

Thanks @fear025. I had a breakthrough on the oauth today after reading through the Discord comments. Found exactly what I was doing wrong!
Thanks also @mntripathi. I'll give that a try too.

I create a new github project for the Schwab API.  I made it a Spring Boot project for ease of a lot of things.  So far I've only implemented the quote API's, but I'll be working on more as I have time.  https://github.com/gporter0205/schwab-api-client

I've implemented the happy path for all the market data API end points.  I also created a readme and some initial how-to implement documentation.  I won't post updates here anymore, but you should be able to see progress in https://github.com/gporter0205/schwab-api-client

@gporter0205 -> Thank you for creating this API. I've been trying to play with it but I'm stuck at getting refresh tokens. Any help will be greatly appreciated.

@sivadosapati can you open an issue over on https://github.com/gporter0205/schwab-api-client?  That way working our communication while working through your issue will be documented and can help someone else facing them same issue.


Allow providing an Ajv instance to Validator

AJV has a plugin system, along the lines of the decorator pattern - each plugin exposes a function that modifies an instantiated Ajv object. However, because the Validator class only accepts AjvOptions and then constructs its own, applying plugins requires modifying it at runtime. This is fine (and expected, according to the tests) in straight JavaScript, but in TypeScript violates the provided types, because the Ajv is not included in the class definition:
// Plugin
import formats from "ajv-formats-draft2019";

const ajv = formats(new Ajv({allErrors: true}));
const validator = new Validator({});
validator.ajv = ajv;

// Yields:
// TS2339: Property 'ajv' does not exist on type 'Validator'.

Either way, this seems a brittle approach, prone to breaking as the library changes. A backwards-compatible solution to this might be something like:
export class Validator {
    // Allow passing an Ajv to the constructor
    constructor(options: AjvOptions | Ajv);

    // Expose the ajv to match the behaviour of the JS implementation
    ajv: Ajv;
}

If a non-Ajv object is provided, the existing behaviour is kept, but otherwise the validator can just use the provided Ajv wholesale.

Right, I realized that this one's basically a duplicate of #67.


EventDriver: Event::del(): Failed deletting event

EventDriver emits warnings for php examples/1-get-request.php in amphp/artax.
See https://github.com/amphp/artax/issues/131.

I also get another warning with the code from https://github.com/amphp/socket/issues/32:
PHP Warning:  EventBase::loop(): Failed to invoke event callback in /home/kelunik/GitHub/amphp/socket/vendor/amphp/amp/lib/Loop/EventDriver.php on line 178

PHP Fatal error:  Uncaught Amp\Loop\InvalidWatcherError: Cannot enable an invalid watcher identifier: 'cag' in /home/kelunik/GitHub/amphp/socket/vendor/amphp/amp/lib/Loop/Driver.php:369
Stack trace:
#0 /home/kelunik/GitHub/amphp/socket/vendor/amphp/amp/lib/Loop.php(210): Amp\Loop\Driver->enable('cag')
#1 /home/kelunik/GitHub/amphp/socket/vendor/amphp/byte-stream/lib/ResourceOutputStream.php(188): Amp\Loop::enable('cag')
#2 /home/kelunik/GitHub/amphp/socket/vendor/amphp/byte-stream/lib/ResourceOutputStream.php(130): Amp\ByteStream\ResourceOutputStream->send('test', false)
#3 /home/kelunik/GitHub/amphp/socket/lib/Socket.php(67): Amp\ByteStream\ResourceOutputStream->write('test')
#4 /home/kelunik/GitHub/amphp/socket/test.php(35): Amp\Socket\Socket->write('test')
#5 /home/kelunik/GitHub/amphp/socket/vendor/amphp/amp/lib/Loop/EventDriver.php(64): {closure}('cah', NULL)
#6 [internal function]: Amp\Loop\EventDriver->Amp\Loop\{closure}(-1, 1, Object(Amp\Loop\Watcher))
#7 /home/kelunik/GitHub/amphp/socket/vendor/amphp/amp/lib/Loop/Even in /home/kelunik/GitHub/amphp/socket/vendor/amphp/amp/lib/Loop/Driver.php on line 369

Fixed via https://github.com/amphp/amp/commit/7a04dc5c21c3433bf16348ff1caaa7fac4cb7a28.


View from Approved

Does not work for counterpart:
{"answer":"KO","message":"documentid not found for the account"}

fixed


GrapeShot Crawler not recognized as bot

I am using v.2.3 in Laravel 5.2.
The GrapeShot crawler using the following user agent is not recognized as a bot:
Mozilla/5.0 (compatible; GrapeshotCrawler/2.0;  http://www.grapeshot.co.uk/crawler.php)
It is incorrectly being returned as a desktop browser, and the device, browser, and other tests are all blank.
Screenshot of debug test results here:
https://www.evernote.com/l/AAMvzzMfUW1FOpu9pMk6n29vJqXYDWE0g3s

Following up, there are tons of similar issues where bots aren't being properly detected.  Just in my own logging in the past few days, these include (but are hardly limited to):

Clickagy Intelligence Bot
Cliqzbot
coccoc.com
CRAZYWEBCRAWLER
GetIntent Crawler
linkdex
Mediapartners-Google
Nutch
proximal
OpenLinkProfiler.org
Sogou web spider

The isBot() method is by no means exhaustive in MobileDetect. I mainly catches the 'big boys'...Google, Bing etc.
If you need a more specific bot detector, then you could use MobileDetect in combination with CrawlerDetect.

We could integrate that library into this one to provide better bot detection. What do you think @JayBizzle ?

Yes, I would be open to that 👍


Text jumps to lower line on input

Hi there, first of all thanks for the working jodit wrapper - I had a nightmare with jodit-react itself!
I've noticed that when starting to type, the text moves to a lower line (see your sandbox example). Is there something I can do to prevent this from happening?

Hi @MNewbigging . This is because Jodit is adding a  automatically.
To solve the margin space just use css.
I've created this code sandbox for you
https://codesandbox.io/s/jodit-react-ts-forked-ousvd?file=/src/App.tsx


[Fix]fix generated column, static variables should not be used in ExpressionToExpr. An error will occur when shared by multiple threads.

Proposed changes
Issue Number: close #xxx

run buildall

run external


✨(backend) add public availability to video api

Purpose
Allow instructors to publish their video publicly
Fixes #1242
Proposal

[x] add is_public field to VideoSerializer

@kernicPanel Don't forget the changelog!


Add Mistral NeMo

Based on https://github.com/ml-explore/mlx-examples/pull/895
I verified that Llama 3 8B and the latest Mistral 7B still work with these changes. I also updated the configuration for Mistral 7B.
To test Mistral NeMo, you can use this setting:
let modelConfiguration = ModelConfiguration.mistralNeMo4bit

It looks like there is a conflict with the previous PR -- can you check that out?
Also please add this and the previous to:
            register(configurations: [
                mistral7B4bit,
                codeLlama13b4bit,
                phi4bit,
                phi34bit,
                gemma2bQuantized,
                gemma_2_9b_it_4bit,
                qwen205b4bit,
                openelm270m4bit,

toward the bottom of the file.
Thanks!

Done.


Add ability to update split, retentionPeriod, and shardDuration on ShardSpaces

These settings don't need to be applied retroactively. As such these updates can be applied directly to the shard space object and only take effect on future shards that are created.
The updated RetentionPolicy should be enforce the next time a retention sweep occurs (by default every 10m)

Not relevant to 0.9.0


Crashes on startup when added to a project the also uses Firebase

It was working ok before adding firebase to the project. So there's some incompatibility between this and firebase. I'm using firebase dynamic links only.
Here's the error that happens immediately on ios when running:
Error loading /var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/UnityFramework.framework/UnityFramework (134):  dlopen(/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/NatML.framework/NatML   Referenced from: <90CAC92F-9B4D-3115-B84D-2CCEAEF63B8A> /private/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/UnityFramework.framework/UnityFramework   Reason: tried: '/usr/lib/swift/NatML.framework/NatML' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/NatML.framework/NatML' (no such file), '/private/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/NatML.framework/NatML' (no such file), '/usr/lib/swift/NatML.framework/NatML' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/NatML.framework/NatML' (no such file), '/private/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/NatML.framework/NatML' (no such file), '/private/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/NatML.framework/NatML' (no such file) Error loading /var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/UnityFramework.framework/UnityFramework (134):  dlopen(/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/NatML.framework/NatML   Referenced from: <90CAC92F-9B4D-3115-B84D-2CCEAEF63B8A> /private/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/UnityFramework.framework/UnityFramework   Reason: tried: '/usr/lib/swift/NatML.framework/NatML' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/NatML.framework/NatML' (no such file), '/private/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/NatML.framework/NatML' (no such file), '/usr/lib/swift/NatML.framework/NatML' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/NatML.framework/NatML' (no such file), '/private/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/NatML.framework/NatML' (no such file), '/private/var/containers/Bundle/Application/A280EF83-DCF6-4421-BB88-8356E20B0C94/MYAPP.app/Frameworks/NatML.framework/NatML' (no such file)
Firebase creates a cocoapods file - could this be an issue?

I think it could be because of Firebase. In Xcode, can you select the Unity-iPhone target and in the general tab, take a screenshot of the Frameworks, Libraries, and Embedded Content section? That list should include NatML.framework.

Yes indeed, NatML.framework wasn't included in the main Unity-iPhone target. I added it manually using add framework files, could you provide an example on how to do this in a post build script perhaps so it can be automated? I already have something setup like this, but since it's a direct file reference needed to NatML.framework I'm unsure how to reference it.
    public static void OnPostprocessBuild (BuildTarget target, string pathToBuiltProject)
    {
        if (target == BuildTarget.iOS)
        {
            OnPostProcessBuildIOS(pathToBuiltProject);
        }
    }

    private static void OnPostProcessBuildIOS(string pathToBuiltProject)
    {

According to @Tillmania, this can be solved by downgrading to Unity 2022.3.13f1. Can you check?

I was super excited to add this asset to my project but I still have the exact same issue. Makes the entire thing unusable unfortunately 😥
@olokobayusuf any updates on this?

@tmlop working very hard on getting this resolved ASAP! Should have something this coming week.

@olokobayusuf Awesome, thank you so much!!
Please let me know if you need more info from my end or if there is anything I can help with :)
Just in case, I'm using the following sdks from Firebase: Authentication, Analytics, Realtime DB, Firestore and Cloud Messaging (ie. push notifications)

Fixed in VideoKit 0.0.18. Feel free to try out the latest VideoKit alpha build.


Blade SVG on sharing host not render

On sharing host, the blade Svg doesn't render, i don't know if it does not allow me to run artisan on terminal, php artisan vendor:publish --provider="BladeSvg\BladeSvgServiceProvider" , so i created my copy the config file from my localhost. Then the bladesvg didn't render.

Having the same issue.
@svg('plattegrond', '') works perfectly fine on localhost, then I pushed the commits to the server and in the live environment it only echoes @svg('plattegrond', '').
I ran composer install and the other installation commands again but no luck unfortunately...

I've had the same issue, but I noticed that when I reuploaded the actual views that use @svg, they will show up. the views were probably still cached from before I got BladeSvg working.

Always make sure you run php artisan view:clear when deploying.


ReqMgr2: default assignment value for AutoApproveSubscriptionSites

I've just hit an issue on the agent side while going through an ACDC workflow that had subscriptions settings and changed during UI assignment in ReqMgr2. WorkQueue is failing to process it [1]
@ticoann I think the reason it's failing is because we set the default value to empty string:
https://github.com/dmwm/WMCore/pull/7254/files#diff-4129fdb6f4ac8568d6ac3fa9cb51f010R101
in case no sites are selected, which then fails in the lambda function.
Would you have a better than creating a specific default value for this case?
[1]
2016-10-12 10:49:08,593:140631694944000:INFO:WorkQueue:Adding WMBS subscription for amaltaro_ACDC_MonteCarlo_Ext_Agent1021_Validation_161011_133611_1649
2016-10-12 10:49:08,614:140631694944000:INFO:WMBSHelper:Top level subscription created: 1543
2016-10-12 10:49:08,642:140631694944000:INFO:WMBSHelper:Child subscription created: 1544
2016-10-12 10:49:08,721:140631694944000:INFO:WMBSHelper:Child subscription created: 1545
2016-10-12 10:49:08,772:140631694944000:INFO:WMBSHelper:Child subscription created: 1546
2016-10-12 10:49:08,791:140631694944000:INFO:WMBSHelper:Child subscription created: 1547
2016-10-12 10:49:08,811:140631694944000:ERROR:WMBSHelper:Failed to create subscription Traceback (most recent call last):
File "/data/srv/wmagent/v1.0.21.pre6/sw/slc6_amd64_gcc493/cms/wmagent/1.0.21.pre6/lib/python2.7/site-packages/WMCore/WorkQueue/WMBSHelper.py", line 406, in createSubscriptionAndAddFiles
sub = self.createSubscription(self.topLevelTask, self.topLevelFileset)
File "/data/srv/wmagent/v1.0.21.pre6/sw/slc6_amd64_gcc493/cms/wmagent/1.0.21.pre6/lib/python2.7/site-packages/WMCore/WorkQueue/WMBSHelper.py", line 264, in createSubscription
self._createDatasetSubscriptionsInDBSBuffer()
File "/data/srv/wmagent/v1.0.21.pre6/sw/slc6_amd64_gcc493/cms/wmagent/1.0.21.pre6/lib/python2.7/site-packages/WMCore/WorkQueue/WMBSHelper.py", line 497, in _createDatasetSubscriptionsInDBSBuffer
subInfo = self.wmSpec.getSubscriptionInformation()
File "/data/srv/wmagent/v1.0.21.pre6/sw/slc6_amd64_gcc493/cms/wmagent/1.0.21.pre6/lib/python2.7/site-packages/WMCore/WMSpec/WMWorkload.py", line 1297, in getSubscriptionInformation
taskSubInfo = self.getSubscriptionInformation(task)
File "/data/srv/wmagent/v1.0.21.pre6/sw/slc6_amd64_gcc493/cms/wmagent/1.0.21.pre6/lib/python2.7/site-packages/WMCore/WMSpec/WMWorkload.py", line 1305, in getSubscriptionInformation
subInfo[dataset]["AutoApproveSites"])
File "/data/srv/wmagent/v1.0.21.pre6/sw/slc6_amd64_gcc493/cms/wmagent/1.0.21.pre6/lib/python2.7/site-packages/WMCore/WMSpec/WMWorkload.py", line 1280, in
extendWithoutDups = lambda x, y: x + list(set(y) - set(x))
TypeError: cannot concatenate 'str' and 'list' objects
2016-10-12 10:49:08,812:140631694944000:ERROR:WorkQueue:amaltaro_ACDC_MonteCarlo_Ext_Agent1021_Validation_161011_133611_1649, /acdc/amaltaro_ACDC_MonteCarlo_Ext_Agent1021_Validation_161011_133611_1649/:amaltaro_MonteCarlo_Ext_Agent1021_Validation_161008_105904_7030:Production/0/1:
creating subscription failed in LQ:
cannot concatenate 'str' and 'list' objects

Hmm, if it is empty string it should still convert to empty list [] in validation. Let me check the code.

Yep, I'm not really sure as well. We either:
a) cast the input data to the type definined in the spec
b) or we make sure the input data is on the type format expected.
What do you think?

we have to cast. we can't enforce it from web interface since everything is string from web.
But we are already casting. (makelist with convert empty string to list)
https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/WMSpec/StdSpecs/StdBase.py#L993
I am trying to find why this didn't get called.


cxxtools: fix build on aarch64

Motivation for this change
ZHF: #144627 @NixOS/nixos-release-managers
Fix gleaned from opensuse package: https://opensuse.pkgs.org/15.3/opensuse-oss-aarch64/libcxxtools10-3.0-bp153.1.15.aarch64.rpm.html
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

@ofborg eval


develop approach for storing random seeds in proveance

A known limitation of data provenance in QIIME 2 is that random seeds aren't stored, unless a seed value is generated externally and passed in as a parameter (which the corresponding action would need to support).
Here's an example of our current best way of handling this. Note that b/c the seed is generated internally, the value stored in provenance will be None unless the user provides another value.
We should address this to support storage of seeds when the random value is generated internally.
This came up here: https://github.com/qiime2/q2-feature-table/pull/317

Quick note on a way to do this:
def my_method(artifact_a: pd.DataFrame, random_seed: Capture(None)) -> pd.DataFrame:
    value = randome_seed.value
    if value is None:
        random_seed.value = get_current_seed()
    else:
        set_current_seed(value)
    ...

Where the Primitive type for random_seed is something typical like Int and Capture (or any other name) is a new object that QIIME 2 would define which would set the "default" value if not provided but have a property getter and setter which can interact with provenance.
Typing it would be annoying, but should be possible with a generic type from typing.

Oh, this won't work with Pipelines, although odds are pretty good that setting a seed there wouldn't work in general since those are usually per-process, so that may not be a problem.


Document release processes

We should document the release processes for meta-resin and boards.

Where is this supposed to be documented in?

Maybe @shaunmulligan knows but it sounds like a process call item.

@agherzan and @floion I think just adding a section in meta-resin docs to discuss how a PR goes from being a PR to being deployed on resin.io and resinos.io on some device type. Its just so external people can understand the process a bit


The installation guide might be slightly off...

Can I just say that while this module is bloody brilliant, I've had a hard time installing it. I'd like to know whether you actually meant to add the stuff to MainActivity.java or to MainApplication.java because the latter contains a function called OnCreate, the prior doesn't.

Yeah it's broken, until #15 is merged it won't work.
You can use my branch though:
yarn add "fc/react-native-android-sms#fc/react-native-compat"

The install instructions are also wrong which I did not address in the PR/README but can be understood below in this patch:
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 4fa84e8..71de8de 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -106,6 +106,7 @@ apply from: 'expo.gradle'
 dependencies {
     compile project(':react-native-call-log')
   implementation fileTree(dir: 'libs', include: ['*.jar'])
+    compile project(':react-native-android-sms')

   implementation 'com.android.support:multidex:1.0.1'

diff --git a/android/app/src/main/java/host/exp/exponent/MainApplication.java b/android/app/src/main/java/host/exp/exponent/MainApplication.java
index af14912..48b3dd2 100644
--- a/android/app/src/main/java/host/exp/exponent/MainApplication.java
+++ b/android/app/src/main/java/host/exp/exponent/MainApplication.java
@@ -31,6 +31,7 @@ import expo.modules.sensors.SensorsPackage;
 import expo.modules.sms.SMSPackage;
 import expo.modules.taskManager.TaskManagerPackage;
 import expolib_v1.okhttp3.OkHttpClient;
+import my.qash.react.SmsPackage;

 // Needed for `react-native link`
 // import com.facebook.react.ReactApplication;
@@ -54,7 +55,8 @@ public class MainApplication extends ExpoApplication implements AppLoaderPackage

         // Needed for `react-native link`
         // new MainReactPackage(),
-            new CallLogPackage()
+            new CallLogPackage(),
+            new SmsPackage()
     );
   }

diff --git a/android/settings.gradle b/android/settings.gradle
index 5f52356..c48799f 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -1,3 +1,5 @@
 include ':app'
 include ':react-native-call-log'
 project(':react-native-call-log').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-call-log/android')
+include ':react-native-android-sms'
+project(':react-native-android-sms').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-sms')
diff --git a/package.json b/package.json
index 7554430..a133af3 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
     "expokit": "32.1.1",
     "react": "16.5.0",
     "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
+    "react-native-android-sms": "fc/react-native-android-sms#fc/react-native-compat",
     "react-native-call-log": "^2.1.1",
     "react-navigation": "^3.0.9"
   },
diff --git a/screens/HomeScreen.js b/screens/HomeScreen.js
index ad650e4..197db7d 100644
--- a/screens/HomeScreen.js
+++ b/screens/HomeScreen.js
@@ -11,6 +11,7 @@ import {
 } from "react-native";
 import { WebBrowser, Contacts, Permissions } from "expo";
 import CallLogs from "react-native-call-log";
+import SmsAndroid from "react-native-android-sms";

 import { MonoText } from "../components/StyledText";

@@ -56,6 +57,49 @@ export default class HomeScreen extends React.Component {
         console.log(contacts, 5)
       );
     }
+
+    const grantedReadSms = await PermissionsAndroid.request(
+      PermissionsAndroid.PERMISSIONS.READ_SMS,
+      {
+        title: "Read SMS Example",
+        message: "Access your SMS logs",
+        buttonNeutral: "Ask Me Later",
+        buttonNegative: "Cancel",
+        buttonPositive: "OK"
+      }
+    );
+
+    if (grantedReadSms === PermissionsAndroid.RESULTS.GRANTED) {
+      const filter = {
+        box: "inbox", // 'inbox' (default), 'sent', 'draft', 'outbox', 'failed', 'queued', and '' for all
+        // the next 4 filters should NOT be used together, they are OR-ed so pick one
+        read: 0, // 0 for unread SMS, 1 for SMS already read
+        //_id: 1234, // specify the msg id
+        //address: '+97433------', // sender's phone number
+        //body: 'Hello', // content to match
+        // the next 2 filters can be used for pagination
+        indexFrom: 0, // start from index 0
+        maxCount: 10 // count of SMS to return each time
+      };
+
+      SmsAndroid.list(
+        JSON.stringify(filter),
+        fail => {
+          console.log("OH Snap: " + fail);
+        },
+        (count, smsList) => {
+          console.log("Count: ", count);
+          console.log("List: ", smsList);
+          var arr = JSON.parse(smsList);
+          for (var i = 0; i < arr.length; i++) {
+            var obj = arr[i];
+            console.log("Index: " + i);
+            console.log("-->" + obj.date);
+            console.log("-->" + obj.body);
+          }
+        }
+      );
+    }
   };

   // async componentDidlMount() {


How much memory does the indexer requires

quickwit's docment says Indexer works with a default heap of 2 GiB of memory.
I deployed a cluster via Helm with limit beblow, but one indexer node always trigger OOM
resources:
  limits:
    cpu: "4"
    memory: 8Gi
  requests:
    cpu: "1"
    memory: 4Gi

I found that the cache memory is too high.
It's a history issue from kubernetes https://github.com/kubernetes/kubernetes/issues/43916


Add the hotword detected toptic to out, following https://docs.snips.…

…ai/reference/hermes
I believe the detected topic should be out as well. This way other systems can respond to the hotword detection of snips.

Hi @Romkabouter,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

Can you pin the snips version inside dockerfile?

Errr sorry, I do not know what pinning is?

https://www.balena.io/blog/our-dockerfile-tips-tricks/

Hmmm ok, I don't understand what you want me to do sorry to say.
Do you want me to update the version to 5.3? I am a bit new to this....

Or to that version they the add-on currently runs. The problem is if I rebuild this add-on again you change we run into issues. The initial creator of this add-on didn't pin the snips version, all other doesn't matter. Now we have a not reproducible state and every update give a big unknown

Ah yes, ok. I understand and will see how far I get. Thanks for the help.

Pinned to version 0.63.2, please check

Thanks

Please revert file permission change that I can merge it 👍

File permission change? Do you mean file version instead?

No, you change all permissions to 755 from 644 / see on https://github.com/home-assistant/hassio-addons/pull/622/files

Yes I see, I was not aware of that. I just forked and clone the repo om my Mac...


Multipolygon Type

Adds support for MultiPolygons.
part of it is based on #13.

Please have a look at the Multipolygon  in develop branch.
If there is something i missed, please let me know.
Thanks,
Samuel

@sadortun this PR does no longer apply. I rebased over @ddproxy master and submitted a PR with the differential code. https://github.com/ddproxy/doctrine2-spatial/pull/8
I don't know if, after project relocation, that PR was merged back or it was lost. However, the relevant part of the code to handle a multipolygon is fine either way.

Thanks for your feedback ! I'll close the PR. We will merge @ddproxy fork soon.


[Feature Request] Cannot set authorize endpoint state param

Hi,
I see there's a onBeforeSignin function to use for storing data before signing in. In the OIDC standard there's already something for this - the state parameter. RPs set this on requests towards the authorize endpoint.
In oidc.js, this is done via :
mgr.signinRedirect({state:'some data'}), where some data can be anything you put into it, url-encoded.
The signIn function of the authContext hides this API, though. Could you make the signIn function take an object that can be passed to the signinRedirect method of oidc.js?

Great idea! Absolutely, we'll add that in. 👍


change the order of arguments

When calling the postprocess.alignment_procedure function within the RetinaFace.extract_faces function, the order of the arguments is incorrect and changed.

can you monitor the results with this change?

The variable name is set appropriately, but the argument order of alignment_procedure function and the argument order of extract_faces function in RetinaFace are different from each other.
extract_faces function in RetinaFace.py
facial_img = postprocess.alignment_procedure(facial_img, left_eye, right_eye, nose)
alignment_procedure function in postprocess.py
def alignment_procedure(img, left_eye, right_eye, nose):
Therefore, I changed the argument order when calling the alignment_procedure function in extract_faces, and the execution code and function execution result to check the result before and after the change are as follows.
original data

before
execution code
from retinaface import RetinaFace
from retinaface.RetinaFace import *
from retinaface.commons import preprocess
import matplotlib.pyplot as plt
import cv2
import numpy as np

def extract_faces(img_path, threshold=0.9, model = None, align = True, allow_upscaling = True):

    resp = []

    #---------------------------

    img = get_image(img_path)

    #---------------------------

    obj = detect_faces(img_path = img, threshold = threshold, model = model, allow_upscaling = allow_upscaling)
    if type(obj) == dict:
        for key in obj:
            identity = obj[key]

            facial_area = identity["facial_area"]
            facial_img = img[facial_area[1]: facial_area[3], facial_area[0]: facial_area[2]]

            if align == True:
                landmarks = identity["landmarks"]
                left_eye = landmarks["left_eye"]
                right_eye = landmarks["right_eye"]
                nose = landmarks["nose"]
                mouth_right = landmarks["mouth_right"]
                mouth_left = landmarks["mouth_left"]

                facial_img = postprocess.alignment_procedure(facial_img, right_eye, left_eye, nose)

            resp.append(facial_img[:, :, ::-1])
    #elif type(obj) == tuple:

    return resp

img = RetinaFace.get_image("./lenna.jpg")
plt.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))
plt.title('Original')
plt.axis("off")
plt.show()

for face in extract_faces(img) :
    plt.imshow(face)
    plt.title('extract face before code fix')
    plt.axis("off")
    plt.show()

Execution result

after
execution code
from retinaface import RetinaFace
from retinaface.RetinaFace import *
from retinaface.commons import preprocess
import matplotlib.pyplot as plt
import cv2
import numpy as np

def extract_faces(img_path, threshold=0.9, model = None, align = True, allow_upscaling = True):

    resp = []

    #---------------------------

    img = get_image(img_path)

    #---------------------------

    obj = detect_faces(img_path = img, threshold = threshold, model = model, allow_upscaling = allow_upscaling)
    if type(obj) == dict:
        for key in obj:
            identity = obj[key]

            facial_area = identity["facial_area"]
            facial_img = img[facial_area[1]: facial_area[3], facial_area[0]: facial_area[2]]

            if align == True:
                landmarks = identity["landmarks"]
                left_eye = landmarks["left_eye"]
                right_eye = landmarks["right_eye"]
                nose = landmarks["nose"]
                mouth_right = landmarks["mouth_right"]
                mouth_left = landmarks["mouth_left"]

                facial_img = postprocess.alignment_procedure(facial_img, left_eye, right_eye, nose)

            resp.append(facial_img[:, :, ::-1])
    #elif type(obj) == tuple:

    return resp

img = RetinaFace.get_image("./lenna.jpg")
plt.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))
plt.title('Original')
plt.axis("off")
plt.show()

for face in extract_faces(img) :
    plt.imshow(face)
    plt.title('extract face after code fix')
    plt.axis("off")
    plt.show()

execution result

If you run unit tests, you will see your approach is not working
Before:

After your change:

So, unit tests show that as is approach is totally fine. i am closing this PR.


Feature - show sponsors on main page

Displayed the golden sponsor on the main banner and all sponsors in the 'sponsors' section. For logos I used random pictures for now to see how it looks. Also I altered the tests a bit so they would pass. For testing, migrate, seed and go to the home page.

Yes, I am. Sometime in the morning preferably)


compdef: unknown command or service

Commented line should eliminate this error until fix is found or proper investigation is made.

@magicalbanana you mean a proper investigation by searching through existing issues on GitHub?
https://github.com/robbyrussell/oh-my-zsh/issues/2337#issuecomment-38144387
Please close this PR.

Instead of merging this PR, I'd try to diagnose and fix the issue on the machine(s) where you're getting it.
The error compdef: unknown command or service occurs if you call compdef before initializing the zsh completion system by calling autoload -U compinit; compinit. Normally the oh-my-zsh.sh file will do this for you as part of oh-my-zsh startup. It's at line 62.
This could be caused by a messed-up oh-my-zsh.sh. Or a bad .zcompdump file. Try deleting your zcompdump files with rm ~/.zcompdump* and using git to check that your oh-my-zsh install is up to date and doesn't have any local changes, and then try again.
If you're still getting the error, you can smooth over it by patching plugins/rails/rails.plugin.zsh in your $ZSH_CUSTOM directory instead of disabling it for all OMZ users.

Sorry, I misread the error message: it's command not found that happens when compinit hasn't run; this looks like it's coming from compdef itself. I still think it's worth trying to diagnose and fix, or disabling via $ZSH_CUSTOM before doing a PR to turn it off globally.

@magicalbanana this issue probably occurs because the version of Zsh you are running does no support completion for rails. Please upgrade your Zsh distribution.

... and please keep in mind that arbitrarily commenting out a line printing an error does not make said error go away.

Is this issue still happening for you?


DOCSP-7569: Add formatting to ref and extlink nodes

Significant changes in final (post-postprocess) AST:

<target> nodes now have a <target_ref_title> child (this is a new node type) that can be ignored by the frontend.
<target> nodes now have a <directive_argument> child that may be needed for rendering
<ref> and <ref_role> nodes now contain children indicating how they should be rendered (this replaces the label attribute).

I am open to discussion on all of this, of course!

Looks good on this pass, just two notes. Also: I know you mentioned renaming semanticparser.py to postprocessor.py—want to do that now?

I would rather do that in a separate PR, since that would involve a fair amount of churn


Add LimitReader to drop excess packets

This includes code from #1052 and add a tests
See for further discussion: #997

/cc @tmthrgd @chantra

there 1 problem though, the LimitReader can't be both used in the udp and tcp path without locking (or maybe different counters. That should be OK?)

We could also simplify the algo: goroutines > max => refuse instead of trying to be smart (I think this has my preference)

failing with
o: downloading golang.org/x/tools v0.0.0-20191216052735-49a3e744a425

go: extracting golang.org/x/tools v0.0.0-20191216052735-49a3e744a425

panic: runtime error: index out of range

goroutine 1 [running]:

go/types.(*Struct).Field(...)

	/home/travis/.gimme/versions/go1.12.14.linux.amd64/src/go/types/type.go:148

main.getTypeStruct(0x704b20, 0xc00080b7a0, 0xc000af13b0, 0xf, 0xc00096a368)

	/home/travis/gopath/src/github.com/miekg/dns/duplicate_generate.go:33 +0x1ab

main.main()

	/home/travis/gopath/src/github.com/miekg/dns/duplicate_generate.go:67 +0x1516

exit status 2

duplicate.go:3: running "go": exit status 1

not related to this PR...?

Wouldn't this only refuse 1 out of 100 packet when we are getting saturated?
Would it be better to return REFUSED until the number of goroutines get back under the threshold?
There is pros and cons of each approaches, but I am not sure how REFUSING 1 out of 100 will help.

[ Quoting<EMAIL_ADDRESS>in "Re: [miekg/dns] Add LimitReader to ..." ]

Wouldn't this only refuse 1 out of 100 packet when we are getting saturated?

uhm, yes ... changed :-)

Would it be better to return REFUSED until the number of goroutines get back under the threshold?

/Miek
--
Miek Gieben

leaving this as a way to do it, not merging


Support feature detector hooks

Implement a new feature source named 'local' whose only purpose is to
run feature source hooks found under
/etc/kubernetes/node-feature-discovery/source.d/ It tries to execute all
files found under the directory in alphabetical order.
This provides a mechanism for users to implement custom feature sources
in a pluggable way, without modifying nfd source code or Docker images.
The hooks are supposed to print all discovered features in stdout, one
feature per line. The output in stdout is used in the node label as is.
Full node label name will have the following spec:
node.alpha.kubernetes-incubator.io/nfd-local-<HOOK_NAME>-<FEATURE_NAME>
Stderr from the hooks is propagated to nfd log.

Perhaps not very serious threat, but every time previously statically built code creates a method to run something which is not known at build time, like dynamic hooks proposed here, we should at least make an attempt to analyze and document the security implications.
In the documentation it needs to be clearly stated that such feature creates a way to run whatever is in hooks code, and responsibility to ensure security is thus extended to maintainer(s) of those hooks, as none of hooks code will be reviewed, checked in the NFD project

I added a disclaimer about hook security.

Hey, I'm interested in this PR as well, any update?
Thanks for the great work!

Hey, I'm interested in this PR as well, any update?

Good to hear that.
Comments/review would be valuable.
What is still clearly missing from the implementation is a validator for the label names.

Added label name validation (I also created separate PR #171 for that)

Removed RFC status from the title.
There changes in the label  naming scheme adopted in #168 (already merged), #146, #147, #149, #157 and #173: using dot to separate attributes within one feature, and, using underscores (instead of dashes) inside feature names. I started to think for the label name pattern to use here. The currently used nfd-local-<hook name>-<feature name> does not quite adhere to these. We could use e.g. dot or underscore between the hook and feature names in the label

nfd-local-<hook name>.<feature name>
nfd-local-<hook name>_<feature name>

Of course, the local source could be seen an exception and just use the current scheme.

Hi, great work on this feature. What should be done to get this merged?

Hi, great work on this feature. What should be done to get this merged?

Code review would be a good start 😊

Thanks for the review!
I'm holding back this PR until NFD has been migrated to the new repo under kubernetes-sigs (kubernetes/org#172), and, the PR for changing the label namespaces (#176) has been merged.
The reason is that there are some changes planned to the implementation of the hook support that will require the namespace change (see the discussion in #144). Basically, the idea is to give the hooks more control over the label names.

@MarSik @ksimon1, I now pushed an updated version of the PR.
The hooks are now able to fully control the label name (namespace cannot be overridden, it's always feature.node.kubernetes.io) by using / prefix.

@marquiz Hi, thank you for this plugin. It works as expected :)

@MarSik, @ksimon1 , thank you for the review and verification


config: fix the bug that sometimes the dynamic config cannot be obtained

Signed-off-by: Zheng Xiangsheng<EMAIL_ADDRESS>
config: fix the bug that the dynamic config cannot be obtained when the PD starts later than the dashboard server

After the dashboard server is started, if the PD starts after 15 minutes, the dynamic config cannot be obtained normally and some services cannot be used. This PR fixes this bug.

/merge

/merge


Linking to anchors in other files doesn't seem to work

Hello,
Here is the full reproducible example:
doc1.md:
## What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

## Why do we use it?

[Link to doc2](doc2.md#why-do-we-use-it)

## Non exist link

[Link to doc2](doc2.md#non-exists-link)

doc2.md:
## Why do we use it
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

Markdown link check:
>>> find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check

FILE: ./doc1.md
  [✓] doc2.md#why-do-we-use-it
  [✓] doc2.md#non-exists-link

  2 links checked.

FILE: ./doc2.md
  No hyperlinks found!

  0 links checked.

I found this https://github.com/tcort/markdown-link-check/issues/91 issue, but it seems to be closed

I also have this issue. Some of the other issues mention only anchor links in the same doc. Those  seem to work for me, it's just ones in different md files that seem to be broken.


Adding buttons Column rows

Is it possible to add buttons to rows. I have had a look and tried a few things, maybe I'm missing something.
Column with buttons with click events for that record.
Great job on what you have created its awesome and so powerful.

You can use the <Template> child content to create anything you want, including buttons. I've created this sample which shows a button in a column. The data for the row is contained in the context variable. In this example clicking the button calls the ShowPerson method which sets the selected variable. That causes the paragraph to appear.
@if(selected != null)
{

You clicked on @selected.full_name

}

    <Column TableItem="PersonData" Title="Id" Field="@(x => x.id)" Sortable="true" Filterable="true" Width="10%" DefaultSortColumn="true" />
    <Column TableItem="PersonData" Title="Full Name" Field="@(x => x.full_name)" Sortable="true" Filterable="true" Width="20%" />
    <Column TableItem="PersonData" Title="Button">
        <Template>
            <button @onclick="@((e)=> ShowPerson(context))">Test</button>
        </Template>
    </Column>
    <Pager ShowPageNumber="true" ShowTotalCount="true" />

@code
{
    List<PersonData> data = new List<PersonData>();

    private PersonData selected = null;

    protected override void OnInitialized()
    {
        // add some test data
        data.Add(new PersonData() { id = 1, full_name = "Bill Gates" });
        data.Add(new PersonData() { id = 2, full_name = "Scott Hanselman" });
        data.Add(new PersonData() { id = 3, full_name = "Steve Sanderson" });
        base.OnInitialized();
    }

    void ShowPerson(PersonData person)
    {
        selected = person;
    }
}

Thanks @conficient for answering!

I got a probelem: Using buttons in a parent/child table (DetailTemplate) causes that the expanded table collapses as soon as the methof for onclick is called.


Feature: Prefetching

Hi guys!
Just wanted to ask if you could imagine the plugin to provide a prefetch option. What I would need is an event to be dispatched when an ad is available. The following code is automatically playing the ad. This is happening in a local scope, so the only way to interact would be like copy & paste all the stuff.
Thing is, I am currently working an a click to play solution, in which I need to know if an ad is available. Otherwise I do not want to have the player showing up.
The steps would be:

fetch vast response -> dispatch event
do whatever you like when event is fired
trigger playAd manually

This is the code where automation is done:
https://github.com/MailOnline/videojs-vast-vpaid/blob/master/src/ads/videojs.vast.js#L206
  function playPrerollAd(callback) {
    async.waterfall([
      getVastResponse,
      playAd
    ], callback);
  }

Thank you in advance!

Hi @davidgerth how would deal with the ad cancel timeout?
We have been thinking of the possibility of adding an optional step to the playPrerollAd that would allow you to modify the response and in theory decided when to start the ad.
Something like:
 function playPrerollAd(callback) {
    async.waterfall([
      getVastResponse,
      beforePlayAdInterceptor
      playAd
    ], callback);
  }

I could make it so that if you set an adCancelTimeout of -1 we never cancel the ad. We could also ad a cancelAds function to the published adUnit object.
Would that do the work for you?

Would like to join @davidgerth
I think it would be great if we could trigger playAd manually. Then we could play midrolls and postrolls.
Also it may be useful in case you send requests to multiple ad providers and choose which creative to show.

@davidgerth were you able to sort anything out on this front?


WIP: Add _plot_legend for spatial colors bf plot

Looks cool!

If Travis passes, review please? It's not much.
I copied a bunch of code from the topoplot code, and I'm not entirely sure I understand all of it.

I copied a bunch of code from the topoplot code, and I'm not entirely sure I understand all of it.

If possible please refactor to reuse code instead of copying to keep things DRY.

@jaeilepp please review.

The legend seems to overlap with the loading text if you paint an area. I know it can be painful to position the text items in matplotlib, but I wonder if it would be easier to locate the legend to bottom right corner of the plot.

Or maybe top left. I'm trying to think where it's overlapping data the least.

What loading text?
Repositioning shouldn't be that hard, as it's done by the loc parameter to inset_axes. Works like the one to legend IIRC.

You can paint an area in the plot with left mouse button. Give it a try!

Ah ... I never use interactive plots :)
I think bottom right would be better than top.

The thing with lower left is that it's the position you least expect effects to appear in cause it's the baseline.
Top left I don't like because it visually interferes with the joint topoplot I like to use these for.

Yeah. Maybe we should move the loading text instead. That could actually even appear in the center, cause it's there only for a short period of time.

If that would be possible ...
Could you maybe do that when you eventually take over this PR? I don't know the interactive plotting code at all.

Yeah, I can do it.

You could also put the loading text on top with a higher z order and it
might look fine. The loading text is temporary so it might work decently.

When is it supposed to disappear by the way? Cause I don't see it disappearing right now. Neither is the selection. (Mac OSX)

That's weird. There shouldn't be anything backend specific going on with the text item.

Can I take over now?

zorder wont work because it's a separate axis.

Yes, take over.
Consider the 'skirt' option for outlines, IMO it's nicer.

Close for #2662


fix: use slugs instead of title as basis for explorer

Closes https://github.com/jackyzha0/quartz/issues/650

Refactors explorer to be based on slug rather than title
Use joinSegments to be robust to joining with slashes

Looking over this right now, is it intended behaviour for folders that have names containing spaces to also be encoded using a - delimiter in the display name? (e.g. the new changes convert a folder called "Folder with spaces" to "Folder-with-spaces")

This also causes an inconsistency with breadcrumbs, which leave spaces for display names
(Setting a display name of a folder manually via index.md works, but I feel like this shouldn't be required just to not have spaces in your folder display name)

Also, I'm not sure if this is a problem with my local setup, but the explorer doesn't seem to store/use explorer save state (what folders are opened) anymore. Tested in Chrome/Firefox with default Explorer settings + a config with
 Component.Explorer({
        useSavedState: true,
        folderDefaultState: "open",
        folderClickBehavior: "link",
      })

both seem to not save state for me anymore.
Couldn't pinpoint what could have broken this in the changes, so might only be a local setup issue unrelated to changes, but just asking to make sure this still works for you

Looking over this right now, is it intended behaviour for folders that have names containing spaces to also be encoded using a - delimiter in the display name? (e.g. the new changes convert a folder called "Folder with spaces" to "Folder-with-spaces")

This also causes an inconsistency with breadcrumbs, which leave spaces for display names
(Setting a display name of a folder manually via index.md works, but I feel like this shouldn't be required just to not have spaces in your folder display name)

we can change the displayName behaviour but the main underlying change here is that the link itself should use the slugged form of the file

Also, I'm not sure if this is a problem with my local setup, but the explorer doesn't seem to store/use explorer save state (what folders are opened) anymore. Tested in Chrome/Firefox with default Explorer settings + a config with
 Component.Explorer({
        useSavedState: true,
        folderDefaultState: "open",
        folderClickBehavior: "link",
      })

both seem to not save state for me anymore.
Couldn't pinpoint what could have broken this in the changes, so might only be a local setup issue unrelated to changes, but just asking to make sure this still works for you

ah i actually didn't test this, i'll take a look when I'm home

Looking over this right now, is it intended behaviour for folders that have names containing spaces to also be encoded using a - delimiter in the display name? (e.g. the new changes convert a folder called "Folder with spaces" to "Folder-with-spaces")

This also causes an inconsistency with breadcrumbs, which leave spaces for display names
(Setting a display name of a folder manually via index.md works, but I feel like this shouldn't be required just to not have spaces in your folder display name)

we can change the displayName behaviour but the main underlying change here is that the link itself should use the slugged form of the file

yeah i agree, the underlying name should def used the slugged form, but seems like less of a hassle for users if displayName uses spaces/unslugged form out of the box

nice, the new commit seems to have fixed both issues.
I'll look over the code and see if I find anything, but looks good from my first impression :)

review still work in progress, but I noticed that the Breadcrumb changes might have introduced a new bug:

there's two layers of folders displayed as just index, those are folders that contain an index.md file that has text content but doesn't override the title frontmatter property. while this is technically a kinda obscure edge case, I just thought i'd note this as it is technically a breaking change as compared to before iirc

urhg yeah I really think we should setup an E2E test suite in another repo at some point using https://playwright.dev/, lemme take a look

review still work in progress, but I noticed that the Breadcrumb changes might have introduced a new bug:

there's two layers of folders displayed as just `index`, those are folders that contain an `index.md` file that has text content but doesn't override the `title` frontmatter property. while this is technically a kinda obscure edge case, I just thought i'd note this as it is technically a breaking change as compared to before iirc

what is the actual folder structure in this example?

yeah having an E2E test suite is always nice, its just setting it up and writing test cases thats painful LOL
the folder structure i was testing with looked something like this:
(folder1)
	- index.md (completely empty) //this was already broken before iirc, prob seperate issue but still technically broken
	- unrelated.md (containing text)
	(folder 2) // folder with space in the name, this only broke just now i think)
		- index.md (containing text but no frontmatter, either having text or space in folder name caused the break)
		- unrelated.md (containing text)

Reference

ok so I poked more at this, this is actually 'correct' behaviour as the index files have an implicitly filled in title frontmatter field and this will take precedence over the folder name. we should probably make a special case and treat index as unset

I can't seem to replicate 🤔 seems to work as intended

new epic fix just dropped


⚠ ClamAV has degraded performance

In 2a776e1, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 75 ms

Resolved: ClamAV performance has improved in 48f5936.


Popup is not triggered when tabbed into it with keyboard

In Octuple popup http://octuple.eightfold-corp.ai/?path=/story/popup--popups, if we set the trigger to be "hover", and then we try to tab into the button via keyboard, the hover is not getting triggered by the tab focus and so the popup does not show up. Ideally it should behave the same as tooltip.

Tracking with ENG-57120


Adds recursively joining lists inside of maps

Re: Issue #4
This still wouldn't work if given two lists, but it didn't before, and if you want that you can use join() anyway.
I guess if someone didn't know if they had two lists, or some nested maps, then they might struggle, but they'd have struggled before too.
I do think this is probably a dangerous change for any existing usages though, which might expect to overwrite lists, not merge them. I'm not sure how you want to handle that, either a version bump or we could make these into two functions...

This is indeed a breaking change. I am thinking about setting up some test cases and compare the original code with the modified and also do that just to try and get a clear vision of what it is this function should achieve.
About multiple functions, I'd actually rather use a configuration parameter instead, but otherwise that's a plausible idea to avoid breaking changes! 👍
I will get back to this after my vacation. Thank you for your contribution, it really means a lot to me!

I've amended my commit to add a third parameter $config: () which defaults to an empty map.
If $config has the key 'merge-lists' set to true then it'll do my extra bit of merging for list values, if not it'll behave exactly as if did before.
I don't know how you want to add tests so I'll leave that with you. For now I've got a local fork of this function anyway.


⚠ Bofrost.de has degraded performance

In 3365f27, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1211 ms

Resolved: Bofrost.de performance has improved in 1562b36 after 13 minutes.


Two binding mode is not working for SelectedItems

Scenario,
I have custom list of object which is binding with SelectedItems. At some condition, I am removing all items from custom list of object but still getting selected items in combox panel in font end

Sorry for the late reply. Can you please check again with the latest update of the component? We have worked a bit in the way SelectedItems work; it should now better support INotifyCollectionChange-based source data (such as ObservableCollections). Thank you in advance for reporting your findings back!

can confirm this works.


Add "Get Help" page

Adding content outline and basic info to create a "Get Help" page on the 2.0 site.

@Tabrarian do you mind combining your planned changes for the /community page to this PR as well? That we we can look at them together and de-dup and ensure the content is consistent.

Following on yesterday's discussion, I created a couple includes, updated the community page, and added a help page for use and develop. I'm unsure if I got the include syntax correct. PTAL, thanks!

I think I got it, thanks, just waiting on Travis!


use for two language!

hi.
I want to use this model to train for Persian language but sometimes there is Engilsh word in my sentence but number of them is not enough that model could learn them? how dealing with this problem?

Hi @hastirad
How are you testing the algorithm with real data after model is generated? Have you written a separate method to use the model and apply it for your data?

@shuchigupta Do you have example how to use generated model?

@ArteezyCode no I don't have example, is it available with the checked-in code? Can you help me where I can get examples from?

@shuchigupta I've created function with the help of it we can use model. There are some unobvious things

@ArteezyCode Can you please share the function code? Is it checked-in somewhere?


[release-1.10] Cherry-pick #5976 to reduce unit test flakiness

Because this is a cherry-pick, please DO NOT SQUASH
Cherry-picks a commit into release-1.10 as this should reduce a lot of flakiness in the unit tests and greatly reduce our build failures for 1.10 hotfixes.
The changes in the commit were primarily in unit tests, with a small code change in something that's gated behind a feature flag, so risk should be small.

Cherry-pick does not impact merging with or without squashing.

Cherry-pick does not impact merging with or without squashing.

Cherry-pick does not impact merging with or without squashing.

It does... Because then if we try to merge release-1.10 into master, the commits are different. Squashing is rebasing, essentially. See: https://www.atlassian.com/git/tutorials/merging-vs-rebasing (section "The Golden Rule of Rebasing")

Cherry-pick does not impact merging with or without squashing.

It does... Because then if we try to merge release-1.10 into master, the commits are different. Squashing is rebasing, essentially. See: https://www.atlassian.com/git/tutorials/merging-vs-rebasing (section "The Golden Rule of Rebasing")

The link above has nothing to do with the point being discussed. We all know the difference between merging and rebasing. The point here is about cherry-pick being as good as "making the change again", or applying the same patch file. When merging OR rebasing, there will be conflicts. Let's discuss this offline.


Failing to re-add the node after it has been rebuilt

Given 3 node cluster v1.21 on Pi4-B-8gb with Ubuntu 20.04.2 LTS 64bit.
original config has 3 nodes running.
pi3 dies
following command performed:
microk8s.kubectl delete node pi3

node removed successfully
now we've rebuilt the node3 with the same IP and trying to join cluster, but:
Contacting cluster at <IP_ADDRESS>
Connection failed. The joining node (<IP_ADDRESS>) is already known to dqlite. (504).

pi2:~$ microk8s status
microk8s is running
high-availability: yes
  datastore master nodes: <IP_ADDRESS>:19001 <IP_ADDRESS>:19001 <IP_ADDRESS>:19001

Indeed the .73 seems to be known to microk8s
Trying to remove from MicroK8s:
pi1:/var/snap/microk8s/current/var/kubernetes/backend$ microk8s remove-node <IP_ADDRESS>
Error from server (NotFound): nodes "<IP_ADDRESS>" not found
Node <IP_ADDRESS> does not exist in Kubernetes.

Question:

is it possible to purge the node from microk8s configuration given its not already in K8s

Hi @hugeps
Normally when you want to service a node, you first need to do microk8s leave on the departing node followed by a microk8s remove node done on any node that is still in the cluster so that you can add it back later on.
Since it is already "removed" from kubernetes cluster, you can follow the instruction here on how to forcefully remove the node in dqlite.

Cheers for the advice!  Indeed  the force remove worked.
Node was actually crashed beyond repair, but the mistake made is - needed to use microk8s remove-node instead of the kubernetes one...


change restart names for catchcn

@gmao-jkolassa , This branch is about to change the restart names for catchcn model. Now all the restart names are catchcnclm40_* or catchcnclm45_* .  If you want test the setup, you may need a "right" restart names to start with.

Thanks @weiyuan-jiang . I'll run a test using the naming convention for the restarts that you have implemented here. I'll report back when I have results.

Tested successfully.


Add new static_single_node config option

In essence, this configuration option will ensure that a static
single-node Patroni cluster does not demote the master (the one member
of the cluster) unnecessarily.
This changeset modifies the behavior of is_failover_possible. If the
cluster is configured with static_single_node=True, then no failover
will take place.
Transient failures to update the leader lock in the DCS will not cause a
demotion when running with static_single_node=True.
When running as leader under normal circumstances, DCS exceptions will
not cause a demotion when running with static_single_node=True.
todo

[ ] add tests for correct parsing and usage of env config values.

Timescale folks, I have a fair amount of logging updates to the code in my local tree. Should we go ahead and add additional logging to leadership transition code points? Not sure what upstream folks will think of that, but it might be useful.


npm install discord.rss issue

I wiped out discord.rss and then git cloned the repo and typed npm install discord.rss
Got this output:
~/Discord.RSS$ sudo nodejs server.js
[13:33:53.373] General Info       | No custom schedules found in settings/schedules folder
[13:33:56.141] General Success    | Discord.RSS has logged in as "Feedman" (ID<PHONE_NUMBER>13532160), processing set to single
[13:33:56.142] General Info       | Commands have been enabled
[13:33:56.142] General Info       | Database URI is set to mongodb://localhost/rss. Detected as a MongoDB URI
(node:9573) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
[13:33:56.174] General Error      | Failed to connect to database, retrying in 30 seconds... (MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED <IP_ADDRESS>:27017])
[13:34:26.183] General Error      | Failed to connect to database, retrying in 30 seconds... (MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED <IP_ADDRESS>:27017])
[13:34:56.187] General Error      | Failed to connect to database, retrying in 30 seconds... (MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED <IP_ADDRESS>:27017])

It seems your mongodb isn't right, maybe try re-installing it?
Way i always install mongodb is:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl start mongod
sudo systemctl enable mongod

Correct me if i'm wrong.

https://github.com/synzen/Discord.RSS/wiki/Setup
Follow the instructions, I don't get why you used npm install discord.rss and cloned when the instructions there never say to use  npm install discord.rss on the


[BUG] insane bedaura

add autorefill (it doesnt work in hotbarrefill module)
autocraft/tableplace and options to autoplace crafting table kicks you
craft is actually bad (crafting wooden slabs, and uses only first slot of inventory (only wood or only wool))

idfk why i made this list ima kms now

kys


Using with Flutter apps

I want to use this library for my nextjs app that also serves for flutter mobile apps (android and ios) that use api routes to authenticate, fetch data from database and etc.
Will this library work for that purposes and if yes what i have to change in my code to work with flutter apps?

Hey @ggukggukee!
Yes, the library should work just fine, but will require a slightly different approach than seen in examples.
When communicating with Next.js backend from Flutter app, backend won't be able to save or read authentication cookies.
In Flutter app, you can use native Firebase library to get hold on ID token: https://stackoverflow.com/questions/45563320/how-to-get-the-id-token-from-firebaseauth
When making requests to Next.js backend, you should include the ID token in request headers. You can use Bearer token approach
Then, in Next.js API routes, you should extract the token from the request and call verifyIdToken from next-firebase-auth-edge. Please note that verifyIdToken will throw AuthError if token is invalid or expired, so you need to handle the error by yourself. Eg. you can respond with 403 Forbidden HTTP error.
See this example:
import { getFirebaseAuth } from 'next-firebase-auth-edge/lib/auth';
import type { NextRequest } from 'next/server';
import { NextResponse } from 'next/server';
import { authConfig } from '../../../config/server-config';

const {verifyIdToken} = getFirebaseAuth({
  serviceAccount: authConfig.serviceAccount,
  apiKey: authConfig.apiKey
});

export async function POST(request: NextRequest) {
  const token = request.headers.get('Authorization')?.split(' ')[1];

  if (!token) {
    return NextResponse.json({error: 'Unauthorized'}, {status: 401});
  }

  try {
    const decodedToken = await verifyIdToken(token);

    await performSecureActionForUser(decodedToken.uid);
  } catch (e) {
    console.error(e);
    return NextResponse.json({error: 'Forbidden'}, {status: 403});
  }
}

Thank you for your answer


Test minimal no-anaconda environment on Travis

With apt-get exclusively.

See this for an example of a .travis.yml with multiple configs.

What should our minimal supported config be?

I would suggest to try the latest Ubuntu LTS (so 14.04) with the latest Ubuntu apt-get packages for NumPy, h5py, etc. We'll see if we get incompatibilities then.

Okay! I suspect we'll have to install IPython manually with pip though?... since the stable version is 1.2 on Ubuntu's repo

Do we want it to be Python2 or Python3? Or we could do both.

Hmm, yes probably. Hopefully that should be fine because IPython is pure Python. But the notebook comes with many dependencies. (PS: IPython 3.0 will be released in a couple of weeks)

Do we want it to be Python2 or Python3? Or we could do both.

I would say Python 2 only for now. We can assume that those who want bleeding edge Python 3 will be okay with using anaconda...


feat(DDI-1236): Creating styles for list elements and documenting

Also updated Table documentation to include an area specifically for number columns, instead of sharing a section with sortable.

:tada: This PR is included in version 4.0.0-alpha.114 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.154 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.21 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


🏗 Store view state in local storage

Currently the view state will switch back to list on refresh. We should store the state in local storage so it defaults to what the user had last selected.

Closed by #526


[UI] group edit / delete doesn't work if there are no constituents.

Fixed along with UI changes for #256


Doc is broken

Hey guys,
Doc looks broken.

Seems fine to me 🤨
Maybe a cache issue?

Cleared my cache and same issue on my smartphone 😕
Le jeu. 9 mai 2024 à 20:46, Daniel Roe @.***> a écrit :

Seems fine to me 🤨
Maybe a cache issue?
—
Reply to this email directly, view it on GitHub
https://github.com/nuxt/nuxt.com/issues/1580#issuecomment-2103224881,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMLEAW7J2AHZEKDE2H4YIZLZBPABBAVCNFSM6AAAAABHPJMA2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGIZDIOBYGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

I'm having the same problem on mobile with Chrome and Firefox.

We've been having an issue where the HTML is cached by Vercel or Cloudflare, and referencing assets (in browser preload) from an old deployment...

Isn't it the same problem as in https://github.com/nuxt/nuxt.com/issues/1569 ?

Console error on Chrome latest:

Closing here in favor of https://github.com/nuxt/nuxt.com/issues/1569
But please send an HAR file for us to investigate if that happens to you!

Github doesn't accept HAR files, so here it is uploaded to file.io
https://file.io/FMN3wpkD2WZU

Going on Getting started then clicking on Server

HAR nuxt.com_Archive 24-05-10 14-21-09.har.json

Still down 24h later... Wtf lol

Still down 24h later... Wtf lol

Not fully down, not the whole time. See https://github.com/nuxt/nuxt.com/issues/1580#issuecomment-2103326397

Looks OK now


error with the spawned command: npminstall

ionic start ExampleProject blank --v2
Creating Ionic app in folder C:\UsersDELL\ExampleProject based on bla
nk project
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
[=============================]  100%  0.0s
Downloading: https://github.com/driftyco/ionic2-starter-blank/archive/master.zip
[=============================]  100%  0.0s
Installing npm packages...
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
Caught exception:
undefined
Kindly suggest the stable version to work on further....

same as #1424

Could you provide me with the output from ionic info from within your project directory? Thanks, this should help in troubleshooting.

same problem

here is the info regarding ionuc
Your system information:
Cordova CLI: 6.3.1
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
OS: Windows 7 SP1
Node Version: v6.3.1

Hi.
You can use "verbose" option (--verbose)
You use CMD?
You have to have Git installed. You can use "Git Shell" for exemple.

i tried with --verbose but same issue exist..
yes i do use cmd ...
will it work with git?

Yes it work with Git Shell for me.
With cmd (--verbose) I have this message :
npm ERR!  not found: git

Related #1440

See step 2 https://github.com/driftyco/ionic/blob/master/CHANGELOG.md#steps-to-upgrade-to-rc0
Thanks

ionic info
Your system information:
Cordova CLI: 6.3.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 7 SP1
Node Version: v6.7.0

We recently released a new version of the CLI that should allow us to gather more insight into NPM issues.  Could you please update your CLI to at least 2.1.4?
npm install -g ionic@latest
Thank you!


Background reload notifications

Currently notifications system is really good, but problem that the notifications wont reload in the background while user not reloading the page.
Suggestion is easy: make one request every 10 seconds to the notifications controller and badge if we received any notification.
Other solution: subscribe user on websocket.
What do you think?

By user notifications you mean  \Orchid\Platform\Notifications\DashboardNotification ?
I like the web socket, we could use it optionally.

Exactly.

You also may think about customizable broadcast driver.
Laravel already have it, only remains ability to change frontend - laravel-echo instance (because some drivers have another port, broadcaster, etc)

Currently, I see three different replenishment options:
Broadcast
To do this through Broadcast, where the user chooses the driver himself own ratchet, webpush, nodejs and etc. But this will require additional installations and can greatly increase the threshold for entering the application. It may also be too redundant to use such a solution for one such task.
Interval
We could also add a new handler that received and updated this item. I don’t think that it will create any kind of load on the web server or database, hoping that users create an intranet for a limited number of users.
Worker
Using a web worker is very similar to the interval, but will only have one update regardless of the number of tabs, which will reduce the number of requests. But it will require a mandatory https connection.
Web sockets and Workers has the prospect of being reused in the project in other places, for example, we could implement browser notifications directly, but the interval is very simple and attractive.

I think it would be strange to update only personal notifications, since menu items can also have badges:

Most likely, it will be necessary to render the menu completely, asking for the HTML part (Yes, js fans will forgive me).
And in order to highlight personal ones, add a badge to the favicon, this will be clearly visible to a user who is not in the current tab. For a more contrasting designation, you can change the color to dark:

What do you think of it?

As I know broadcast needed additional service which is not using by everybody (pusher or redis). Correct me if I am wrong.

The last few days I spent trying to implement some of the calls.
Unfortunately, building a menu is not an option, as we begin to lose the state of existing elements:

Active element
Open menu

Also, to work in a hotel template, it would be necessary to break backward compatibility in the definition of view::compose
We can still release a separate update for personal notifications, but not a badge menu.

Unfortunately, I could not achieve a high level with the management of the favicon at the moment.
The problem is the delay in rendering and not always predictable caching with expectation. Currently, this is more costly than adding value.
If you are interested, here is the last commit that adds this functionality. It will not be in the release without someone's support.
import {Controller} from 'stimulus';

export default class extends Controller {

    /**
     *
     */
    initialize() {
        this.data.set('originalFavicon', this.favicon);
    }

    /**
     *
     * @param isUnreadNotice
     */
    notice(isUnreadNotice = true) {
        const img = document.createElement('img');
        img.src = this.data.get('originalFavicon');

        const lineWidth = 2;
        const canvas = document.createElement('canvas');

        img.onload = () => {
            canvas.width = img.width;
            canvas.height = img.height;

            const context = canvas.getContext('2d');

            context.clearRect(0, 0, img.width, img.height);
            context.drawImage(img, 0, 0);

            if (isUnreadNotice) {
                const centerX = img.width - (img.width / 5) - lineWidth;
                const centerY = img.height - (img.height / 5) - lineWidth;
                const radius = img.width / 5;

                context.fillStyle = '#dc3545';
                context.strokeStyle = '#ffffff';
                context.lineWidth = lineWidth;
                context.beginPath();
                context.arc(centerX, centerY, radius, 0, Math.PI * 2, false);
                context.closePath();
                context.fill();
                context.stroke();
            }

            // Replace favicon
            this.favicon = canvas.toDataURL('image/png');
        };
    }

    /**
     *
     * @returns {*}
     */
    get favicon() {
        return this.element.href;
    }

    /**
     *
     * @param href
     */
    set favicon(href) {
        this.element.href = href;
    }
}

Perhaps this will appear but not at the moment.
As for the update in the background. That it works well and will be available soon

Now it's in released


doc: Added changelog

fixed #240
My contribution is licensed under the MIT license.

Please resolve the conflicts introduced by #311 first.

Is already finished waiting of #317

@dkiechle I introduced new conflicts with #317 (sorry :sweat_smile:)

@SebastianNiemann You can merge this pull request not before fix #318

@dkiechle Please solve the conflicts

There are also a few cases (in old comment blocks), that need to be improved. I added an additional issue for these (#350).


[Bug]: Highlight around current tab

What happened?
There is a purple highlight around the current tab.

Steps to reproduce the problem

Open Firefox
Look at the new tab

Additional info (Optional)
Firefox version: 129.0b5
Operating system: OpenSuse Tumbleweed

Did you use any theme?

I tested it with the default theme and Dracula theme and it happened on both.

im getting the same issue but this time it's black. running latest 1.2.5 and on firefox nightly 130.0a1 2024-07-27

@dorkbuttt, I can't reproduce this issue. Are you familiar with custom.css? If so, could you add the following code and let me know if it helps:
:root,
html,
body,
.tab-background{
    --tab-selected-outline-color: transparent !important;
  }

It did fix the outline issue, but now there's a weird seam that doesn't make the tab blend in with the rest of the UI.

@dorkbuttt, is this on the nighty or stable?

@edelvarden nightly


Information on updating

Included information on how to update LiberTEM from Git. Closes #93.

Merged, thanks!