Add keybind socket

Because Wayland forbids non-root processes from listening to system-wide keypresses, Discord and WebCord are unable to listen for keybinds when the window doesn't have focus. This pull request adds a socket server that allows for sending a payload to forward keybinds to WebCord, so that you may use a privileged process to handle shortcuts like sway or swkhd. An example of activating the push-to-talk key is:
echo -e 'PUSH_TO_TALK\x00\x01\x99\x00' | nc -U $XDG_RUNTIME_DIR/webcord-keybinds.sock
The payload begins with one of the keybind actions that Discord supports, which is terminated with a null (\x00) byte. The byte that follows is a boolean value - a true value (\x01) indicates a keyDown event, and a false value (\x00) indicates a keyUp event. Note that keybinds that aren't toggle-based, like PUSH_TO_TALK, generally only respond to keyUp events.
This feature works by pulling the user's keybinds, finding the key set for a particular command, and then simulating a keypress through setInputEvent on the main Electron window. While the implementation sounds weird, it's the best way to go about it without injecting code into the webpage to interface directly with the keybind handlers - something that I understand you want to avoid with WebCord for user safety reasons.
An extra package was added called keycode to translate the JavaScript keycodes into accelerators, that are then passed to setInputEvent. I've pinned this package to the latest version just in case - if you'd like this unpinned or removed entirely then let me know.
While the changes in this pull request allow for sending key events for any keybindings that have been set, of course there's no actual mechanism to set any of these keybinds apart from PUSH_TO_TALK, because Discord disables the keybinding interface on the web version. I was thinking of potentially adding an option to configure keybindings via the socket interface, but opted against it for this pull request. At least now, any future global keybinds interface can be made to work for both Wayland and X11.
If there's any issues or concerns with the socket payload format, or I missed something else in the implementation, feel free to suggest changes and I can sort.

To be honest, the current implementation of this is too complex to be pushed undocumented into master, I may work on providing documentation for it and maybe the documentation for Wayland in general. I also dislike announcing yet another dependency and that privileged process sends key code to the WebCord rather than the opposite. Personally, I would also change a packet structure (feel free to discuss about it through) for this reason and the way WebCord communicates with the clients.

A currently proposed (generic) structure of the binary packets:

Offset (byte)
Type
Description

0
UTF-8 encoded string: WKB.
Packet header

3
Raw byte
Message type

4
Raw byte
Command

5
Multiple / other
Data (undecided yet how to encode; might only exist in server replies).

Message types:

0x00 – PUSH_TO_TALK

Commands:

0x00 – query, for push-to-talk messages: it sends back to client the keybind (either as a string or key code, depeding how we would decide the returned data should be encoded).
0x01 – post, for push-to-talk messages: it sends an empty message to server that will communicate back and reply with the result (0x00 means success, other codes means error).

A proposed human-friendly communication diagram (showing how it is processed between each of different processes):
sequenceDiagram
    participant C as Socket client;
    participant S as Socket server;
    participant W as Website (IPC);
    activate C;
    C->>S: What is your keybind for N?
    activate S;
    S->>W: What is registered keybind for N?
    activate W;
    W->>S: The registered keybind is XYZ.
    deactivate W;
    S->>C: The registered keybind is XYZ.
    deactivate S;
    C->>S: Emit keybind for N.
    activate S;
    S->>C: Done! Error code: X.
    deactivate S;
    deactivate C;

I'm a fan of the proposed packet structure. In regards to the communication spec, to clarify - when actually triggering a keybind, is this still done by simply sending a keybind type? If that's the case, it would make sense to use the data bytes to specify "keyUp" or "keyDown" - while it's probably good to have a way to simply toggle a keybind with one packet as well, setting keybind in programs like sway or swkhd support a key release event, and I'd want to make sure that the key press and key release events correspond to the same events in WebCord.
If your proposal is that Discord's keybinds are triggered by sending the corresponding keycodes (rather than the name of a keybind e.g PUSH_TO_TALK) to WebCord, I'm not sure if I feel great about the user being able to forward arbitrary keys to WebCord. But I'm not totally sure if this is what you meant, so forgive me if I'm off track.
Apart from that, this makes much more sense, and creating an enum based off of keycode types from Discord would be smart as well, something like:
enum DiscordKeybinds {
  TOGGLE_PRIORITY_SPEAKER = 1,
  PUSH_TO_TALK,
  PUSH_TO_TALK_PRIORITY,
  PUSH_TO_MUTE,
  TOGGLE_MUTE,
  TOGGLE_DEAFEN,
  TOGGLE_VOICE_MODE,
  TOGGLE_OVERLAY,
  TOGGLE_OVERLAY_INPUT_LOCK,
  OVERLAY_ACTIVATE_REGION_TEXT_WIDGET,
  TOGGLE_GO_LIVE_STREAMING,
  TOGGLE_STREAMER_MODE,
  NAVIGATE_BACK,
  NAVIGATE_FORWARD,
  SOUNDBOARD,
  SOUNDBOARD_HOLD
}

I also dislike announcing yet another dependency and that privileged process sends key code to the WebCord rather than the opposite.

I understand the dependency being an issue, I'm not sure if there's a better way to take JavaScript keycodes and convert them into the accelerators that sendInputEvent requires, but if we can do it library free then I'll happily go for that. In terms of the privileged process sending keycodes to WebCord, I'm not quite sure what you mean here, could you clarify? A process sends a keybind "type" (e.g PUSH_TO_TALK) to WebCord, then WebCord pulls the specific keybind and its corresponding bound keycode(s) from the user's localStorage, and then uses sendInputEvent. The external process currently doesn't even know what the corresponding keycode(s) are (a limitation you've addressed, of course) - I'm not sure if this is the privileged process you were referring to.
Sorry for the massive response, and I'll mark this pull request as a draft for the time being until we're both happy with the way we want this feature to look.

I'm a fan of the proposed packet structure. In regards to the communication spec, to clarify - when actually triggering a keybind, is this still done by simply sending a keybind type?

When "registering", WebCord knows the keybind that user specified in localStorage. When client wants to register the same keybind as in Discord, it would query WebCord for that keybind to be actually capable of doing that. However, I actually forgot to show there how socket should behave when the keybing changes. That adds yet another command, sync: WebCord would send a message back to connected client each time when the user changes the keybind in Discord.
But going back to question: I want from sent packets to the server/socket to represent information: I want you to emit a keybind for PUSH_TO_TALK, whatever it is rather than Emit CTRL+V in the renderer. The format of the keybind sent back to client is undecided, yet I think it might be dependant on the arrays I've found in localStorage.

I understand the dependency being an issue, I'm not sure if there's a better way to take JavaScript keycodes and convert them into the accelerators that sendInputEvent requires, but if we can do it library free then I'll happily go for that.

With my communication structure, that should be possible, as Discord saves keybinds as array of tuples of three values, where the second value actually seems to be a keycode (not sure about two others through, which stands for a question if we really need to care about them).

would it not be better to just use https://github.com/flatpak/xdg-desktop-portal/pull/711 ? like we gotta build of master branch but better this is quite alot

@bgkillas last time I took a look at the initial proposal for this, it seemed that the Flatpak maintainers weren't interested in adding separate shortcuts for key releasing - but it looks like this may have changed at some point? If so, then it definitely renders this pull request obsolete.

Took another look at the pull request, the author added "activated" and "deactivated" signals for shortcuts which allow us to determine when the PTT key is pressed and released. @SpacingBat3 I'll be closing this pull request, I see no reason to work on this any further since a much cleaner solution can be implemented.


[e2e]: generic workflow_dispatch main workflow_inputs slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3326134152
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.workflow_dispatch.main.workflow_inputs.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.workflow_dispatch.main.workflow_inputs.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Wed Oct 26 04:16:54 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3334431991
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.workflow_dispatch.main.workflow_inputs.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.workflow_dispatch.main.workflow_inputs.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Thu Oct 27 04:20:41 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3366875943
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.workflow_dispatch.main.workflow_inputs.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.workflow_dispatch.main.workflow_inputs.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Nov  1 05:01:20 UTC 2022
Tests are passing now. Closing this issue.


Some bugs

Hi
This is just the project i need for my HiSilicon cameras. Thanks a lot.
I have got it running, but noted som problems:

The HiSilicon server can not be used alone. The program just exits if not either HikVision or FTP is activated.

In main.go there is a "!" to much in line 36, making webhooks initialized only if not enabled.

The default password "root" for FTP can not be changed.

The  docker run command is missing mapping for FTP port: "-p21:21"

Thanks for reporting those!
I fixed these in v1.0.4. Please let me know if you will encounter more bugs.


[Feat] Show Exam Room No if its available.

Currently Exam Schedule command dont show the exam room no. when requested.
As the go-amizone has been updated with this feature, we can now update the protobuff files and implement it for amibot-tg as well.

Hey there! I want to work on this feature.

@SudoSu-bham go for it!

I would like to work on this issue.


we cannot to the extension marketplace at this time

Issue Type: Bug
Version: 1.57.1 (user setup)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:07.755Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.17134
VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z)
OS version: Windows_NT x64 10.0.17134
Restricted Mode: No

Issue Type: Bug
Version: 1.57.1 (user setup)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:07.755Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.17134
VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z)
OS version: Windows_NT x64 10.0.17134
Restricted Mode: No


Unable to listen to new member events

Hello, I am trying to send a welcome message to new members of a group chat using a bot I have created with grammy. I have tried multiple ways of doing this, yet no matter what I do I cannot get it to work.
The only thing I have gotten to work is to listen to the generic message update.
Here is my example code to reproduce the issue:
import { config } from "https://deno.land/std/dotenv/mod.ts";
import { lowerCase } from "https://deno.land/x/case/mod.ts";
import { Bot } from<EMAIL_ADDRESS>
const configData = await config();
const token = configData["BOT_TOKEN"];
// Create an instance of the `Bot` class and pass your authentication token to it.
const bot = new Bot(token); // <-- put your authentication token between the ""

// You can now register listeners on your bot object `bot`.
// grammY will call the listeners when users send messages to your bot.

// Handle the /start command.
bot.command("start");

// Handle New Members
bot.on('chat_member', async (ctx) => {
  console.log('chat member');
  console.log(ctx);
  await ctx.reply("Welcome New Member");
});

// Handle other messages.
bot.on("message", (ctx) => {
  console.log('message');
  console.log(ctx);
  ctx.reply("This triggers anytime, including when the group chat is started.")
});

// Now that you specified how to handle messages, you can start your bot.
// This will connect to the Telegram servers and wait for messages.

// Start the bot.
bot.start({
  allowed_updates: [
    `chat_member`,
    `edited_message`,
    `channel_post`,
    `edited_channel_post`,
    `inline_query`,
    `chosen_inline_result`,
    `callback_query`,
    `shipping_query`,
    `pre_checkout_query`,
    `poll`,
    `poll_answer`,
    `my_chat_member`,
    `chat_join_request`,
    `message`
  ]
});

Is your bot admin in the group?

Yes, My bot is an admin in the group.

Can you still reproduce it?

I don't. I'll close this due to inactivity. Please comment again if this is still an issue.


Discussion: HttpListener is Being Deprecated

So, putting 1+1 here... it seems that HttpListener is being deprecated.  That is what Ooui is basing its magic on, correct?  Is this a big deal or no?  Is using KestrelHttpServer a viable replacement?  That would involve bringing in the entirety of Asp.NET Core to use Ooui, if I am not mistaken.  Please let me know if I have misunderstood.  Apologies if this has already been discussed/mentioned.  I did a quick search and did not see anything.
https://github.com/dotnet/platform-compat/issues/88

OK so maybe not the entirety of Asp.NET Core, but more like its hosting components:
https://www.nuget.org/packages/Microsoft.AspNetCore.Server.Kestrel/
This might not be a big deal for web-hosted scenarios, but it will look sort of funny in native-hosted scenarios.

Looks like this is a non-issue for now.  HttpListener will remain aboard, but the idea/suggestion is to move over to the Kestrel server eventually.


TabBar styling only works for a second.

Steps to Reproduce
In the TabBar I want to have a thinner text for the unselected tab so that the selected tab pops out a bit more. In doing so the tab will switch to the unselected tab for a split second and once the transition is complete it is set to have the same text style as that of the selected label. I have changed the ThemeData to change the color of the text and in the widget I copy the body2 text style and set the font weight to w700 for label and w500 for unselected (w200 in gif to show what is actually happening.) This issue is happening on both IOS and Android. I am using 'flutter run -d all' to run the app on the IOS Simulator and my Samsung Galaxy S8 at the same time.

There is no complicated code (the CustomBottomNavigation bar just sets the background color of the selected tab and does not conflict with anything):
class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {

  TabController tabController;

  @override
  void initState() {
    tabController = new TabController(length: 2, vsync: this);
    super.initState();
  }

  @override
  Widget build(BuildContext context) {

    TextStyle label = new TextStyle(
      fontWeight: FontWeight.w700
    );
    TextStyle unselectedLabel = new TextStyle(
        fontWeight: FontWeight.w200
    );
    print(label);
    print(unselectedLabel);

    return new Scaffold(
      appBar: new AppBar(
        elevation: 0.0,
        title: new Text("TASTYBURGER"),
        centerTitle: false,
        bottom: new TabBar(
          labelStyle: label,
          unselectedLabelStyle: unselectedLabel,
          controller: tabController,
          tabs: [
            new Tab(
              text: "Menu",
            ),
            new Tab(
              text: "Create Burger",
            ),
          ]
        ),
      ),
      bottomNavigationBar: new CustomNavigationBar(
        currentIndex: 0,
        type: BottomNavigationBarType.fixed,
        fixedColor: const Color(0xFFFFDB00),
        items: [
          new BottomNavigationBarItem(
            backgroundColor: Colors.black,
            icon: new Icon(Icons.restaurant_menu),
            title: new Text("Menu")
          ),
          new BottomNavigationBarItem(
            icon: new Icon(Icons.favorite_border, color: Colors.white,),
            title: new Text("Favorite")
          ),
          new BottomNavigationBarItem(
            backgroundColor: Colors.black,
            icon: new Icon(Icons.shopping_cart, color: Colors.white,),
            title: new Text("Cart")
          ),
          new BottomNavigationBarItem(
            backgroundColor: Colors.black,
            icon: new Icon(Icons.person_outline, color: Colors.white,),
            title: new Text("Profile")
          ),
        ],

      ),
      body: new TabBarView(
        controller: tabController,
        children: [
          new ListView(
            children: <Widget>[
              new Container(
                color: Colors.red,
                height: 200.0,
              )
            ],
          ),
          new ListView(
            children: <Widget>[
              new Container(
                color: Colors.blue,
                height: 200.0,
              )
            ],
          )
        ]
      ),
    );
  }
}

Also my ThemeData:
new ThemeData(
        primaryColor: ThemeColors.primaryColor,
        primaryTextTheme: base.primaryTextTheme.copyWith(
            title: base.primaryTextTheme.title.copyWith(color: Colors.black, fontWeight: FontWeight.w800, letterSpacing: 1.7),
            body2: base.primaryTextTheme.title.copyWith(color: Colors.black, fontWeight: FontWeight.w400)
        ),
        indicatorColor: Colors.black,
      ),

Logs
There are no exceptions or errors in verbose run.
Doctor Summary
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.3.1, on Mac OS X 10.13.3 17D102, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
[✗] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.4)
[✓] VS Code (version 1.23.1)
[✓] Connected devices (2 available)

! Doctor found issues in 1 category.

[✓] Flutter (Channel beta, v0.3.1, on Mac OS X 10.13.3 17D102, locale en-US)
    • Flutter version 0.3.1 at /Users/bigmarco254/flutter
    • Framework revision 12bbaba9ae (3 weeks ago), 2018-04-19 23:36:15 -0700
    • Engine revision 09d05a3891
    • Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/bigmarco254/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3, Build version 9E145
    • ios-deploy 1.9.2
    • CocoaPods version 1.4.0

[✗] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.4)
    • IntelliJ at /Users/bigmarco254/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700

[✓] VS Code (version 1.23.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.12.1

[✓] Connected devices (2 available)
    • SM G950U • 9887bc48414134574b                   • android-arm64 • Android 8.0.0 (API 26)
    • iPhone X • 7C969D13-C3CE-4AB6-9DB1-0361698B3489 • ios           • iOS 11.3 (simulator)

! Doctor found issues in 1 category.

This looks like something that was fixed recently: https://github.com/flutter/flutter/pull/17397

Has this been pushed to the beta branch? if not how do I change it so flutter upgrades.  @HansMuller

We try and release a beta every few weeks and #17397 should be be in the next one.
Until then, you could clone your own copy of the repo per https://github.com/flutter/flutter/blob/master/CONTRIBUTING.md


feat: add chinese remainder theorem

Description of Change

Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.

Notes: A C++ program to solve a system of linear congruences using CRT.

@HimeshKohad this PR is a very nice contribution. Could you please fix the missing details? It would be a pity if this would be closed without merging.


Errors in d3d9.h file (day 2 of this shit)

Errors codes :
E0020
E0029
i am having this issue 2 days.

Download the DirectX SDK June 2010
And add path in system variables

After that u need to add this paths into ur project


Search no character in Vietnamese

I use Vietnamese language.
I want to search the unsigned form and return valid records.
I removed the mark in the records and returned a valid list, however it did not update.

Hope this will help you: sub-custom-option-template
We can use the trick to improve search with Vietnamese characters:

Add a property e.g: nameNormalize with the value being the name removed Vietnamese characters into the array object { key: "HN", labelNormalize: "Thanh pho Ha Noi", label: "Thành phố Hà Nội" }
Use customLabel to show the label on the dropdown like Thành phố Hà Nội (Thanh pho Ha Noi)
Use sub-custom-option-template from the link above to show Thành phố Hà Nội only when selected


Note about the public instance going down.

re: issue #62

Thanks for the PR!

No problemo, glad to help. \o


Incorrect Command to Update Tag

I've been following the tutorial through and I get to the docker tag command for the updated image and it doesn't work.
The section specifically says:
Use docker tag to tag the image. Replace  with your ACR login server name or public registry hostname, and update the image version to :v2 as follows:
But then gives a command without  in it at all:
docker tag /azure-vote-front:v1 /azure-vote-front:v2
I tried the command as written, and it came back with the error:
Error parsing reference: "/azure-vote-front:v1" is not a valid repository/tag: invalid reference format
I've also tried it with my acr's login server before the forward slash and it still didn't work.
This step isn't clear.
I did have a previous issue open for this, but the person helping me decided to close it over the weekend while I wasn't at work, so I didn't have a chance to see the reply or try what was suggested before the issue was closed.
As it stands, the response didn't help, and I needed further help. Therefore I'm opening this issue. The previous issue was here: https://github.com/MicrosoftDocs/azure-docs/issues/109343
My last reply was:
Hi Ajay!
Hope you had a good weekend.
I have just tried the command you gave me:
docker tag azure-vote-front:v1 myacr.azurecr.io/azure-vote-front:v2
and it didn't work. The error was:
Error response from daemon: No such image: azure-vote-front:v1

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

ID: 56e9075f-9310-5e1f-72d4-a5bd061cdb1b
Version Independent ID: 8afbfa3d-1cc3-5326-502a-291f72a716d8
Content: Kubernetes on Azure tutorial - Update an application - Azure Kubernetes Service
Content Source: articles/aks/tutorial-kubernetes-app-update.md
Service: azure-kubernetes-service
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@gatkinsOS
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

@gatkinsOS - I've been able to repro your issue and to resolve it, the following command should be used -
docker tag mcr.microsoft.com/azuredocs/azure-vote-front:v1 /azure-vote-front:v1
I'm going to create a work item and open a PR to update that step in the article.
Thanks

PR submitted - https://github.com/MicrosoftDocs/azure-docs-pr/pull/238969. As this issue appears to be resolved, I'm going to proceed with closing this issue. #please-close.

@gatkinsOS - My bad, I didn't paste the proper command line in my response. It should be -
`docker tag mcr.microsoft.com/azuredocs/azure-vote-front:v1 /azure-vote-front:v2


Update to the latest bookstack with docker

Describe the Bug
Updating to the latest mariadb and docker image provided from linuxserver gives me the following error message:
bookstack       |   SQLSTATE[HY000] [1045] Access denied for user<EMAIL_ADDRESS>(using password: YES) (SQL: select * from information_schema.tables where table_schema = bookstackapp and table_name = migrations and table_type = 'BASE TABLE')
bookstack       |
bookstack       |   at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
bookstack       |     708▕         // If an exception occurs when attempting to run a query, we'll format the error
bookstack       |     709▕         // message to include the bindings with SQL, which will make this exception a
bookstack       |     710▕         // lot more helpful to the developer instead of just the database's errors.
bookstack       |     711▕         catch (Exception $e) {
bookstack       |   ➜ 712▕             throw new QueryException(
bookstack       |     713▕                 $query, $this->prepareBindings($bindings), $e
bookstack       |     714▕             );
bookstack       |     715▕         }
bookstack       |     716▕     }
bookstack       |
bookstack       |       +33 vendor frames
bookstack       |   34  /app/www/artisan:37
bookstack       |       Illuminate\Foundation\Console\Kernel::handle()
bookstack       | [custom-init] No custom files found, skipping...
bookstack       | [ls.io-init] done.
Previous versions were bookstack: version-v22.1 and mariadb: 10.6.9
Steps to Reproduce
Update docker-compose.yml file with the bookstack version v22.1.1 or v23.01.1
sudo docker-compose up -> gives then the error
Expected Behaviour
Normally it should come up smoothly and everything works fine, as it did the last 2 years.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
23.01.1
PHP Version
No response
Hosting Environment
Docker on Ubuntu

This sounds like the same thing as issue #3940. You can view that thread for further detail and possible solutions.
It would also help, if possible, if you could comment in that thread and confirm what special characters (If any) were used in the database password.


Add {read,write}{U,}Int{LE,BE} methods to NodeBuffer interface

See the Buffer documentation for validation.

@chbrown thanks mate!


Not working delete attachment option while customer giving review.

Terms

[X] Before you openning this issue, i have checked if the issue has already been reported.

Bagisto Version(s) affected
master
Issue Description
When customers try to give reviews and add other attachments and then want to delete the attachment but are not able to delete the delete option is not working.
Preconditions

Admin should have at least one product.

Steps to reproduce

Go to the 'Shop'
Click on view 'Product'
Scroll down to 'Review'
Add an attachment
Delete the attachment
See the error

Expected Result
It should be deleted from the attachment.
Actual Result
Not deleting the attachment. Here
Screenshots
No response
Additional context
No response

Fixed In this PR

Now, this issue is fixed. so I am closing this issue.


Speed of sound using command line

Hi @tomelse,
I tried to run the command: patato-set-speed-of-sound
It showed the GUI and the example data and I could change the value. However the output shows this:

Does the GUI work as expected? I think the errors/warnings come from tkinter, the toolkit used for making the GUI and shouldn't affect the functioning of the program.

Yes, the GUI works as expected.


Can we get the username from the poster?

Hi,
Good job ! ;-)
I want to use this package in a group chat on Telegram. It's working fine and I can see every message in Discord. But is there a way to post the username from the TG user into Discord so I can follow the conversation in Discord?
Now I get this in Discord:

Hello, how are you?
I'm fine thanks.
How are you?

It would be nice if I could see this:

Joe: Hello, how are you?
Michael: I'm fine thanks.
Michael: How are you?

Thanks for your answer!

hello @Argon007,
sry for answering so late, this skript is mainly useful to bridge a telegram channel (not a group) to discord (but not the other way around). if you want to use something to bridge a conversation i would recommend something like TediCross
though you could easily change code so the name of the webhook is the name of the person that sent the telegram message if you really wan't to. but i probably won't add that to the main branch


Nanosam C++ Implementation

Implemented NanoSAM in cpp on Windows for real time segment anything applications:
https://github.com/spacewalk01/nanosam-cpp

Hi, @spacewalk01
Thank you for your interest in my work! You can add your work to the repository and submit a pull request. I will review it and merge it into the main branch. Thank you!

@spacewalk01 I have merged, thanks again.


Update code-style-rule-options.md

Summary
Describe your changes here.
Pascal Case rules for editorconfig were not working, because pascal_case_style was used instead of pascal_case
Fixes #29332

Closing for now as I don't believe this PR is correct. See the comment in #29332.


The diarization and word assignment to the speakers are different with every run. Can anyone know how to solve this?

For example I got these transcriptions with 3 runs on same audio file:
1st run:
Speaker 1: In case number one, two, three, eight, or ten, who should be occurring in the general court number two today, the fourth day of September 2020, before the general magistrate for the state, Mr.  .  However, Mr.  is standing in while .  This is the matter that was on the road for the purposes of application for leave to appeal.  My colleague, Mr.  Chuma, was ready to proceed.  However, the court had noted that if the matter is not proceeding, the court I am of the opinion that no need to proceed with the inquiry unless that was not foreseeable.
Speaker 0: Thank you.  Advocate?
Speaker 2: Well, these staters just found out themselves now.  Yes, of the AVR, yes.  Well, we can find out again.  Call the official.
Speaker 1: Yes.  Who?
Speaker 2: Give him the full names.
Speaker 1: Oh, yeah.  He's not in our list, sorry.  He's not in quarantine, but he is not in our list.  He's what?  He is not on quarantine.  But he just said he's on quarantine.
Speaker 2: Yes, he did.
Speaker 1: He is not on our list.  No, we were off.  Yesterday we were off.  They didn't prepare our job.
Speaker 0: But now, when I'm looking on the list, he's not on our list.  Sorry.
Speaker 2: But ask him, did he not just say that he pleased?
Speaker 1: But did he not say earlier that he was on quarantine?  I did so, but now when I am checking on the list here, those who prepared the recording didn't do their proper handover.
Speaker 2: Can we just see who's speaking, please?
Speaker 1: Yes.

2nd run:
Speaker 1: In case number 1, 2, 3, 8, or 26, who should be occurring in the general court number 2 today, the 4th day of September 2020, before the general magistrate, Mr.  Zeke Richner, for the State, Mr.  Bonan Naftali Mukuma, however, Mr.  Takalani Mukuma is standing in, while Advocate Bowen represents that case.  This is the matter that was on the road for the purposes of application for leave to appeal.  My colleague, Mr.  Chuma, was ready to proceed.  However, the court had noted that if the matter is not proceeding, the court I am of the opinion that no need to proceed with inquiries unless that's what's not foreseeable.  Thank you.  Advocates?
Speaker 2: Well, these staters just found out themselves now.  Yes, of the AVR, yes.  Well, we can find out again.  Call the official.
Speaker 1: Yes.  Who?
Speaker 2: Give him the full names.
Speaker 1: Oh, yeah.  He's not in our list, sorry.  He's not on quarantine, but he is not in our list.  He is what?  He is not on quarantine.  There is a problem.  But he just said he's on quarantine.
Speaker 2: Yes, he did.
Speaker 1: He is not on our list.  No, we were off.  Yesterday we were off.  They didn't prepare our job.  But now, when I'm looking on the list, he's not on our list.  Sorry.
Speaker 2: But ask him, did he not just say...
Speaker 1: But did he not say earlier that he was on quarantine?  I did so, but now the... When I am checking on the list here, those who prepared the recording didn't do the proper handover.
Speaker 2: Can we just see who's speaking, please?
Speaker 1: Yes, can we just...

3rd Run:
Speaker 1: In case number one, two, three, eight, or twenty-six individuals who should be occurring in the general court number two.  today, the fourth day of September 2020, before the general court magistrate, Mr.  Zeke Richner, for the State, Mr.  Bonan Naftali Mukuma, however, Mr.  Takalani Mukuma is standing in while advocating.  Bowen, represent that.  This is the matter that was on the road for the purposes of application for leave to appeal.  My colleague, Mr.  Chuma, was ready to proceed.  However, the court had noted that if the matter is not proceeding, the court I am of the opinion that no need to proceed with the inquiry unless that was not foreseeable.  Thank you.  Advocate?  It's the first word that we heard about this problem.  It wasn't conveyed to us earlier.  I heard it now for the first time.
Speaker 2: Well, these staters just found out themselves now.  Yes, of the AVR, yes.  Well, we can find out again.  Call the official.
Speaker 1: Yes.  Who?
Speaker 2: Give him the full names.
Speaker 1: Oh, yeah.  He's not in our list, sorry.  He's not on quarantine, but he is not in our list.  He's what?  He is not on quarantine.  But he just said he's on quarantine.
Speaker 2: Yes, he did.
Speaker 1: He is not on our list.  No, we were off.  Yesterday we were off.  They didn't prepare our job.  But now, when I'm looking on the list, he's not on our list.  Sorry.
Speaker 2: But ask him, did he not just say?
Speaker 1: Did he not say earlier that he was on quarantine?  I did so, but now when I am checking on the list here, those who prepared the recording didn't do the proper handover.
Speaker 2: Can we just see who's speaking, please?
Speaker 1: Yes.

the diarization contains clustering which is not deterministic, set the seed to a fixed number and see if it helps

Thanks for your reply @MahmoudAshraf97, but can you elaborate, where to set the seed value to fixed number. I am just newbie

add this right after the imports in diarize.py
import random
random.seed(0)

thanks for your response. I tired this as you said but it not helping to solve issue. still same random outputs on every run, even speaker identification.
sometimes it catches there are 2 speakers sometimes 3 (actual speakers are 3)

Try forcing the number of speakers for NeMo MSDD if you know how many speakers there are. You'll need to do two things:
First -

Find create_config function under the helper functions;
Find the meta dict within it, add this parameter to it: "num_speakers": 2;

So before, it looks like this:

meta = {
"audio_filepath": os.path.join(output_dir, "mono_file.wav"),
"offset": 0,
"duration": None,
"label": "infer",
"text": "-",
"rttm_filepath": None,
"uem_filepath": None,
}

Now it looks like this:

meta = {
"audio_filepath": os.path.join(output_dir, "mono_file.wav"),
"offset": 0,
"duration": None,
"label": "infer",
"text": "-",
"num_speakers": 2,  # force to 2 speakers
"rttm_filepath": None,
"uem_filepath": None,
}

Second -
Under the same function, find and change config.diarizer.clustering.parameters.oracle_num_speakers = False to config.diarizer.clustering.parameters.oracle_num_speakers = True. This will ask the model to use the number of speakers you specified.


[SERVICE] Cleanup Service.

As part of R5, The work-a-round for placing IMetadata on the Service<> object for plugins that did not contain Plugin::Metadata< PLUGIN IMPLEMENTATION > is removed. In R5 it is now mandatory to include a Plugin::Metadata for a plugin.

@HaseenaSainul shall we first include this cleanup and than continue the static discussion? (WarningReporting activated bug, no unloading on Remote Plugin). I willpick it up but do prefer this PR to be merged before I continue with that step ?

@HaseenaSainul shall we first include this cleanup and than continue the static discussion? (WarningReporting activated bug, no unloading on Remote Plugin). I willpick it up but do prefer this PR to be merged before I continue with that step ?

sure @pwielders. Let me complete start mode change and will check this after that


Add scheduling

Add scheduling for fetching / parsing, and generating response / responding to email.

Duplcate.


Render message for broken images

Why
As reported in #193 broken images causing image flickering and scroll jumping.
What
For now on we are listening for error events in img element of graphic component. In that case we are changing the state and rendering a warning message.

Codecov Report

Merging #756 into master will decrease coverage by 0.01%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master     #756      +/-   ##
==========================================
- Coverage   68.24%   68.23%   -0.02%
==========================================
  Files         292      292
  Lines        7659     7665       +6
==========================================
+ Hits         5227     5230       +3
- Misses       2432     2435       +3

Impacted Files
Coverage Δ

src/article/shared/ManuscriptContentPackage.js
100% <100%> (ø)
:arrow_up:

src/article/shared/GraphicComponent.js
75% <25%> (-25%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 064ed5d...05a4d42. Read the comment docs.


fix invalid link for reserved resource name

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

 None

/cherry-pick website


feat(renderer): add fallback to animation

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@09e614c). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #8   +/-   ##
=======================================
  Coverage        ?   42.75%
=======================================
  Files           ?        2
  Lines           ?      138
  Branches        ?       18
=======================================
  Hits            ?       59
  Misses          ?       70
  Partials        ?        9

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


C cpp

Description 📜
prepared a documentation on DAC and discussed some programs
Fixes # <4017>

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Documentation (Content Creation in the form of codes or tutorials)
[ ] Ot#her (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[x] C/CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] Java#Script
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

@Saviour1001  sir please review this if you want any change then let me know.


[web] [edge(legacy)] Text editing tab doesn't work

On Windows on Edge, pressing tab on text editing doesn't work.

How can I reproduce this issue?

@pedromassango you need to have a legacy edge installed on a windows machine. Then you need to have a few text fields in a row and try to jump between them using the tab key.
I don't think this is still an issue on new edge. I tested this when I had legacy edge installed. New edge is based on the same browser engine with chrome.

No plan to support old Edge any more.


Fix resource load error when use as dynamic framework.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

hi @ufosky Do you want to use WeexSDK for dynamic framework?

@acton393 Yes,I used in a swift based project, it must be a dynamic framework from cocoapods.

hi @ufosky  It's the truth that the framework is static on cocoaPods.
Your PR is very good either in static or dynamic framework. If merged，you need re-package dynamic framework by yourself.

@acton393 Just add use_frameworks! in Podfile, then all pods are used as  dynamic framework.

thx for your contribution ~~


SimCLR: A Simple Framework for Contrastive Learning of Visual Representations

…ntations
This fixes #1224
Article Checklist
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

NOTE: (1st time contributors - submit ONLY one article to get familiar with the process and style-once published, you can then submit any number of articles.)
Grammar Checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical Checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution Guidelines
For first-time contributors and for more details, see Contributing Guidelines

Very well explained. Can we come up with code to implement SimCLR framework? That would be amazing (in another article). In this article, there are a few places where more information and links are required. Add them wherever you feel more information is necessary. I have highlighted a few such places.

@lalith1403  Sure. That would be amazing. I'll do that in my next article as a follow-up. Let me work on the few revisions

Very well explained. Can we come up with code to implement SimCLR framework? That would be amazing (in another article). In this article, there are a few places where more information and links are required. Add them wherever you feel more information is necessary. I have highlighted a few such places.

@lalith1403  Sure. That would be amazing. I'll do that in my next article as a follow-up. Let me work on the few revisions

Plagiarism check done

Plagiarism check done

@lalith1403 finished with the revisions

@lalith1403 finished with the revisions


SDK Allignment

Align the API closer to the .NET SDK.

Endpoint URLs  (for both preview and production) – should be hardcoded directly in the SDK. You can check out how we do it in the .NET SDK. See the configuration and DeliveryClient constructors.
Link resolution
Rich-text modular content resolution
Strongly-typed models support (aka code first approach)

You can see the whole SDK feature matrix here. Basically, the goals is to have all the SDKs aligned feature-wise.

Configuration and Link resolution is done.
Still todo:

Rich-text modular content resolution
Strongly-typed models support
Code generators

Strongly typed models support is enabled with resolution of #5

Rich-text modular content resolution is now supported, but can be improved with #16 .  Going to make a separate issue for code generators so this issue can be closed.


shared_preferences-0.5.6 SharedPreferencesPlugin.java:25: warning: [deprecation] getFlutterEngine() in FlutterPluginBinding has been deprecated

pub.dartlang.org/shared_preferences-0.5.6/android/src/main/java/io/flutter/plugins/sharedpreferences/SharedPreferencesPlugin.java:25: warning: [deprecation] getFlutterEngine() in FlutterPluginBinding has been deprecated
    setupChannel(binding.getFlutterEngine().getDartExecutor(), binding.getApplicationContext());
                        ^

merging into https://github.com/flutter/flutter/issues/47153 too

me too


Cache-disabled-panic in xTaskGenericNotifyFromISR while all in IRAM (IDFGH-5039)

Environment

Module or chip used:  [ESP32-WROOM-32E]
IDF version (run git describe --tags to find it): v4.3-dev-3175-g9a2d25191
Build System:         [Make]
Compiler version (run xtensa-esp32-elf-gcc --version to find it): (crosstool-NG esp-2020r3) 8.4.0
Operating System:     [Linux]
Using an IDE?: [No]
Power Supply:         [USB]

Problem Description
I get the following panic:
Re-enable cpu cache.
Guru Meditation Error: Core  0 panic'ed (Cache disabled but cached memory region accessed).

The backtrace is:
0x4008a830 T xTaskGenericNotifyFromISR
0x400838cc T mainNotifyFromISR
0x40083914 t cf_code_in_gpio_isr
0x40087178 t gpio_isr_loop
0x400871b8 t gpio_intr_service
0x40082034 t _xt_medint3
0x4008a0d4 T xTaskGetCurrentTaskHandleForCPU
0x40082814 t cache_enable
0x4008290c t spi1_end
0x40087824 t spiflash_end_default
0x400832a0 T esp_flash_read
0x400d76fc T _fseeko_r
0x40143e1c T dac_output_disable
0x40142d3c T _ZN3nvs8HashListD2Ev
0x4014338c T rtc_sleep_init
0x4014236c T _ZN3nvs4Page8readItemEhNS_8ItemTypeEPKcPvjhNS_9VerOffsetE
0x40142484 T _ZN3nvs4Page15mLoadEntryTableEv
0x40143f80 T rmt_tx_start
0x40141d30 T ZN3nvs4Page9copyItemsERS0
0x40112c40 T ieee80211_tx_mgt_cb
0x40110fc4 T ieee80211_ioctl
0x40120860 T ic_disable_crypto
0x4011c18c T chm_start_op
0x4016536c T wps_enrollee_get_msg
0x4016bce4 T wps_process_authenticator
0x4016c544 T wps_parse_msg
0x4016c920 t wps_process_serial_number$isra$6
0x4008fc34 T ppProcTxCallback
0x4008f7d8 T lmacTxDone
0x4008f898 T lmacEndFrameExchangeSequence
0x4012288c T pm_go_to_wake
0x401230a4 T pm_tx_null_data_done_process
0x40090f48 T ppTask
It happens on a gpio interrupt (in iram). Reproducible with v4.3. Never seen while heavily tested under v4.2.
Map file shows: (I can upload if needed)
0x0000000040080000                _iram_start = ABSOLUTE (.)
...
0x000000004009538c                _iram_end = ABSOLUTE (.)
This is the disassembly of the code around PC: (in function xTaskGenericNotifyFromISR)
5458			pxTCB = xTaskToNotify;
5459
5460			taskENTER_CRITICAL_ISR(&xTaskQueueMutex);
0x4008a83c <+12>:	71 cc d8	l32r	a7, 0x40080b6c
0x4008a83f <+15>:	ad 07	mov.n	a10, a7
0x4008a841 <+17>:	65 99 01	call8	0x4008c1d8
5461			{
5462				if( pulPreviousNotificationValue != NULL )
0x4008a844 <+20>:	16 85 00	beqz	a5, 0x4008a850 <xTaskGenericNotifyFromISR+32>
5463				{
5464					*pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
0x4008a847 <+23>:	c0 20 00	memw
0x4008a84a <+26>:	82 22 57	l32i	a8, a2, 0x15c
0x4008a84d <+29>:	82 65 00	s32i	a8, a5, 0
5465				}
5466
5467				ucOriginalNotifyState = pxTCB->ucNotifyState;
0x4008a850 <+32>:	92 d2 01	addmi	a9, a2, 0x100
0x4008a853 <+35>:	c0 20 00	memw
0x4008a856 <+38>:	82 09 60	l8ui	a8, a9, 96
0x4008a859 <+41>:	0c 25	movi.n	a5, 2
0x4008a85b <+43>:	c0 20 00	memw
0x4008a85e <+46>:	52 49 60	s8i	a5, a9, 96
0x4008a861 <+49>:	80 80 74	extui	a8, a8, 0, 8
5468				pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
5469
5470				switch( eAction )
0x4008a864 <+52>:	f6 54 39	bgeui	a4, 5, 0x4008a8a1 <xTaskGenericNotifyFromISR+113>
0x4008a867 <+55>:	91 09 d9	l32r	a9, 0x40080c8c
0x4008a86a <+58>:	e0 44 11	slli	a4, a4, 2
0x4008a86d <+61>:	4a 49	add.n	a4, a9, a4
0x4008a86f <+63>:	48 04	l32i.n	a4, a4, 0
0x4008a871 <+65>:	a0 04 00	jx	a4
5471				{
5472					case eSetBits	:
5473						pxTCB->ulNotifiedValue |= ulValue;
0x4008a874 <+68>:	c0 20 00	memw
0x4008a877 <+71>:	42 22 57	l32i	a4, a2, 0x15c
0x4008a87a <+74>:	30 34 20	or	a3, a4, a3
0x4008a87d <+77>:	c0 20 00	memw
0x4008a880 <+80>:	32 62 57	s32i	a3, a2, 0x15c
The panic occurs at the switch. Seemingly everything is OK.
Freertos functions are in iram.
Expected Behavior
No crash.
Any help is welcome. No issues in idf v4.2.
Thanks
Viktor

One possibility is that the switch-case gets optimized to a jump table, which is placed in flash.
Could you try to add tasks.o: CFLAGS += -fno-jump-tables -fno-tree-switch-conversion to the end of components/freertos/component.mk and see if that helps

According to the disassembly, the jump table should be in iram as well. I will make a try nevertheless.

I confirm it is the switch jump table. With the compiler flags modified, the issue is gone (0 out of 120 tries vs 1 in every 5).
It is super bad though, each and every file may contain IRAM code with switches (or other constructs with jump table) here and there. Have the compiler flags changed since 4.2? Something went wrong with the makefiles. I understand cmake is the default build system now but legacy codebase is imho too huge not to support it.
Yet another IRAM issue while we are at it (though this one is surely not build system related):  https://github.com/espressif/esp-idf/issues/6824

As far as I know nothing have changed with the compile flags, but maybe the new toolchain is more aggressive with this optimization? We are tracking this issue internally to resolve it more globally, like you say, there lots of potential switch-case issues like this.
We definitely plan to support make files for ESP32 in 4.3 and I'm sorry for the regressions. Unfortunately most people have switched to the new cmake build system, which makes discovering errors in the make system more difficult. As for this issue I dont think it's a make vs cmake issue. I suspect the same problem could occur if using cmake.

After ee2f8b1a6236fcdcd57f8410d98119d96de40a3f these optimizations are disabled by default to prevent issues like this.  And it can be enabled selectively for files where it actually provides a noticeable performance.
Closing the issue.


Added Sample section to the Camera plugin README

I made a few comments inline, but nothing major.
Also, README.md is actually a generated file in this repo (and this repo only). It would be great if you could move the changes you made in that file over to jsdoc2md/TEMPLATE.md. README.md should get automatically regenerated with your changes after you make a commit. You can edit README.md directly in the other repos (the camera plugin is just special)

LGTM! I'll merge this later today and regenerate the README


Readme Setup Instructions

The readme contains steps on setting up the docker container and details what environment variables are required.
Is there anything you want added?

This is assigned to me you tryina steal my tickets from me? :)
when i created this there was no full instructions will close this assuming there is now


length limit on subset IDs

Should IDs have a length limit? (Yes, most likely)
What should that limit be? (should be medium-long to allow full names? Should be not that long so it can be displayed easily? in a certain place)

Does LDS has any limitations?

Does LDS has any limitations?

According to Kim: It's just a regular String, so not really.


Waitpid enhancements:

Nonblocking.
Process#waitpid returns a Process::Status.
Deferred signals bugfixes:
Works with fork.
Up to 5 second delays are gone.
Switched away from libevent signal handling (buggy).
Now uses self pipe.
Foundation set for enhanced signal status.
Other:
Ensure fork { } always _exits.

waitpid not blocking feels wrong. How about Process.status(pid) and make waitpid just status(pid).wait ?

@jhass this PR blocks the fiber, not the thread by using channels, signals, self pipes and witchcraft.  waitpid still waits for status to be returned.

Ah, wasn't obvious for me, sorry. Would still be an interesting API, no?

I have a future PR that handle's -1.  @asterite asked for small PR's so the functionality is being added incrementally.


Perform build matrix on new travis infrastructure

Test against multiple versions of docker

@nahiluhmot @bfulton This way we can keep track of breaking changes.

+1

@tlunter This is awesome! And the diff is much smaller than I thought it would be.


Convert no-any-union from TSLint to ESLint

Continues the migration from TSLint to ESLint. https://github.com/microsoft/DefinitelyTyped-tools/pull/523

I'll merge and ship this after updating DT locally and testing. I might try to update more than one rule at a time as well.

Local run is clean. I'll merge this now and then ship it with the other two conversion PRs.


No documentation for using vjass maps with wurst compiler

I recall seeing an explanation somewhere of how to use wurst with an existing vjass project - extracting all the vjass triggers into wurst packages and compiling via wurst, but the manuals don't contain info on this.
Such a nice feature should be documented.

whoops, I keep accidentally posting here with my other alias - this is me

This is an experimental feature together with Jurst, but I agree that there should be some documentation.

It seems to work quite well. One suggestion would be to write something in wurst console when beginning/ending the process successfully. I thought the feature was broken until I refreshed my project.

@peq I'm happy to look at this week. I'm thinking that a section could be added to gh-docs branch which includes a short explanation of:

how wurst behaves when compiling a map with existing vjass triggers
how the 'extract to jurst' feature works and some steps to use it

Let me know if this sounds good and I'll get on it.

Sounds good. Although the extract to Jurst feature is not yet included in vscode. Just don't put too much effort in explaining eclipse specific things.

I think this is properly addressed now (tutorials on side and on hive)


fix: change input color

Ok

:tada: This PR is included in version 1.2.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Option for imageEditInstantEdit in config file

Thanks a lot for this plugin. Can you please provide an option in nova-filepond.php for
imageEditInstantEdit: false, // open editor on image drop
We do not want to open editor screen immediately. Thanks

Hi, the latest version now supports nova 4 and I have removed this option completely since Doka seems to be deprecated


Support storing arrays of primitives (string, int, etc.) as RLMObject properties

Reading over issue #1028 it looks like RLMObject doesn't support properties that are arrays of non-RLMObjects. Instead the individual strings each have to be declared as a property of an RLMObject and then stored in an RLMArray.
I'm curious to understand why your support for primitives doesn't extend to collections of objects of those types. As far as Realm is concerned, what's the difference between storing a string or an array of strings? And would you ever add this support to a future release?

+1

@jpsim based on our chat in person (at the carthage event) it sounds like the best solution would be to do what Realm already requires the user to do automatically, and transparently.
Seems like the best place to do this would be in RLMProperty, inside of setTypeFromRawType. Instead of throwing an exception when RLMIsObjectSubclass returns false, we instead check the _objectClassName against a white list of class names (Just NSString,and NSNumber would be a good start) and then do what Realm would usually do to create with an RLMObject the user would provide as the inner class of the array.
Let me know if you think this is in the right direction. Also happy to provide more details if this is too high level.

More thoughts... when we detect a white listed inner RLMArray class we can handle it in one of two ways:

Use the objc runtime to create an RLMObject subclass with a single property of the white listed inner class type. The upside is that we can then pass this dynamically generated class into Realm and it will do the right thing. The downside is that this won't work for Swift (as I don't believe it's possible to create classes on the fly in Swift) and also doing fancy things with the runtime may cause breakages elsewhere. (And is in general not recommended.)

We create a new table inside the schema that will store the array's values and write all the querying, updating, and other logic needed to manipulate the table outside of RLMObject. Not sure how much work this entails, but it sounds safer than the first approach.

I'm a little late to the party but I'd like to offer some thoughts.
Regarding option 2, that is changing Realm's modeling approach to be protocol based over subclassing, is in my opinion the far superior approach. While it might require more work on the side of the Realm development team, long term it makes more sense because it's far more extensible. In fact one of the few things things I don't like about Realm (it's fantastic overall) is the limited amount of types that can represented, say for example a list of strings. Having to wrap use cases like that in a whole separate class is messy, something I'm sure fans of code style and beauty would shudder at.
A protocol based approach is actually how Mantle does it as of their 2.0 release. It's the only reason that I can use Realm and Mantle together. Mantle doesn't just use a protocol though; they provide a base class of MTLModel that implements the MTLModel protocol (MTLModelProtocol in Swift) so that for users that want to simply subclass their base class, they easily can and for users that need to be free of inheritance like I do can conform their custom model classes to the protocol. One of the concerns brought up originally was would probably be more work for users as well with the combined protocol and subclass approach, that work can easily be mitigated.
Under the hood I'd imagine that the modeling approach would be purely protocol based; the Object subclass would simply exist as a convenience for users.
And finally, So although we agree it'd be nice to store RLMArray<NSString> properties or RLMArray<NSDate> properties, it's not currently a high priority. I have to completely disagree here. In fact one of the reasons I switched from using Core Data was to have arrays of primitive data types persisted in something else than a transformable type. It's an incredibly common use case for a lot of iOS programmers and it shouldn't be treated as "something nice". I believe having that feature is a necessity because not having it, as I said before, really limits the developer on what they can do and leads to the messy pattern of having to make separate classes that encapsulate primitive types.

i do it like this if i want to store simple types

#import "Contributor.h"

@interface Contributor()

@property (nonatomic, strong) NSData * spectrumPeaksData;

@end

@implementation Contributor

+ (nullable NSDictionary *)defaultPropertyValues {
    return @{@"spectrumPeaksData":[NSData data]};
}
////////////////////////////////////////////////////////////////////////
#pragma mark - Peaks
////////////////////////////////////////////////////////////////////////

- (void)setSpectrumPeaks:(NSArray *)spectrumPeaks {
    if ([spectrumPeaks count] == 0) {
        self.spectrumPeaksData = [NSData data];
        return;
    }
    self.spectrumPeaksData = [NSKeyedArchiver archivedDataWithRootObject:spectrumPeaks];
}

- (NSArray *)spectrumPeaks {
    if ([self.spectrumPeaksData length] == 0) {
        return nil;
    }
    return [NSKeyedUnarchiver unarchiveObjectWithData:self.spectrumPeaksData];
}

@end

alternatively you can cache the unarchive object until you call the set method again, where you invalidate the cache

But don't you think that that's an incredible amount of code just to achieve the simple task of storing primary data types? It seems so counter to the point.

yes, you are right... but i list the code as only the current solution

What exactly are you try to achieve here, an array of NSData objects?

nope, an array of any object that can be archived (NSString, NSData, NSDate, NSNUmber, NSDictionary etc)
see

(void)setSpectrumPeaks:(NSArray *)spectrumPeaks;
(NSArray *)spectrumPeaks;

+1

+1

+1

+1000

I would love to help get this out sooner. @timanglade @jpsim I have some familiarity with the objective-c part of the code base. If I can get some guidance as to where to start and what approach to take (at a high level) I'm happy to get the ball rolling on this.

+1000

+1

+1

+1

+1

+1

Anyone can point me to a temporary solution to parse and save String array. I am using RealmSwift + ObjectMapper.

see my post "peterpaulis commented on Sep 27, 2015" for a "solution" on this

As alternative to encoding the array via NSData as @peterpaulis suggests, you can workaround around this limitation for now by explicitly adding a new model entity as e.g. StringObject, which holds only a single property of type string. This has the advantage that it is easier to filter.

@mrackwitz Thanks, thats what I was thinking to do, but could not get it working.
Can you please send me a sample json and models for it.
Much appreciated, Thanks in Advance :+1:

So I got it working now with this code.
public class SPProductOptionSet: Object, Mappable {
public dynamic var name: String?
public let options = List() // Should be declared with let
required convenience public init?(_ map: Map) {
    self.init()
}

public func mapping(map: Map) {
    name <- map["name"]

    var options: [String]? = nil
    options <- map["values"] // Maps to local variable

    options?.forEach { option in // Then fill options to `List`
        let value = StringObject()
        value.value = option
        self.options.append(value)
    }
}

}
public class StringObject: Object {
public dynamic var value: String?
}
for this json -
{
"options_set": {
"name": "color",
"values": [
"Blau",
"Weiß",
"Rot",
"Grün"
]
}
}
Thanks to all for the help. :100:

+1

+1

+1000

+1000

+2000 :D

+3000

+4000

+1

+infinite

+over 9000

Anyone knows how it works on Android?

@jazz-mobility What does the <- operator in your code do? I can't find any mention of it.

@dmdque he is probably using this library here: https://github.com/Hearst-DD/ObjectMapper

I see. Thanks!

Yes, I was using Realm + ObjectMapper.

This doesn't seem to have been fixed. What's the priority of this?

The priority is "S:P2 Backlog", which is just behind "S:P1 Backlog". This is publicly reflected in the GitHub issue labels. This is being designed and worked on currently in realm-core, but I can't share any concrete estimates of when we might officially release that functionality.

@jazz-mobility You can make your own custom transformation custom-transforms or use an existing one ObjectMapper+Realm

+1

@jazz-mobility We can also write transforms for ObjectMapper:-
class RealmString: RLMObject {
    dynamic var stringValue : String = ""
}

// In mapping method
cities                          <- (map["cities"], stringListTransform)

let stringListTransform = TransformOf<RLMArray, [String]>(fromJSON: { (value: [String]?) -> RLMArray? in
        let realmArray = RLMArray(objectClassName: "RealmString")
        guard let items = value else { return realmArray }
        for item in items {
            let realmString = RealmString()
            realmString =  item
            realmArray(realmString)
        }
        return realmArray
        }, toJSON: { (value: RLMArray?) -> [String]? in
            return nil
})

@aksswami If you check the description, it is clearly mention "Support storing arrays of primitives". I guess this transformation is supported from long time now. But this is not the real solution to the problem.

+1
Would love to see support for this-- even if it is just syntactic sugar over the Box solution.

The question is:
You can't/don't want to support [String] (array of strings) so why don't you add something like RealmString which includes single field of String type? Why should programmers do this manually always?

We are currently working on this feature, as the In Progress tag denotes, and will release it once it's complete and ready. Your patience is greatly appreciated.

Arrays of primitives are supported as of v3.0.0-beta.4.


Empty params not sent in request nor received in response

In the earlier version of Alamofire, when the params had an empty list then it would still get sent as a parameter in the request and get received in the response. However with the new version of Alamofire for Swift 3.0, this is no longer the case. How are you looking to resolve this issue?

We're going to need a bunch more detail here @kit24. What type of encoding are you using? What was the previous version where it was working, and which version are you using now? Could you also please provide sample code demonstrating the issue?

Ok, your comments just helped solve the issue. I was not specifying an encoding in my requests. I added JSON encoding default and it works fine now.

Sweet! Glad to hear it.


Transitions do not support "get" mode for attr, style, etc.

I'm not sure whether this is a bug or a feature, but I see the following issue:
d3.select("#rect").attr("height")

returns the height of the selected object
d3.select("#rect").transition().duration(1000).attr("height")

does not. I get "Uncaught Error: INVALID_CHARACTER_ERR: DOM Exception 5 "  d3.js line 4405 (v.3)
I understand that this type of usage might be rare, but it might still be relevant:  Custom functions that accept single select() object as an input where (i) attributes of each will both be read and set (with the embedded transition in place if applicable) and (ii) it's not clear from the outset exactly which attributes will be set (hence the custom function).

I'm inside of a d3.svg.axis() automatic transition callback and I'm having trouble getting the final value of the tick transform. (I need to add more labels that are based on the final positions of the automatically animated axis tick transitions)
Based on this issue, als PR1912 and the d3 transition docs, I have not yet been able to figure out how to get these ending / target transform values. Could anyone point me in the right direction?
I have something like:
function myCallback(gTransitions) {
    gTransition.each(function() {
            var g = d3.select(this),
                  ticks = g.selectAll('.tick');

            // ??? here I need to get target / ending value of animated .tick transform
    });

}

var t = svg.transition().duration(750),
      yAxis = d3.svg.axis().and().more();
// later:
t.select('.y.axis').call(yAxis).call(myCallback);

I’ve tried to formalize this in d3-transition for 4.0. The target-only methods transition.style, transition.attr and transition.text don’t support inspection; there’s no good way to distinguish between an undefined target value and a null target value (other than, say, undefined and null, but that’s dubious). You can inspect the interpolator using transition.styleTween and transition.attrTween, and you can inspect the tween function using transition.tween. So I think that’s good enough.


ISPN-8657 Netty upgrade to 4.1.21

https://issues.jboss.org/browse/ISPN-8657

@slaskawi Netty 4.1.21 is now available in Maven.

@johnou Thanks a lot! I've updated this PR.

CI is having trouble with this PR

@gustavonalle Yes, it seems the slave got timeout.... Let me restart all of them and retrigger the job.

Retriggering build

@tristantarrant I got out the loop for a while. Is it related or not?

Yes: you have excluded org.conscrypt but something still wants it.
018-02-15T14:26:16,601 | ERROR | pool-1-thread-2  | BootFeaturesInstaller            | 10 - org.apache.karaf.features.core - 4.1.4 | Error installing boot features
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=infinispan-embedded; type=karaf.feature; version="[9.2.0.SNAPSHOT,9.2.0.SNAPSHOT]"; filter:="(&(osgi.identity=infinispan-embedded)(type=karaf.feature)(version>=9.2.0.SNAPSHOT)(version<=9.2.0.SNAPSHOT))" [caused by: Unable to resolve infinispan-embedded/9.2.0.SNAPSHOT: missing requirement [infinispan-embedded/9.2.0.SNAPSHOT] osgi.identity; osgi.identity=org.infinispan.embedded; type=osgi.bundle; version="[9.2.0.SNAPSHOT,9.2.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.infinispan.embedded/9.2.0.SNAPSHOT: missing requirement [org.infinispan.embedded/9.2.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.conscrypt)"]]
at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42) ~[?:?]
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391) ~[?:?]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377) ~[?:?]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:349) ~[?:?]
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:218) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:291) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1248) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$1(FeaturesServiceImpl.java:1147) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]

Thanks a lot @tristantarrant! I will investigate this in the first free time slot.

Rebased and excluded org.conscrypt from the embedded. Thanks @tristantarrant for sorting it out!

Merged, thanks


Using GPU

Thanks for the great code release !
How to use GPU for the computation ? I noticed in my running that the speed is not improved when a GPU is available.

Btw, the simulator dataset is not directly available from your wbml. And I couldn't find the corresponding files in the CMIP5 project website, could you please share also that dataset or point me to the place where you downloaded it ?

Hey @ssydasheng! Thanks for opening an issue.
I'm currently working on tidying up the implementation. I will keep in mind that GPU support is a desirable feature. :)
For now, you could try to run the model on the GPU by wrapping everything in a with B.device("cuda"):
import lab.torch as B

# ...

with B.device("cuda"):
     # Construct and train model here...

I'm afraid, however, that the optimisation might break.
Regarding the simulator data set, I would need to ask if I could share the specific data set that we used for the paper. (I could, if you'd like to! Please send me an email.) I also have only been able to find parts of the data set online, which is unfortunate.

Thanks @wesselb for your detailed response ! I will send you an email if I need the dataset in the future.

First of all, this is awesome work -- thanks for sharing!
I would also like to bump the GPU support. When trying with B.device("cuda"): I run into
RuntimeError: Expected all tensors to be on the same device, but found at least two devices.
I've also tried running this from a Google Colab environment to isolate the issue but I run into the same error.

Hey @josh0tt!
Thanks for replying to this issue. I can confirm that running training on the GPU runs into problems. I've identified what precisely goes wrong, and will push and relase a fix shortly.
If you're using PyTorch, I believe that this should fix the issue:
import lab.torch as B
import torch

@B.dispatch
def where(condition: torch.Tensor, a: torch.Tensor, b: torch.Tensor):
    return torch.where(B.to_active_device(condition), a, b)

That worked! Thank you!
In case anyone else stumbles across this thread. I also tested it on an M1 Max but ran into: NotImplementedError: The operator 'aten::linalg_cholesky_ex.L' is not currently implemented for the MPS device since linalg_cholesky_ex hasn't been implemented for MPS yet: pytorch/pytorch#77764


feat(command-registry): allow filtering guildIds from the Failed to fetch guild commands log

Make it a boolean, not a string array


Update README.md

Update README with information on how to stay in touch

Reference: https://github.com/nodejs/mentorship/issues/125#issuecomment-485012797


[bug]: exchange_rate: it does not work

Check the bug has not already been reported

[X] I could not find the bug in existing issues

Edit function_name and the short error description in title above

[X] I wrote the correct function name and a short error description in the title above

What happened and what did you expect?

seems like not working ;(

Hi 👋  @diver9989,
Thanks a lot for opening this issue.
Seems like https://exchangerate.host which is used in this function is not free anymore.
Let me find an alternative.
If you have one, don't hesitate to tell me

I found two open-source packages:

https://github.com/MicroPyramid/forex-python : the data is from European Central Bank. It seems great but only covers 31 currencies instead of 169 currencies that were supported by exchangerate.host. https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html
https://github.com/fawazahmed0/currency-api/ : 1500 github stars. Much more countries.

What do you think?

Finally, I changed the source to use Yahoo Finance. I re-deployed the function.
Here is the new code: https://github.com/unytics/bigfunctions/blob/main/bigfunctions/exchange_rate.yaml#L33
To me, it works.
Please re-open an issue if you encounter any other problem.
Thanks again for creating this ticket!


Should keep referring to the example button as myButton

The example button is most of the time called myButton but it is later called just button or button4.
I'd recommend always calling it myButton consistently on this page

@leeenglestone : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


protractor.ExpectedConditions" is unknown to this codemod

protractor.ExpectedConditions" is unknown to this codemod

The codemod transforms these properly, see here. Do you have a code example that doesn't work for you?

yes
global.EC = protractor.ExpectedConditions;
this is the code that i have inside config.js file


Webpack guide img instructions missing

This is the src/app/app.component.html in the guide:

Hello from Angular 2 App with Webpack

I'm not seeing where this image is supposed to come from, though. I like the idea of having this in the guide, since asset loading is IMO one of the neater features of webpack, but it probably needs more in the way of instructions (i.e. "download the image from someurl and save to somepath").
Also, this may just be me, but the whole public folder concept seems odd. AFAIK ultimately everything in there will end up being a dependency of some module in src and packaged up by webpack anyway. And it looks like code/assets we'd author, vs. third-party files we'd give the vendor treatment. So I'm wondering why the public folder vs. having the files co-located with the modules, or, at least, directly under src? Does the style guide cover this at all?

There is a link at the end with the image.
About public, it exist that way to match what the CLI outputs. If we change that in the CLI, we will change it here too

Oh! Yeah, I glanced right over that. Only suggestion I'd have is maybe moving it up closer to where the html is created? Feel free to just close this, though.

Looks like 0c49b50cbe0b56f6e0dd2265814eae96dec30bc6 also included moving the image link up a bit. Closing.


gomplate: init at 3.5.0

Motivation for this change
Add gomplate
I was able to build it locally. I also did some tests and the binary seems to work fine, but I don't have much experience with go packages, feedback about the nix expression would be appreciated.
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I updated the PR to use fetchFromGithub instead of fetchgit, to make it more deterministic

Thanks for your review @doronbehar . I created a new derivation for 3.6 version, but never created a PR for it, doing it now. I'm closing this, we can continue on #85157


samples: added cleanup option

Fixes #3836

[X] Please merge this PR for me once it is approved.

One open question; Ok to merge if it's intentional. Please fix if not, and ping me.
PLease merge it after the fix


Autocatalog: Generate app-packages with updated app-pack-gen-service

Using the updated app-pack-gen service from https://github.com/unity-sds/app-pack-generator/issues/22, package some applications for validation runs
this ticket cannot be completed until https://github.com/unity-sds/app-pack-generator/issues/22 is complete.

Update- The latest release of app-pack-gen includes the U-DS components to enable automatic cataloging. We can manually build packages with this version to test out execution in dev and test environments. This should enable us to run app-pacakges directly without needing a 'catalog' step.


Customising the styleguide CSS

Am I right in saying that to customise the CSS/markup that Pattern Lab produces, I'd need to be running the dev version?
I'm not talking about my own patterns but rather the PL wrapper.

@stevieg83 You can customize Pattern Lab's UI by forking this: https://github.com/pattern-lab/styleguidekit-assets-default and adjusting the styles and markup there.

hey @bradfrost thanks - I'm trying to get my head around how the main repo would bring in any customisations from this fork if I went down that route given that it seems to be an initial composer dependency?

@stevieg83 I'm not the best person to answer this, but I can point you in this direction: http://patternlab.io/docs/advanced-ecosystem-overview.html
@bmuenzenmeyer or @dmolsen would be able to speak to how to actually go about creating the environment so that it's all set up properly.

I cannot speak too intelligently for the workflow of the PHP version, but I'd imagine composer can supply a different copy of styleguidekit-assets-default for you, both during development and in production
For PL Node, during development I would use npm link to point to a local copy of a repository instead of the actual package, and then once happy I either publish it for consumption on the npm registry, or in the case of slightly less-public options, direct from github via orgname/reponame  Pretty certain that works for composer too.
Hope this helps.

I'm just in the middle of this myself. If find it a bit time consuming to both build the (cloned and modified) styleguidekit-assets-default and my final code, to see what happened.
What's the pitfalls of just changing  the /styleguidekit-assets-default/dist/ directly?

You could certainly do whatever you like with that repo - all that ultimately matters is there there are files in dist/ that function the same way they do now. So, go ahead and unminify them, change them, whichever, but doing so is ceding the build process that comes standard with the repo, let alone future updates.
I feel like this is the natural way of things with the ecosystem - teams will outgrow the default and look to build their own frontend. This was Dave's vision, I believe.


publish on crates.io

It would be convenient to install this tool like this
cargo install <crate-name>

Please consider publishing to crates.io ;)

Done
https://crates.io/crates/cargo-listdeps


fix[PlayLevelSequence Node]: Prevent multiple output pins with same name

e.g. adding multiple notifies to a sequence named "Pause" would previously add multiple output pins.

We have a level sequence that pauses at multiple points during the sequence, it has a "Pause" notify that is looped back into the pause input of the flow node.
Currently all these Pause events are creating multiple Context Output Pins with the same name.

Awesome, thank you for the fix :)


💡 [REQUEST] - Offline Mode for Desktop App

Start Date
No response
Implementation PR
No response
Reference Issues
No response
Summary
In desktop I need to sign in to use sprint. But I can use it offline for my local network development.
Basic Example
Open sprint, Start using it.
Drawbacks
Improve UX and usage scenario
Unresolved questions
No response

Ghost mode available now.

Not seen anything on Intel Mac

I've tried also on Windows which has white screen there.


Number-field: Changing step shouldn't change value

Description
Changing number-field's step shouldn't change value
Expected outcome

Set the value to "0.01"
Set the step to 0.1
Value should be "0.01"

Actual outcome

Set the value to "0.01"
Set the step to 0.1
Value is "0.0" !!!

Fixed by https://github.com/vaadin/vaadin-text-field/pull/343


add $(USE_CUDA_PATH)/lib(64)? as linking lib search dir

I got something like this on master while built with USE_CUDA and USE_CUDNN
/sbin/ld: cannot find -lcudnn
/sbin/ld: cannot find -lcufft
collect2: error: ld returned 1 exit status
make: *** [Makefile:323: lib/libmxnet.so] Error 1
make: *** Waiting for unfinished jobs....
=====================================================[ ERROR: MXNet ]=====================================================

LoadError: failed process: Process(`make -j8 USE_BLAS=openblas 'MSHADOW_LDFLAGS=-lm /usr/bin/../lib/libblas.so'`, ProcessExited(2)) [2]
while loading /home/iblis/.julia/v0.6/MXNet/deps/build.jl, in expression starting on line 74

==========================================================================================================================

For record, I also got some error while dlopening:
https://github.com/dmlc/MXNet.jl/pull/275#issuecomment-328404466

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!
Also, do please check out our forum (and Chinese version) for general "how-to" questions.


Cannot retrieve spacing from block

Description
The compiler says function block does not contain field ... when trying to get the above/below/spacing value of a block:
#set block(above: 1cm)
#context block.above

Reproduction URL
No response
Operating system
No response
Typst version

[X] I am using the latest version of Typst

See also https://github.com/typst/typst/issues/3636

I think it's fair to consider it a bug. It is the result of how it's done in the code because block spacing has some hacks. But I think we can get rid of them soon.

This was fixed a whole ago. above and below can be retrieved on main. spacing can't because it is just a shorthand and above and below can differ.


Add tests and support for constexpr lambda, *this, nested namespace definitions and structured bindings [phab:D1995]

Created by shahms at 2017-10-26 22:20:43:
Add tests and support for constexpr lambda, *this, nested namespace definitions and structured bindings
Also fix up a few things about indexer tests.

zarko accepted this revision at 2017-10-26 22:34:36

shahms closed via commit dcb29ffb3dbb2955d63b567133553c38c59dca0b at 2017-10-27 14:50:24


Cant update/uninstall from 0.53.1

Microsoft PowerToys version
0.53.1
Running as admin

[X] Yes

Area(s) with issue?
Installer
Steps to reproduce
Attempting to update to the latest version fails while uninstalling the existing version. During the uninstall process you get the following window for the Feature you are trying to use is on a network resource that is unavailable

✔ Expected Behavior
Previous version would uninstall successfully.
❌ Actual Behavior
Uninstall fails due to missing MSI.

Can not install latest version as well cant uninstall current version so the application is stuck at version 0.53.1.
I attempted to use the steps outlined in post: #14056 to extract the MSI and place it in the specified directory. But the --extract_msi argument doesnt seem to work on this version of the installer as it just opens the installer and nothing is actually extracted.
Other Software
No response

How to get the requested msi file if it gets accidentally deleted: https://docs.microsoft.com/en-us/windows/powertoys/install#extracting-out-the-msi-from-the-bundle
Please let us know if this helps! /needinfo

That worked perfectly! Thank you so much!


CSS3_Box_Sizing_Models

Description 📜
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
I have tried to explain Box Sizing in CSS in a detailed form with images and code included.
Fixes #1221

Type of change 📝
Added a detailed documentation of Box Sizing Models CSS including the code snippets.

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] Frontend Dev HTML/CSS/JS

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

/assign

Reference Added !

Reference Added !

Perfect.

/assign

/assign

Added 👍🏻

@praveenscience sir please review , all the changes you suggested I have completed them.

Great work @onlykingKD

@2024-SANDHYA maam can you please hacktoberfest label to my PR


Extended test-mode does not work with Match, unless you specify each…

… Match for the test using -C. Therefore this module will not work if you specify eny Matches. Thats why I changed it to use normal test-mode.
At least on Ubuntu 19.04

https://github.com/dev-sec/ansible-ssh-hardening is very similar to this repo, and has solved this problem in a better way.


[WIP] Update rspec & test fixes

Finished in 39.64 seconds (files took 3.07 seconds to load)
655 examples, 183 failures, 11 pending

👍🏼

UPD:
Finished in 43.37 seconds (files took 3.4 seconds to load)
655 examples, 35 failures, 11 pending

Finished in 49.21 seconds (files took 2.63 seconds to load)
651 examples, 20 failures, 11 pending


https://stackoverflow.com/q/75895415/21533369

@ankconstruct
I suggest you read wait-on with Node.js 18+
Please copy your problem into the description so that others can benefit.

I also answered in https://stackoverflow.com/a/75895752/14992667 as follows:

The most common reason for
Error: connect ECONNREFUSED <IP_ADDRESS>:3000
using the wait-on parameter of cypress-io/github-action is that the server you are using is not responding on IPv4 and is only responding to the IPv6 address ::1.
wait-on with Node.js 18+ in the README of the repository describes the workarounds.
The simplest in this case is to replace
wait-on: 'http://localhost:3000' by
wait-on: 'http://[::1]:3000'

Sometimes it is also possible to completely remove the wait-on parameter, since the GitHub runners are often quite fast and Cypress also waits a while as well before timing out.

@ankconstruct I am going to close this issue until the template is filled out correctly.


Update CONTRIBUTING.md to include test requirements

Issue description / feature objectives
The contribution specification should briefly describe testing requirements for PRs.
Caveats / Assumptions
N/A
Completion Criteria
Testing requirements are adequately described in the CONTRIBUTING.md document.

From OpenSSF badging best practices:
It is SUGGESTED that this policy on adding tests (see test_policy) be documented in the instructions for change proposals.

FIXED BY #1697


Bratseth/iterate over indexes not fields 2

@baldersheim please review and merge
This is all the changes I made except the ones I think impacts performance (old way: more allocation, less cpu).

Or @hmusum or @arnej27959
This is reviewed before, just reverting the changes which may impact performance to get all the rest in.

👍

👍


Longform Synthesis

Hi,
Congratulations on the OpenVoice V2 launch! Are there any plans to support long-form synthesis? Currently, the only way to do it is to split the text, however it would be nice if each segment had the previous segments as a reference to make generation more natural.
Thank you!

Hey - Thanks for your suggestion. We will keep this in mind. Currently the whole team has a lot of TODOs, so we probably won't have time for this. But we always welcome community contributions


unable to download video

WARNING: unable to extract uploader nickname
[youtube] z3w_cTKX-mA: Downloading js player en_US-vflMYTMmx
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 905, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 819, in _extract_signature_function
errnote='Download of %s failed' % player_url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 468, in _download_webpage
res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 375, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 355, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1905, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 421, in open
protocol = req.get_type()
File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflMYTMmx/base.js
(caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflMYTMmx/base.js',));
Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.05.01. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[ ] I've verified and I assure that I'm running youtube-dl 2017.05.01

Before submitting an issue make sure you have:

[ ] At least skimmed through README and most notably FAQ and BUGS sections
[ ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.05.01
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.

Outdated.


bug: Documentation search bar doesn't work

Describe the bug
Trying to search something in the million documentation causes an endless spinner
To Reproduce
Steps to reproduce the behavior:

Go to 'https://millionjs.org/'
Click on the search bar
Type in the search bar, notice the endless spinner
console has this error: "Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0"
Hit enter key, still has endless spinner
an additional console error bubbles up: "Uncaught TypeError: Cannot read properties of undefined (reading 'route')"

Expected behavior
I'd expect the search function to work
Screenshots

Device (please complete the following information):

OS: iOS (Big Sur v11.6)
Browser: Chrome v103
Version: latest million release

Hey, @ryanjmack
I would like to work on this issue if no one else is working on it.
Thanks!

Hey @noobyogi0010, any update on this? Do you need any help with this issue so far?

Hey @aidenybai
I am still working on this issue.
Sorry, I didn't get much time to focus on it completely. Will try to wrap it up by end of this week.
Thanks!

No worries, take your time. If you need any help, feel free to comment any questions here or in the Discord :)

@aidenybai I am not able to reproduce this issue. Neither on my local system nor on the million's documentation.

@ryanjmack, could you test this issue again? Possibly a recent commit to docs fixed this issue

@aidenybai the issue seems to be resolved, so I'm closing it!


Bump up Golang to 1.11

Description

Bump up Golang to 1.11 in the Dockerfiles, then test that the build works.

Derek close: fixed via #54 via @LucasRoesler