Issues connecting to simulator

I have a user of my wrapping package reporting issues with connecting to a simulated robot. I can't seem to reproduce it on my end, but it definitely seems like an issue that's stemming from this package as well. It seems to only appear when modifying networktables values from the client side, rather than robot side.
The error they're reporting is NT: DISCONNECTED NT4 client '1700087460502@1' (from <IP_ADDRESS>:61606): binary decode error: mpack_error_type. More details can be found at this issue: https://github.com/CrispyBacon1999/ntcore-react/issues/149

Thanks for the report Josh,
@fisherjacobc, can you provide a minimal robot code repository similar to your environment so I can reproduce this?

Also, @CrispyBacon1999, let me know if you are interested in owning this package... or if you have the bandwidth to help me with the NT 4.1 migration and adding global listeners. My priorities have shifted, and my primary focus is my job and college right now

I haven't looked that deep into NT 4.1 yet, but it's possible that's what's causing the issues. My local testing was done using my team's 2023 robot, which wouldn't have the new 4.1 things, so I could see small conflicts causing issues. Looking at the way they have the negotiations handled, it theoretically shouldn't cause issues, but you never know.
I'd definitely be down to help out with adding 4.1 support as well!

Glad to hear!
TL;DR I don't think this is 4.1 related
From the spec: https://github.com/wpilibsuite/allwpilib/blob/main/ntcore/doc/networktables4.adoc#motivation4.1

Version 4.1 uses a different WebSockets subprotocol string than version 4.0, so it is easy for both clients and servers to simultaneously support both versions 4.0 and 4.1. Due to WebSockets implementation bugs in version 4.0, version 4.1 implementations must not send WebSockets PING messages on version 4.0 connections.

I don't think this is my client. My client connects to the robot in the form of ntcore-ts-<uid>
https://github.com/cjlawson02/ntcore-ts-client/blob/main/packages/ntcore-ts-client/src/lib/util/util.ts#L201
This message says NT: DISCONNECTED NT4 client '1700087460502@1' (from <IP_ADDRESS>:61606): binary decode error: mpack_error_type.<PHONE_NUMBER>502 is not in the client ID form I use

Interesting, so it's likely another app connecting and having issues, but the errors are being sent through and displayed?

That's what it seems like at first glance. This is one of those things that's hard to debug without the same environment. Looking at your issue, it sounds like it just disconnects and reconnects? Maybe in NT4.0, there's a bug that reloads all clients when it gets an error like that

In case you didn't see (in the other issue), example code for the issue is at https://github.com/FIRST-TEAM-339/kilroy-dashboard.

Could be robot code issue

Since I was just testing out NT Tables, I didn't really have anything sophisticated code wise, but I had stuff in a subsystem (using commaned-based). Below is the minimal code relating to the values I want to change through the subsystem.
package frc.robot.subsystems;

import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.wpilibj.RobotController;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants.*;
import frc.robot.enums.DriveGears;

public class DashboardSubsystem extends SubsystemBase
    {
    private NetworkTableInstance inst = NetworkTableInstance.getDefault();
    private NetworkTable table = inst.getTable("kilroy");

    private NetworkTableEntry autonomousMode = table
            .getEntry("autonomous/mode");
    private NetworkTableEntry leftRightNone = table
            .getEntry("autonomous/left-right-none");

    public DashboardSubsystem()
        {
            // this.autonomousMode.setPersistent();
            this.autonomousMode.setInteger(2);
            // this.leftRightNone.setPersistent();
            this.leftRightNone.setInteger(1);
        }
    }

@CrispyBacon1999 @fisherjacobc I think I may have found something
https://github.com/CrispyBacon1999/ntcore-react/blob/main/src/lib/useNTState.ts#L62-L63
We publish then immediately set the value. publish is technically an asynchronous action, because the server response (an "announce" message), needs to come back before we can set values
From the spec: https://github.com/wpilibsuite/allwpilib/blob/main/ntcore/doc/networktables4.adoc#topic-announcement-message-announce

Topic Announcement Message (announce)
The server shall send this message for each of the following conditions:

To all clients subscribed to a matching prefix when a topic is created
To a client in response to an Publish Request Message (publish) from that client

2 options:

refactor to make this a promise and track it's resolution (lot of work)
Queue values, then send when the topic is announced (easier, but kinda masks the problem)

The way I worked around this (and never noticed this issue) was by using a useEffect to setup my topics as publishers. I don't think I published values immediately either.
You could also make it a "publisher" on the robot side, which would mean the topic is already announced when the robot is connected

I'm just curious since I haven't done too much with network tables. Is setting a value not count as announcing?

You're right, the topic is published/announced already
I forgot that NT won't send the announce message unless the client is subscribing or publishing, so this is a client side issue.

So I guess either you would have to make a PR to ntcore-react or the developer would have to update it

I think refactoring the async calls to promises is the best option. Resolve when server ack, reject on timeout? I can try to get to that when I have time (which is not very often), so feel free to look into it or PR. Then we will have to update ntcore-react.
It's more of an issue with my package

https://github.com/cjlawson02/ntcore-ts-client/blob/main/packages/ntcore-ts-client/src/lib/socket/messenger.ts#L249-L253
This print statement says I will queue the value if it isn't announced
https://github.com/cjlawson02/ntcore-ts-client/blob/main/packages/ntcore-ts-client/src/lib/socket/socket.ts#L385-L389
But really I'm only queueing if we aren't connected to the robot.

TODO: either refactor queue, or make publish a promise.
I need to think about this more. Open to opinions

I think using promises for it is definitely the ideal way of doing it. Will probably be awkward for handling backward compatibility/deprecation, but it's probably not the end of the world.

Hey there! I saw there have been some commits on here that seem related to this issue if I am not mistaken? I am wondering if that is a fix for the issues I have been encountered, and if the react library should update to the latest version of ntcore-ts-client

Hey @fisherjacobc you can try https://www.npmjs.com/package/ntcore-ts-client/v/1.0.0-beta.4 but I think I had problems with it. I'm in the middle of finals right now and I'll try to work on this in the next few weeks

Closing this as issues should be fixed with https://www.npmjs.com/package/ntcore-ts-client/v/2.0.0-beta.3
Please comment if this should be reopened

Hey there! I got home and updated to be on 2.0.0-beta.3 and forked ntcore-react and updated to 2.0.0-beta.3 on there as well.
I still am getting the same error with the robot simulation, NT: DISCONNECTED NT4 client 'ntcore-ts-1704678409391@2' (from <IP_ADDRESS>:49256): binary decode error: mpack_error_type
Also, nothing shows up in the devtools console besides the robot disconnecting/reconnecting, but I think those are statements from ntcore-react

Can you confirm you are using the latest WPILib distribution?

Yep, I recently updated the robot sim to be 2024.1.1

I also made sure to have the items published/set when the robot is initialized
/**
   * This function is run when the robot is first started up and should be used
   * for any
   * initialization code.
   */
  @Override
  public void robotInit() {
    NetworkTableInstance inst = NetworkTableInstance.getDefault();
    NetworkTable table = inst.getTable("kilroy");
    IntegerPublisher entry = table.getIntegerTopic("autonomous/mode").publish();
    entry.set(2);
    IntegerPublisher entry2 = table.getIntegerTopic("autonomous/left-right-none").publish();
    entry2.set(1);
  }

Hi @fisherjacobc please try 2.0.0-beta.5

Hi there! I waited until tonight when I could try seeing if it works with a real robot, since that's what really matters. Unfortunately, it didn't. Just kept looping and connecting/disconnecting...
https://github.com/cjlawson02/ntcore-ts-client/assets/72705185/2abcfaa2-e6f7-4516-ad00-1521f89e5829
I will try skipping the whole react thing and just see if I can update the states directly through ntcore-ts-client in just a test folder and see how that goes.

Logically, there should be no way that the issue stems from it being in the react library, but it's definitely worth testing whether it happens with base as well.

@fisherjacobc One thing I did notice after looking at your code is that you're explicity declaring the uri you connect to as roborio-XXXX-frc.local. You realistically shouldn't need to do that and can just get away with using team={"XXXX"} instead. Not really sure if that would affect anything, but it's definitely worth a shot.

Ok so, while just trying to test setting the value, it has some errors of it's own
Error: Server sent no subprotocol
import { NetworkTables, NetworkTablesTypeInfos } from "ntcore-ts-client";

const main = async () => {
  const kilroy = NetworkTables.getInstanceByTeam(339);

  const autonomousMode = kilroy.createTopic<number>(
    "/autonomous/mode",
    NetworkTablesTypeInfos.kInteger
  );
  await autonomousMode.publish();
  autonomousMode.setValue(1);

  setTimeout(() => {
    autonomousMode.setValue(2);
  }, 3000);
};
main();

I will try to take a look this weekend

Not sure if this helps but i'm getting a very similar error trying to connect to a local NetworkTables connection within Vite. I'm using 2.0.0-beta.5.
in App.tsx function (Vite):
const ntcore = NetworkTables.getInstanceByURI('localhost', 1735);

this is code for the local server I'm running with pynetworktables:
from networktables import NetworkTable

server = NetworkTables.initialize()

while True:
    print('ran')
    time.sleep(1)

When I start a client using pynetworktables with the same URI and port, it works fine and I'm able to communicate.
Here are the constant errors I get on the frontend:

This is the constant error I get from pynetworktables in the backend:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_pynetworktables/_impl/network_connection.py", line 268, in _readThreadMain
    handshake_success = self.m_handshake(self, _getMessage, self._sendMessages)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_pynetworktables/_impl/dispatcher.py", line 635, in _serverHandshake
    msg = get_msg()
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_pynetworktables/_impl/network_connection.py", line 256, in _getMessage
    return Message.read(self.m_stream, decoder, self.m_get_entry_type)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_pynetworktables/_impl/message.py", line 153, in read
    raise ValueError("Unrecognized message type %s" % msgtype)
ValueError: Unrecognized message type b'G'

pynetworktables was a NT 3.0 implementation and isn't used with this library. This is a standalone implementation
The error you are getting says that it can't connect to a NetworkTables server running on your local computer (localhost)
The port for NT4.0/4.1 is 5810, so if you're running the simulator locally, you need to change the port. If you are trying to connect to the robot, you need to change "localhost"

@fisherjacobc Do you still have any issues? I think everything should be solved at this point

Maybe, I'm not sure. I think this might be a robot code issue though. Could you provide me a minimal reproducible example on the robot?

you can look at https://github.com/FIRST-TEAM-339/2024Base

Hey there, still encountering the issue. Currently still running on 2023.4.2, also even with the minimal arcade java example completely unmodified (created a new project) I still get the error of  Error: Server sent no subprotocol

hey there, for whatever weird reason, it works perfectly fine if i remove the subprotocols when first trying to connect with the websocket...
will just use that as a patch and see how it goes from there

Thanks for the update. I'll take a look when I get some time

Hi @fisherjacobc is this still an issue with 2024 wpilib?


2dimension connection generator class

I am officially on sick leave so decided to do some fun programming and present you, for comments and improvements:
connection_generation a class to generate synaptic connections between populations of cells positioned on 2d grid points with an optionally periodic border and arbitrary sides.
Pre synaptic cells are drawn with a normal distribution based on the distance.
Weights are normally distributed around a mean with a sd
Delay are min_delay plus a value depending on the distance.
All options are configurable
Synapses are generated by supplying a gid.
The current implementation is build for feature completeness and not performance, although it generates in the order of 1e6 synapses per second (single threaded) on my laptop.
The implementation includes a mini-app and accompanying python script for validation.
Output of the app with the default settings:

Output of the app with command line supplied config files:
populations.dat
250, 40, 1
250, 40, 1
Connectome.dat
0,1,400, 0.02, 20.0, 1.0, 1.0, 1.0
1,0,1000, 0.02, 2.0, 1.0, 1.0, 1.0
gids.dat
,125, 10002,

Todo:

Fix the parsing of gids (ugly comma at the end of the list.)
optimize? Although the majority of the time is expected to be spend in rng.

Can we close this PR?

I think that the request for feedback has been answered. So I will close this.


Sentence updates in ReadMe

sentences in 'Animation Tools', 'Augmented Reality Tools' and 'Collaboration Tools' were a little awkward to read. Made some edits to make things more clear.

@saritchie thanks a lot for your improvements! :)


feat: added primary color custom, change social networks displaying a…

…nd product detail params

bn


Add file named stata_linter.sthlp in package sent for SSC

We received word from the SSC administrator saying that there's a bug in the SSC installation when a package doesn't contain any ado or shlp file that starts with the same letter as the package name. This can be solved by adding a file named stata_linter.sthlp to the package. The following content will redirect it to the help file of linter:
.h lint

It is always hard to change a name once we promoted that name through blogging etc., but would a long term solution be to rename the package to lint?
Even if we do not change this package, this means that in the future we should name the package the same as the main command, right?


[1pt] Create website header with empty nav - Setup (group task)

Download the free image for the app logo.
Create empty navigation (this will be filled in in separate tasks).

Please review this PR and approve merge.
Thanks in advance.


[SCB-627] Client Request Timeout support for operation/schema/service level

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[x] Each commit in the pull request should have a meaningful subject line and body.
[x] Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage increased (+0.06%) to 87.585% when pulling a2c345e82b27581bb6d1d1f7beaed5a45210f602 on maheshrajus:master into fc9c7f40f4d957152a602e68f3be889bf5b8c68f on apache:master.


feat: add codegen wrappers for retries

Issue #
Closes #224
Description of changes
Implements the codegen support and wrappers for retrying all operations. Runtime components were implemented in #487.
This PR includes the first example of replaceable integrations which may be controversial. I chose that to allow a default strategy/policy in smithy-kotlin but allow overriding for specific codegen use cases (like aws-sdk-kotlin). Comments on this approach are welcome.
Scope

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I almost want to just say let's always render a retry strategy and a retry middleware and if you want to not have retries then pass in a "no retry" strategy.

OK, let me see what I can work up.


Proposal: app-specific ngsw-manifest.json path

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request

Currently, to merge user's ngsw-manifest.json and generated one, users must place the file at the next to .angular-cli.json. This is a problem in multiple apps situation.
Proposal
Introduce ngswManifestDir into application settings of .angular-cli.json to configure app-specific ngsw-manifest.json.
{
  "apps": [
    {
      "name": "app1",
      "root": "./src/app1",
      "serviceWorker": true,
      "ngswManifestDir": "src/app1" // => resolved as app's root dir
    }
  ]
}

Thanks

I think it's better to resolve ngsw-manifest.json from its root dir by the default, but it's breaking change.

I'll check on latest because I think maybe https://github.com/angular/angular-cli/commit/220e59dbf4ffd15e75226353b91fc2f03802c522 solves this problem.

It's solved. Now I can put ngsw-manifest.json file into root directory of each apps. Thanks!


AttributeError: module 'numpy.typing' has no attribute 'NDArray'

Hi,
Thanks for great reprository, But sinze last update from today I get
AttributeError: module 'numpy.typing' has no attribute 'NDArray'
Errors in common.py and metrics.py.
Would be great if you could have a look and probably revert. I dont had time so far to dig deeper to find the issue, so just as an first Info.
Thanks
Erik

Great, thanks for fast fix. I could confirm, that's working in my environment again.


Silent failure

I'm not sure what's wrong, but I'm implementing this sdk in a Meteor app, like so:
import { Meteor } from 'meteor/meteor';
import { User } from '../../lib/collections/Users';
import Expo from 'exponent-server-sdk';

Meteor.methods({
  setPushNotificationToken(token) {
    const user = User.findOne(this.userId);
    user.services.pushToken = token;
    user.save();
  },
  // {to, data, title, body, sound, ttl, expiration, priority, badge
  sendPushNotification(notifications) {
    console.log('notifying');
    // To check if something is a push token
    // const isPushToken = Expo.isExponentPushToken(somePushToken);

    // Create a new Expo SDK client
    const expo = new Expo();

    // To send push notifications -- note that there is a limit on the number of
    // notifications you can send at once, use expo.chunkPushNotifications()
    const sendPushNotificationsSync = Meteor.wrapAsync(expo.sendPushNotificationsAsync);
    const receipts = sendPushNotificationsSync(notifications);
    // console.log(receipts);
    return receipts;
  },
});

The token sets correctly, but when I call the sendPushNotification method, I get nothing. No push notifications, no failures, nothing.
This is how I call it (it should log the return value as "res", or any errors as "err"): Meteor.call('sendPushNotification', [{to: 'ExponentPushToken[mytokenid]', message: 'test 12345', title: 'test', sound: 'default'}], (err, res) => console.log(err, res))

What are the receipts you get back? They should specify what the problem is (if there is one).

That's the problem, I don't get a receipt at all

Huh, seems to be some problem with wrapAsync. When I use futures instead, it works fine, thanks!
import { Meteor } from 'meteor/meteor';
import { User } from '../../lib/collections/Users';
import Expo from 'exponent-server-sdk';
import Future from 'fibers/future';

Meteor.methods({
  setPushNotificationToken(token) {
    const user = User.findOne(this.userId);
    user.services.pushToken = token;
    user.save();
  },
  // {to, data, title, body, sound, ttl, expiration, priority, badge
  sendPushNotification(notifications) {
    const future = new Future();

    const expo = new Expo();

    expo.sendPushNotificationsAsync(notifications).then((result) => future.return(result));
    console.log(future.wait());
    return future.wait();
  },
});


feat(account): update email

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


Karabiner-Elements crash

Hi,
My Karabiner-Elements crashed whenever I launched it (an "Internal Error" windows prompted). It was working initially but after I download the karabiner.json example and made some changes, then it crashed. I tried uninstalled, reinstalled and deleted the json file but nothing works.
One question, in order to have the keyboard mapping work, do I need to uninstall the original "Karabiner"? Do I need to open "Karabiner-Elements" everytime (which I cant open now)?
Please help.

Duplicate of #69
Try deleting the log file, execute this command in the Terminal.app:
rm ~/.karabiner.d/log/console_user_server_log.txt

Hi a-triant, thanks. It solved the problem.
However, I still not getting the key mapping to works, below is the content of my karabiner.json:
{
"profiles": {
{
"name": "Default profile",
"selected": true,
"simple_modifications": {
"left_control": "left_command”,
"left_command”: "left_control”,
“right_command”: “Home”,
“right_option”: “end”
}
}
}
}

Hi anyone can help? I still don't get my key mapping to work :-(
do I need to uninstall the original "Karabiner"? Do I need to open "Karabiner-Elements" everytime (which I cant open now)?

@mox418 First delete your configuration file. Second use a code editor like Atom or Visual Studio Code or TextMate to edit your configuration.
Copy and paste following content
{
    "profiles": [
        {
            "name": "Default profile",
            "selected": true,
            "simple_modifications": {
                        "left_control": "left_command",
                        "left_command": "left_control",
                        "right_command": "home",
                        "right_option": "end"
            }
        }
    ]
}

@talha131 thanks. it works.


AWS Beanstalk Docker + Drill database + S3

Hi and many thanks for yoy work!!
I would know if is it possible to install webspoon on aws interaction with Drill database and S3 ? I already install webspoon with Beanstalk and it's works but I don't know how I can connect Drill and S3 with this container. Any idea?
My second question is: how I can secure the webspoon website access with credentials?
Many thanks

It should be possible for webSpoon to work with Drill and S3.
Please refer to here for Drill and there for S3.
Basically, you have to install the JDBC driver for Drill at $CATALINA_HOME/lib and the credential for S3 at /root/.aws of the container.
There are many ways to secure webSpoon by user authentication.
One easy way is described here.
In either case (JDBC, S3, and user-auth), you have to make changes to the deployed container.
It is fine during a development phase, but I'd suggest you to create your own custom container image yourself then deploy it to the cloud.
To create a custom image, you have to create your own Dockerfile.

Hi Hiromu,
Many thanks for your answer. I think it's too complicated for me to create my own Dockerfile.
I would need a more detailed tutorial to successfully build my image... For authentication on the webspoon application I can put only one credentials that just 3 people will use, and do not deploy an LDAP or other that is too complicated for me.
Concretely, I need to create a Dockerfile into a custom image on DockerHub and after modify your Dockerrun.aws.json with my image name inside, right ?
Could you please help me for creating the Image and Dockerfile integrating webSpoon with JDBC driver for Drill and to use the Docker image with AWS Beanstalk?
Many thanks.

I can help you creating your Dockerfile, but you have to understand how it works.

Concretely, I need to create a Dockerfile into a custom image on DockerHub and after modify your Dockerrun.aws.json with my image name inside, right ?

Basically yes, but not exactly correct. What you need to do:

Create your own Dockerfile
Build a image based on this Dockerfile
Upload this image to a place that AWS can access: e.g., DockerHub, but could be your (private) Amazon ECR Repositories
Modify Dockerrun.aws.json to point to your own, uploaded image

COPY failed: stat /var/lib/docker/tmp/docker-builder257350670/drill/jars/jdbc-driver/drill-jdbc-all-1.14.0.jar: no such file or directory

This should fail, because COPY copies a file/directory from the Docker host to the Docker container (image), but the host does not have that file (remember that RUN executes things locally in the container(image)).
Instead, you should use RUN cp $HOME/drill/jars/jdbc-driver/drill-jdbc-all-1.14.0.jar $CATALINA_HOME/lib
For your webSpoon user-auth, download web.xml and security.xml to your host's current directory where Dockerfile resides.
Edit them according to here, and finally add these lines to your Dockerfile
COPY web.xml $CATALINA_HOME/webapps/spoon/WEB-INF/web.xml
COPY security.xml $CATALINA_HOME/webapps/spoon/WEB-INF/spring/security.xml

More specifically, edit security.xml at the following line to change the user/password.
You can add multiple lines for different users if you want.
<user name="user" password="password" authorities="ROLE_USER" />

Thanks, my image works with user-auth!!
I don't understand 2 points:

how I can run Drill and webspoon in the same container with the right pre-configuration,
connect my s3 bucket to drill and webspoon.
I explain me: we use webspoon to transform a .tbl file to .parquet file and after to a .csv file with data choosen by a .ktr template. The .tbl origin file is on the s3 bucket, and how I can build a new .parquet and .csv file with the transformation directly on S3? Is it possible?

Many thanks

how I can run Drill and webspoon in the same container with the right pre-configuration,

You can 1. install Drill in the same container as webSpoon, or 2. deploy a Drill instance separately and let webSpoon connect to this Drill instance. I'd recommend the latter option as a rule of thumb.

connect my s3 bucket to drill and webspoon

The .tbl origin file is on the s3 bucket, and how I can build a new .parquet and .csv file with the transformation directly on S3? Is it possible?

It sounds like a question for PDI/Spoon not for webSpoon.
Does your current ktr (S3, Drill, etc.) on Spoon? If yes, it should work on webSpoon too.


Activefacts doesn't work if ruby is installed under $HOME

Most ruby version managers eg rvm and rbenv install ruby under $HOME, which breaks cql compiler
[kirillvr@yao bin]$ ./cql
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Using work area gems in /home/kirillvr/250/lib/ruby/gems/2.5.0/gems from activefacts
The path `/home/kirillvr/250/lib/ruby/gems/2.5.0/gems/api` does not exist.

on a good note, looks like schema_compositor doesn't have same issue

I have no idea where this error message is coming from. Nothing in CQL makes reference to git, so why is git complaining?

i think its the code in Gemfile that tries to detect work area gems

I can see why this is a problem, but not why it calls git?
if this_file =~ %r{\A#{ENV['HOME']}}i and !ENV['USE_INSTALLED']

maybe bundler calls git with that path, and git throws that error

My gemfiles use gemspec, and the gemspec files use git ls-files so perhaps that's it. But I've never had a problem with that before, including with version managers installing gems under $HOME


Add documentation to install cap using spack.

Current coverage is 93.34% (diff: 100%)

Merging #217 into master will not change coverage

@@             master       #217   diff @@
==========================================
  Files            72         72
  Lines          4761       4761
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           4444       4444
  Misses          317        317
  Partials          0          0

Powered by Codecov. Last update 62b066b...34bb4a9


Updated mustache.js to current version

This fixes an issue with encoding Back Slashes

Thanks! Pulled.


Removed script that is no longer used since #228

Description
Removes a script that is no longer used as part of the build process for generating a JSON file of contributors to the project. This is now handle in getStaticProps for the contributors page.
https://github.com/drewclem/protege/blob/59c6fc84cf4a2fb884d11bab01e7848c96d67903/pages/contributors.js#L44-L80
and it gets called here
https://github.com/drewclem/protege/blob/59c6fc84cf4a2fb884d11bab01e7848c96d67903/pages/contributors.js#L168-L176
Related Tickets & Documents
#228
[optional] What gif best describes this PR or how it makes you feel?

👾 Solid work @nickytonline !!


Advanced Routing based on http header

Hi Team,
I have a use-case where I would like to do routing based on the http header referer field.
Is this supported in aws-alb-ingress-controller?

new V1.1.5 release supports such use case :D
https://github.com/kubernetes-sigs/aws-alb-ingress-controller/releases/tag/v1.1.5


SASS-868 - Converted view unit tests into integration tests with cont…

…ent assertions
Description
Please include a brief summary of the change you've made and the issue that it fixes.
Add a link to the relevant story in Jira
[SASS-CHANGE-ME](ADD URL HERE)
Checklist PR Reviewer
Before Reviewing

[x]  Have you pulled the branch down?
[x]  Have you assigned yourself to the PR?
[x]  Have you moved the task to “in review” on JIRA?
[ ]  Have you checked to ensure all dependencies are up to date?

Whilst Reviewing

[x]  Have you run the tests?

[x]  Have you looked at the JIRA story to make sure all Acceptance Criteria has been met?

After Reviewing

[ ]  Have you checked for merge conflicts?
[ ]  Have you checked to make sure there are no builds in the pipeline before you merge?
[ ]  Have you moved the task to “in pipeline” on Jira?

[x]  Have you addressed warnings where appropriate?

After PRs been Reviewed

[ ]  Have you checked the PR Builder passes?
[ ]  Have you checked for merge conflicts?
[ ]  Have you checked code coverage isn’t lower than previously?

can update dependencies as well


Add github actions

Incrementally adds Github Actions to repo. See tab Checks for details.

Thanks for promptly taking this one, Ryan :)

[ ] Tests are passing
[ ] Tests run against Node versions 8, 10, 12 and 13
[ ] Travis runner didn't have lint task, and you added
[ ] Coverage report is OK


Can error check connection - iqonic 5 2023

Describe the bug
I installed openpilot and commia 3 and I get the message "Can error check connection" when I turn on my car. Nothing seems to work. I have tried turning the USB cable around.
Which car does this affect?
Hyundai iqonic 5 2023
Provide a route where the issue occurs
2fa352365f86a9b2|2024-05-04--16-17-56
openpilot version
0.9.6
Additional info
No response

Can you try this branch? The bus structure looks like an HDA 2 variant, do you know if they market HDA and HDA 2 in your region? And which do you have?
https://installer.comma.ai/commaai/ioniq-5-fix

@sshane thank you for the quick replay. I have a UK 2023 Ioniq. After digging around I read that I probably don't have HDA2. (from this post https://www.reddit.com/r/Ioniq5/comments/1bcwf16/hda_15_on_a_top_spec_2023/) I might have HDA "1.5". But I have not figured out how to tell exactly.

As for ADAS Features i think I have

Driving Convenience
Forward Safety
DAW
Parking Safety
Blind-spot Safety

I believe you ordered the Hyundai Q harness which is meant for HDA2 vehicles, but your bus structure looks to be more similar to HDA. You will want to contact support or open a return to get the Hyundai K harness that is meant for non-HDA2 variants.
Once you have that harness, the missing camera message isn't a requirement as that's only for HDA2.
As an alternate option (and at your own risk), some community members have swapped the wires for CAN 1 and CAN 2 so you won't need to return the harness. See the diagrams for both:
https://github.com/commaai/neo/blob/master/car_harness/Sonata_Harness.sch.pdf
https://github.com/commaai/neo/blob/master/car_harness/EV6_Harness.sch.pdf


how' can i download the dataset

I am a newbie, how can I download the whole dataset?It is only possible to download sample data using kaggle competitions download-c two-sigma-financial news

The API only permits downloading the same data that is available on the data tab of the competition (https://www.kaggle.com/c/two-sigma-financial-news/data).  For some competitions like Two Sigma, we do not make the full dataset downloadable, since the intent is that the data is accessed and analyzed in the Kaggle Kernels environment.


Provide a full implementation for the IEncryptionProvider that works for all platforms

Note: for support questions, please ask on StackOverflow: https://stackoverflow.com/questions/tagged/Akavache . This repository's issues are reserved for feature requests and bug reports.
Do you want to request a feature or report a bug?
Currently the IEncryptedProvider is only implemented on Windows Apps and not on any of the other platforms. All of the other platforms just pass the data through without encrypting it and leave it up to the user to provide an implementation.   Now with a much larger API landscape there should be a useful way to implement this into the library.
What is the current behavior?
Data is only encrypted on windows everywhere else it's just passed through
What is the expected behavior?
To provide an encryption implementation for all platforms
What is the motivation / use case for changing the behavior?
A handful of issues have popped up as of late with people having issues implementation Secure Blob Cache. Also the lack of encryption right now isn't very apparent unless you dive into the code and see it's not actually encrypting anything..
Other information (e.g. stacktraces, related issues, suggestions how to fix)
http://kent-boogaart.com/blog/password-protected-encryption-provider-for-akavache
I'm not really an expert on encryption or best practices so I'm all ears on this one on the best way to provide this implementation.
Best way to roll this out? For people who have been using Secure Cache we don't want that data to all of a sudden just stop working with a release so does this need to be opt in or configurable? For example just leave the shim in place and provide a secure implementation they can opt in for
Is implementing this inside Akavache out of scope? Encryption is an ever changing landscape so not sure if this will cause the library to take on too much responsibility staying current on encryption while staying compatible through upgrades.  For example on the ASP.net core side of things just updating the version on your DataProtection libraries causes all of your encryption keys to invalidate.  Not that that's completely relevant but more just a story of how encryption is a fickle friend.
I tested Kent's code from his blog and it indeed compiles for netstandard2.0 but it doesn't compile for netstandard1.6 so if we wanted to use that we'd have to just up everything to netstandard2.0 or provide both?

https://github.com/akavache/Akavache/issues/190

Any progress on these issues?


Add check for pinned articles limit

Hey! Based on the feedback from #942, this PR adds a new condition that makes sure there aren't already 4 pinned articles before attempting to pin one.
Hopefully, I've done this in the way you were expecting. But if there's anything you might want me to change, give me a shout and I'll get it changed ASAP 😄
Here's a screenshot showing the message that would appear when pressing the 'pin article' button if there are already 4 or more pinned articles:

Wondering if we simply can't unpin the oldest pinned article instead?

Feel free 👍

I think I've managed to get this bit working 🤞
What I've written makes the assumption that there are only 4 pinned articles in the database at the moment though. So I don't think it'd unpin all the extra pinned articles that are in the database at the moment. I'm guessing you could quickly go through them and unpin the extra ones when this PR is merged (or something like that)?
Hopefully, this is okay?

Hi all, I did end up adopting the solution from @ash-jc-allen's original PR. The reason for this is that if we now unpin an article only three would show up. It's also better to historical know which articles were pinned.
@ash-jc-allen sorry it took this long to merge this. Your articles should now be appearing in the list again.

Hey @driesvints, it's no problem at all! Glad I could help 😄


Mutators

Jira-Issue: GER-32

[x] Basic Framework (so storing and accessing)
[ ] Functionality Pt. 1

[x] HARDENED_STONE
[x] LESS_ORE
[x] MORE_STONE
[ ] SPEED_UP
[ ] SPEED_DOWN

[ ] Merge
[ ] Functionality Pt. 2

[ ] SPAWN_PLUS
[ ] DAMAGE_PLUS
[ ] HEALTH_PLUS

[ ] Menu-Integration

Functionality of the enemy-mutators has been put in a separate check as we probably need other branches to be merged as well to properly implement them

Potentially Speed_Up/Down for SpiderBoss too?
(net-shot)


[Feature Request] Customize datatable's export button

Feature Request
So, I want to modify the template for the datatable's export button.
What's the feature you think Backpack should have?

Add more operation settings for datatable (caption, custom title, custom footer, etc)

Have you already implemented a prototype solution, for your own project?

It's possible when editing the src\resources\views\crud\inc\datatables_logic.blade.php

Example:

Code$('#crudTable').append('<caption class="text-center" style="caption-side: bottom">A fictional company\'s staff table.</caption>');

Results
List view:

Print view:

Thanks for the idea @vonsogt . I'll move it to ideas since that's where it fits best, I think. We're starting to keep Backpack/CRUD issues for bugs & PRs only - let's see how that goes.
That being said:

on the one hand, I'm reluctant in adding more features on top of DataTables since it already has SO MANY features;
on the other hand, a footer would be something really cool; personally I'd like that for a TOTAL or something like that; I currently use the after_content stack and push widgets there;

I guess we could add a few more blade view stacks in this view. So that people are able to easily push content into different areas using Widgets. For example:

before_filters
after_filters
before_table
after_table
before_pagination
after_pagination

That should allow a pretty high degree of customization, I think. Let's leave this issue open and ask for feedback, see what others have to think about it.
Cheers!


dev to main sync

Developer Name: @shritis98
PR Number(s):

https://github.com/Real-Dev-Squad/website-dashboard/pull/583

Backend changes

[ ] Yes
[x] No

Frontend Changes

[x] Yes
[ ] No

Database changes

[ ] Yes
[x] No

Breaking changes (If your feature is breaking/missing something please mention pending tickets)

[x] No
[ ] Yes

Deployment notes(Any special instructions for the deployment)

[x] No

Tested in staging

[x] Yes
[ ] No

Media to show changes-
https://github.com/Real-Dev-Squad/website-dashboard/assets/140648846/e8336cb8-6d79-447c-bd98-ae2bbf9ce9b5

Developer Name: Joy Gupta
PR Number(s): 581
Issue Ticket Number:

https://github.com/Real-Dev-Squad/website-dashboard/issues/494

Backend Changes

[ ] Yes
[x] No

Frontend Changes

[x] Yes
[ ] No

Is Under Feature Flag

[x] Yes
[ ] No

Database changes:

[ ] Yes
[x] No

Breaking changes (If your feature is breaking/missing something please mention pending tickets):

[ ] Yes
[x] No

Deployment notes:
Please make sure the following composite index has been created in prod database : IssueLink

Tested in staging

[x] Yes
[ ] No

List of PRs going in this Sync

https://github.com/Real-Dev-Squad/website-backend/pull/1618

Proposal Doc

https://docs.google.com/document/d/1sf-BAs7C6wmfjRVS-82X492hcb_7jAfIM-7pWtizuXE/edit

QA Instructions, Screenshots, Recordings
1. Edit log must be generated when a super user updates the extension request under the dev flag

2. Should be backward compatible

3. Logs should not be visible outside the dev mode


Load source maps in mergebot

To aid in debugging crashes.

Alternatively we can set languageWorkers__node__arguments=--enable-source-maps on Azure.

I tried setting:
--source-root=https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/main/packages/mergebot/dist

Per https://esbuild.github.io/api/#source-root, but that doesn't work with source-map-support, only with Node's --enable-source-maps. Hmmm.


[5.5] fix report helper

I has 2 changes in this pull request for the report helper.

Fix the doc @param.
Let's the way the helper is used (see function rescue below), it should receives a Throwable implementation instead of just Exception instance.

function rescue(callable $callback, $rescue = null)
{
    try {
        return $callback();
    } catch (Throwable $e) {
        report($e);

        return value($rescue);
    }
}

Remove unnecessary comparison "$exception instanceof Throwable"
There are two reasons to do this.

The report helper should only receive a Throwable implementation, isn't it?
If you pass invalid parameter, the FatalThrowableError will check it for you. FatalThrowableError.php

public function __construct(\Throwable $e)
{
    $this->originalClassName = \get_class($e);
    if ($e instanceof \ParseError) {
        $severity = E_PARSE;
    } elseif ($e instanceof \TypeError) {
        $severity = E_RECOVERABLE_ERROR;
    } else {
        $severity = E_ERROR;
    }
    \ErrorException::__construct(
        $e->getMessage(),
        $e->getCode(),
        $severity,
        $e->getFile(),
        $e->getLine(),
        $e->getPrevious()
    );
    $this->setTrace($e->getTrace());
}

Anyway, the interface \Throwable that has been used since php v7 that contains both Error and Exception. I suggest using parameter or variable "$e" for the the context that may throw a Throwable implementation because I think "$e" means "$exception" or "$error".

I could understand why the CI is failed and unstable. This pull request doesn't break any changes.

Not changing this on a LTS release.


Ensure Summary::checksum works for registry crates

While not actually used in Cargo itself the Summary::checksum method
of downloaded packages from the registry currently returns None. This
was accidentally regressed in #6500 and noticed when updating
cargo-vendor (it took a long time to get around to updating that).
The fix here is to override the checksum field of the summary for
packages we return from the registry, and everything else should remain
the same!

r? @nrc
(rust_highfive has picked a reviewer for you, use r? to override)

r? @ehuss

@bors r+

:pushpin: Commit 014ef2e46010f31dcd8347e6c8027bf16da37382 has been approved by ehuss

:hourglass: Testing commit 014ef2e46010f31dcd8347e6c8027bf16da37382 with merge 2510c0cd7bfc902dd318d1cce60ed46bf6ff4ece...

:sunny: Test successful - checks-travis, status-appveyor
Approved by: ehuss
Pushing 2510c0cd7bfc902dd318d1cce60ed46bf6ff4ece to master...


Task generateTests reports Defaulting to no-operation (NOP) logger implementation

Version of MarkLogic Java Client API : develop branch
Version of MarkLogic Server: 9.0 nightly build (06/12/2018)
Java version : 1.8
OS and version : Windows
Input:  /gradlew generateTests
Actual output:
$ ./gradlew generateTests
:marklogic-client-api:compileJavaPOM relocation to an other version number is not fully supported in Gradle : xml-apis:xml-apis:2.0.2 relocated to xml-apis:xml-apis:1.0.b2.

Please update your dependency to directly use the correct version 'xml-apis:xml-apis:1.0.b2'.
Resolution will only pick dependencies of the relocated element.  Artifacts and other metadata will be ignored.
:marklogic-client-api:compileJava UP-TO-DATE
:marklogic-client-api:processResources UP-TO-DATE
:marklogic-client-api:classes UP-TO-DATE
:marklogic-client-api:jar UP-TO-DATE
:marklogic-development-tools:compileKotlin UP-TO-DATE
:marklogic-development-tools:compileJava NO-SOURCE
:marklogic-development-tools:processResources UP-TO-DATE
:marklogic-development-tools:classes UP-TO-DATE
:marklogic-development-tools:compileTestKotlin UP-TO-DATE
:marklogic-development-tools:compileTestJava UP-TO-DATE
:marklogic-development-tools:processTestResources UP-TO-DATE
:marklogic-development-tools:testClasses UP-TO-DATE
:marklogic-development-tools:setupTestServerSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

:marklogic-development-tools:generateTestsSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

BUILD SUCCESSFUL in 21s
10 actionable tasks: 2 executed, 8 up-to-date
$

Expected output: Rest App Server created and tests to be running (when gradlew test is issued)
Alternatives:

The Gradle file for the tests could certainly provide a non-NOP logger.  Is the individual logging output useful?  We know whether the test suite succeeded or not based on the final statement.

Per the comment above, I believe that we agreed in conversation that the tests don't have to log.
If that's correct, please close this bug.  If QA requires the logging, please assign the bug back to me.


[Fix #12140] Add new Style/CombinableDefined cop

Detects instances of &&ed defined? calls that are redundant and can be combined.
# bad
defined?(Foo) && defined?(Foo::Bar) && defined?(Foo::Bar::Baz)

# good
defined?(Foo::Bar::Baz)

# bad
defined?(foo) && defined?(foo.bar) && defined?(foo.bar.baz)

# good
defined?(foo.bar.baz)

Fixes #12140.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Should we also add a spec for when those happen out of order? (e.g. defined?(Foo::Bar) && defined?(Foo) )

@bbatsov: Should we also add a spec for when those happen out of order? (e.g. defined?(Foo::Bar) && defined?(Foo) )

Definitely. I'm expecting that isn't likely to be written but if it is the cop should work.

@koic @bbatsov @Earlopain thank you for the review. I have addressed all the raised points now.
I also realized that we need to handle using the and operator, so that is covered now as well.

Great work!


Update LICENSE

Use correct version of MIT license.

@nmiyake what happened? still want to merge this?

Hey sorry yup am planning to merge this, but will open another PR to do so. Was just testing the CLI I wrote that automatically checks the license and forks + opens a PR if it detects a difference — was testing the case where it runs on a repo where the credentialed user is not an owner, so I had to pick a project that wasn't my own to test against, and this just happened to be the one I chose :). The repo was helpful to catch a few bugs in the PR case — going to touch up a few things and then run for real. Thanks, and sorry for the noise!


Unable to run powershell install for kvm

I execute the command below with an error:
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object
net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
The splatting operator '@' cannot be used to reference variables in an expression. '@powershell' can be used only as an
argument to a command. To reference variables in an expression use '$powershell'.
At line:1 char:12

@powershell <<<<  -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).
DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

CategoryInfo          : ParserError: (powershell:String) [], ParentContainsErrorRecordException
FullyQualifiedErrorId : SplattingNotPermitted

This is under a PowerShell Administrative Console on Windows 7. Ideas?

If you're already in powershell, you can remove the @powershell -NoProfile -ExecutionPolicy unrestricted -Command " (as well as the trailing "). That's there for if you're executing in command prompt and it's telling it to execute powershell with the -NoProfile -ExecutionPolicy unrestricted flags.
So you're want to be running &{$Branch='dev';iex ((new-object  net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}

:-1:   The "@" should NOT be there. If you remove that, the command would work in either PowerShell or CMD.  Although frankly, I don't understand why you don't just put a PS3 version on there:
$Branch='dev'; iex (irm https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1)

@Jaykul Oh. I thought that calling powershell inside a powershell window was irrelevant as it just initialised itself inside the window. Is it just beneficial as you can pass in the -NoProfile -ExecutionPolicy arguments? I'll edit my answer to remove the misinformation regardless.

You can call PowerShell inside a PowerShell window, you just can't use "@" because that's the "ECHO OFF" character from DOS.....
And yes, in that case, the only (dubious) value is those two switches.  The -NoProfile script might let you side-step problems (e.g., if my profile script overwrites built-in commands you require), but I don't think that possibility makes it worth requiring a restart to get the environment variable changes (see #413). I don't think it's worth having except as a troubleshooting addendum.
The -ExecutionPolicy switch, on the other hand, is completely irrelevant since we won't be executing a script: using Invoke-Expression (iex) bypasses the execution policy, and although the install script needs to call dnvm setup, it should just Set-ExecutionPolicy Unrestricted -Scope Process within the dnvminstall.ps1 script before it calls the other script.

https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1 this url its not exist anymore
404 - Not found!!

This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.


Fix device selction

CI MESSAGE: [13348388]: BUILD STARTED

CI MESSAGE: [13348388]: BUILD FAILED

CI MESSAGE: [13366335]: BUILD STARTED

CI MESSAGE: [13366335]: BUILD FAILED

CI MESSAGE: [13422022]: BUILD STARTED

CI MESSAGE: [13422022]: BUILD FAILED

CI MESSAGE: [13424795]: BUILD STARTED

CI MESSAGE: [13424901]: BUILD STARTED

CI MESSAGE: [13424795]: BUILD PASSED

CI MESSAGE: [13424901]: BUILD PASSED


Visual Script construct node

Not complete yet but,
This should fix https://github.com/godotengine/godot/issues/9067

Can you run clang-format? There are some errors.

Instance should also add the entries to the list.

@swarnimarun  Is this still desired? If so, it needs to be rebased on the latest master branch. Also, the above feedback should be addressed. Also, since this PR is a feature proposal, you should consider opening a proposal which explains example use cases and how this approach will solve the problem.
Otherwise, abandoned pull requests will be closed in the future as announced here.

I think this should be closed as I may not have time before finishing up on all the bugs to get to this.
And it pretty much needs a rewrite as per the new idea for implementation that I now have. So closing.


Cannot hyphenate a single word

Expected: "Ot^to"
Actual: "Otto"
use \Org\Heigl\Hyphenator as Hy;
$hy = new Hy\Hyphenator();
$op = new Hy\Options();
$op->setHyphen('^')
->setDefaultLocale('de_DE')
->setRightMin(2)
->setLeftMin(2)
->setWordMin(4)
->setFilters('Simple')
->setTokenizers('Punctuation','Whitespace')
;
$hy->setOptions($op);
var_dump($hy->hyphenate('Otto'));

OK. I know why it happens and it looks like I need to change that…
To fix the issue add a space after the name and hyphenate "Otto " instead of "Otto".
The background is, that the lib was originally intended to hyphenate a complete text  at every possible position using the "SimpleFilter" (like "Sau-er-stoff") or to hyphenate a single word using the "NonDefaultFilter" and return all possible options containing one hyphen like ["Sau-erstoff", "Sauer-stoff"]. You want to combine those two and that fails. By adding a space the hyphenator sees this as a complete text and returns the appropriately hyphenated stuff.

I agree that this should be changed. It's rather confusing that the Hyphenator::hyphenate() method sometimes returns an array with hyphenation options instead of a hyphenated string.
Note that this only occurs when you don't use the default filter config, because it adds two filters (one being a basically a no-op (CustomMarkupFilter), that acts only as a prevention for the array return case, I think).
If you just use the SimpleFilter, like @daberlin, and try to hyphenate a single word, you'll always get an array with a single item that matches your input as a result. This is because it's initialized in the constructor (of Token) like this and never changed (because the SimpleFilter only calls Token::setFilteredContent() with the hyphenated string, which is ignored by Hyphenator::hyphenate() in this case.
So to get the hyphenation options for a single word you must use the NonStandardFilter only, which will call Token::setHyphenatedContent() and sets the array with the options.


fix /var/crash filling causing slurm node drain

Determine what is causing /var/crash to fill and causing nodes to drop from slurm into draining.

looking through crash dumps to find a cause

seems the best way to go through the dump files is to use gdb or a similar tool. will try this out today and see if I can get a handle on cause.
Obviously these are slurm jobs crashing so determining which functions are dumping their stack/core doesn't matter- finding out why slurm puts them there does.
Two options so far:

We could set the OS to not allow  core dumps. but running ulimit -c 0
We could add a prolog script for slurm.conf that runs that command before each job is run.

Question is- do we care about these dumps more than a node going out of the cluster?

Weka system dump systems- put in a ticket:
https://support.weka.io

this has been happening less and less- i'm waiting for another host to drain without us causing it.

https://support.weka.io/s/case/500Qr000002p2t5IAA/varcrash-filling-and-dropping-nodes-from-compute-cluster


Add Metadata recorded_date field.

Checklist

[X] I'm requesting a feature unrelated to a specific site
[X] I've looked through the README
[X] I've verified that I'm running yt-dlp version 2022.05.18 (update instructions) or later (specify commit)
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
Recorded_date is a fairly common metadata field that isn't being picked up by yt-dlp. It has many uses for accurate recordkeeping over upload_date. Often times something will be listed as occurring on the start time of an event but with a longer event the duration will carry it into a new days date, which can then lead to upload_date being one day off. It sounds simple but once you start seeing it, you see it everywhere.
Verbose log
No response

Give examples


v2.9.4 - creating new Nano S wallet fails - QT4

The btchip library provided by ledger uses QT4, electron cash has switched to QT5.
We make use of dialogs provided by btchip to create a wallet linked to a Nano S.
Issue originally reported in the thread #149 but the cause is different from the first report of #149, so ive created this one.

One comment from #149, but note that there is other discussion in that thread.
Traceback (most recent call last):
  File "/home/user/Projects/electroncash/lib/plugins.py", line 150, in get_hardware_support
    p = self.get_plugin(name)
  File "/home/user/Projects/electroncash/lib/plugins.py", line 178, in get_plugin
    self.load_plugin(name)
  File "/home/user/Projects/electroncash/lib/plugins.py", line 102, in load_plugin
    p = loader.load_module(full_name)
  File "/usr/lib64/python2.7/pkgutil.py", line 246, in load_module
    mod = imp.load_module(fullname, self.file, self.filename, self.etc)
  File "/home/user/Projects/electroncash/plugins/ledger/qt.py", line 12, in <module>
    from btchip.btchipPersoWizard import StartBTChipPersoDialog
  File "/usr/lib/python2.7/site-packages/btchip/btchipPersoWizard.py", line 23, in <module>
    from PyQt4.QtGui import QDialog, QMessageBox
ImportError: cannot import name QDialog

Looks like the python2 btchip depends on QT4, we've moved to QT5. This problem will be present on Mac and Linux, not Windows.

Assuming we go forward with QT5, I think the "correct" thing to do, from an open source perspective, is to fork btchip, update for QT5, and submit the changes back to the btchip owners for inclusion in their library. However, this does not help us immediately, so we can do this but also adjust Electron Cash to use the forked btchip, until btchip updates for QT5 (whether they use our suggestion or something else).

Thanks for opening this new ticket and submitting the patch to btchip. If you have any steps to follow to use the patched branch, it’d be good to post here for others, too.
Seeing as the PR in btchip to upgrade to Qt5 may also result in breaking changes for downstream dependencies (like Electrum), I’m not sure how quickly we can expect them to be merged. In the meantime, we should try to unblock users who have BCH funds in Ledger hardware wallets.
I’m still curious why we upgraded to Qt5. It seems like at this stage we should try to follow Electrum closely so we can incorporate changes wholesale and vice-versa. With that in mind, it seems like a simpler process change to simply rollback the upgrade to Qt5 because that is something we control and brings us into closer alignment with Electrum. What do you think?

Some clarification:

we are upgrading to Qt5 in the development version (cash branch)
the 2.9.4 release still uses Qt4 (pyqt4 branch)
Electrum has upgraded to Qt5 and Python 3 - the code of Electrum and Electron Cash has diverged significantly

This issue affects the development version only.
There is a bigger issue with support for the ledger devices #153 which is not addressed by this issue.

@Danconnolly: Looks like this issue is fixed in v3.0 for Linux.


Add support for Ollama

I have Ollama instance set up on an external server and think it would be a great, easy fit for this type of add-on if I could hook it in. Opens up use of many more models with better hardware, if the GM has access, IMO

So maybe a clearly defined interace to an external model could solve this.
I don't know if we can bulild this as an "easy to use for everyone" solution but could provide an interface which connects to some external model via a few lines of code.

Yup, pretty much what I was thinking; shouldn't need much, as Ollama exposes an OpenAI compatible endpoint.
From https://ollama.com/blog/openai-compatibility:
import OpenAI from 'openai'

const openai = new OpenAI({
  baseURL: 'http://localhost:11434/v1/',

  // required but ignored
  apiKey: 'ollama',
})

const chatCompletion = await openai.chat.completions.create({
  messages: [{ role: 'user', content: 'Say this is a test' }],
  model: 'llama3',
})

Ah I see. Going for a fork right now was also what I would have suggested. I should be enough to change openai-api, as you did.
What is the error you get? Or how does your response look like?

Ah I see. Going for a fork right now was also what I would have suggested. I should be enough to change openai-api, as you did.
What is the error you get? Or how does your response look like?


feat(api-reference): RequestExample embed

This PR adds a standalone RequestExample Vue component.
This and all future components will need to dereference the OpenAPI document. We probably don’t want to do this in every embed, so I’ve also embed an OpenApiDocument which does the data wrangling and can then be used by one or multiple instances of the ExampleRequest component.
In order to bring this to life, the components need to be really encapsulated, so I’ve had to move some code. I think that’s a great way to improve our code quality. :)
Supports the relevant parts of the configuration: proxy, spec, hiddenClients, defaultHttpClient, baseServerUrl, servers, authentication.
Usage
Note: While this PR adds the embeds, it doesn’t expose them yet. Let’s polish them a little bite more before making them available to everyone. :)
<script setup>
// TODO: The package doesn’t have this entrypoint yet.
import { OpenApiDocument, ExampleRequest } from '@scalar/api-reference/embeds'
</script>

<template>
  <OpenApiDocument
    v-slot="{ configuration, parsedSpec }"
    :configuration="{
      proxy: 'https://proxy.scalar.com',
      spec: {
        url<EMAIL_ADDRESS>      }
    }">

    <ExampleRequest
      :configuration="configuration"
      :operation="parsedSpec.tags?.[1]?.operations?.[1]"
      :parsedSpec="parsedSpec" />

  </OpenApiDocument>
</template>

Playground
cd packages/api-reference
pnpm playground:embed

Preview

@hanspagel I think the approach around OpenApiDocument needs to be discussed a bit more. Looking at this the plan looks to be using it in third party consumers to provision specs for different types of embedded components.
I think we can do this better with a hook that exposes both the Vue reactive objects and an event based system that would be easier to interface with in other applications.
// Usage anywhere in the app.
const { configuration, parsedSpec, addSpec  } = useOASDocument({
  key: 'some-spec-id',
  /** Event based interface for non-vue frameworks. */
  onSpecChange: (spec) => console.log(spec),
})

// Function used to add a spec to the app using a namespaced key
// This allows a spec to be uploaded/parsed once and referenced everywhere using the same key
addSpec({
  key: 'some-spec-id',
    ...baseConfig,
})

With your above point about tidying up the code by keeping code encapsulated I think this could help a lot with writing broader parts of the reference codebase as we can just provide a key to components and they can call useOASDocument() internally to get the data they need.

True. It was just slightly easier/faster to move the code from a component to another component and I wanted it to be hidden, but merged before I’m OOO. Anyway, I’ll rebase and add to the PR. ✌

Cool! I’ll merge this and take over the responsibility to further improve the implementation according to @geoffgscott’s feedback. 🤝


PROMPT FOR INFORMATION

PROMPT FOR INFORMATION
Acceptance Criteria
GIVEN a command-line application that accepts user input
WHEN I am prompted for information about my application repository
THEN a high-quality, professional README.md is generated with the title of my project and sections entitled Description, Table of Contents, Installation, Usage, License, Contributing, Tests, and Questions

Command line creates prompt


http module breaks

hi @mvayngrib
Currently i am experiencing a problem. Normally nodeifying was working pretty good, but however after the latest web3-core update, (web3.js 1.0.0-beta.35, see breaking change: The HTTP provider now accepts an options object, instead of timeout and headers parameters:) this line fails on xhr2-cookies:
if (this.withCredentials && (response.headers['set-cookie'] || response.headers['set-cookie2'])) {
  XMLHttpRequest.cookieJar.setCookies(response.headers['set-cookie'] || response.headers['set-cookie2']);
}

and throws Cannot read property 'set-cookie' of undefined.
If I do comment out response.headers['set-cookie'] parts from the node module xhr2-cookies, i do get a ssl error when i try to connect to ethereum rpc node. So this cookie is normally using browser cache I think, whereas we dont have a substitude for that from rn-nodeify. Is this assumption correct, what do you think?
Cheers

@nomoreboredom thanks for reporting this! Could you poke around in https://github.com/tradle/react-native-http/blob/master/lib/response.js and see why response.headers isn't being defined in your case? (If that's where the response object is coming from. If not, where is it being created?)

My app is throwing on this line actually, from xhr2-cookies, xml-http-request.js file line:
if (this.withCredentials && (response.headers['set-cookie'] || response.headers['set-cookie2'])) {
  XMLHttpRequest.cookieJar.setCookies(response.headers['set-cookie'] || response.headers['set-cookie2']);
}

and if I add this check, it stops to throw but I can not build the connection I am supposed to build.
if (this.withCredentials && ((response.headers && response.headers['set-cookie']) || (response.headers && response.headers['set-cookie2']))) {
  XMLHttpRequest.cookieJar.setCookies(response.headers['set-cookie'] || response.headers['set-cookie2']);
}

Hmm actually it may be a web3 bug, as I just noticed this issue: https://github.com/ethereum/web3.js/issues/1802.
Thanks anyway, will follow that issue and reopen this if it still persists :)

@nomoreboredom no idea yet :) Can you check why the response is being created without a headers field? That doesn't sound right. And is the response object being created from inside react-native-http or elsewhere?

Same issue

web3 issue . downgrade to v1.0.0-beta.33 solved my problem.


Re-enable VocPub profile in 3.x

pyLODE 2.x used to support OntPub, SKOS & Profile profiles. The latter two have o yet been re-implemented in 3.x but at least the VocPub one should be.

Please re-enable this !


Provide a way to exclude some params to be trained

Description & Motivation
I have a lightning module, which has two submodules named as self.model and self.loss (both of them are torch.nn.Module). And I want to prevent self.loss printed as parameters before training, and freeze it by excluding it from the parameters.
Pitch
The lightning module could be defined as:
class A(LightningModule):
def __init__(self, model, loss):
    super().__init__()
    self.model=model # model
    self.loss=loss # perceptual loss

However, both self.model and self.loss are registered as the parameters of A (\ie, will be printed before trianing).
And I wish to exclude self.loss from the parameters.
Alternatives
I have tried many ways such as manually calling self.loss().eval() in self.training_step()'. However the self.loss` is still printed as parameters before training.
Additional context
Is there any hooks like self.exclude_param_list=[self.loss]? Thx.
cc @borda

@fourson .eval() won't help, this only changes the mode of the module. To freeze it you need to do self.loss.requires_grad_(False).
It is not possible to remove a parameter from a PyTorch nn.Module directly, and so Lightning can't provide that functionality. But you can use a trick if you really care about it: If you include your loss into a list, PyTorch won't associate it as a submodule: self.loss = [loss]. The drawback is that self.loss won't be moved to the GPU automatically.

@fourson What do you think about my comment above?
Btw I also opened #19468 which adds a column "Mode" to the summary that shows which layers are in training mode. Your frozen layers would show up as "eval" there. Maybe that's helpful in your case.
For the reasons outlined in my previous comment, I don't think we can provide a mechanism to "exclude" parameters and modules. I believe any hacks we could do would go against PyTorch's design.

@fourson What do you think about my comment above? Btw I also opened #19468 which adds a column "Mode" to the summary that shows which layers are in training mode. Your frozen layers would show up as "eval" there. Maybe that's helpful in your case.
For the reasons outlined in my previous comment, I don't think we can provide a mechanism to "exclude" parameters and modules. I believe any hacks we could do would go against PyTorch's design.

Thanks for the comment. The "eval" flag shown in the summary could be very helpful for further usage.


Leetcode Question Number 148

Leetcode Question Number 148 soultion needs to be added in the repo .
The link for the question is this.
Accepted Languages C++ / JAVA .
You Only need to add the  class Solution in the file.
Make Sure you have read the contributions guidelines before creating an PR.

assign


Identify Internal Links that don't use relref

We should update our internal links to use relref if they don't already

We've stopped using relref.


IndexError: index 0 is out of bounds for axis 0 with size 0

Training Done
Starts Train Rendering
0%|                                                                                | 0/17 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/home/user/linzejun01/linzejun_mutiply_view01/SCNeRF-master/NeRF/run_nerf.py", line 1047, in
train()
File "/home/user/linzejun01/linzejun_mutiply_view01/SCNeRF-master/NeRF/run_nerf.py", line 973, in train
rgbs, disps = render_path(
File "/home/user/linzejun01/linzejun_mutiply_view01/SCNeRF-master/NeRF/render.py", line 157, in render_path
rgb, disp, acc, _ = render(
File "/home/user/linzejun01/linzejun_mutiply_view01/SCNeRF-master/NeRF/render.py", line 44, in render
idx_in_camera_param=np.where(i_map==image_idx)[0][0]
IndexError: index 0 is out of bounds for axis 0 with size 0

hello,Will you help me with this problem? @jeongyw12382

hello,Will you help me with this problem? @jeongyw12382

I had the same problem, how did you solve it?


Jenny gen error "Could not resolve type with token " [1.14.1]

Describe the bug
When trying to generate for the first time after installing Entitas and Jenny according to tutorial (from .zip),
I am getting the following error :

Could not resolve type with token 01000018 from typeref (expected class 'System.Threading.CancellationToken' in assembly 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')

Also when trying to do it from terminal :
[EDIT]
After Installing dotnet 6 SDK and upgrade unity to 2021.3.15f i was able to
dotnet Jenny/Jenny.Generator.Cli.dll
Then
dotnet Jenny/Jenny.Generator.Cli.dll auto-import -s
But When im using dotnet Jenny/Jenny.Generator.Cli.dll gen
I got the following error :
Guys-iMac:Sweet-Merge guychriqui$ dotnet Jenny/Jenny.Generator.Cli.dll gen -v
Loading assemblies from /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Jenny.Generator.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Jenny.Generator.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Extensions.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Extensions.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Serialization.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Serialization.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Jenny.Generator.Cli.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Jenny.Generator.Cli.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Serialization.Cli.Utils.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Serialization.Cli.Utils.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Sherlog.Formatters.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Sherlog.Formatters.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/TCPeasy.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/TCPeasy.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Sherlog.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Sherlog.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Cli.Utils.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Cli.Utils.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Reflection.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/DesperateDevs.Reflection.dll
Name:Jenny.Generator.Cli
There are no context policies. load: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Jenny.dll
  ➜ Loading: /Users/guychriqui/Documents/GummyTail/GitHub/Sweet-Merge/Jenny/Jenny.dll
Generating using Jenny.properties
Name:Jenny.Generator.Cli
There are no context policies. load: Entitas.CodeGeneration.Plugins
  ➜ Loading: Entitas.CodeGeneration.Plugins
    ➜ Resolved: Jenny/Plugins/Entitas/Entitas.CodeGeneration.Plugins.dll
Name:Jenny.Generator.Cli
There are no context policies. load: Entitas.Roslyn.CodeGeneration.Plugins
  ➜ Loading: Entitas.Roslyn.CodeGeneration.Plugins
    ➜ Resolved: Jenny/Plugins/Entitas/Entitas.Roslyn.CodeGeneration.Plugins.dll
Name:Jenny.Generator.Cli
There are no context policies. load: Entitas.VisualDebugging.CodeGeneration.Plugins
  ➜ Loading: Entitas.VisualDebugging.CodeGeneration.Plugins
    ➜ Resolved: Jenny/Plugins/Entitas/Entitas.VisualDebugging.CodeGeneration.Plugins.dll
Name:Jenny.Generator.Cli
There are no context policies. load: Jenny.Plugins
  ➜ Loading: Jenny.Plugins
    ➜ Resolved: Jenny/Plugins/Jenny/Jenny.Plugins.dll
Name:Jenny.Generator.Cli
There are no context policies. load: Jenny.Plugins.Unity
  ➜ Loading: Jenny.Plugins.Unity
    ➜ Resolved: Jenny/Plugins/Jenny/Jenny.Plugins.Unity.dll
  ➜ Loading dependency: Entitas.CodeGeneration.Attributes, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
  ➜ Loading dependency: Entitas.CodeGeneration.Attributes, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
  ➜ Loading dependency: Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35
  ➜ Loading dependency: Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    ➜ Resolved: Jenny/Plugins/Jenny/Microsoft.CodeAnalysis.dll
  ℹ  Not adding Microsoft.CodeAnalysis, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35 because AssemblyResolver is disposed
  ➜ Loading dependency: Entitas, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
  ➜ Loading dependency: Entitas, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
**System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'Entitas, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'Entitas, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'
   at Entitas.Roslyn.CodeGeneration.Plugins.MemberDataComponentDataProvider..ctor()
   at Entitas.Roslyn.CodeGeneration.Plugins.ComponentDataProvider.getComponentDataProviders()
   at Entitas.Roslyn.CodeGeneration.Plugins.ComponentDataProvider..ctor(INamedTypeSymbol[] types)
   at Entitas.Roslyn.CodeGeneration.Plugins.ComponentDataProvider..ctor()
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
   --- End of inner exception stack trace ---
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type)
   at Jenny.Generator.CodeGeneratorUtil.<>c.<LoadFromPlugins>b__3_0(Type type)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()
   at Jenny.Generator.CodeGeneratorUtil.LoadFromPlugins(Preferences preferences)
   at Jenny.Generator.CodeGeneratorUtil.CodeGeneratorFromPreferences(Preferences preferences)
   at Jenny.Generator.Cli.GenerateCommand.Run()
   at DesperateDevs.Cli.Utils.AbstractCommand.Run(CliProgram program, String[] args)
   at DesperateDevs.Serialization.Cli.Utils.AbstractPreferencesCommand.Run(CliProgram program, String[] args)
   at DesperateDevs.Cli.Utils.CliProgram.RunCommand(String[] args)**

When trying with editor still same error as in the image
To Reproduce
Steps to reproduce the behavior:

Added Jenny for root project folder
Click on  'Auto generate' from  Tools->Jenny->Preferences
Click on 'Generate'
See error

Expected behavior
Generated folder will appear without error.

I have same problem like this, have you found a solution to the problem?

I am getting the same error when trying to generate code from Unity, but was able to generate the code from cmd. Make sure that Jenny.properties contains correct folder name pointing to the Entitas
Jenny.SearchPaths = Jenny/Plugins/Entitas, \                     Jenny/Plugins/Jenny, \                     Assets/Thirdparty/Entitas
I've put all the stuff to the Thirdparty folder, so this is where SearchPath was supposed to point to in my case.
Don't know how to resolve the type token error though.

Hi!
With the dotnet 6.0 upgrade that happened in Entitas 1.14.x, you can generate from the terminal but not yet from within Unity, which doesn't yet fully support dotnet 6.
In the meantime generate from the terminal, ideally using jenny server, which will be the fastest way to generate.
Also, starting with Entitas 1.14.x the roslyn code generator are now free and included in the GitHub releases.
From your jenny doctor output I can see you're not yet using them
Available: Entitas.Roslyn.CodeGeneration.Plugins.ComponentDataProvider
Available: Entitas.Roslyn.CodeGeneration.Plugins.EntityIndexDataProvider

The roslyn ones are now default and recommended, replacing the soon to obsolete reflection-based ones


Feature/fisrt step basic appservice

Purpose
Moving Sample application to its own repository
Improve readme file to make it easier to deploy and fix some issues in the instructions.
It includes https://github.com/Azure-Samples/app-service-baseline-implementation/pull/4. After merging this we could close that PR.
Fix: https://github.com/Azure-Samples/app-service-baseline-implementation/issues/3
Does this introduce a breaking change?

[ x] Yes
[ ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ x] Refactoring (no functional changes, no api changes)
[ x] Documentation content changes
[ ] Other... Please describe:

How to Test
Complete deploy end to end, following readme instructions. It includes validations.

#assign-reviewer:josevarela


Peer Review - SRS: Avoid repeating information across documents

Artifact Under Review
SRS Document
Team Number for Team Doing the Review
Team 10
Description of Issue
It might be worth linking certain sections to other documents to avoid repeating information in multiple places as it it would be difficult to maintain/make changes -- specifically, these might be problem statement, goals, and stakeholder sections which should be present in your Problem Statement and Goals document.

Team 10 TA: @Necried


Why some pages are so slow? Make them faster!

Why on earth this page is so slow: https://ahmia.fi/address/
There is nothing special in the template: https://github.com/juhanurmi/ahmia/blob/master/ahmia/templates/hs_list_view.html
and there is nothing really special in the views:
https://github.com/juhanurmi/ahmia/blob/master/ahmia/views.py#L53
Is this normal?

Done.


Add X-Forwarded-Client-Cert to incoming requests that use mutual TLS authentication

Basically, copy linkerd.

Depends on #918.


Stash Loading Error 1.9.2

When i try to connect to procurement i get this
Authenticating<EMAIL_ADDRESS>                                                      [OK]
Loading characters...                                                                     [OK]
Loading Standard Stash Tab 1...
[Error] Downloading stash for Standard, details logged to DebugInfo.log, please open a ticket at https://github.com/Stickymaddness/Procurement/issues
Plz Help me fix this :)

I'll need your debuginfo.log in order to help.

Closing due to inactivity, please open a new ticket if this is still an issue!


403 disallowed_useragent error

I cannot get my Asus Zenfone 2 past the 403 error. I'm not a developer, I'm not developing an app or trying to use an app. I already tried logging in to the settings on the phone, but to no avail, no matter what I do. I cannot get past the initial phone's set up because of it. Some issue with OAuth and "web-view". I just wanted to verify my account, but nothing works.
I tried googling this situation and it's telling me that I have to learn code, sign up to become a developer, apply that code and then the errors would go away. Suppose this someone who wasn't computer literate, doesn't have a computer, or any means to do said authentication? This phone mind as well stay bricked because that's why I had to factory reset.
I learned that I had to practically be a developer to get past this error when I pressed on the "LEARN MORE" at the bottom of the error and it took me to a Google Developer page. I just want to use my phone!!!!

@asilee
Seems like settings page of your Asus Zenfone 2 is still using WebView to do OAuth login and you are using google account. WebViews will work with all OAuth service providers, but Google.
Your problem has nothing to do with this library (Xamarin.Auth).
Try updating your phone maybe settings page was changed in the meantime.

Closing this one as not relevant to Xamarin.Auth


Update categories.ts

⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠
⚠⚠⚠⚠WARNING ⚠⚠⚠⚠
⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠
This repo is AUTO UPDATED by a scheduled task so submitting pull requests here will make NO DIFFERENCE 😊 to the docs content.
PLEASE CONSIDER to submit either an issue or a PR with the fix intended in the source repository this documentation is based on. You can find it here: https://github.com/OfficeDev/office-ui-fabric-react
THANKS 👍
⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠
⚠⚠⚠⚠WARNING ⚠⚠⚠⚠
⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠

Learn Build status updates of commit 8697abb:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

Line 0, Column 0: [Error: config-not-found] Can't find docfx config file in 'C:\LocalRun\W\yfqb-s'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


How to perform prediction using YOLO-NAS inside a callback?

💡 Your Question
I am attempting to write a callback that can visualize the predictions of the model during training at regular intervals by subclassing super_gradients.training.utils.callbacks.Callback. When I call the predict function on context.net inside on_validation_loader_end, it tells me that the predict function is not available for the context.net. Following is the code snippet I'm using
class YOLONASValidationPredictionLogger(Callback):
    def __init__(self, validation_dataset, ) -> None:
        super().__init__()
        self.validation_dataset = validation_dataset
    def on_validation_loader_end(self, context: PhaseContext) -> None:
        for data_idx in tqdm(range(len(self.validation_dataset))):
            image, targets, *_ = self.validation_dataset[data_idx]
            prediction = context.net.predict([image])

What is the best way to perform prediction in such a case inside a callback?
Versions
Current master branch

Turns out one can plot context.preds and context.inputs


feat(#389): allow templating for generated Java / Kotlin class names

Adds an optional nameTemplate input parameter to the plugin, allowing customization of the generated Java / Kotlin class names.
The following template variables are supported:

name - the original name of the class
schemaType - the GraphQL schema type (Type, Input, Interface, Enum)

The default value for this new property is null. In this case the output will be identical to the current one.
Examples:
Given an original class name Person and schema type Type:

null -> Person
"{name}GraphQL{schemaType}" -> PersonGraphQLType
"{name}GraphQL" -> PersonGraphQL
"{name}{schemaType}" -> PersonType

Hi @BlasiusSecundus! Thank you for opening this PR, I am actively looking into this. In the meantime, could you please resolve the conflicts?

I have resolved conflicts. However, when running the tests locally I saw KotlinCodeGenTest failing with errors like this one:
error: unresolved reference: fasterxml
import com.fasterxml.jackson.`annotation`.JsonProperty
           ^
error: cannot access built-in declaration 'kotlin.String'. Ensure that you have a dependency on the Kotlin standard library
import kotlin.String

I have not noticed this before, and this also happens on master branch, so I think this should not be related to my PR.

@BlasiusSecundus
Hello, thank you for your work on this PR. We find it to be incredibly valuable for our use case.
Regarding the KotlinCodeGenTest failure you mentioned, I've checked out the latest master branch and it seems that the issue may have been resolved there.

I rebased and resolved the conflicts. The aforementioned error still occurs on my machine (asl on master), but the CI build job ran successfully (on my forked repo at least). So maybe this is something related to my local setup only, I'll check.

@BlasiusSecundus
Thank you for taking the time to rebase and resolve the conflicts. It's good to hear that the CI build job ran successfully on your forked repo.
@congotej
I noticed your previous comment about actively looking into this PR. Could I kindly ask for an update on the current status of this PR?
We're really looking forward to benefiting from this feature. Thank you!

Btw. This PR should also address issue https://github.com/Netflix/dgs-codegen/issues/323

@srinivasankavitha @congotej don't mean to rush you but can you please review this? If there's any changes expected, please let us know. We've been waiting for this one for so long.

Hi - apologies for the delayed responses on this PR. Could you please elaborate on how this feature would be useful for the projects you are working with? Is it more to address code readability when working with generated types? The plugin itself is designed to do a few things well, and imo, over time we've added way too many customizations already that are making this hard to maintain and ensure correctness. I'm hesitant to add more feature flags unless they really make it worth the maintenance cost.

Could you please elaborate on how this feature would be useful for the projects you are working with?

For example, you have a Person class in the domain layer, and a Person class in the (generated) API layer. Without such a feature, a naming conflict would result either in hard-to-read code (e.g. using fully qualified names), or would require manual workarounds (such as using imports alias or typealias in Kotlin) - neither results in an optimal developer experience.

Is it more to address code readability when working with generated types?

Essentially yes, It makes the code much easier to read. (Is that Person from the domain layer or the API layer? - a prefix/suffix communicates that immediately)

I'm hesitant to add more feature flags unless they really make it worth the maintenance cost.

This feature is meant to be an equivalent of OpenAPI Generator's modelNamePrefix /  modelNameSuffix settings. I think this feature would be used widely enough to justify the maintenance costs - which should not be that huge considering this is a quite simple feature.

The plugin itself is designed to do a few things well, and imo, over time we've added way too many customizations already that are making this hard to maintain and ensure correctness. I'm hesitant to add more feature flags unless they really make it worth the maintenance cost.

I agree with your point about there being too many customizations. However, lack of this feature causes too much confusion and conflicts, as @BlasiusSecundus pointed out above. We resorted to adding manual prefixes to our graphql types to overcome the conflicts but that has led to much more confusion and chaos on the consumer side as this made our types from one particular repo out-of-sync with the naming convention that the rest of our types follow. This is especially painful given that some of these types are exposed to the rest of the world (via a graphql api for devs). Hope this feature will be available soon.

@srinivasankavitha what do you think?

@paulbakker and I discussed this and we will merge this after some testing on our end. Thanks for the PR contribution!

This Feature will be of great help to avoid conflicts and readability, waiting for this one!!!!!

I agree with @SankarshanDudhate ! We are following Person class and PersonType for graphql to avoid conflicts. This would standardize the codegen. However, would love to see the possibility of having Person domain class and Person type in graphql with no conflicts.

I tested this with a random test schema, and get some compilation issues because the naming isn't applied everywhere, it looks like.
Example schema:
type Query {
    lolomo: [ShowCategory]
    search(searchFilter: SearchFilter!): [Show]

}

input SearchFilter {
    title: String!
}

type ShowCategory {
    id: Int
    name: String
    shows: [Show]
}

interface Show @key(fields: "showId"){
    showId: Int
    title: String
    artworkUrl: String
}

type Movie implements Show{
    showId: Int
    title: String
    artworkUrl: String
    director: String
}

type Series implements Show {
    showId: Int
    title: String
    artworkUrl: String
    episodes: Int
}

E.g. this generates

@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "__typename"
)
@JsonSubTypes({
    @JsonSubTypes.Type(value = Movie.class, name = "Movie"),
    @JsonSubTypes.Type(value = Series.class, name = "Series")
})
public interface DgsInterfaceShowGenerated {

Naming I configured: nameTemplate = 'Dgs{schemaType}{name}Generated'
@BlasiusSecundus can you look into this?

@paulbakker Thank you for the review and testing! Ill fix the issue of course and will add a test case for this scenario.
At first glance the problem seems to be that for the Movie type it generated DgsTypeMovieGenerated (which is correct), but in the Jackson annotations they were referenced using their untemplated names (which obviously resulted in compilation errors).

@BlasiusSecundus if you need help finishing this, I can jump in. If yes, would you suggest forking your repo or do you prefer some other approach?

Hi thanks @SankarshanDudhate. The fix is already in progress on my side, it just so happened that I have a lack of time lately and could not finish it yet. But it is not forgotten, I hope I can finish it in the near future.

I feel you on the lack of time. Don't mean to rush you, just offering for help. I'll fork it in the meantime and try to finish it.

Sure, feel free to give it a try.

@SankarshanDudhate meanwhile I managed to  work on the fix, see the updated version of the PR. cc @paulbakker , could you please retest/validate the fix?


electron: updates

Description of changes
Went through all the electron releases (even unsupported ones) and updated them to the latest one of the major version.
Added electron 26.1.0 and set it as the default.
Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Nit: if you can, make the updates and the new electron version two separate commits.

Built all the reverse dependencies successfully.


WebTerminal: a11y issues

What will this achieve?
There are some updates that should be made to the web terminal component so that it is accessible. For example, the docs link menu should be using the OverflowMenu component from carbon.

Also, if an application is using carbon's g100 theme, the component kind of blends into the rest of the background. Maybe we should consult the designer working on this component to get their thoughts

Complete


Scroll snaps back to start of page, immediately after scroll or after a few seconds

The animation part is working perfectly expect the viewport snaps back to initial state during the animation. If I continue scrolling past the animated element, the bug doesn't kick in and it seems fine. I'm using NextJS, but loading it in as below:
import { ScrollContainer, ScrollPage, batch, Fade, FadeIn, FadeOut, Move, MoveIn, MoveOut, Sticky, StickyIn, StickyOut, Zoom, ZoomIn, ZoomOut } from "react-scroll-motion";

const Animator = dynamic(
  import("react-scroll-motion").then((it) => it.Animator),
  { ssr: false }
);

Ah I found it: Removing snap="mandatory" fixed it!


Add Hallowe'en

New Port for Hallowe'en
Game Information

Title: Hallowe'en
URL: LinApple

CFW Tests

[x] AmberELEC
[x] ArkOS
[x] ROCKNIX
[x] muOS

Resolution Tests

[x] 480x320
[x] 640x480
[ ] 720x720 (RGB30)
[x] Higher resolutions (e.g., 1280x720)

Whoops!  I wasn't paying attention when I dropped that marquee in the parent dir instead of the portdir where I should have had it.  Should be good now 👍


feat: labels for data/MC and template visualizations

This adds a label to data/MC plots to show region/channel name and whether the figure corresponds to the pre- or post-fit model. It also adds a label to the template visualizations to show region/channel name, sample name, and systematics name. The template visualization layout slightly changes to accommodate the text.
Also includes some minor refactoring in related code.
Breaking changes:

contrib.matplotlib_visualize.templates: template order changed: original up, original down, modified up, modified down (previously modified up came before original down)

* added region name and pre- / post-fit label to data/MC plots
* added region, sample, systematics name to label in template plots
* breaking change: template order changed in contrib.matplotlib_visualize.templates
* updated pre-commit

Nice. :)