fails to derive jacobian with functorch after operation torch.stft

Hello,
I am trying to derive the jacobian matrix of a short time fourier transform operation (via torch.stft) with respect to an input signal.
the code i used was
import torch
import functorch
sig = torch.rand(2**13)

def stft_forward(sig):
    return torch.stft(sig, n_fft=2048).flatten()
J = functorch.jacfwd(stft_forward)(sig)

yet the following error message is triggered:
----> [5].../test_lstsq.ipynb#X16sdnNjb2RlLXJlbW90ZQ%3D%3D?line=4) J = functorch.jacfwd(stft_forward)(sig)

File ~/miniconda3/envs/icassp/lib/python3.9/site-packages/functorch/_src/eager_transforms.py:961, in jacfwd.<locals>.wrapper_fn(*args)
    958     _, jvp_out = output
    959     return jvp_out
--> 961 results = vmap(push_jvp)(basis)
    962 if has_aux:
    963     results, aux = results

File ~/miniconda3/envs/icassp/lib/python3.9/site-packages/functorch/_src/vmap.py:365, in vmap.<locals>.wrapped(*args, **kwargs)
    363 try:
    364     batched_inputs = _create_batched_inputs(flat_in_dims, flat_args, vmap_level, args_spec)
--> 365     batched_outputs = func(*batched_inputs, **kwargs)
    366     return _unwrap_batched(batched_outputs, out_dims, vmap_level, batch_size, func)
    367 finally:

File ~/miniconda3/envs/icassp/lib/python3.9/site-packages/functorch/_src/eager_transforms.py:954, in jacfwd.<locals>.wrapper_fn.<locals>.push_jvp(basis)
    953 def push_jvp(basis):
--> 954     output = jvp(f_wrapper, primals, basis, has_aux=has_aux)
    955     if has_aux:
...
    605     input = input.view(input.shape[-signal_dim:])
--> 606 return _VF.stft(input, n_fft, hop_length, win_length, window,  # type: ignore[attr-defined]
    607                 normalized, onesided, return_complex)

RuntimeError: Trying to set a forward gradient that has a different size than that of the original Tensor, this is not supported. Tensor is of size [1025, 17, 2] while the given forward gradient is of size [17, 1025, 2].

Would people know what aspect of the torch.stft operation caused this gradient shape incompatibility issue and how one may work around this? thanks in advance!

The following snippet works for me with latest version of PyTorch/Functorch. Which version are you using?
import torch
import functorch
sig = torch.rand(2**13)

def stft_forward(sig):
    return torch.stft(sig, n_fft=2048, return_complex=True).flatten()  # return_complex=True is required for real inputs
J = functorch.jacfwd(stft_forward)(sig)

thanks for your reply. My functorch and torch versions are the following:
>>> functorch.__version__
'0.2.1'
>>> torch.__version__
'1.12.1'

Which version did you use that avoided this error?

Thanks for confirming @lylyhan ! It works for me with 1.13.0.
NOTE: With 1.13, you don't need to install functorch separately as it is bundled with PyTorch.

Closing as fixed, but please let us know if you're still experiencing the problem on a newer version of pytorch/functorch.


Correct small typos in public zbc.h header

Corrects small typo in zbc.h header file, an => is
Originally from comment https://github.com/hgst/libzbc/pull/32#discussion_r278167608

Thanks !


After seek and stop the audio plays where left off

If I load an audio and seek it first instead of playing, then stop it and then play again, it plays from the position I stopped instead of the beginning.
Full Description
In my code I have three features, drag using slider, play/pause button and stop button. Suppose I have I loaded the audio, I have the duration with me before playing the audio. Instead of playing, I dragged the slider and seeked the audio to lets say 10 seconds. Now instead of playing I pressed the stop button. By doing this my slider went back to zero position. However, when I press my play button the slider moves to the same previous position and audio plays from 10 seconds onwards.
I am using audio files from asset in this case.
Code to Reproduce
This is just a basic player to replicate the problem. Follow these steps

Add a file to assets/audios/
Add file name with extension
Run the app
Seek to some seconds using the slider
Press the stop button
Press play
The audio will start from where  you pressed stop button

import 'package:audioplayers/audio_cache.dart';
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  bool delete = false;

  void deletePlayer() {
    setState(() {
      delete = true;
    });
  }

  @override
  Widget build(BuildContext context) {
    // print("duration $_duration");
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(
        child: Center(
            child: MyAudioPlayer(
          fileName: "add_file_name_here.mp3",
        )),
      ),
    );
  }
}

class MyAudioPlayer extends StatefulWidget {
  MyAudioPlayer({Key key, this.fileName}) : super(key: key);

  final String fileName;

  @override
  _MyAudioPlayerState createState() => _MyAudioPlayerState();
}

class _MyAudioPlayerState extends State<MyAudioPlayer> {
  AudioPlayer audioPlayer;
  AudioCache audioCache;

  Duration _duration = new Duration();
  Duration _position = new Duration();
  bool issongplaying = false;

  String cachedFilePath;

  @override
  void initState() {
    print("init");
    super.initState();

    audioPlayer = AudioPlayer();

    audioCache = AudioCache(prefix: "assets/audios/");

    audioPlayer.onDurationChanged.listen((d) => setState(() => _duration = d));

    audioPlayer.onAudioPositionChanged.listen((p) => setState(() => _position = p));

    audioPlayer.onPlayerCompletion.listen((event) {
      setState(() {
        _position = Duration(seconds: 0);
        issongplaying = false;
      });
    });
  }

  Future<int> loadFile() {
    return audioCache
        .load(widget.fileName)
        .then((value) {
          print(value);
          cachedFilePath = value.path;
          return audioPlayer.setUrl(value.path, isLocal: true);
        })
        .then((value) => audioPlayer.setReleaseMode(ReleaseMode.STOP))
        .then((value) => audioPlayer.getDuration());
  }

  void play() {
    audioPlayer.play(cachedFilePath, isLocal: true);
    setState(() {
      issongplaying = true;
    });
  }

  void pause() {
    audioPlayer.pause();
    setState(() {
      issongplaying = false;
    });
  }

  void seekToSecond(int second) {
    Duration newDuration = Duration(seconds: second);

    audioPlayer.seek(newDuration);
  }

  void stop() {
    audioPlayer.stop().then((_) => setState(() {
          issongplaying = false;
          _position = Duration(seconds: 0);
        }));
  }

  void replay() {
    audioPlayer.seek(Duration(seconds: 0));
  }

  Widget buildPlayPauseButton() {
    if (issongplaying)
      return GestureDetector(
        child: Icon(
          Icons.pause_circle_outline_outlined,
          size: 50,
        ),
        onTap: pause,
      );
    else
      return GestureDetector(
        child: Icon(
          Icons.play_circle_outline,
          size: 50,
        ),
        onTap: play,
      );
  }

  @override
  void dispose() {
    super.dispose();

    print("dispose called");
    audioPlayer.stop();
    audioPlayer.release();
    audioPlayer.dispose();
    audioCache.clearCache();
  }

  @override
  Widget build(BuildContext context) {
    print(audioPlayer.state);
    return FutureBuilder(
      future: loadFile(),
      builder: (context, snapshot) {
        if (snapshot.data == null)
          return Center(
            child: SpinKitWave(
              color: Colors.black,
            ),
          );
        else
          return Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    GestureDetector(
                      child: Icon(
                        Icons.replay,
                        size: 50,
                      ),
                      onTap: replay,
                    ),
                    buildPlayPauseButton(),
                    GestureDetector(
                      child: Icon(
                        Icons.stop_circle_outlined,
                        size: 50,
                      ),
                      onTap: stop,
                    ),
                  ],
                ),
                Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [
                    Text("${_position.inMinutes.toString().padLeft(2, "0")}:${_position.inSeconds.toString().padLeft(2, "0")}"),
                    Slider(
                      value: _position.inSeconds.toDouble(),
                      onChanged: (double value) {
                        setState(() {
                          seekToSecond(value.toInt());
                          // value = value;
                        });
                      },
                      divisions: _duration.inSeconds,
                      min: 0.0,
                      max: _duration.inSeconds.toDouble(),
                      label: "${_position.inMinutes.toString().padLeft(2, "0")}:${_position.inSeconds.toString().padLeft(2, "0")}",
                    ),
                    Text("${_duration.inMinutes.toString().padLeft(2, "0")}:${_duration.inSeconds.toString().padLeft(2, "0")}")
                  ],
                )
              ],
            ),
          );
      },
    );
  }
}

Log Errors
No errors were thrown.
My Opinion
I thinking stopping the audio after seeking does not reset the position of the audio.
Platforms

OS: Android
OS version: Pie
Device: Nokia 5.1 Plus
flutter version: 1.22.4
audioplayers version: latest

I'm pretty sure it's solved in audioplayers: ^1.1.0. Feel free to comment, if it's not the case.


Feature: Prompt user for credentials when connecting to smb-server the first time

Describe the bug
If I want to access my smb-server the first time, I type in \\smb-server and press enter, then I don't get asked for my credentials. But if I do the same in file explorer, I get asked for the credentials and afterwards can access the server also with the files uwp app.
Requirements

User is prompted with modal to enter password
Modal has text feild to enter password
Modal has connect button
Modal has cancel button

Thank you for opening this issue.

This bug is also on my setup.

OS Version: Windows 11 21H2
App version: v2.1.24

I'll be picking up this issue, thanks!

🎉🎉🎉


sl-chart does not render again after data is updated

sl-chart does not automatically display updated data after its series is updated
This may also just be a highcharts issue, but I will update after more investigation.

so if an ember data model attribute is set to the chart and completes, the series is not updated. we may want to observe series.isLoading. However, the issue now becomes, should we be supporting passing ember data models in? Whichever direction we go in, we need to include clarification in the docs


Not all configured artifacts are available for deployment

(Please ensure you are running the latest version of Cloud Tools for IntelliJ with Help > Check for Updates)

Cloud Tools for IntelliJ version: 17.11.1
Google Cloud SDK version: 177.0.0
OS: Windows 10 10.0

What did you do?
I'm running Google Appengine Standard Local Server configuration. I have in my project more than 8 artifacts.
What did you expect to see?
I want to have whole list of artifacts configured in my project in "Artifact to deploy:" dropdown.
What did you see instead?
Unpredictable behavior. Sometimes there is only one artifact to choose. Sometimes there is no artifacts at all. As a result I'm not able to deploy local server with desired artifact.
(screenshots are helpful)

Feel free to deviate from this template as needed, especially if you are submitting a feature request.

thanks for the report @sgolubov
This may be a dup of https://github.com/GoogleCloudPlatform/google-cloud-intellij/issues/1625
We are looking into this issue and will report back as soon as we have a resolution. I apologize in advance for any delays due to the holiday.

In the meantime, to unblock you if you cannot get the artifacts to appear using the plugin, you can try configuring the maven plugin (or the gradle plugin, if your project uses that). These build plugins contains goals to run the the local dev server.

Thanks @etanshaul!

@sgolubov, to assist with getting to the bottom of this, could you please confirm if your project was using Gradle or Maven (or neither)?

@sgolubov please see my comment on this thread: https://github.com/GoogleCloudPlatform/google-cloud-intellij/issues/1625#issuecomment-346840314 to see if it helps. Thanks.

@etanshaul, I'm using Maven in my project.


fixed build script in package.json

@christianalfoni
Just a tiny fix for prod build.

Great, thanks! :-)


Note on how to use shadowSetup with buildLayeredImage

Description of changes
Minor documentation addition to dockerTools

Made a minor change together in the docs team meeting with @DanielSidhion :)

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/2024-01-25-documentation-team-meeting-notes-106/38792/1


[AutoRelease] t2-apimanagement-2024-01-31-55444(can only be merged by SDK owner)

https://github.com/Azure/sdk-release-request/issues/4924
Live test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=966

issue link:https://github.com/Azure/sdk-release-request/issues/4924


Add easy way to define DBT-profile in the code

Currently defining the DBT profile inside code is kinda hassle especially if you have multiple steps at flow. When creating flow you need to specify profiles_dir and call  overwrite_profiles so that code is truly deterministic.
    credentials = DatabaseCredentials(
        driver=SyncDriver.POSTGRESQL_PSYCOPG2,
        username="postgres",
        password="password",
        database="postgres",
        host="localhost",
        port=5432,
    )

    target_configs = PostgresTargetConfigs(credentials=credentials, schema="postgres")

    dbt_cli_profile = DbtCliProfile(
        type="postgres", name="jaffa", target="jaffa_test", target_configs=target_configs
    )

    deps = trigger_dbt_cli_command(
        "dbt deps",
        profiles_dir=".",
        overwrite_profiles=True,
        project_dir=f"{project_root}/dbt/",
        dbt_cli_profile=dbt_cli_profile,
    )

    hesiod_etl = trigger_dbt_cli_command(
        f"dbt run -s +exposure:hesiod_etl --vars '{{client_key: {client_key}}}'",
        project_dir=f"{project_root}/dbt/",
        profiles_dir=".",
    )

When you could do something simple like pass dbt_cli_profile at every call. Which is not DRY but much cleaner than the current way.
    credentials = DatabaseCredentials(
        driver=SyncDriver.POSTGRESQL_PSYCOPG2,
        username="postgres",
        password="password",
        database="postgres",
        host="localhost",
        port=5432,
    )

    target_configs = PostgresTargetConfigs(credentials=credentials, schema="postgres")

    dbt_cli_profile = DbtCliProfile(
        type="postgres", name="jaffa", target="jaffa_test", target_configs=target_configs
    )

    deps = trigger_dbt_cli_command(
        "dbt deps",
        overwrite_profiles=True,
        dbt_cli_profile=dbt_cli_profile,
    )

    hesiod_etl = trigger_dbt_cli_command(
        f"dbt run -s +exposure:hesiod_etl --vars '{{client_key: {client_key}}}'",
        project_dir=f"{project_root}/dbt/",
        dbt_cli_profile=dbt_cli_profile,
    )

Hi, thanks for reporting this to streamline the prefect-dbt experience!
To clarify, are you saying that specifying profiles_dir and overwrite_profile per trigger_dbt_cli_command is a hassle? If so, would this work?
   trigger_kwargs = dict(
        profiles_dir=".",
        overwrite_profiles=True,
        dbt_cli_profile=dbt_cli_profile,
    )
    deps = trigger_dbt_cli_command(
        "dbt deps",
        project_dir=f"{project_root}/dbt/",
        **trigger_kwargs
    )

    hesiod_etl = trigger_dbt_cli_command(
        f"dbt run -s +exposure:hesiod_etl --vars '{{client_key: {client_key}}}'",
        project_dir=f"{project_root}/dbt_projects/hesiod/",
        **trigger_kwargs
    )

Yeah, that would work. Should something like that be documented down? Now documented examples are cases where you are calling like just one DBT task.

Sure, that'd be great! Would you be willing to contribute a small PR for that?

Sure where I should document this?

In README.md should be fine. Thanks!


Release 0.13.0

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@8290759). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1866   +/-   ##
=======================================
  Coverage        ?   41.00%
=======================================
  Files           ?      116
  Lines           ?    14560
  Branches        ?        0
=======================================
  Hits            ?     5970
  Misses          ?     8085
  Partials        ?      505

Flag
Coverage Δ

unit-tests
41.00% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

/test-all
/test-ipv6-all
/test-ipv6-only-all
/test-whole-conformance

All the tests have passed (first try!!!), including the cloud tests (AKS, GKE, EKS).
I will now address review comments, merge and release.


Deflake CNI TestInstall by prolonging timeout.

Example failure: https://storage.googleapis.com/istio-prow/pr-logs/pull/istio_istio/36564/unit-tests_istio/1472733363956617216/build-log.txt

@bianpengyuan: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
a161a8de1540c1f09b8e3361952c6e4271c3d3e6
link
true
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


DRep directory cards

Create DRep directory cards
Home view (wallet not connected)

Link to figma
Dashboard view (wallet is connected)

Link to figma

OK ON DASHBOARD


I can't view my Windows logs,abouts CSP security,NODE_ENV === "production"

kibana.yml
server.name: kibana
server.host: <IP_ADDRESS>
elasticsearch.hosts: [ http://elasticsearch:9200 ]

monitoring.ui.container.elasticsearch.enabled: true
monitoring.ui.container.logstash.enabled: true
csp.strict: false
server.securityResponseHeaders.disableEmbedding: true
xpack.security.encryptionKey: "fgjh2D8Gjk3dsFgjHs2fJGH5Dkfyr4Hj"
xpack.encryptedSavedObjects.encryptionKey: "zxcPASdf31fdszMPo9lkjOPqw12FsweQ"
xpack.reporting.encryptionKey: "kLmnoPQrst3UVWXnpqRsTUvWxy123456"
server.publicBaseUrl: "https://kibana.just4you.eu.org/"
elasticsearch.username: kibana_system
elasticsearch.password: ${KIBANA_SYSTEM_PASSWORD}

elastic-agenmt.yml
revision: 2
outputs:
  default:
    type: elasticsearch
    hosts:
      - 'https://elk.just4you.eu.org/'
    username: 'elastic'
    password: 'changeme'

docker-compose logs which contains error and waring infos
# kibana logs
[2023-11-22T15:26:33.583+00:00][WARN ][plugins.screenshotting.config] Chromium sandbox provides an additional layer of protection, but is not supported for Linux Ubuntu 20.04 OS. Automatically setting 'xpack.screenshotting.browser.chromium.disableSandbox: true'.
[2023-11-22T15:26:33.735+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED <IP_ADDRESS>:9200
[2023-11-22T15:26:46.192+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. security_exception
        Root causes:
                security_exception: unable to authenticate user [kibana_system] for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]
# logstash logs
[2023-11-22T15:26:31,627][INFO ][logstash.javapipeline    ] Pipeline `main` is configured with `pipeline.ecs_compatibility: v8` setting. All plugins in this pipeline will default to `ecs_compatibility => v8` unless explicitly configured otherwise.
[2023-11-22T15:26:32,238][INFO ][logstash.outputs.elasticsearch][main] Failed to perform request {:message=>"Connect to elasticsearch:9200 [elasticsearch/<IP_ADDRESS>] failed: Connection refused", :exception=>Manticore::SocketException, :cause=>#<Java::OrgApacheHttpConn::HttpHostConnectException: Connect to elasticsearch:9200 [elasticsearch/<IP_ADDRESS>] failed: Connection refused>}
[2023-11-22T15:26:32,242][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://logstash_internal:xxxxxx@elasticsearch:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://elasticsearch:9200/][Manticore::SocketException] Connect to elasticsearch:9200 [elasticsearch/<IP_ADDRESS>] failed: Connection refused"}

[2023-11-22T15:26:48,181][WARN ][logstash.outputs.elasticsearch][main] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>8}

[2023-11-22T15:26:42,282][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://logstash_internal:xxxxxx@elasticsearch:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://elasticsearch:9200/][Manticore::SocketException] Connect to elasticsearch:9200 [elasticsearch/<IP_ADDRESS>] failed: Connection refused"}
# elasticserach logs
WARNING: COMPAT locale provider will be removed in a future release
{"@timestamp":"2023-11-22T15:25:59.333Z", "log.level": "INFO", "message":"Java vector incubator API enabled; uses preferredBitSize=256", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.apache.lucene.internal.vectorization.PanamaVectorizationProvider","elasticsearch.node.name":"elasticsearch","elasticsearch.cluster.name":"docker-cluster"}

error page

nginx-proxy-manager config

windows dashboard

docker and compose version

Could you please share the output of docker compose up setup?

Thank you.
I see that you don't have Metricbeat running. You need to run agents like Metricbeat and Filebeat to collect data on your host(s), and forward it to Elasticsearch.
Check the extensions/ directory inside the repository.

Right, the Elastic Agent is fine too, it runs Metricbeat and Filebeat for you.
Can you share the logs of the agent? If it's not sending data, it means i probably wasn't able to connect to Elasticsearch.

Closing due to inactivity. Feel free to reopen.

In the Windows Event Viewer: https://www.freecodecamp.org/news/event-viewer-how-to-access-the-windows-10-activity-log/


disable test_setitem_inplace_operator again

it was flaky, not broken broken

https://github.com/tinygrad/tinygrad/actions/runs/11646360273/job/32430356685


error when doing npm run build

whenever using npm run build, i always get this error.
Package Magick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing Magick++.pc' to the PKG_CONFIG_PATH environment variable No package 'Magick++' found gyp: Call to 'pkg-config --cflags Magick++' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users(name)\Desktop\Folders\esmBot-master\node_modules\node-gyp\lib\configure.js:259:16)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR!  Please use Windows Subsystem for Linux to run the bot.

You doesn't have Magick++ package

how can i download/install it? on windows btw

Win32 is not an officially supported platform. Please use Windows Subsystem for Linux to run the bot.

yeah but how do i download magick++

if u are on windows u need to install windows subsystem for linux it is a sort of virtual machine that runs linux
do that and then u can follow the normal steps in the setup guide to easily install magick++

You doesn't have Magick++ package

how can i download/install it? on windows btw

Win32 is not an officially supported platform. Please use Windows Subsystem for Linux to run the bot.

yeah but how do i download magick++

you need to build the magick++ from source

if u are on windows u need to install windows subsystem for linux it is a sort of virtual machine that runs linux
do that and then u can follow the normal steps in the setup guide to easily install magick++

yeah this is better

You doesn't have Magick++ package

how can i download/install it? on windows btw

Win32 is not an officially supported platform. Please use Windows Subsystem for Linux to run the bot.

yeah but how do i download magick++

Follow the instructions here to download and build it from source: https://imagemagick.org/script/install-source.php

You doesn't have Magick++ package

how can i download/install it? on windows btw

Win32 is not an officially supported platform. Please use Windows Subsystem for Linux to run the bot.

yeah but how do i download magick++

Follow the instructions here to download and build it from source: https://imagemagick.org/script/install-source.php

im on wsl and i built it but whenever i do npm run build i get this error now
make: Entering directory '/mnt/c/Users/(name)/Desktop/Folders/esmBot-master/build'
CXX(target) Release/obj.target/image/natives/blur.o
CXX(target) Release/obj.target/image/natives/blurple.o
CXX(target) Release/obj.target/image/natives/caption.o
CXX(target) Release/obj.target/image/natives/caption2.o
CXX(target) Release/obj.target/image/natives/circle.o
CXX(target) Release/obj.target/image/natives/crop.o
CXX(target) Release/obj.target/image/natives/deepfry.o
CXX(target) Release/obj.target/image/natives/explode.o
../natives/blurple.cc:1:10: fatal error: Magick++.h: No such file or directory
1 | #include <Magick++.h>
|          ^~~~~~~~~~~~
../natives/circle.cc:1:10: fatal error: Magick++.h: No such file or directory
1 | #include <Magick++.h>
|          ^~~~~~~~~~~~
../natives/deepfry.cc:1:10: fatal error: Magick++.h: No such file or directory
1 | #include <Magick++.h>
|          ^~~~~~~~~~~~
../natives/blur.cc:1:10: fatal error: Magick++.h: No such file or directory
1 | #include <Magick++.h>
|          ^~~~~~~~~~~~
../natives/explode.cc:1:10: fatal error: Magick++.h: No such file or directory
1 | #include <Magick++.h>
|          ^~~~~~~~~~~~
../natives/crop.cc:1:10: fatal error: Magick++.h: No such file or directory
1 | #include <Magick++.h>
|          ^~~~~~~~~~~~
../natives/caption.cc:1:10: fatal error: Magick++.h: No such file or directory
1 | #include <Magick++.h>
|          ^~~~~~~~~~~~
../natives/caption2.cc:1:10: fatal error: Magick++.h: No such file or directory
1 | #include <Magick++.h>
|          ^~~~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
make: *** [image.target.mk:169: Release/obj.target/image/natives/blur.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [image.target.mk:169: Release/obj.target/image/natives/blurple.o] Error 1
make: *** [image.target.mk:169: Release/obj.target/image/natives/caption.o] Error 1
make: *** [image.target.mk:169: Release/obj.target/image/natives/caption2.o] Error 1
make: *** [image.target.mk:169: Release/obj.target/image/natives/circle.o] Error 1
make: *** [image.target.mk:169: Release/obj.target/image/natives/crop.o] Error 1
make: *** [image.target.mk:169: Release/obj.target/image/natives/deepfry.o] Error 1
make: *** [image.target.mk:169: Release/obj.target/image/natives/explode.o] Error 1
make: Leaving directory '/mnt/c/Users/(name)/Desktop/Folders/esmBot-master/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/mnt/c/Users/(name)/Desktop/Folders/esmBot-master/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 4.4.0-19041-Microsoft
gyp ERR! command "/usr/bin/node" "/mnt/c/Users/(name)/Desktop/Folders/esmBot-master/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "-j" "max"
gyp ERR! cwd /mnt/c/Users/(name)/Desktop/Folders/esmBot-master
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok


Add SPI controller: 4 modes, adjustable speed

Hi @AlexxMarkov, it took me quite some time but it's finally here, the SPI controller. It can operate in the 4 modes, the speed can be adjusted (base clock speed can be divided by 2 up to 512) and the number of chip select lines can also be configured.
I didn't write docs yet, but I will. My plan is making the v1.3 release with the latest new features: mtimer, GPIO and SPI. But before making the release I need to write docs for everything that is going to be added and this is going to take a week or a bit more.

Additionally, I would like to add that perhaps I was wrong when I started using cocotb to write tests in Python here. I wanted to simplify and systematize the approach to writing tests using open source tools, but it seems that this idea was not the most successful(


Styles with percentage values

When using a property with the type of number, it's not possible to use percentage-based values.
var styles = StyleSheet.create({
  myStyle: {
    position: 'absolute',
    width: '100%' // throws an error
  }
});

It would be nice to support this, so you don't have to calculate the value to px yourself. Using a string would also allow other units to be used — If using number type, it would still be px-based value.
This would also make it easy to make things responsive.

flex can be used for this. For example:
// In render:
return (
  <View>
    // The width will be split evenly between the two views.
    <View style={{flex: 1}}/>
    <View style={{flex: 1}}/>
  </View>
)

// Or:
return (
  <View>
    // The second view will be double the width of the first.
    <View style={{flex: 0.5}}/>
    <View style={{flex: 1}}/>
  </View>
)

I agree with you, having percentage will help a lot on styling the components

Also this won't work for images.

+1

+1

Send a PR to https://github.com/facebook/css-layout, which is the layout engine that React Native uses.

position: 'absolute',
left: 0,
right: 0,

This is a good way to get 100%. If you add top: 0, bottom: 0 also it will take up the entire screen

This would definitely be nice to have for images as @despairblue mentioned. +1

Sounds reasonable @tommcgurl - check out facebook/css-layout and create an issue there, maybe someone will be up for implementing it :smile:

Thanks @brentvatne, I'll definitely check that out :+1:

Until this is supported natively you can try https://github.com/vitalets/react-native-extended-stylesheet that supports percentage in styles for single orientation.

Why not just write flex like this if you want %
flex:0.6 --> 60%
flex:0.4 --> 40% spacer

just add a empty view as the spacer and your of to the races

Has this been changed recently? I have working code, that uses '100%' in width and height. I also came across Yellobox.js in the RN repo that uses percentages (https://github.com/facebook/react-native/blob/9f33fe258312987f490cc0f3a71c0c4f93494e7f/Libraries/ReactNative/YellowBox.js). However, I can't find any mention of this in the documentation
Is this unintended or is the documentation lacking?

I was able to do something similar with display: flex on a parent container:
export const ColumnPreviewBox = (props) => {
	const percentage = 100 * (1 / props.totalCount);
	const styles = {
		width:  percentage + '%',
		display: 'inline-block',
	}
	return (

	)
}

@andrioid Yeah, this was introduced in https://github.com/facebook/react-native/commit/3f49e743bea730907066677c7cbfbb1260677d11

Percentage value is not supported for transform yet, I guess.
transform

How to add condition landscape in hide some section. using react-native.


Preview is showing 404

When I click for a preview of a page then I am getting a 404 Error.

Issue does not exists now.


Seeking an owner for the PostHog community homepage

i'm looking for an owner for the editorial content on posthog.com/community

i hard-coded some bits i had planned on us updating, and there are also sections that could just use someone keeping an eye on them to make sure they stay fresh.

max quote - i literally generated with this chatgpt while creating the original wire and haven’t updated it since. we could even just generate a dozen of them and have them cycle through.
from the posthog slack - i try to keep an eye on interesting things to share with the community, in order to seed these topics for others to post. we have a slack app that makes it easy - just hit the … menu → Message shortcuts → Publish to posthog.com and you can set the topic
meet a team member. would be cool to cycle through this once a month at minimum.
featured swag - we can probably automate this, but we can also use it to push specific things if we care enough.
musing from the ceo - just a random tweet i found. we could also just load up a bunch of these, or have them cycle through on a time period (bi-weekly, etc)

everything else is updated automatically.
tagging some obvious candidates: @bijanbwb @daniloc @ivanagas @Lior539

Bijan is the man :)


0.2.3 rc

Release candidate of 0.2.3. Halted due outdated xctool in Travis CI. Looks like it is not compatible with Swift 2, but there is no newer version available in homebrew(???) in Travis machine. Tests passes locally using xctool 0.2.6.
Local test result:

Forgot that osx_image need to be for Xcode 7 :) Mistake repaired in 5c7c84c. Waiting for Travis CI machine to do re-test.

There is no rainbow for me today :D Now default xctool version is probably old :D Hopefully It can be upgraded using homebrew...

YEAH!!! Just build binary version and I will merge this pull request :D


TALSwitch + Stroke

Not drown;
Not saved.

hello kazuer, with version of delphi do you use ?

Delphi 10.4 Version 27.0.40680.4203
test switch.zip

Hello, everything has been fixed in the latest committed version.


Get sni working

This is an initial pass at getting SNI working, as well as migrating to HttpClientBuilder instead of AbstractHttpClient
Addresses

https://github.com/rest-assured/rest-assured/issues/497
https://github.com/rest-assured/rest-assured/issues/548

This is not backwards compatible.

Great initiative. What backward incompatible changes have you identified so far?

2 things.

not sure if this is close to completion or not, but, this is currently blocking my work :( just curious on ETA.

Not sure if you guys saw this, but, maybe this is helpful info? https://sookocheff.com/post/api/rest-assured-tests-against-api-gateway/

@JasonSmiley208 Thanks for link, haven't seen it but that will be really helpful. Do you know if something could break if SNI is always enabled even when it's not required? For example what if Rest Assured always did this by default when doing https?
SNIHostName serverName = new SNIHostName(<uri>);
SSLParameters sslParams = sslSocket.getSSLParameters();
sslParams.setServerNames(Collections.singletonList(serverName));
sslSocket.setSSLParameters(sslParams);

I haven't tried this solution yet. I can investigate and get back on
Tuesday (hopefully)
Jason Smiley
Software Developer in Test
90 Fifth Avenue 3rd Floor x-apple-data-detectors://1
New York, NY 10011 x-apple-data-detectors://1
[image: Compass] http://www.compass.com/
On Dec 30, 2016, at 1:44 AM, Johan Haleby<EMAIL_ADDRESS>wrote:
@JasonSmiley208 https://github.com/JasonSmiley208 Thanks for link,
haven't seen it but that will be really helpful. Do you know if something
could break if SNI is always enabled even when it's not required? For
example what if Rest Assured always did this by default when doing https?
SNIHostName serverName = new SNIHostName();SSLParameters
sslParams = sslSocket.getSSLParameters();
sslParams.setServerNames(Collections.singletonList(serverName));
sslSocket.setSSLParameters(sslParams);
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rest-assured/rest-assured/pull/775#issuecomment-269738128,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AP8wZdoHYRityC4ifc3yMuf93qP15MECks5rNKgxgaJpZM4K4UX0
.

That would be great

It seems this will work even if there is no SNI setup.
here is the code executed to make sure i ran your test correctly:
Note, not using Swagger as that is a library for authentication I do not use at the moment.
import io.restassured.RestAssured;
import io.restassured.config.SSLConfig;
import io.restassured.http.ContentType;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;

import javax.net.ssl.SSLContext;

import org.apache.http.conn.ssl.SSLSocketFactory;
import org.junit.Before;
import org.junit.Test;
import shared.configs.user.USER;
import shared.endpoints.security.LoginEndpointBuilder;

import java.security.NoSuchAlgorithmException;
import java.util.HashMap;
import java.util.Map;

import static io.restassured.RestAssured.given;

/**
 * Created by jason.smiley on 1/3/17.
 */
public class BaseApiGatewayTest {
//    private static final String SWAGGER_JSON_URL = "/public-swagger.json";
    public static final String API_GATEWAY_HOST_URL = "test_env_url";
    private static final int API_GATEWAY_HOST_PORT = 443;

//    protected final SwaggerValidationFilter validationFilter = new SwaggerValidationFilter(SWAGGER_JSON_URL);

    @Before
    public void setUpBaseApiGateway() throws NoSuchAlgorithmException {
        // Set the host, port, and base path
        RestAssured.baseURI = API_GATEWAY_HOST_URL;
        RestAssured.port = API_GATEWAY_HOST_PORT;
        RestAssured.basePath = "dev";

        // Use our custom socket factory
        SSLSocketFactory customSslFactory = new GatewaySslSocketFactory(
                SSLContext.getDefault(), SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
        RestAssured.config = RestAssured.config().sslConfig(
                SSLConfig.sslConfig().sslSocketFactory(customSslFactory));
        RestAssured.config.getHttpClientConfig().reuseHttpClientInstance();
    }

    @Test
    public void testBaseApiGateway(){
        USER temp = USER.getUserByGherkinDescription("valid user");

        new LoginEndpointBuilder().withEmail(temp.getEmail()).withPassword(temp.getPassword()).getResponse(true);

        Map<String, Object> requestBody = new HashMap<>();

        requestBody.put(LoginEndpointBuilder.REQUEST_KEY.EMAIL.getKey(), temp.getEmail());
        requestBody.put(LoginEndpointBuilder.REQUEST_KEY.PASSWORD.getKey(), temp.getPassword());

        String url = LoginEndpointBuilder.endpointUrl;

        given()
                .contentType(ContentType.JSON)
                .body(requestBody)
        .when()
                .post(url)
        .then()
                .assertThat()
                .statusCode(200);

    }
}

Here is my GatewaySslSocketFactory.java file:

import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.conn.ssl.X509HostnameVerifier;
import org.apache.http.params.HttpParams;
import shared.factories.EnvironmentFactory;

import javax.net.ssl.SNIHostName;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSocket;
import java.io.IOException;
import java.net.Socket;
import java.util.Collections;

/**
 * Created by jason.smiley on 1/3/17.
 */
public class GatewaySslSocketFactory extends SSLSocketFactory {
    GatewaySslSocketFactory(SSLContext sslContext, X509HostnameVerifier hostnameVerifier) {
        super(sslContext, hostnameVerifier);
    }

    @Override
    public Socket createSocket(HttpParams params) throws IOException {
        SSLSocket sslSocket = (SSLSocket) super.createSocket(params);

        // Set the encryption protocol
        sslSocket.setEnabledProtocols(new String[]{"TLSv1.2"});

        // Configure SNI
//        SNIHostName serverName = new SNIHostName("4********r.execute-api.us-east-1.amazonaws.com");
        String root = EnvironmentFactory.getBaseUrl()
                .replace("https://",  "") //remove "https://"
                .replace("/", ""); //Remove tailing "/"
        SNIHostName serverName = new SNIHostName(root);
        SSLParameters sslParams = sslSocket.getSSLParameters();
        sslParams.setServerNames(Collections.singletonList(serverName));
        sslSocket.setSSLParameters(sslParams);

        return sslSocket;
    }
}

So, I just tested the Solution provided when there is no SNI configuration.
I get a 404 at the moment, however, there could also just be bug in general in the post (I notice that there is deprecated code currently in use).
here is my code so you can see what was executed:
JUnit Test:
`public class BaseApiGatewayTest {
//    private static final String SWAGGER_JSON_URL = "/public-swagger.json";
public static final String API_GATEWAY_HOST_URL = "https://staging.compass.com";
private static final int API_GATEWAY_HOST_PORT = 443;
//    protected final SwaggerValidationFilter validationFilter = new SwaggerValidationFilter(SWAGGER_JSON_URL);
@Before
public void setUpBaseApiGateway() throws NoSuchAlgorithmException {
    // Set the host, port, and base path
    RestAssured.baseURI = API_GATEWAY_HOST_URL;
    RestAssured.port = API_GATEWAY_HOST_PORT;
    RestAssured.basePath = "dev";

    // Use our custom socket factory
    SSLSocketFactory customSslFactory = new GatewaySslSocketFactory(
            SSLContext.getDefault(), SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
    RestAssured.config = RestAssured.config().sslConfig(
            SSLConfig.sslConfig().sslSocketFactory(customSslFactory));
    RestAssured.config.getHttpClientConfig().reuseHttpClientInstance();
}

@Test
public void testBaseApiGateway(){

//        I_login_as_a_X_user_via_endpoints("valid user");
USER temp = USER.getUserByGherkinDescription("valid user");
new LoginEndpointBuilder().withEmail(temp.getEmail()).withPassword(temp.getPassword()).getResponse(true);
}`

Note, this code works with the SNI Hosting as well.

Just an FYI for lesson learned:
public static RequestSpecification getDefaultRequest(String baseUrl){
//        RestAssured.config = RestAssured.config().sslConfig(SSLConfig.sslConfig().allowAllHostnames());

        // Set the host, port, and base path
        RestAssured.baseURI = API_GATEWAY_HOST_URL;
        RestAssured.port = API_GATEWAY_HOST_PORT;

        // Use our custom socket factory
        SSLSocketFactory customSslFactory = null;
        try {
            customSslFactory = new GatewaySslSocketFactory(
                    SSLContext.getDefault(), SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
        } catch (NoSuchAlgorithmException e) {
            throw new RuntimeException("Failed to create Custom Socket. ", e);
        }

        RestAssured.config = RestAssured.config().sslConfig(
                SSLConfig.sslConfig().sslSocketFactory(customSslFactory));
        RestAssured.config.getHttpClientConfig().reuseHttpClientInstance();

        return given()
               .relaxedHTTPSValidation()
                .baseUri(baseUrl);
    }

If I use the above, my code fails. But, if I remove the  .relaxedHTTPSValidation() call, it works just fine.

Also, one last comment - there are a bunch deprecated classes currently being used in this example.
I was going to update to use the new ones but it seemed like Rest-assured didn't like the new classes so I left it using the deprecated classes:
import org.apache.http.params.HttpParams;
import org.apache.http.conn.ssl.SSLSocketFactory;

Also, the shared.factories.EnvironmentFactory is missing, what is it?
Thanks in advance,
Ettore.

Sorry about that!
String root = EnvironmentFactory.getBaseUrl()
                .replace("https://",  "") //remove "https://"
                .replace("/", "")

So, this line of code is just generating my Test Environment URL based on the parameters passed it.
It will essentially take a URL like "https://google.com" and convert it to "google.com"
You just need a URL which is hosted using an SNI configuration


Is is possible to embed a tab inside a tab?

@LaloHao Do you have a screenshot/gif of what exactly you're hoping to achieve?

4 tabs above, and each tab should have the 2 children below

I managed to workaround by making another component which modifies the tab-view state, but its hacky, so i would stilll like to know if theres a cleaner way of doing it

Not sure what problem you are having. Can you post your code?


[Components] Universal banner

Duplicate: https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/8262


Log caller context in an ILogger implementation

Is it possible to log the caller context in an ILogger implementation? It would be trivial in a concrete class to log the caller context by using the CallerFilePath / CallerMemberName / CallerLineNumber attributes decorated on some default parameters, but I'm failing to come up with a way to get the same data in an ILogger implementation.
It would be great if I could do the below:
public void SomeMethod()
{
    // Get my mythical logger instance that logs caller context
    ILogger logger = _loggerFactory.CreateLogger();
    logger.LogInformation("Hello World");
}

// output: [SomeMethod][Line 3] Hello World

Has anyone come up with a solution to this problem?

We periodically close 'discussion' issues that have not been updated in a long period of time.
We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate.


Switch eprintln! to TODO when handling feature_version

Switch eprintln! to TODO when handling feature_version in builtins.rs. Solves issue #4515.

Could the failed Windows-specific test be caused by this CPython issue ?

Thank you!


When executing a reload while in a settings menu buttons cannot be clicked after

Describe the bug
When in a Settings menu, if you create a button that runs ChatTriggers.loadCT() it reloads CT but once it re-opens the menu no buttons can be clicked other than the LoadCT button again.
To Reproduce
Steps to reproduce the behavior:

Create a settings menu.
Add a clickable text button with ChatTriggers.loadCT() in the function.
Observe as no other toggleable buttons or tabs can be clicked.

Expected behavior
I expected the menu to close and re-open functioning normal with being able to click buttons or navigate to different tabs.
Setup (please complete the following information):

OS: Windows 10
ChatTriggers Version: 1.3.0
Minecraft Version: 1.8.9
Java Version: 1.8.0_271

If I’m understanding what you’re saying, this isn’t an issue with the mod, rather, it’s an issue with SettingsManager. There is currently a bug where buttons in settings manager do not work properly. Is this what you’re referring to?

If I’m understanding what you’re saying, this isn’t an issue with the mod, rather, it’s an issue with SettingsManager. There is currently a bug where buttons in settings manager do not work properly. Is this what you’re referring to?

No they work fine normally but once you reload CT the buttons cannot be clicked anymore and do not work.

No they work fine normally but once you reload CT the buttons cannot be clicked anymore and do not work.

I see. Yeah I mean, there's not much to do about that except for having your button automatically close the GUI before reloading CT. Calling ChatTriggers.load() from a CT script is what I would refer to as undefined behaviour and probably should be avoided if possible.

I see. Yeah I mean, there's not much to do about that except for having your button automatically close the GUI before reloading CT. Calling ChatTriggers.load() from a CT script is what I would refer to as undefined behaviour and probably should be avoided if possible.

Alright, my bad then

Alright, my bad then

No problem, the only reason the function is really available is for use in the console, I suppose that there should be some documentation on the function. Hope you can work around this :)

No problem, the only reason the function is really available is for use in the console, I suppose that there should be some documentation on the function. Hope you can work around this :)


Why is the extension icon behaving differently depending on the URL?

As the title says. Not sure, is this a bug?
For example, on https://chrome.google.com/webstore/detail/disconnect/jeoacafpbcihiomhlakheieifhpjdfeo/
and
https://github.com/privacy-tech-lab/gpc-optmeowt/
I am getting:

But on other sites, e.g.,
https://dl.acm.org/doi/pdf/10.1145/3319535.3354212
as it should be:

What is the reason for this difference? Is this a bug?
@sophieeng, can you look into this?

I am using Brave in the most recent version.

Also, is this purely a UI issue or are GPC signals not being sent?

I looked into this and I think it is because of their individual content policies. These sites do not allow us to set the GPC signal, so the icon is correctly displaying that. This is acceptable behavior for the icon, in my opinion.

The reason is the Content Security Policy (#252)?

I added this to our wiki well-known, and will be closing this issue.


add CHANGELOG.md

This PR add

a CHANGELOG.md file to the project.
entry for v1.1 release to CHANGELOG.md

Hey @singhalkarun and @jayanth-kumar-morem, could you please take a look at this? I'm uncertain about the versioning approach we're using, so I've marked it as v1.1 for now.


Update tfjs-core to 1.1.3

INTERNAL

This change is

Integration fails for layers, as expected. Fix is coming asap.

Good point. will bump the minor version


"Create an op" documentation is outdated

URL(s) with the issue:
https://www.tensorflow.org/guide/create_op
https://github.com/tensorflow/custom-op
Description of issue (what needs changing):

g++ -std=c++11 ...

The option std-c++11 is wrong, I think. It needs at least std-c++14 for TensorFlow >=2.7.
This issue also exists in the custom-op repo.
I think C++14 as default was introduced here: https://github.com/tensorflow/tensorflow/commit/f09d3e299752226f7a28c09a8e2018430b691a36
It can be seen here: https://github.com/tensorflow/tensorflow/blob/908e8010ff2c4249f0c81ed85f1013bbd4b7682e/.bazelrc#L320

Note on gcc version >=5: gcc uses the new C++ ABI since version 5. The binary pip packages available on the TensorFlow website are built with gcc4 that uses the older ABI. If you compile your op library with gcc>=5, add -D_GLIBCXX_USE_CXX11_ABI=0 to the command line to make the library compatible with the older abi.

This is long outdated. The TF pip packages use a more recent GCC version since a long time (I don't exactly know since when).

@albertz This issue will be closed ,once the PR is merged.Thanks!

@albertz This issue will be closed ,once the PR is merged.Thanks!

What PR are you referring to?

@albertz We could see the PR that you have raised is merged. Could you please let us know if we can move this issue to closed status?Thanks!

I don't understand. The linked PR is on our RETURNN project. It does not touch or fix the TensorFlow documentation.

There has been a confusion @albertz , please ignore @sushreebarsa 's comment about the PR on your project.
If you want to send a PR to the custom op and tag me, I'd be happy to review. Sorry for the confusion

https://github.com/tensorflow/docs/pull/1989

Moving this to closed status and the pr is merged


Fix invalid CSS in README.md

The CSS in readme was invalid. To target images with a data-src attribute the correct CSS selector would be: img[data-src] (no quotes).

Thanks @peritpatrio!


Bug: Players can use any skin using the "random" pack

With the new "random" pack introduced few days ago, players can use any skin even they haven't equipped the required pack.
Reason could be identified as the below:
https://github.com/Seniru/pewpew/blob/48f015033b3a368ca541a21317a7b07105faac10/index.lua#L837

People with atleast one non-default can still use any pack with "random" pack glitch, reopening...

Fixed with the last commit before now


ReferenceError: regeneratorRuntime is not defined

Getting this when trying to require neo4js. Accoding to this, you need to compile async/await code with babel-polyfill.

Hmm, your package.json include babel-polyfill. I should start checking these things before I open issues. Maybe something is wrong in your babelrc (maybe you need es2017 for example)?

I'm using node 7.10.1, fwiw.

This suggests maybe the problem is that babel-polyfill is listed as a dev dependency when it should be a regular dependency. Maybe . . . I don't know that much about these things.

I'm currently developing a project myself using neo4-js and I also noticed that I need to add babel-polyfill as an dependency and I need to require the polyfill with import "babel-polyfill"; for my project. I'm not happy with this! So I'm able to replicate the problem. I try to fix this in the coming days!
Thanks for your feedback! That means a lot to me! I hope you keep trying my library 👍

Yeah, actually, I installed babel-polyfill and required it prior to requiring this and everything worked fine, so I assume importing it somewhere here would be sufficient.

I asked one of the core contributors of babel, he said either import the babel-polyfill within the server application or do a runtime transformation. I'll give the later a try this week!


@rx-angular/state. DistinctUntilSomeChanged feedback/questions.

Hi. Here are some thoughts about distinctUntilSomeChanged. 👀
Example 1.
distinctUntilSomeChanged<T extends object, K extends keyof T>(
  keyCompareMap: KeyCompareMap<T>
): MonoTypeOperatorFunction<T>;

Example:
interface Person {
   age: number;
   name: string;
}
// compare the first letters of the name property
const customComparison: KeyValueMap<Person> = {
  name: (oldName, newName) => oldName.substring(0, 3) === newName.substring(0, 3)
};

of(
  { age: 4, name: 'Foo1'},
  { age: 7, name: 'Bar'},
  { age: 5, name: 'Foo2'},
  { age: 6, name: 'Foo3'},
).pipe(
  distinctUntilSomeChanged(customComparison),
)
.subscribe(x => console.log(x));

KeyValueMap vs KeyCompareMap
In this example KeyValueMap provided. But there is no such type. So should be KeyCompareMap<Partial<Person>>? Otherwise it requires a comparison for age.
Passing KeyCompareMap directly to distinctUntilSomeChanged

[ ] Signature expects KeyCompareMap<T>.

So taking this
const customComparison: KeyCompareMap<Partial<Person>> = {
  name: (oldName, newName) => oldName.substring(0, 3) === newName.substring(0, 3)
};

and passing inside like this wouldn't work.
distinctUntilSomeChanged({
  name: (oldName, newName) => oldName.substring(0, 3) === newName.substring(0, 3)
})

Property 'age' is missing in type '{ name: (oldName: string, newName: string) => boolean; }' but required in type 'KeyCompareMap<{ age: number; name: string; }>'.

Workaround 1
distinctUntilSomeChanged<{name: string}, "name">({
          name: (oldName, newName) =>
            oldName.substring(0, 3) === newName.substring(0, 3)
        })

Workaround 2
distinctUntilSomeChanged({
          name: (oldName, newName) =>
            oldName.substring(0, 3) === newName.substring(0, 3)
        } as KeyCompareMap<Partial<Person>>)

Workaround 3
 distinctUntilSomeChanged(
          ["name"],
          (oldName, newName) =>
            oldName.substring(0, 3) === newName.substring(0, 3)
        )

Adding default comparison for age.
 distinctUntilSomeChanged({
          name: (oldName, newName) =>
            oldName.substring(0, 3) === newName.substring(0, 3),
            age: undefined
        }),

This will result in oldName, newName as unknown

[ ]   > Property 'substring' does not exist on type 'unknown'.

Adding custom comparison for age.
 distinctUntilSomeChanged({
          name: (oldName, newName) =>
            oldName.substring(0, 3) === newName.substring(0, 3),
            age: (oldAge, newAge) => oldAge === newAge
        }),

Works fine. But user need to provide custom CompareFn for all keys.
Question
Can it be used if this.select() returns an array?
interface List {
  items: Item[];
  name: string;
  isOpen: boolean;
}

this.select(map(state => state.items), distinctUntilSomeChanged(???????))

Right now if we try to write custom KeyCompareMap we will kinda work with Function type.
Probably distinctUntilChanged + custom compare should be used for arrays instead?
this.select(
    map(state => state.items),
    distinctUntilChanged(
        (oldItems, newItems) => oldItems.filter(i => i.asnwered).length === newItems.filter(i => i.answered).length
)

Hi @Karnaukhov-kh, sorry for the delayed response!!
Yes, you are right, the example should state Partial<Person>.

Signature expects KeyCompareMap

We have to change it to KeyCompareMap<Partial<T>>.

Property 'substring' does not exist on type 'unknown'

Thanks for pointing out this bug. Working on it.


Bug: refreshing Inbox takes several attempts

This issue occurs when a system user is in their Inbox and tries to refresh for new messages (because new messages haven't appeared automatically).
More often than not (reproducible): the user must refresh the webpage several times in order to be directed back to the UI. Otherwise, they only see a white page with no information on it. There is no set number of refreshes needed, as it currently ranges from 1 to about 5.


fix(formgroup): Hydration error in console with randomized id

🐞 The bug
A hydration error is logged in the console when using <NFormGroup>
[Vue warn]: Hydration attribute mismatch on
<input id="una-form-group-bai3l36e44" class="input input-default-variant" type="text">
  - rendered on server: id="una-form-group-bai3l36e44"
  - expected on client: id="una-form-group-wyxlo9jkkah"
  Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
  You should fix the source of the mismatch.
  at <Input id="una-form-group-wyxlo9jkkah" status=undefined >
  at <Anonymous id="una-form-group-wyxlo9jkkah" status=undefined >
  at <FormGroup label="Hello" >
  at <App key=4 >
  at <NuxtRoot>

🛠 To reproduce
https://stackblitz.com/edit/nuxt-starter-zmjmeg?file=app.vue
🌈 Expected behavior
The random id should be sent to the client and not randomly generated twice.
ℹ Additional context
No response

Hello @killjoy1221, this is not a UnaUI issue but rather a Nuxt and Vue SSR hydration issue.
This is an easy fix once Vue.js offers a composable for generating IDs that also supports SSR. for the meantime just downgrade your vuejs version.
Ref: https://github.com/nuxt/ui/issues/1171

What about using nuxt's useId()?

@killjoy1221 . in the meantime, useId from nuxt doesnt support if inherit attribute is set to false.
ref: https://github.com/nuxt/nuxt/issues/27910
Vuejs coreteam is actually working on this one. this will be fix in the upcoming version of vue anytime soon.

@killjoy1221 , resolves in https://github.com/una-ui/una-ui/releases/tag/v0.15.0-beta.1


File for FIFA World Cup is outdated in iOS

RE: https://github.com/AlphaWallet/TokenScript/issues/304#event-2895437644

New layout is out now https://github.com/AlphaWallet/TokenScript-Examples/tree/master/examples/fifa


fixed and tested the issue with sorting

Fixed issue with sorting. To test, need to run repare_Data_Stack_Hyp3 and Subset_Data_Stack notebooks beforehand.

Tested and confirmed that it sorts properly.


apps/website - move website out of apps

What would you like to be added:
Move apps/website out of apps/ and into root, or a new folder which befits its scope more clearly.
Why is this needed:
In our ongoing consolidation efforts apps consists of containers that is to be part of a jellyfish services, and website falls into a different category in the upcoming scope of apps.
Since website is responsible for documentation and is built outside of this scope via netlify it will serve us well to have clear cut concerns between apps and website. This simplifies our other processes by scoping our structure more correctly making building docker containers for apps vs website via netlify straight forward without needing to add complex rules to our build processes going forward.
apps # Jellyfish services/apps/apis
  legacy-api
  ocean-api
  playground-api
  whale-api
website # Jellyfish Landing/Documentation

/area core workflow
/triage accepted
/assign @kodemon
There is also another issue with our current approach that is pretty annoying. More info here: https://docs.netlify.com/configure-builds/common-configurations/monorepos/#declare-dependencies-at-the-root-level-and-within-a-subdirectory
Perhaps something to look into too.

Added follow up ticket to get website move done faster, added follow up #1087 for netlify adjustments


MVKPipeline: Force extra checks for stores after fragment discard.

Update SPIRV-Cross to pull in multiple CTS fixes. Handle the new check_discarded_frag_stores and manual_helper_invocation_updates options. Also pulls in @AmesingFlank's change to fix dereferencing
physical storage buffers.
Supersedes #1782.
Fixes #1781.

By "handle"...I assume the SPIRV-Cross default value for manual_helper_invocation_updates is fine for the purposes here?

Yes. Also, when check_discarded_frag_stores is true, manual_helper_invocation_updates is forced to be true by SPIRV-Cross.


Add Db seed test

Seeded DB unit tests with data from quickstarts and helptopic files to write tests that make sure the db data matches what is in the files.

@Hyperkid123 I added the line that was missing, causing the failing test, and I've added the make test command to the docker file.


Add blinkPeriod config

Config that controls the blinking period of the cursor. Will also lift the limit of 500ms on the pulse duration.

This is implemented as of c89c8a6


Add NewRelic tracing to some potentially slow methods

Ticket
FFS-2175
Changes

Add NewRelic tracing to a couple potentially-slow methods

Context for reviewers

Acceptance testing

[x] No acceptance testing needed

This change will not affect the user experience (bugfix, dependency updates, etc.)

[ ] Acceptance testing prior to merge

This change can be verified visually via screenshots attached below or by sending a link to a local development environment to the acceptance tester
Acceptance testing should be done by design for visual changes, product for behavior/logic changes, or both for changes that impact both.

[ ] Acceptance testing after merge

This change is hard to test locally, so we'll test it in the demo environment (deployed automatically after merge.)
Make sure to notify the team once this PR is merged so we don't inadvertently deploy the unaccepted change to production. (e.g. :alert: Deploy block! @ffs-eng I just merged PR [#123] and will be doing acceptance testing in demo - please don't deploy until I'm finished!)

Merged in #397.


Color Set

Hi Aymkdn,
Nice code in tuyacloud-php, and can set brightness, power for a bulb. How can I set a color though please? It is not documented?
Thanks,
Bon

Check https://github.com/Aymkdn/tuyacloud-php/blob/595c3714abe891ba2ca088e53a2c6c426d354105/TuyaCloud.php#L147
You should be able to use colorSet. I don't use it and I'm not at home this weekend. So try to investigate on your side, and let me know. If you don't understand what to do, I'll try to help you on Tuesday.

Hi Aymkdn,
Thanks for reply, have a good weekend!
I'm experimenting with HSV values but none change the bulb. I think it's the format I'm sending the request in, but there is no error trapping, so I'm shooting in the dark. Have sent many different format values before bothering you, and am now stuck!
Tuesday is no prob if you have a chance to experiment then,
Thanks,
Bon

I don't have a lightbulb, but based on https://github.com/PaulAnnekov/tuyaha/blob/5c47ce40062ab388af994299d6cf63c4add4f899/tuyaha/devices/light.py#L145-L154:
        hsv_color = {
            "hue": color[0] if color[1] != 0 else 0,  # color white
            "saturation": color[1] / 100,
        }
        if len(color) < 3:
            hsv_color["brightness"] = cur_brightness
        else:
            hsv_color["brightness"] = color[2]
        # color white
        white_mode = hsv_color["saturation"] == 0

And based on https://github.com/PaulAnnekov/tuyaha/blob/cd9baa85052028fdcf6f1ed222fb6f188016cd06/tuyaha/devices/light.py#L156:
   if self._control_device("colorSet", {"color": hsv_color}):

It seems the hsv_color format should be a JSON object (see this issue for some examples):
{
  "color": {
    "hue":40,
    "saturation":255,
    "brightness":255
  }
}

Then the command might be:
$tuya->setState([
  "name" => "lightbulb 1",
  "command" => "setColor",
  "value" => [
    "color" => [
      "hue" => 40,
      "saturation" => 255,
      "brightness" => 255
    ]
  ]
]);

But I think it won't work (based on this example).
If it doesn't work, then try to replace https://github.com/Aymkdn/tuyacloud-php/blob/595c3714abe891ba2ca088e53a2c6c426d354105/TuyaCloud.php#L184
with:
        "color" => $value

And then call it with:
$tuya->setState([
  "name" => "lightbulb 1",
  "command" => "setColor",
  "value" => [
    "hue" => 40,
    "saturation" => 255,
    "brightness" => 255
  ]
]);

Please, let me know the result of your tests and I'll update the file based on your feedback.

Just looked at this, but adding "color" => $options['color']'  into the tuyacloud.php, then passing in color with the 3 values worked. May try and make a PR

OK Great! I'll modify my code by the end of the week!

I've just published a new version: can you try it, please?
It will check if the command is colorSet and in that case it will use color instead of value in what is sent to the server. Also I've added some additional info in the "documentation".
So if you try the below with the new version, it should work:
$tuya->setState([
  "name" => "lightbulb 1",
  "command" => "colorSet",
  "value" => [
    "hue" => 40,
    "saturation" => 255,
    "brightness" => 255
  ]
]);

As well as:
$tuya->setState([
  "name" => "lightbulb 1",
  "command" => "turnOnOff",
  "value" => 0
]);

Hello,
I've a problem to set brigtness on my dimmer. On/Off works fine. But "colorset" doesn't.
$tuya->setState([   "name" => "PV Dimmer",   "command" => "colorSet",   "value" => [     "brightness" => 10   ] ]);

Did you try to define all hue, saturation and brightness?
$tuya->setState([
  "name" => "PV Dimmer",
  "command" => "colorSet",
  "value" => [
    "hue" => 40,
    "saturation" => 255,
    "brightness" => 255
  ]
]);

Yes, but also no function. A dimmer has no hue and saturation.

I moved your issue to there: https://github.com/Aymkdn/tuyacloud-php/issues/13

What does it mean?


Add CD Events to the landscape

Pre-submission checklist:
Please check each of these after submitting your pull request:

[X] Are you only including a repo_url if your project is 100% open source? If so, pick the single best GitHub repository for your project, not a GitHub organization.
[-] Does it follow the guidelines for new entries?
[-] Have you added an SVG to hosted_logos and referenced it there?
[-] Does your logo clearly state the name of the project/product and follow logo guidelines?
[-] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[-] ~5 minutes after opening the pull request, the CNCF-Bot will post a link for you to preview your changes. Have you confirmed that they are correct and then added a comment to the PR saying "LGTM"?

Build failed because of:
category does not have a name

Line 385 must have a name

Yeah. My bad. Copy/paste issue... ;)

It also lacks logo, homepage and crunchbase. That's why it's a draft. We're waiting for the logo to be settled :)

oh interesting, my original review did not show it as a draft and that is why I reviewed, my bad if I somehow missed that.

Currently waiting for https://github.com/cdfoundation/foundation/issues/348

Just lacking the homepage_url right now. Working on it.

LGTM!


✨ Rewrites + fix dep to hotfixes

This PR is for https://github.com/AndreMiras/edilkamin/pull/4
It contains:

change from double quotes to simple quotes
indentation
transform MAC address before sending it to the API
add more types
upgrade some dependencies and re-arrange version numbers

Thank you so much for taking the time to contribute to the library! I really appreciate the effort you put into this PR. 💖
While I can see you've made a variety of changes, it's generally best to focus on one specific improvement at a time in a pull request. For example, the changes to transformMacAddress() could potentially be meaningful and worth discussing further. However, combining that with changes to indentation rules, quoting, package versions, and other unrelated aspects makes it a bit challenging to review and merge.
For future contributions, I'd recommend keeping PRs small and focused on a single topic or feature. This helps ensure that the changes are easier to review and are more likely to get merged.
I'd love for you to amend the PR focusing just on the transformMacAddress() function (or any other specific improvement you'd like to propose). Let me know if you have any questions or need help with this—I'm here to help!
Thanks again for contributing, and I hope to see more of your work in the future! 🌟


When scrolling down the navbar at top hides automatically reopened

Issue #200
When scrolling down the navbar at the top should hide automatically

Hey @Aashutoshbro thanks for the PR, what do you think of the menu appearing on the scroll up? It's important imo that we keep the call to actions to important things to the website. Would you be able to add that?

@pavlenex It would be great if you could tell me which one (CTA) to include as per the PR, I just made some property change to meet the issue.

@Aashutoshbro entire navbar? check this for context https://github.com/stratum-mining/stratumprotocol.org/issues/200#issuecomment-1989124868

So it's not actually about making nav hide exactly on scroll up, I guess,
It's about making CTA more clear to take action for ease
"I mean yeah, that's the point of the sticky navbar, it's not a bug. It's there so it highlights call to actions clearly."- @pavlenex

@Aashutoshbro Hide nav bar on scroll down and show it on scroll up, is that possible?

So it's like enhancement to navbar for clear sticky navbar function
can you tell me more about what exactly might me done to go with issue?

If you test these locally and they work, feel free to push them and then we'll have a live preview link build by netlify. Sorry ,not on my pc to test this.

Works if the above approach is applied: @pavlenex
https://deploy-preview-215--startling-capybara-2231ea.netlify.app/

Hey @Aashutoshbro just tested https://deploy-preview-215--startling-capybara-2231ea.netlify.app and header is removed on scroll down, but doesn't re-appear on scroll up

Will try to sort that out


Add an active state for desktop nav items

This PR addresses #222 by adding an active state to the Learn and Glossary nav items in desktop mode.

@andrewmile Awesome 🎉 Thank you!


[BUG] WASMCLOUD_CLUSTER_SEED does not affect issuers

When a WASMCLOUD_CLUSTER_SEED is supplied via environment variables or a dotenv file, this cluster seed will be used to sign invocations. The validation step for antiforgery checks invocations against the valid cluster issuers in the host, that list is supplied by a separate environment variable WASMCLOUD_CLUSTER_ISSUERS.
What I'm observing as a bug here is that if I generate a cluster key and supply it as the cluster seed for my host, that key will not be present in the list of valid invocation issuers. Insted, the ad hoc generated cluster public key is what's present in the valid issuers list.
My proposal is: If a cluster seed is supplied, we should use the nkeys library to extract the public key using the KeyPair::from_seed functionality, and the valid issuers list should include that public key rather than the ad hoc generated issuer.

cc @autodidaddict

So, let me try and rephrase:

if we autogenerate an ad hoc key, the issuer is valid
if a seed is supplied, then the cluster issuer of that key is not automatically included in the issuer list.

This is actually functioning by design. If you supply a cluster seed, it is your responsibility to ensure that the public key of that seed is included somewhere in the cluster issuer list.
Or am I misinterpreting the issue?

Oooh we're leaving the public key of the ad hoc issuer in the valid issuers list even if someone supplies their own seed key. Yes, this is a bug, we should ensure the ad hoc key is removed from the issuer list if someone supplies their own seed.

I completely agree with your second point (ad hoc key should not be in issuers if a seed is supplied)
Is there a use case where you would want to supply your own cluster key AND you want to supply a different set of valid issuers (not including the corresponding issuer to the supplied cluster key)? Would this scenario even work?

Lets say you have 6 different signing keys that you're using (maybe 1 per region or 1 per infra etc). Each host will be given one seed and six issuers.

That makes sense, but would you ever want the issuer corresponding to that host's seed to be absent from the allowed issuer list?

Good point. Invocations originating from that host would have to be validated by that host in some scenarios.

Should probably do a little extra shenanigans to force the public key corresponding to the signing key to always be in the issuers list.


Test/camckenn/15

Purpose
Explain the goal of this PR, if it addresses an existing issue be sure to link to it.
Tag each of the issues that you are addressing with this PR with "Closes #"
Closes #15
Describe the big picture of your changes here, perhaps using a bullet list if multiple changes are done to accomplish a single goal.
(If it accomplishes too many goals, it would be best to create separate PR's for each.)
Completed small TensorFlow LSTM tutorial.  This was probably a useless endeavor in hindsight but I want to show I am attempting to make progress at learning LSTMs.
Type of change
What types of change is it?
Select the appropriate type(s) that describe this PR

Bugfix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (non-backwards-compatible fix or feature)
Code style update (formatting, renaming)
Refactoring (no functional changes, no API changes)
Repository chores (changes made to improve repository/workflow quality)
Documentation update
Other (please describe)

-Other
Example/tutorial
Checklist
Put an x in the boxes that apply.

[x] My code functions as intended
[ ] I have used camelCase in my variable and function names
[x] I have commented my code properly
[ ] I have provided the necessary prompts for automatic documentation
[ ] I have provided a toy case under the examples folder
[x] I have addressed all the issues entirely

Please see README.md for pre-commit instructions

Kindly add the type of PR and clean-up the PR request. Kindly see other PRs for reference

DO NOT MERGE BEFORE #28 IS MERGED. After #28 is merged to main, fetch all and merge.

Kindly add the suitable documentation. See README.md for instructions. Wait for #29 to be merged


Circular 'accepts_nested_attributes_for' between User and other model sends out duplicate emails

I am using devise 4.3.0 for authentication and use User as the devise model. I have another model Employee which has_one User. I use the EmployeesController to update it's user records.
Employee
class Employee < ApplicationRecord
  has_one :user, inverse_of: :employee, dependent: :nullify
  accepts_nested_attributes_for :user
end

User
class User < ApplicationRecord
  devise :database_authenticatable, :confirmable, :lockable,
    :recoverable, :rememberable, :trackable, :validatable

  belongs_to :employee, optional: true, inverse_of: :user, dependent: :destroy
  accepts_nested_attributes_for :employee
end

I have enabled change email notification in devise config.send_email_changed_notification = true. When I am updating the user email, I am receiving duplicate Email Changed notification. This issue arrises from the fact that both the models have accepts_nested_attributes_for for the other.

@saurabhlodha  I don't think this is due to accepted_nested_attribites, I have checked the with & without adding accepts_nested_attributes_for . Two mail triggering is the default functionality of Devise in confirmable module, you can have a closer look into the  send_email_change_notification

Hello @saurabhlodha, thanks for your report.
I tested here and only one email was sent, as expected.
Are you overriding Devise controllers?
Are you using Mongoid?

I'm closing this issue because it has not had recent activity.
If you're still facing this on the latest version, please open a new one with all the information requested in the template.
Thank you!


[Bug] Build failure with linuxPackages_cachyos{-lto} and zfs_cachyos

What happens?
I'm trying to synchronize the versions of ZFS user tools and the kernel by setting these variables in my config:
{ inputs, config, lib, pkgs, ... }:
{
  boot = {
    zfs = {
      package = pkgs.linuxPackages_cachyos.zfs_cachyos;
    };
    kernelPackages = pkgs.linuxPackages_cachyos;
  };
}

I also tried with cachyos-lto like this:
{ inputs, config, lib, pkgs, ... }:
{
  boot = {
    zfs = {
      package = pkgs.linuxPackages_cachyos-lto.zfs_cachyos;
    };
    kernelPackages = pkgs.linuxPackages_cachyos-lto;
  };
}

And with the "main" package:
{ inputs, config, lib, pkgs, ... }:
{
  boot = {
    zfs = {
      package = pkgs.zfs_cachyos;
    };
    kernelPackages = pkgs.linuxPackages_cachyos-lto;
  };
}

When using linuxPackages_cachyos, the build fails in building the initrd like this:
last 25 log lines:
> /etc/modprobe.d/debian.conf -> /nix/store/vqrqngrh56y42jj1jb3h18p87kzls6mg-kmod-debian-aliases.conf-30+20230601-2
> /etc/modprobe.d/nixos.conf -> /nix/store/0ldj0qad7xqhxyb0pbns246paaqsfsll-etc-modprobe.d-nixos.conf
> /etc/modprobe.d/systemd.conf -> /nix/store/b11is5q9wgl4jjqs43x9qi22kljvpydj-systemd-256.4/lib/modprobe.d/systemd.conf
> /etc/modprobe.d/ubuntu.conf -> /nix/store/0d6a80aqk25x6a8xrplmzf9kv1gvjw64-initrd-kmod-blacklist-ubuntu
> /etc/modules-load.d/nixos.conf -> /nix/store/nnxdljys44s4p5w620a386364cd2g4q5-initrd-nixos.conf
> /etc/os-release -> /nix/store/r8s4my24id5ss2abg6cxhbm47p6isrvk-initrd-release
> /etc/passwd -> /nix/store/na3dp84hd852f55r04v6l9kqqr509w59-initrd-passwd
> /etc/shadow -> /nix/store/95ff8yi4z4bqlac2n3sq06dvrjdpwzgw-initrd-shadow
> /etc/shells -> /nix/store/dyx31l1f53qib48415cvv7rrdg3gjw3s-initrd-shells
> /etc/sysctl.d/nixos.conf -> /nix/store/h2icbmvhjkkl2401pi7s881675vdzb4x-initrd-nixos.conf
> /etc/systemd/system -> /nix/store/pbhm3k5kc5mgsm37k5yhwr9hddj2pgrl-initrd-units
> /etc/systemd/system.conf -> /nix/store/r9fh2ifsdvg8wyimxsp0f0dm78r0rryn-initrd-system.conf
> /etc/udev/rules.d -> /nix/store/3c5hhls1viqny8qznc98i61dlxpdga2w-initrd-udev-rules
> /etc/vconsole.conf -> /nix/store/aa54jy04hbnng6cnjrkjpbdh8149f8c4-vconsole.conf
> /init -> /nix/store/b11is5q9wgl4jjqs43x9qi22kljvpydj-systemd-256.4/lib/systemd/systemd
> /lib -> /nix/store/xmcgm74a0az0kxccpc2bybbzxmh9bzyw-linux-6.10.7-modules-shrunk/lib
> /sbin -> /nix/store/nm55fiihyxhhswz9hky46sgcw4chnm76-initrd-bin-env/sbin
> /tmp/.keep -> /nix/store/mqb0lwhmbvgb0z2qw9kacmn86cbnn4pd-initrd-.keep
> Error: failed to get symlink metadata for "/nix/store/bpda1h4n43yylzn77jldqs238l1a17xq-zfs-kernel-2.2.5-6.10.7/lib/udev"
>
> Caused by:
>     No such file or directory (os error 2)
>
> Location:
>     src/main.rs:262:22
For full logs, run 'nix log /nix/store/6mcxb1pf86xnvrj88w1dsxckrg4840w8-initrd-linux-6.10.7.drv'.

When using linuxPackages_cachyos-lto, with or without using the "main" package, the build fails in zfs-kernel like this:
last 25 log lines:
> checking whether objtool header is available... linux/objtool.h
> checking whether wait_queue_entry_t exists... yes
> checking whether /dev/zfs minor is available... 249
> checking whether DECLARE_EVENT_CLASS() is available... no
> checking for available kernel interfaces... done
> checking whether access_ok() has 'type' parameter... no
> checking whether global_node_page_state() exists... yes
> checking whether global_zone_page_state() exists... yes
> checking whether enum node_stat_item contains NR_FILE_PAGES... no
> checking whether enum node_stat_item contains NR_INACTIVE_ANON... no
> checking whether enum node_stat_item contains NR_INACTIVE_FILE... no
> checking whether enum zone_stat_item contains NR_FILE_PAGES... no
> checking whether enum zone_stat_item contains NR_INACTIVE_ANON... no
> checking whether enum zone_stat_item contains NR_INACTIVE_FILE... no
> checking whether global_page_state enums are sane... no
> NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND
> configure: error:
>         *** None of the expected "global page state" interfaces were detected.
>         *** This may be because your kernel version is newer than what is
>         *** supported, or you are using a patched custom kernel with
>         *** incompatible modifications.
>         ***
>         *** ZFS Version: zfs-2.2.4-1
>         *** Compatible Kernels: 3.10 - 6.8
>
For full logs, run 'nix log /nix/store/v1qgr1amiypyrgc161bl7a29fj6hhxvm-zfs-kernel-2.2.5-6.10.7.drv'.

What is expected to happen?
I should be able to use the ZFS package inside linuxPackages to track the current version of userspace tools.
If possible, please attach logs
No response
More information
I found one scenario that works, but it might just be a coincidence because the packages happen to align right now:
{ inputs, config, lib, pkgs, ... }:
{
  boot = {
    zfs = {
      package = pkgs.zfs_cachyos;
    };
    kernelPackages = pkgs.linuxPackages_cachyos;
  };
}

This stops working if I try to use linuxPackages_cachyos-lto instead. As more evidence this is a coincidence, using pkgs.zfs doesn't work because it's marked as broken with kernel 6.10.7, but using pkgs.zfs_unstable works.

You don't need the userspace to be built with LLVM+LTO (only the kernel module needs to match the kernel's build environment), but it needs to match the same source:
{
  boot.zfs.package = pkgs.zfs_unstable.overrideAttrs (prevAttrs: {
    inherit (pkgs.linuxPackages_cachyos-lto.zfs_cachyos) src;
    patches = [ ];
    passthru = prevAttrs.passthru // {
      kernelModuleAttribute = "zfs_cachyos";
    };
  });
}

This still fails to build with the same error:
> checking whether access_ok() has 'type' parameter... no
> checking whether global_node_page_state() exists... yes
> checking whether global_zone_page_state() exists... yes
> checking whether enum node_stat_item contains NR_FILE_PAGES... no
> checking whether enum node_stat_item contains NR_INACTIVE_ANON... no
> checking whether enum node_stat_item contains NR_INACTIVE_FILE... no
> checking whether enum zone_stat_item contains NR_FILE_PAGES... no
> checking whether enum zone_stat_item contains NR_INACTIVE_ANON... no
> checking whether enum zone_stat_item contains NR_INACTIVE_FILE... no
> checking whether global_page_state enums are sane... no
> NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND
> configure: error:
>         *** None of the expected "global page state" interfaces were detected.
>         *** This may be because your kernel version is newer than what is
>         *** supported, or you are using a patched custom kernel with
>         *** incompatible modifications.
>         ***
>         *** ZFS Version: zfs-2.2.4-1
>         *** Compatible Kernels: 3.10 - 6.8

I don't know where it's getting the ZFS version 2.2.4 from, but that's definitely what it's trying to build: I used nix repl to load my flake and navigated to outputs.nixosConfigurations.{my-machine}.pkgs.zfs_cachyos.src.outPath and the META file in the sources indicates it's 2.2.4.

I followed the trail backwards and realized that the ZFS version in versions.json hasn't been updated, and followed that back to the definitive source: https://github.com/CachyOS/linux-cachyos/blob/49b42b99f95657db708a89b7408556e1afa09e5a/linux-cachyos/PKGBUILD#L218 which also isn't updated! How was this ever working at all???

which also isn't updated! How was this ever working at all???

I tested it once (I use ZFS), months ago, it worked, and I never tried again. Other users of the repo seem to be only using xone. I think right now, we don't even have NVIDIA users using LTO.
Anyway, if the kernel module is also broken (I'm almost sure it is), then you can try to fix the stdenv at pkgs/linux-cachyos/lib/llvm-module-overlay.nix.

I think the main problem is that zfs_cachyos expects to be built in-tree? Maybe? This is what the CachyOS PKGBUILD doesto it: https://github.com/CachyOS/linux-cachyos/blob/49b42b99f95657db708a89b7408556e1afa09e5a/linux-cachyos/PKGBUILD#L577-L590
Nevermind! To build ZFS into the kernel itself, you have to use its --enable-linux-builtin configure flag, then run their copy-builtin script to copy the object file Kconfig changes to the kernel sources. Then, build the kernel normally, but with the CONFIG_ZFS=y option! CachyOS doesn't do any of this, it just builds the regular module.
Unfortunately, there's still a mystery with that module: I went to CachyOS's repository and downloaded the kernel that includes ZFS (https://mirror.cachyos.org/repo/x86_64/cachyos/linux-cachyos-zfs-6.10.7-1-x86_64.pkg.tar.zst), unzipped it and the kernel object, ran strings linux-cachyos-zfs-6.10.7-1-x86_64.pkg/usr/lib/modules/6.10.7-1-cachyos/zfs.ko | sort | uniq | grep "version", and saw version=2.2.4-1, so I have no idea how that was built :rofl:
I hope this investigation helps the next person, but I think I'll stick to the normal kernel for now.

Im really unsure currently. We are actually using a custom branch, to provide compatibility for our zfs modules, see:
https://github.com/CachyOS/zfs/commits/6.11/
It has exposed as version, because I did not updated the tag. I have updated now to the latest zfs version our branch, see here:
https://github.com/CachyOS/zfs/commits/zfs-2.2.6-cachyos
This will be used with the upcoming kernel update.
There is no need to use --enable-builtin. This makes massive issues, when building with Clang or equal. The module generally builds, but the complete boot freezes and crashes, therefore we are not using --enable-builtin.
You can find our PKGBUILDs here:

used commit to build: https://github.com/CachyOS/linux-cachyos/blob/master/linux-cachyos/PKGBUILD#L218
Building of the module: https://github.com/CachyOS/linux-cachyos/blob/master/linux-cachyos/PKGBUILD#L577-L590
Packaging: https://github.com/CachyOS/linux-cachyos/blob/master/linux-cachyos/PKGBUILD#L716-L729

We are having quite many users on CachyOS, which are using zfs OOB and there are no issues with the building neither. Likely, you should just follow the Building/Packaging as we do.

Currently, I don't have time to deal with -LTO's kernel modules. Building all the modules for all the other kernels is all I have time to do. Thankfully, the kernel itself works.
I added a note in the README/website: https://github.com/chaotic-cx/nyx/commit/d5c5d1bd9f8485354f0b463d13a844997189acf1
Closing this, but if someone has time and is able to fix it, please submit a PR.


Missing 50% of issues some days

Sometimes I miss about 50% of issues as they do not show up in the unread list.
After a day or two (since clearing existing list with mark all as read) the missing issues magically appear in my unread list, with the correct time stamps.
Very annoying.
I should note that we (mapbox) get hundreds of GitHub notifications a day.

Browser
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36

This is still happening, but infrequently enough that I am not able to catch it with debug etc.
Do you have a test GitHub account that generates large volumes of notifications? Likely be hard to find with small number of issues.

Do you have a test GitHub account that generates large volumes of notifications?

No, but it would be pretty easy to do with the API on a dummy repo.

I am still not able to duplicate this. I'm going to close it, but feel free to reopen if you can figure out a way to duplicate it.


Possible to not prefix names?

In dense, nested schemas without explicit call-outs in $defs, this tool today will string-concatenate the type names to form extremely long prefixes for deeply-nested types. It would be awesome to opt into not doing this and risking the collision of type names. If this is acceptable, I am happy to implement such an option behind some flag.

@omissis any thoughts on this? Happy to start work ASAP if you are OK with the idea.

hey, I am not really sure I want to add an extra flag for cosmetic reasons if that can cause invalid code to be generated. how would you go about handling collisions when that flag is specified?

@omissis well this is already an issue today, actually. Any set of schemas that reference the same type within themselves will cause duplicates to be generated if you run the go-jsonschema tool against them individually right now. I think we could then add a feature to generate all de-duplicated Go types for N schemas - at the point that go-jsonschema has all N schemas loaded at once, it should be able to not only de-duplicate but also find shortest possible name prefix necessary to be unique.

I'd love to see a flag like this. At the moment I'm getting types like RouteLocationsElemAddressesElemAddressType, RouteLocationsElemAddressesElemContactsElem, which are way too long.

I've pushed #324 as one step of many for this feature. For a real-world use-case for us, some examples of names that change with the new flag:
RolloutSpecificationOrchestratedStepsElem -> OrchestratedStep RolloutSpecificationOrchestratedStepsElemApplicationsApplyAcrossServiceResources -> ApplyAcrossServiceResources

If this approach looks OK, I will work on loading more than one file at a time and deduplicating across schemas next. That will be a bit more work as the data structures today are per-schema.


Add "buffered-normalized mode", add $buf cell type, and add "bufnorm" command

This PR adds "buffered-normalized mode" to RTLIL. In that mode there's a 1:1 relationship between cell ouput ports and wires, and each wire is annotated with a reference to the cell and cell port driving it.
Once in "buffered-normalized mode" calling design->bufNormalize() (or module->bufNormalize()) will ensure that the above condition is met, by adding additional intermediate wires and buffer cells as needed.
This PR also adds a $buf "coarse-grain" buffer cell type, similar in behavior to $pos, but techmap/simplemap/etc is not mapping this buffer type to an array of single-bit buffers. bufNormalize() is adding buffers of that new $buf type. Note that bufNormalize() is very efficient and only looks at the parts of the design that have been changed since the last time bufNormalize() has been run, i.e. it does not require a complete scan over the design.
This PR also adds the bufnorm command for getting the design into and out of "buffered-normalized mode", with more control over the exact type of network of buffers that is being created.

This PR also adds a $buf "coarse-grain" buffer cell type, similar in behavior to $pos, but techmap/simplemap/etc is not mapping this buffer type to an array of single-bit buffers.

FWIW that doesn't seem to be the behavior for $pos cells either
https://github.com/YosysHQ/yosys/blob/7d30f716e82ff4782b653cb2c448062f7878c308/passes/techmap/simplemap.cc#L45-L53

Since setPort may bufNormQueue.insert, a Cell* may survive in bufNormQueue beyond when the underlying cell is removed. Repro: read_rtlil bug.proc.il; bufnorm -update; opt; bufnorm -update segfaults on my linux machine) where bug.proc.il is
autoidx 16

module \bug

  wire width 32 $procmux$14_Y

  wire $procmux$15_CMP

  wire $auto$bugpoint.cc:258:simplify_something$1

  wire width 32 output 1 $auto$bugpoint.cc:258:simplify_something$3

  wire width 30 $auto$bugpoint.cc:258:simplify_something$4

  wire width 32 $auto$bugpoint.cc:258:simplify_something$5

  wire $delete_wire$6

  wire width 32 \pc$next

  cell $mux $procmux$14
    parameter \WIDTH 32
    connect \Y $procmux$14_Y
    connect \S $procmux$15_CMP
    connect \B 0
    connect \A 32'x
  end

  cell $dff $7
    parameter \WIDTH 32
    parameter \CLK_POLARITY 1
    connect \Q $auto$bugpoint.cc:258:simplify_something$3
    connect \D \pc$next
    connect \CLK $auto$bugpoint.cc:258:simplify_something$1
  end

  connect $procmux$15_CMP $delete_wire$6
  connect \pc$next $procmux$14_Y
end

oh hey, a new user of bugpoint :D

Rebased to pull in updated CI


Create mpi_codes

README file:
Documentation to use Microsoft Visual Studio for MPI programming.

 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.:x: ExiledMercenary sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

I don't see how this PR is related to VS Code.