$formatJson called during insertWithRelated?

In my application I an overriding objection.Model's $formatJson() method in order to strip out certain fields from my models before they are sent based on user permissions, etc. This typically works out great.
I'm running into problems when inserting a model via insertWithRelated(). I've noticed that $formatJson() is being called on the data before it is inserted into the database so my protected fields are being striped out before being saved.
Here is a demo I put together:
const objection = require('objection');
const knex = require('knex');

const Model = objection.Model;

const db = knex({
  client: 'mysql2',
  connection: "mysql://event_planner:123456ab@localhost/event_planner",
  pool: {
    min: 2,
    max: 30
  }
});

Model.knex(db);

class Employee extends Model {

  static get tableName() {
    return 'employees';
  }

  static get relationMappings() {
    return {
      organization: {
        relation: Model.BelongsToOneRelation,
        modelClass: Organization,
        join: {
          from: 'employees.organizationId',
          to: 'organizations.id'
        }
      }
    };
  }

  $beforeInsert() {
    console.log('$beforeInsert', this.constructor.tableName);
  }

  $beforeUpdate() {
    console.log('$beforeUpdate', this.constructor.tableName);
  }

  $formatJson(json) {
    console.log('$formatJson', this.constructor.tableName);
    json = super.$formatJson(json);
    json.firstName = undefined;
    return json;
  }

  $parseJson(json, opt) {
    console.log('$parseJson', this.constructor.tableName, json, opt);
    return super.$parseJson(json, opt);
  }
}

class Organization extends Model {

  static get tableName() {
    return 'organizations';
  }

  static get relationMappings() {
    return {
      employees: {
        relation: Model.HasManyRelation,
        modelClass: Employee,
        join: {
          from: 'organizations.id',
          to: 'employees.organizationId'
        }
      }
    };
  }

  $beforeInsert() {
    console.log('$beforeInsert', this.constructor.tableName);
  }

  $beforeUpdate() {
    console.log('$beforeUpdate', this.constructor.tableName);
  }

  $formatJson(json) {
    console.log('$formatJson', this.constructor.tableName);
    return super.$formatJson(json);
  }

  $parseJson(json, opt) {
    console.log('$parseJson', this.constructor.tableName, opt);
    return super.$parseJson(json, opt);
  }
}

Organization
  .query()
  .allowInsert('[employees]')
  .insertWithRelated({
    name: "My Organization",
    employees: [{
      firstName: "John",
      lastName: "Doe",
      email<EMAIL_ADDRESS>    }]
  }).catch(err => console.error(err));

the above prints the following to the console:
$parseJson organizations { skipValidation: true }
$parseJson employees { firstName: 'John',
  lastName: 'Doe',
  email<EMAIL_ADDRESS>  phone: '[]',
  streetAddress: '',
  notes: '',
  createdAt: 2017-03-12T01:13:18.697Z,
  updatedAt: 2017-03-12T01:13:18.697Z } { skipValidation: true }
$formatJson organizations
$parseJson organizations undefined
$beforeInsert organizations
$formatJson employees
$parseJson employees { firstName: undefined,
  lastName: 'Doe',
  email<EMAIL_ADDRESS>  phone: '[]',
  streetAddress: '',
  notes: '',
  createdAt: 2017-03-12T01:13:18.697Z,
  updatedAt: 2017-03-12T01:13:18.697Z,
  organizationId: 156 } undefined
$beforeInsert employees

Is this behavior intended? The docs mention that $formatJson() is for converting the model from its 'internal' to 'external' format. Everything happening during an insert is 'internal' so I feel like $formatJson() shouldn't be called at all here.

I just fixed this like an hour ago 😄 I'll put out a patch release tomorrow with the fix on it. Thanks for the excellent issue by the way! If I hadn't found the bug already, this would have made it super easy 👍

Awesome thanks!


[CHORE] Migrate database to mongodb atlas free tier, due to deprecation

What needs to be done
Currently the DB data saved is within mlabs, which is being deprecated in-favor of MongoDB Atlas.
Additional context

[ ] back-up existing data
[ ] create new database in mongodb atlas
[ ] import back-up data
[ ] update environment variables
[ ] test 😄

This can be done after the migration, as the migration wont take as long, and fCC will deal with the mongodb connection/management.

Not going to migrate the database, rather we are going to remove the database features as they aren't going to be used. See #202


feat: Add task processing API

Still very much WIP.

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/marcel/code/llm2/lib/main.py", line 46, in run
    response = nc.providers.task_processing.next_task(list(provider_ids), list(task_type_ids))
AttributeError: 'ProvidersApi' object has no attribute 'task_processing'. Did you mean: 'text_processing'?

Is this not available in v0.13 yet?

Is this not available in v0.13 yet?

it is availably in PR: https://github.com/cloud-py-api/nc_py_api/pull/254
AppAPI PR was not merged yeat

To test this please locally revert a16e617bdc103c72300101c5d7ae0e42f0430b20

Still depends on https://github.com/cloud-py-api/nc_py_api/pull/254, but I could finally test it correctly!

Still depends on cloud-py-api/nc_py_api#254, but I could finally test it correctly!

nc-py-api 0.14.0 with the support of the new API was published
we can test this PR with it and free to merge this after that.


PCF install scripts with config broken out from stage causing duplicate downloads

Running through the vsphere install pipeline ERT gets downloaded twice currently.
Braking out staging from config ert appears to have introduced a requirement that the .pivotal file be available in the staging task to get version information. This results in ERT getting downloaded in the Upload-ert task and deploy-ert task.

Hi @bhudlemeyer, thanks for raising this issue. We'll look into seeing if there is anything we can do to eliminate downloading the ERT tile twice.

Hi @bhudlemeyer apologies for the delay on this one. We do not have current plans to prioritise this work. We have captured it as something to look into at a future date. Thanks again for creating this issue.


Migrating to agens-graph on my my nestjs app

Hi,
I have a nestjs app with redis-graph.
Now,  Im migrating redis-graph to agens graph.
I have more then 100 queries, I want to avoid changing the cypher queries as much as possible.
How is that possible to force the driver to return labes, ids, and properties for all the querores? without changing all of my touching them?
In redis-graph when I return a node I get something like:
{
    "id" : 1,
    "label" : "movies",
    "properties" : {
         "name": "Spiderman"
     }
}

and the edge:
{
   "id": 3,
   "from" : 1,
   "to": 5,
   "label" : "directedBy",
   "properties": {
      "score" : 5
    }
}

Can I shape the results to be like that without touching the queries?
Thanks

I'm not quite following your question. But before we get into that, did you know there's a version of Drivine that supports redisgraph?
Its on a branch, because I haven't added transaction support (the Drivine @Transactional() decorator) but you might not need that. I could merge in now with those features throwing an "Not yet supported" error, if it helps?
Now to your question. Do you want to query redisgraph to ask it what all of your labels are? Or export the whole graph? Or . . .

Hi,
Thanks for the very quick answer.
We are leaving redis-graph, right now im POCing agens-graph.
match(a:movies {name: 'Spiderman'}) return a in redisgraph lib will return:
{
    "id" : 1,
    "label" : "movies",
    "properties" : {
         "name": "Spiderman"
     }
}

As far as I remember from yesterday, your library return only the properties. How can I tweak your result to be like the json I put here.
Thanks

One way to do it: You can modify you query to something like
match(a:movies {name: 'Spiderman'}) return {
  id: id(a),
  label: labels(a),
  properties: properties(a)
}

If you want to keep all of your original queries, perhaps you can create a method that transforms the original query into that format?

Welcome 👍


Problem when building ti_davinci_mdio as module

Hello,
I'am working on 4.1.18.
Firstly, I've tried the default kernel setting, and it was successfully built.
Then, I want to build TI's Ethernet driver "TI DaVinci MDIO" as a module by setting it's flag to {M}, but meets some errors in building.
It says:
ERROR: "of_update_property" [drivers/net/ethernet/ti/davinci_mdio.ko] undefined!
By checking those source files, I find out this function was declared in "KERNEL/include/linux/of.h" and implemented in "KERNEL/drivers/of/base.c".
I'm not familiar with kernel module programming, but "of.h" was included by "davinci_mdio.c", why there is a undefined Errors?
It maybe a noob question, but really confuse me a lot of time.

Sloved...
Just add a line "EXPORT_SYMBOL_GPL(of_update_property);" into "base.c", and everything will be OK.


Hosted mode fix

Our Hosted mode frame test always failed. This pr will fix the issue.
Thanks
Ref: https://issues.redhat.com/browse/ACM-5211

Sorry, another thought: we're patching the deployment in the kind-deploy-controller-dev target, but won't the addon controller overwrite that change to use the original image/configuration?

Sorry, another thought: we're patching the deployment in the kind-deploy-controller-dev target, but won't the addon controller overwrite that change to use the original image/configuration?

I can test it for sure

Sorry, another thought: we're patching the deployment in the kind-deploy-controller-dev target, but won't the addon controller overwrite that change to use the original image/configuration?

I changed tag to testtag then it applied to deployment

Good to know it's working at patch time, but I do wonder how long it takes for the addon-controller to revert it (if it ever does). 🤔

Sorry, another thought: we're patching the deployment in the kind-deploy-controller-dev target, but won't the addon controller overwrite that change to use the original image/configuration?

I changed tag to testtag then it applied to deployment

Good to know it's working at patch time, but I do wonder how long it takes for the addon-controller to revert it (if it ever does). 🤔

Patch component image step takes 3mins, and most of the time is for image-build

@yiraeChristineKim could you please change your commit message to match the guidelines?
https://github.com/open-cluster-management-io/community/blob/main/sig-policy/contribution-guidelines.md#commit-messages

Woohoo!!! Thanks for all your work, investigation, and tests! Let's do this!

what about hosted mode suffix, is it ok?

what about hosted mode suffix, is it ok?

Yes, I think it's fine to leave it since the chances are low that a managed cluster would have a -hosted suffix unless it's for hosted mode, so if we use the target in the future it'd just return KIND_NAMESPACE like we'd want.

/cherrypick release-2.8

/cherrypick release-2.7


None of the themes show any of the fancy icons, shown in the README.md

Description
This is what it currently looks like. Honestly, just regular command prompt with 3 colored arrows at the start.
http://i.imgur.com/uvvyujC.png
Expected behavior
I expected it to be as pretty as the picture from the:
https://camo.githubusercontent.com/612c6be742478221e06c64b66b896085f6e4af63/687474703a2f2f692e696d6775722e636f6d2f6e7247563670672e706e67
Steps to Reproduce

Open zsh
Be disappointed

Versions
zsh 5.5.1 (x86_64-solus-linux-gnu)
I'm sorry if this requires some further customizing, but I mostly only have the readme to go off of and some sketchy forks, that only broke the entire thing.

Icons displayed on the right side on the README image indicates various git status. They'll be displayed only when required. It depend on the git module. Make sure you've that module enabled on your configuration.
Also, Please properly format your images on issue description.

Closing now that #1606 is merged. @davidv171 if this doesn't solve your problem, let us know and we can re-open.


Error on read.readCharacteristic

Summary
 Hi! I am trying to read the value from a certain characteristic by it always return this error instead
Read failurejava.lang.ClassCastException: rx.Observable cannot be cast to byte[].
Notifications and write operations work fine in the same code.
Preconditions

#### Steps to reproduce actual result
1.
2.
3.
#### Actual result
  Read failurejava.lang.ClassCastException: rx.Observable cannot be cast to byte[]
#### Expected result
 Value from characteristic

Hello @Dionysios
Could you share your code and provide logs? Device, OS version, version of the library used. This could be helpful.

Hi! Here is the class.
`
public class ConnectionActivity  extends RxAppCompatActivity  {
public static final String EXTRA_CHARACTERISTIC_UUID = "extra_uuid";
private RxBleDevice mBleDevice;
private Button mConnectToggleButton;
private Button mReadButton;
private Button mNotifyButton;
private Button mWriteButton;
private UUID characteristicUuid;
private TextView mReadOutputView;
private TextView mReadHexOutputView;
private Observable<RxBleConnection> mConnectionObservable;
private PublishSubject<Void> disconnectTriggerSubject = PublishSubject.create();
private TextView mWriteInput;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_example4);
    characteristicUuid = (UUID) getIntent().getSerializableExtra(EXTRA_CHARACTERISTIC_UUID);
    String macAddress = getIntent().getStringExtra(DeviceActivity.EXTRA_MAC_ADDRESS);
    setTitle(getString(R.string.mac_address, macAddress));
    mBleDevice = Application.getRxBleClient(this).getBleDevice(macAddress);

    mConnectToggleButton = (Button) findViewById(R.id.connect);
    mReadButton = (Button) findViewById(R.id.read);
    mNotifyButton = (Button) findViewById(R.id.notify);
    mReadOutputView = (TextView) findViewById(R.id.read_output);
    mWriteButton = (Button) findViewById(R.id.write);
    mReadHexOutputView = (TextView) findViewById(R.id.read_hex_output);
    mWriteInput = (TextView) findViewById(R.id.write_input);

    mConnectToggleButton.setOnClickListener(this::onConnectToggleClick);
    mReadButton.setOnClickListener(this::onReadClick);
    mWriteButton.setOnClickListener(this::onWriteClick);
    mNotifyButton.setOnClickListener(this::onNotifyClick);
    mConnectionObservable = prepareConnectionObservable();
}

private Observable<RxBleConnection> prepareConnectionObservable() {
    return mBleDevice
            .establishConnection(this, false)
            .takeUntil(disconnectTriggerSubject)
           // .compose(bindUntilEvent(PAUSE))
            .doOnUnsubscribe(this::clearSubscription)
            .compose(new ConnectionSharingAdapter());
}

public void onConnectToggleClick(View view) {
    if (isConnected()) {
        Log.i("test", "we are here is " + isConnected());
        triggerDisconnect();
    } else {
        Log.i("test", "we are here new connection");
            mConnectionObservable.subscribe(rxBleConnection -> {
                Log.d(getClass().getSimpleName(), "Hey, connection has been established!");
                Log.d("test", "Hey, connection has been established!");
                //updateUI();
                runOnUiThread(this::updateUI);
            }, this::onConnectionFailure);

    }
}

public void onReadClick(View view) {
    Log.d("test", "Calling read function");
    if (isConnected()) {
        mConnectionObservable
                .flatMap(rxBleConnection -> rxBleConnection.readCharacteristic(characteristicUuid))
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(bytes -> {
                    mReadOutputView.setText(new String(bytes));
                    mReadHexOutputView.setText(HexString.bytesToHex(bytes));
                   // mwriteInput.setText(HexString.bytesToHex(bytes));
                }, this::onReadFailure);
    }
}

public void onNotifyClick(View view) {
    Log.d("test", "Calling notifications");
    if (isConnected() && mConnectionObservable != null) {
        Log.d("test", "Trying to set the notifivations");
        mConnectionObservable
                .flatMap(rxBleConnection -> rxBleConnection.setupNotification(characteristicUuid))
                .doOnNext(notificationObservable -> runOnUiThread(this::notificationHasBeenSetUp))
                .flatMap(notificationObservable -> notificationObservable)
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(this::onNotificationReceived, this::onNotificationSetupFailure);
    }
}

public void onWriteClick(View view) {

    if (isConnected() && mConnectionObservable != null) {
        mConnectionObservable
                .flatMap(rxBleConnection -> rxBleConnection.writeCharacteristic(characteristicUuid, getInputBytes()))
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(bytes -> {
                    onWriteSuccess();
                }, this::onWriteFailure);
    }
}

private boolean isConnected() {
    return mBleDevice.getConnectionState() == RxBleConnection.RxBleConnectionState.CONNECTED;
}

private void onConnectionFailure(Throwable throwable) {
    //noinspection ConstantConditions
    updateUI();
    Snackbar.make(findViewById(R.id.main), "Connection error: " + throwable, Snackbar.LENGTH_SHORT).show();
}

private void onConnectionReceived(RxBleConnection connection) {
    //noinspection ConstantConditions
    Snackbar.make(findViewById(android.R.id.content), "Connection received", Snackbar.LENGTH_SHORT).show();
}

private void onConnectionStateChange(RxBleConnection.RxBleConnectionState newState) {
    //connectionStateView.setText(newState.toString());
    updateUI();
}

private void onReadFailure(Throwable throwable) {
    //noinspection ConstantConditions
    Log.d("test", "Read failure" + throwable);
    Snackbar.make(findViewById(R.id.main), "Read error: " + throwable, Snackbar.LENGTH_SHORT).show();
}

private void clearSubscription() {
    mConnectionObservable = null;
    Log.i("test", "Calling the ClearSubscription method");
    updateUI();
}

private void updateUI() {
    mConnectToggleButton.setText(isConnected() ? getString(R.string.disconnect) : getString(R.string.connected));
    mReadButton.setEnabled(isConnected());
    mWriteButton.setEnabled(isConnected());
    mNotifyButton.setEnabled(isConnected());
}

private void triggerDisconnect() {
    disconnectTriggerSubject.onNext(null);
}

private void notificationHasBeenSetUp() {
    //noinspection ConstantConditions
    Snackbar.make(findViewById(R.id.main), "Notifications has been set up", Snackbar.LENGTH_SHORT).show();
}

private void onNotificationReceived(byte[] bytes) {
    //noinspection ConstantConditions
    Log.i("test", "notifications" + HexString.bytesToHex(bytes));
    Snackbar.make(findViewById(R.id.main), "Change: " + HexString.bytesToHex(bytes), Snackbar.LENGTH_SHORT).show();
}

private void onNotificationSetupFailure(Throwable throwable) {
    //noinspection ConstantConditions
    Snackbar.make(findViewById(R.id.main), "Notifications error: " + throwable, Snackbar.LENGTH_SHORT).show();
}

private void onWriteSuccess() {
    //noinspection ConstantConditions
    Snackbar.make(findViewById(R.id.main), "Write success", Snackbar.LENGTH_SHORT).show();
}

private void onWriteFailure(Throwable throwable) {
    //noinspection ConstantConditions
    Snackbar.make(findViewById(R.id.main), "Write error: " + throwable, Snackbar.LENGTH_SHORT).show();
}

private byte[] getInputBytes() {
    return HexString.hexToBytes(mWriteInput.getText().toString());
}

}
`
and the log also filtered by tag test
01-26 18:03:07.506 6061-6061/com.semcon.ble.myapplicationble I/test: we are here new connection
01-26 18:03:07.907 6061-6197/com.semcon.ble.myapplicationble D/test: Hey, connection has been established!
01-26 18:03:09.217 6061-6061/com.semcon.ble.myapplicationble D/test: Calling read function
01-26 18:03:09.355 6061-6061/com.semcon.ble.myapplicationble D/test: Read failurejava.lang.ClassCastException: rx.Observable cannot be cast to byte[]
01-26 18:03:12.143 6061-6061/com.semcon.ble.myapplicationble D/test: Calling read function
01-26 18:03:12.229 6061-6061/com.semcon.ble.myapplicationble D/test: Read failurejava.lang.ClassCastException: rx.Observable cannot be cast to byte[]

Which version of the library do you use? Could you provide a stacktrace for the ClassCastException?

I think that you may facing an issue with Retrolambda which is mixing some references -> you get a ClassCastException. Otherwise the compiler would whine.

Library version should be
`<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.polidea.rxandroidble"

android:versionCode="1"

android:versionName="1.1.0-SNAPSHOT" >`

Get stacktrace does not return a lot
01-26 18:33:34.176 20278-20278/com.semcon.ble.myapplicationble D/test: Calling read function 01-26 18:33:39.422 20278-20278/com.semcon.ble.myapplicationble D/test: Read failure[Ljava.lang.StackTraceElement;@3a01228 01-26 18:33:39.423 20278-20278/com.semcon.ble.myapplicationble D/test: Read failurejava.lang.ClassCastException: rx.Observable cannot be cast to byte[]
Should I try with another version of the library?

you could try with 1.1.0 and expanding all lambdas / method references to anonymous classes.

@Dionysios Any news?

Hi! I managed to solve it by a number of things.
Update android build tools from 2.1.3 -> 2.2.3
import the library straigh from gradle -> compile "com.polidea.rxandroidble:rxandroidble:1.1.0"
add the retrolambda plugin as you have it on the installation instructions
and finally and most important remove  jackOptions I had before

Yeah. Unfortunately the library is not compatible with Jack at this moment. We plan to migrate to Kotlin or just get rid of lambdas as it makes a great compatibility problem.
The problem is you have to use either our library or Jack. :/ Anyways - I am glad that you have it running.

Wait, am I reading this correctly?
Though I have Java experience, I'm new to Android, Bluetooth, and Reactive programming. I went to a good deal of trouble figuring out how to set up Jack and use lambdas in Android Studio. Now you are telling me that I can't do this with your library?
If this is the case, wouldn't it have been a good idea to mention this in your documentation?
If retrolambda is an option, I didn't see any instructions on using it. Could you point me at them? What is the downside? And am I supposed to remove this from my app's build.gradle:
 jackOptions { enabled true }
How about this?
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8             targetCompatibility JavaVersion.VERSION_1_8 }
Anything you can give me in the way of detailed and specific instructions on how to recover from what looks like a small disaster would be VERY MUCH appreciated. I've been compiling 1.8 code using RxAndroidBle and haven't noticed any special problems, though I have yet to actually try running anything except some simple JUnit tests with RxBleClientMock.

I am sorry. This was an unintended consequence of using Retrolambda with the library. Unfortunately Jack does not support lambdas in library projects. Will definitely add that at the top of the Readme.md
If you only use Jack for the lambda expressions then changing to Retrolambda is quite easy - https://hackernoon.com/living-android-without-kotlin-db7391a2b170#.9s6aieeki - here you have a paragraph about lambdas and the difference between Jack and Retrolambda setup. I hope this will help you.
The problems with the compatibility are surfacing in the runtime when some generated lambdas are not matching what is expected.

Version 1.2.0-SNAPSHOT should be now compatible with Jack.

Did you see Google's recent announcement that Jack is being deprecated and Java 8 features will soon be added to the base system? Will this have any effect on this issue?

Yes - we have seen it. The library does not use lambdas anymore so we are unaffected by that change unless we decide to go back using lambdas. Thanks for info though. Best Regards.


/v1/agent/services need over 200ms

have some solution?
first time when I get services, the requesttime all over 200ms

Hi,
Thanks for reporting this. Can you let me know if you use cURL to request the same URL from Consul, does it report back in 200ms-ish or is it faster? Also, is this against a local agent or something else?

Thanks for your reply.
Here is the test result:
url: http://<IP_ADDRESS>:8500/v1/agent/services
cURL: 5ms
_client.Agent.Services().Result.RequestTime: 150 ~ 180 ms
Oh... Why I can't upload the png....

Sorry, I should to say, this result based <IP_ADDRESS>
I tried the git master, about 80 ~ 110ms
something good !


Ignite services with different class loaders (ignite 3056)

New PR for https://issues.apache.org/jira/browse/IGNITE-3056. Branch based on ignite-1.6.0

IGNITE-3056
Closed


Failed to parse header: LOCATION

@Fleker
Installing Google Assistant v 0.1.1, but getting the following error:
Looks to be an issue with google assistant API
I am attaching the full installation log
2671:2687:ERROR:assistant_ssdp_client.cc(76)] LOCATION header doesn't contain a valid url
[2671:2687:ERROR:assistant_ssdp_client.cc(210)] Failed to parse header: LOCATION:
https://embeddedassistant.googleapis.com/v1alpha2/projects/xxxxxx-yyyyyy/devices/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 200
ON_MUTED_CHANGED:
{'is_muted': False}
ON_START_FINISHED
[2671:2686:ERROR:http_client_with_backoff.cc(113)] Retrying request with http_status=200 request_id=0
[2671:2687:ERROR:assistant_ssdp_client.cc(76)] LOCATION header doesn't contain a valid url
[2671:2687:ERROR:assistant_ssdp_client.cc(210)] Failed to parse header: LOCATION:
[2671:2687:ERROR:assistant_ssdp_client.cc(76)] LOCATION header doesn't contain a valid url
[2671:2687:ERROR:assistant_ssdp_client.cc(210)] Failed to parse header: LOCATION:
googleassist.log

You may want to file an issue in the Gassist repository as well. I'm not sure what the LOCATION header is, but it may originating from the gassist project.


Playback control from BT headphones

I really like being able to control Radiant Player from the keyboard (Play/Pause, Previous song, Next song). Unfortunately, I haven't been able to do so from my bluetooth headphones (EP650), which also have Play/Pause, Next and Previous buttons.
I wonder if other users have noticed the same behaviour with different bluetooth headsets and, if so, whether this functionality could be added to future versions of Radiant Player.
Anyway, great job man!! 👍

Yeah, the (previously) poorly-named #466 refers to this.  I renamed it, and I'll close this issue as a duplicate.  Thanks!

Yup,  #466 looks like a duplicate of my issue, my bad I missed it with the old title. Thanks for taking care of it so quickly!
I may have some free time next week so if I figure out a fix before you guys do I'll work on a pull request :)

It took me a while to get Radiant Player to respect the Forward/Back/Play/Pause buttons on my bluetooth headphones, so I'll leave this here for the benefit of anyone who may find this by way of their trusty Google machine.
on Sierra 10.12.2 (16C67)

Use this tool: http://thebitguru.com/projects/itunes-patch to disconnect iTunes from the default buttons. On Sierra, I needed to do the additional step of booting into recovery mode to use csrutil.

This tool: https://github.com/jguice/mac-bt-headset-fix is a small app called bubo that maps the Bluetooth buttons to the function buttons.

Using these two things, the Bluetooth buttons on my Plantronics Backbeat Pro 2 headphones work flawlessly with Radiant Player.

@BobHatcher that's awesome, thanks for sharing the finding! Wonder if we should integrate the mac-bt-headset-fix functionlity into RadiantPlayer, or at least leave the link in the Readme/description so people can download it if interested :)
Anyway, thanks!!


[Question] Android "failed to load image" on version 1.6.2

React Native Info:

Info Fetching system and libraries information...
System:
OS: macOS 14.7
CPU: (10) arm64 Apple M1 Pro
Memory: 1.22 GB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.19.1
path: ~/.nvm/versions/node/v18.19.1/bin/node
Yarn: Not Found
npm:
version: 10.2.4
path: ~/.nvm/versions/node/v18.19.1/bin/npm
Watchman:
version: 2<IP_ADDRESS>
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/elsie/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.5
- iOS 17.5
- macOS 14.5
- tvOS 17.5
- visionOS 1.2
- watchOS 10.5
Android SDK:
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12483815
Xcode:
version: 15.4/15F31d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /usr/bin/javac
Ruby:
version: 2.7.4
path: /Users/elsie/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.0
wanted: 15.0.0
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.1
wanted: 0.76.1
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true

Hi, i have problem when get image from remote with "Authorization Header" in Android (IOS work perfectly), my config with FasterImageView:

const ImageComponent = ({...rest}: Props) => {
const {
auth: {accessToken},
} = useAuthContext();
const source: ImageOptions = {
...rest.source,
headers: {
Authorization: Bearer ${accessToken},
},
cachePolicy: 'discNoCacheControl',
};
return (
<FasterImageView {...rest} source={source} onError={e => console.log(e)} />
);
};

and i see my response from remote is:
content-length: 62769 content-type: image/jpeg date: Wed, 30 Oct 2024 10:45:30 GMT last-modified: Wed, 30 Oct 2024 10:45:04 GMT server: Kestrel
When i followed Kotlin code where raised the error, i think Coil required the response always have "Cache-Control" or anything else, right?
Many tks for providing library.

Can you try the latest version.


desktop-file-utils: use patch for font media type

Upstream seems to release very slowly - this commit has been in for some
time, but they haven't cut a new release.
Fixes #50402.
@matthewbauer
Motivation for this change
Things done

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

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

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

@GrahamcOfBorg build desktop-file-utils

Success on aarch64-linux (full log)
Attempted: desktop-file-utils
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23
shrinking /nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23/bin/update-desktop-database
shrinking /nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23/bin/desktop-file-install
/nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23
shrinking /nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23/bin/desktop-file-validate
gzipping man pages under /nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23/share/man/
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23/bin
patching script interpreter paths in /nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23
checking for references to /build in /nix/store/rvpir6iapyrvby0a0k92rhf19h887pr5-desktop-file-utils-0.23...

Success on x86_64-linux (full log)
Attempted: desktop-file-utils
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23
shrinking /nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23/bin/desktop-file-validate
shrinking /nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23/bin/update-desktop-database
shrinking /nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23/bin/desktop-file-install
gzipping man pages under /nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23/share/man/
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23/bin
patching script interpreter paths in /nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23
checking for references to /build in /nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23...
/nix/store/yvsy1qp0p73pcna0qijgc8anjdqghqm2-desktop-file-utils-0.23


Width and height mismatch in angular Material design

When i use the slider in angular material and use flex 50 next to each other, once the slider is initialized, it exceeds the flex 50 container therefore increasing the width of the parent div.
If i use it next to a non slick element, there is a mismatch in height and the layout looks off
Heres a screenshot.

Both the images used are of the same dimension
Slick version: 1.6.0
Angular material: 1.1.1

No fiddle/codepen so I can't say, but I assume it's related to the flexbox grow/shrink API, where the content demands of one are being recognized as having a greater demand for horizontal space. I know you say the images are the same, but I see some toggles/set elements in the one that's wider, so I'd start there.
Sometimes you can solve this by explicitly setting flex children to have the same width--I generally set them to all have width: 100%, and they'll adjust their size to accommodate on one line evenly, provided flex-grow/shrink are the same.


Ugrid save mesh

🚀 Pull Request
Description
Mesh saving.
An addon to the general unstructured-cube saving (#4318).
This does further complicate things a bit, hopefully not too much.

Consult Iris pull request check list

@pp-mo Could you also add a whatsnew entry for this PR, and also #4318 ?

a whatsnew entry for this PR, and also #4318

Whoops yes, absolutely.
I'll add them both in this PR, I guess that is good enough.

Thanks @bjlittle !
Now addressed above comments (I hope).
Please re-consider.. :pray:


Psychologist's Stamp

About the PR

Added psychologist stamp. Spawns in psychologist inventory (similar to clown & mime).
This is my first PR for SS14 and im not an artist so feel free to criticize sprites and anything else.
Why / Balance

Adds a avenue for psychologists to have impact on RP. Useful for prescribing treatments (anything from chemical acquisition from chem to drip from hop, whatever makes sense to "treat" the patient)
Technical details

Adds respective entries in rubber_stamp.yml, stamps.rsi/meta.json, bureaucracy.rsi/meta.json.
Media

Requirements

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase
[x] I have read and I am following the Pull Request Guidelines. I understand that not doing so may get my pr closed at maintainer’s discretion

Breaking changes

N/A
Changelog

:cl: clinux

add: Added the psychologist's stamp. Prescribe treatments for your less mentally sane crew!

Not bad

it looks very centered on the page, how does it look with a centcomm stamp? iirc that would be in basically the same spot

it looks very centered on the page, how does it look with a centcomm stamp? iirc that would be in basically the same spot

On the paper sprite or the stamp "in" the paper? If you're talking about the stamp "in" the paper, it's fine. That's just how the game handles stamping. It just got lucky and chose the middle. Everything else looks fine to me.

That's just how the game handles stamping. It just got lucky and chose the middle.

This is correct, I didn't touch the stamp system. Stamps have a color and a name and the rest is handled by a different system, admins can even make custom stamps on the fly.


[CORE] Do not catch errors during plan validation

We shouldn't catch Java/Scala errors during validation since:

Errors can lead to invalid state (e.g. load shared library failed, load class failed)
All errors should be addressed in development phase, catching them hides potential code bugs

Instead, we should only catch exceptions (although Exception is still too general for indicating a validation failure) at the moment.

@ulysses-you

An error blocks tests from passing
2023-08-14T05:52:47.1239016Z - approx_count_distinct *** FAILED ***
2023-08-14T05:52:47.1239736Z   java.lang.AssertionError: assertion failed: Only one input attribute is expected.
2023-08-14T05:52:47.1240527Z   at scala.Predef$.assert(Predef.scala:223)
2023-08-14T05:52:47.1243467Z   at io.glutenproject.execution.HashAggregateExecTransformer.$anonfun$getAggRelWithRowConstruct$2(HashAggregateExecTransformer.scala:696)
2023-08-14T05:52:47.1247190Z   at io.glutenproject.execution.HashAggregateExecTransformer.$anonfun$getAggRelWithRowConstruct$2$adapted(HashAggregateExecTransformer.scala:495)
2023-08-14T05:52:47.1248168Z   at scala.collection.immutable.List.foreach(List.scala:431)
2023-08-14T05:52:47.1249245Z   at io.glutenproject.execution.HashAggregateExecTransformer.getAggRelWithRowConstruct(HashAggregateExecTransformer.scala:495)
2023-08-14T05:52:47.1250489Z   at io.glutenproject.execution.HashAggregateExecTransformer.getAggRel(HashAggregateExecTransformer.scala:841)
2023-08-14T05:52:47.1251725Z   at io.glutenproject.execution.HashAggregateExecBaseTransformer.doValidateInternal(HashAggregateExecBaseTransformer.scala:144)
2023-08-14T05:52:47.1253274Z   at io.glutenproject.extension.GlutenPlan.doValidate(GlutenPlan.scala:66)
2023-08-14T05:52:47.1254152Z   at io.glutenproject.extension.GlutenPlan.doValidate$(GlutenPlan.scala:63)
2023-08-14T05:52:47.1255236Z   at io.glutenproject.execution.HashAggregateExecBaseTransformer.doValidate(HashAggregateExecBaseTransformer.scala:48)

@zhztheplayer This part trys to insert a projection node before aggregation for row_constructor. Looks it is not supported for approx_count_distinct yet.

@zhztheplayer This part trys to insert a projection node before aggregation for row_constructor. Looks it is not supported for approx_count_distinct yet. Can we change to throw exception instead of assert?

assert(functionInputAttributes.size == 1, "Only one input attribute is expected.")

OK so sounds to me like it can be considered as a normal validation statement? I'll make the change. Thanks.

OK so sounds to me like it can be considered as a normal validation statement? Then I'll make the change to make it throw exception. Thanks.

@zhztheplayer Yes, that makes sense to me.


Fastjx_speedup

@jialinl6 would you be willing to take a look at this?
The first commit just makes Fast-JX run (about 20x) faster without changing the results it gives.
When I was working on that, however, I noticed that WL says it is effective wavelengths of bins covering 117-850 nm, and then below that we loop through each of the wavelengths and multiply by the difference between one effective wavelength and the next one.
This seems kind of like we're doing an integral, e.g. $\int j dW \approx \sum_i j_i \Delta W_i$ .
If that's correct, then it seems like we might want to be using the width of each bin instead of the difference between the center of one bin and the next one.
So in the second commit I changed it to calculate the bin widths (assuming that the first bins starts at 117 and the last one ends at 850, and then use those bin widths to calculate the J values.
Does that seem correct?

Use WL edges

Hi, @ctessum. Thank you for pointing that out! I just found out that I shouldn't do the integral using either effective or boundaries wavelengths.
The basic formula to calculate the photolysis rate is: J = ʃ Φ(λ,T) σ(λ,T) F(θ,λ) dλ, which requires an integral.
But the wavelength bins in Fast-JX are very odd.  And in fast-jx's Fortran codes, I found that GEOS-CHEM only uses the effective bins instead of boundary bins to calculate the J rate.

[1182 line in https://github.com/geoschem/geos-chem/blob/main/GeosCore/fast_jx_mod.F90]
QQQT is the interpolated cross-section, and FFF is the actinic flux, where K represents the number in 18 effective wavelength bins, and L represents the layer number in a column.
So in Fast-JX.jl, we don't need to integrate actinic_flux * cross-section * quantum yield with respect to wavelength. The function should look like this:
function j_mean_NO2(flux,time, lat, Temperature)
    csa = cos_solar_zenith_angle(lat, time)
    actinic_flux = csa*flux
    j = 0
    if Temperature <= 200
        j = sum(actinic_flux .* table_σ_NO2_jx[1] * ϕ_NO2_jx)
    elseif Temperature >= 294
        j = sum(actinic_flux .* table_σ_NO2_jx[2] * ϕ_NO2_jx)
    elseif 200 < Temperature < 294
        k = (Temperature - 200) / (294 - 200)
        σ = (table_σ_NO2_jx[2] - table_σ_NO2_jx[1]) * k + table_σ_NO2_jx[1]
        j = sum(actinic_flux .* σ * ϕ_NO2_jx)
    end

I will change all these functions and update the solar zenith angle function that accounts for longitude.

Sounds good!

I'm going to merge the version of this that just speeds up FastJX without making any changes to the result, and then you can start with that version to make the changes you mention above. Thanks!


Publish npm package

Done, only the badge in the README.md is missing

Tag is now showing
https://github.com/Zondax/ledger-blockstack/commit/f6858c3e41f01e3a07cebd5cf6e53588a0c0702f


Saleor 4880 stripe zombie payments 3 1

I want to merge this change because it is a port of changes from #8520

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-4880 STRIPE - zombie payments


Standalone MSVC toolchain

Is it possible to use the toolchain as a standalone toolchain ie; no Visual Studio installed? CMake does allow variable: CMAKE_GENERATOR_INSTANCE to select an instance.

The toolchain works with the "Build Tools for Visual Studio 2022" - that you can find here:
https://visualstudio.microsoft.com/downloads/

That's the minimal installation that should work. In addition to the build tools, you'll also need a Windows SDK that you download from here:
https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/

Install those two things and the Toolchain should find them and hook them up.

Let me know how it goes! I should perhaps write up a getting started guide for this scenario.

I tried to use Build Tools for Visual Studio 2022 with CMAKE_GENERATOR_INSTANCE but CMake refuses to use a custom location ie; C:/BuildTools for example. I don't think this is the portable solution I am looking for, unless it's somehow possible with this toolchain to use a different location then vswhere.exe gives.


Chapter 3: About Null

Create all necessary chapters about Null. The python koans can be a rule of thumb.
https://github.com/gregmalcolm/python_koans/blob/75b749221afea775b9c23d84a26b9790ea7bd09e/python3/koans/about_none.py

Hey @md-weber is this still under development? I'd love to contribute.

Hi DhanshreeA sure feel free to add PRs to the repository and I am glad to incorporate them :)


Feature request: MessageIO support in Mocker

Mocker simplifies the process of testing the StreamIO capabilities in new Blocks. Adding the ability to also test message handling with it would further assist the process.

There's now an initial implementation. Let me know if this works for you. https://github.com/FutureSDR/FutureSDR/blob/main/tests/mocker.rs#L92-L107

Thanks!


"Your next challenge" in dashboard may be blank... (minor issue)

Hi,
I just encountered that:

Since I got to 1dan in python, the proposition for "rank up" does not work anymore.
BTW: with this settings, I often ended up with propositions of katas I had already completed when I was 1kyu... X-)
Cheers,
B4B

Related: #1183


Add example of FIO Pub Key validation using checksum process

Something like:
Validation using checksum
More rigorous checksum code may also be used to validate a FIO Address. This validation process consists of:

Confirming the first three characters of the key are 'FIO'
Base58 decoding of the char
...

[NEED TO COMPLETE, include JS and C++ sample code]

https://developers.fioprotocol.io/docs/recipes/validation

Completed: https://developers.fioprotocol.io/docs/fio-protocol/keys


make the title logo cursor pointer

i had made the hand cursor to the title and logo please review the changes and merge the pr under hacktoberfest  2023

@abhay-raj19  i had made the necessary changes and raised a pr please check and merge it under hacktoberfest


Fix responder_algorithms Fuzzing test ASSERT and hang

Fix: #338
Signed-off-by: Xiaohanjlll<EMAIL_ADDRESS>

looks good


Create /plugins/index/all API endpoint

This endpoint should behave similarly to /plugins/index (see https://github.com/chanzuckerberg/napari-hub/issues/950), including being secured by an API key, with a few key differences:

Return all plugins, not just public ones
Return plugin visibility field
Do not return activity metrics fields such as total_installs and any other ones we may add to /plugins/index.

@manasaV3 to coordinate or socialize this new endpoint to @bnelson-czi and @seankmartin

@manasaV3 Looks like this was released today! Do you want to wait to close until you've synced Ben and Sean?

I was planning to close this today and have them confirm on https://github.com/chanzuckerberg/napari-hub/issues/1202, that we can go ahead and remove those endpoints. Let me know your thoughts on that. :)

Sounds good to me!


Idea:  Army lists should hav e a clean interface

no banner on the top
maybe an option on a sidebar that allows you to bring up the top banner
side banner should be small and unassuming.
The visual of this is to look like HQ ith pics/links of 3 chars beside and the same for each othe units
clicking on the pic of the character or unit with only pop that unit.  They can click more for the full image set of those that are there.  This will minimize scrolling.
This isbeing called from a database that will have each of the units available within.

We should be putting the images up an amazon cloud bucket.  how much does that cost.  Heroku won't take all that data without it being a fortune.  Can't really source from GW because one they would be pissed and it could be litigious.


Matrix dynamic column data getting disabled on render

Are you requesting a feature, reporting a bug or asking a question?
question / bug
What is the current behavior?
Our application has a feature where we pre-populate saved data(if any) whenever a survey renders.
I have a matrix dynamic survey where few columns are related which decides if they should be enabled/disabled.
I save my data and come back, all the related columns are disabled.
What is the expected behavior?
Only columns that are disabled in my survey data should render as disabled.
How would you reproduce the current behavior (if this is a bug)?
survey definition: {  pages: [   {    name: "page1",    elements: [     {      type: "text",      name: "date",      title: "Date",      isRequired: true,      requiredErrorText: "Please enter date.",      inputType: "date"     },     {      type: "comment",      name: "Comment",      startWithNewLine: false,      title: "Comments",      isRequired: true,      requiredErrorText: "Please narrate.",      maxLength: 2000,      rows: 1     },     {      type: "matrixdynamic",      name: "MDynamic",      titleLocation: "hidden",      columns: [       {        name: "Name",        cellType: "comment",        isRequired: true,        requiredErrorText: "Please enter name.",        rows: 1,        maxLength: 2000       },       {        name: "Address",        title: "Address",        cellType: "comment",        rows: 1,        maxLength: 2000       },       {        name: "TicketReceivedDate",        title: "Ticket Received Date",        cellType: "text",        enableIf: "{row.TicketNotReceived} = false and {row.Reason NotReceived} empty",        inputType: "date"       },       {        name: "TicketNotReceived",        title: "TicketUnReceived?",        cellType: "boolean",        colCount: 0,        isRequired: true,        enableIf: "{row.TicketReceivedDate} empty",        defaultValue: "false"       },       {        name: "Reason NotReceived",        title: "Reason NotReceived?",        cellType: "comment",        isRequired: true,        requiredErrorText: "Please enter reason not received.",        enableIf: "({row.TicketNotReceived} = true and {row.TicketReceivedDate} empty) or ({row.TicketNotReceived} = false and {row.TicketReceivedDate} empty)",        rows: 1,        maxLength: 2000       }      ],      choices: [       1,       2,       3,       4,       5      ],      cellType: "text",      rowCount: 0,      defaultRowValue: {       TicketNotReceived: false      },      addRowLocation: "top",      addRowText: "ADD TICKET +"     }    ]   }  ],  showTitle: false,  showQuestionNumbers: "off",  questionErrorLocation: "bottom" }
survey data: {"MDynamic":[{"TicketNotReceived":true,"Name":"Scooby","Address":"illinois","Reason NotReceived":"No reason"},{"TicketNotReceived":false,"Name":"Akki","Address":"Georgia","TicketReceivedDate":"2018-10-09"}],"date":"2018-10-17","Comment":"no comments"}
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
your_code_here

Specify your

browser: chrome
browser version:
surveyjs platform (angular or react or jquery or knockout or vue): angular 5
surveyjs version: 1.0.52

Please see the screenshot below, this data is pre-populated when the survey rendered and if you notice the second row, the check box is checked and the textbox next to it is filled, but yet, it is disabled.

@ashygk I have created the example and checked all 3 columns with enabledIf. They enabled and disabled exactly as you have asked them to be.
Could you point us, what do you think is wrong?
Thank you,
Andrew

It works in the example you have give above.
In our case, we are pre-filling the form by getting the saved answers from the database before the survey renders.
When the Survey.render method is called, while rendering the survey with pre-filled answers, it is having those fields disabled. Please see below at the second row.

I entered the fields here and am ready to save it.

I have saved my form and this is how it is pre-populated

@ashygk I have created the example based on your json and predefined data you gave us. Could you please fork my example and modify it so it stops working? In this case we will be able to see the issue and can work on the fix.
Thank you,
Andrew

Could you please modify the example to use survey-angular rather than react..i modified the example to see how we are assigning the data and still couldn't reproduce the issue. Just curious it might be how it is rendering with angular.

https://plnkr.co/edit/CrkWZIyuv1kJIobHlZwc?p=preview

@ashygk Sure, here is the example on Angular
Probably you are using old version. Could you check it?
Thank you,
Andrew

We are using Angular 5

@ashygk The executed code will be the same. The library is the same.
Thank you,
Andrew


langchain: fix prompt length error in reduce documents chain

Description:
In file libs/langchain/langchain/chains/combine_documents/reduce.py
the following  _collapse() method of class ReduceDocumentsChain should make sure length of docs is less than length of collapse_docs(). However, the default length_func is set to self.combine_documents_chain.prompt_length
def _collapse(
    self,
    docs: List[Document],
    token_max: Optional[int] = None,
    callbacks: Callbacks = None,
    **kwargs: Any,
) -> Tuple[List[Document], dict]:
    result_docs = docs
    length_func = self.combine_documents_chain.prompt_length
    num_tokens = length_func(result_docs, **kwargs)

    def _collapse_docs_func(docs: List[Document], **kwargs: Any) -> str:
        return self._collapse_chain.run(
            input_documents=docs, callbacks=callbacks, **kwargs
        )

    _token_max = token_max or self.token_max
    retries: int = 0
    while num_tokens is not None and num_tokens > _token_max:
        new_result_doc_list = split_list_of_docs(
            result_docs, length_func, _token_max, **kwargs ## here is the issue ##
        )
        result_docs = []
        ...

Issue:
In most cases, it will not raise error, but THERE IS potential risk if user use different template for collapse_documents_chain from combine_documents_chain.prompt.
This really hard to unit test this edge condition, but the solution is obvious.
I simply changed default length_func to self.collapse_documents_chain.prompt_length

@efriis Hi Erick, I have some doubts about why this check workflows are stuck.

Any maintainer got a chance to have a look of this PR. It's a really simple and obvious one

Looking at this, it's unclear to me that token_max is not intended to be with respect to the subsequent combine_documents_chain. Let me know if I'm mistaken.

combine_documents_chain

I see! you are right. It is the token_max for subsequent combine_documents_chain
    def combine_docs(
        self,
        docs: List[Document],
        token_max: Optional[int] = None,
        callbacks: Callbacks = None,
        **kwargs: Any,
    ) -> Tuple[str, dict]:
        result_docs, extra_return_dict = self._collapse(
            docs, token_max=token_max, callbacks=callbacks, **kwargs
        )
        return self.combine_documents_chain.combine_docs(
            docs=result_docs, callbacks=callbacks, **kwargs
        )


Questions About this

Hi, I was really impressed with your work, being a beginner myself. I wanted to ask a few things, though.

Can I use this as a template to make my own password manager?
Is it secure?

Thanks!

Hello 👋 @Akul2010

Can I use this as a template to make my own password manager?
Yes you can use this as a template to make your own password manager.

is it secure ?
Yes. I have added encryption to the app, so it will encrypt all the data entered by the user before it is stored in the database.
I will also in the future add more security features like login timeouts to the app.

Hope I answered your questions,
Imira


Add run-time version check for ptxas binaries

This PR adds a run-time safety check to ensure that the ptxas binary is at least as new as the CUDA run-time jaxlib was built against
cc: @hawkinsp

@hawkinsp LMK if you still have changes you'd like to see

gentle ping @hawkinsp

CI failure: W0415 14:42:19.081894<PHONE_NUMBER>44960 xla_bridge.py:951] CUDA backend failed to initialize: glob() got an unexpected keyword argument 'root_dir'.(Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)

Ah its apparently a >=3.10 feature. Will fix

Still failing?

Looks like our CI is failing this new test:
W0415 15:20:55.609840<PHONE_NUMBER>35712 xla_bridge.py:951] CUDA backend failed to initialize: ptxas binary not found -- please either install `nvidia-cuda-nvcc-cu12` via `pip install nvidia-cuda-nvcc-cu12`, or add the directory containing your ptxas binary to your PATH environment variable..(Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)

@hawkinsp I was unable to reproduce the error. May we rerun the internal tests to see if it is reproducible?


only receive messages from me

*NuGet Package Version: 13.2.2-rc *
.NET Version : 4.5.1
hey,
i've been using this api for quite a while now but this new version is giving me some problems, one of them is the bot can only recive messages from me, i know it doesn't make sense but i used one of your samples and simply added a handler to my sub to recive messages , and it receives fine for me, but for everyone else the sub doesn't get even called

@arminblack Ya. You are right. Doesn't make sense. Did you find the fix?


The "Follow" Button doesn't have the same position

The "Follow" Button doesn't have the same position !!

I'll fix this

@codyseibert @Mr-spShuvo
There is a PR created by @mani-barathi that solves this issue
Please check it !


ResizeSensor not functioning on IE8 after changes made since 0.0.2

I confirmed that with tag 0.0.2, IE8 (using modern.IE) functions correctly and IE11 (also modern.IE) fails, as stated. With the same browser setup coupled with the software from master @ 0975de58, IE11 appears to function correctly but IE8 no longer functions. Confirmed the above in my test bench and using the last demo (demo #5?) in test\index.html. Chrome, Firefox, & Safari operate correctly with both versions. I didn't try IE9 or IE10.
The commit logs indicate that support for IE11 was added, and inspecting the source code reveals that ResizeSensor.js in master @ 0975de58 was largely rewritten since 0.0.2.
BTW, I appreciate that the nature of the work you are doing here is difficult… Ganbatte!

Huh, so it doesn't actually work now?

@vivid-inc does @ajmueller's fix resolves your issue?

@marcj Don't have an answer for you, sorry. We had to move past this issue, so for IE8 we set a listener for jquery's resize() event on the window. Sub-optimal perhaps, but still effective.
On 2015 Jan 14, at 01:28, "Marc J. Schmidt"<EMAIL_ADDRESS>wrote:

@vivid-inc does @ajmueller's fix resolves your issue?
—
Reply to this email directly or view it on GitHub.

I found a similar issue when testing IE9 (using virtual box and an image from modern.ie with Windows 8 and IE9) where IE9 never got the "scroll" events. It worked fine for IE11though.
After some digging I found that similar libraries are using the IE proprietary "resize" event on the element when running IE. So I locally patched ResizeSensor.js v0.3.0 to use the "error" event instead of "scroll" (when running IE9) and it all worked fine.

If I am understanding correctly the only change you made in ResizeSensor.js was the following for IE9
addEvent(expand, 'error', onScroll);

@hambyje See below. Once its not necessary to support ie9 anymore it can be removed since it works fine for IE10 & IE11.
if (isIELessThan10) {
    // Internet explorer 9 does not listen to scroll events (but fortunately proprietary "onresize" events)
    addEvent(expand, 'resize', onScroll);
    addEvent(shrink, 'resize', onScroll);
}
else {
    addEvent(expand, 'scroll', onScroll);
    addEvent(shrink, 'scroll', onScroll);
}

Thanks
From: Erik Winlöf<EMAIL_ADDRESS>Sent: Friday, December 11, 2015 2:27 AM
To: marcj/css-element-queries
Cc: Hamby,Jeff
Subject: Re: [css-element-queries] ResizeSensor not functioning on IE8 after changes made since 0.0.2 (#20)
@hambyjehttps://github.com/hambyje See below. Once its not necessary to support ie9 anymore it can be removed since it works fine for IE10 & IE11.
if (isIELessThan10) {
// Internet explorer 9 does not listen to scroll events (but fortunately proprietary "onresize" events)

addEvent(expand, 'resize', onScroll);

addEvent(shrink, 'resize', onScroll);

}
else {
addEvent(expand, 'scroll', onScroll);

addEvent(shrink, 'scroll', onScroll);

}
—
Reply to this email directly or view it on GitHubhttps://github.com/marcj/css-element-queries/issues/20#issuecomment-163873381.


Remove mutable defaults and allow more generic types

Summary
Solve #353 and #354 by removing mutable defaults and allowing more generic types than just lists/tuples/sets.
Details
Mutable defaults
Mutable defaults are a bad idea since they're evaluated at definition time and mutating a default value in 1 instance will mutate it in all of them.
This PR solves bad mutable defaults by allowing the user to pass (and defaulting to) None, which retains the old behavior.
More generic types
The code already worked for any Iterables, as we only iterated on the values. These changes reflect that reality by not forcing the user to pass lists, but allowing them to pass any iterables and storing them as lists internally (to not change the API).
str_types deprecation
str_types is a legacy thing from when the library supported Python 2, where the str_types were str and unicode. This PR deprecates the variable in favour of checking against str. This is a minor internal tweak.
Questions
I replaced the AssertionErrors with more aptly (IMO) suited TypeErrors and ValueErrors. Do you think this constitute a breaking change? Given the errors were raised only upon instantiation for validation and that they were undocumented behaviour, I'd say these are not breaking.
Notes
I'm totally open to any critique/requests, and even to not merging the PR if you think it's not a good idea. Just let me know!

Thanks once again for the PR! I will look tomorrow into it.

Also this is no longer a problem indeed:
>>> ua3.browsers
['chrome', 'firefox', 'safari', 'edge']
>>> ua3.browsers.append("opera")
>>> ua3.browsers
['chrome', 'firefox', 'safari', 'edge', 'opera']
>>> ua2 = FakeUserAgent()
>>> ua2.browsers
['chrome', 'firefox', 'safari', 'edge']

Ps. Sorry I couldn't test it earlier. There was some kind of Chinese & Singapore DDoS attack happening. Hopefully not using fake-useragent python package.. 🤕

Haha, let's hope not. Thanks for the merge!


Added function and cli tool to reconstruct subs files to full resolution

I use this a bunch when looking at data. We talked about adding the hooks within Isofit to do this. I kept it as a standalone module for now. Could easily wrap it into applyOE as an argument and routine if it proves to be useful/needed.

Nice one!  I'd love to add to apply_oe as well, but that doesn't need to block this PR.  As a non-invasive PR (new util), safe to merge... doing so with only one review.  We can revisit if anyone takes issue.

fyi @pgbrodrick None of your comments from the meeting this afternoon are showing up.

Very nice add-on, @evan-greenbrg! I've been using similar functionality in the past, so having this as an official utility command in ISOFIT is great.


Add Basic FE configuration as needed.

Please try to add the basic FE works here

Will need to research on it and implemented


Menu Bar

I'd like to create a menu bar for SvelteLab to replace the current header section (Logo, Files Terminal Toggle).
This section will house a more discoverable way to access common SvetlteLab features.
Here is how it could look like:

We could re-use the menu component and create a component to declare the menu bar structure from an object.
My proposal for menu labels and ordering (very open to bike shedding:)
SvelteLab:
New Project
New with Template
Set Default Template
—
Login via GitHub
Profile
—
Open Command Palette
Open SvelteLab Docs
Open SvelteLab GitHub Repo
Submit Issue
Join Discord
Credits
Show Intro
Project:
Share File Tree Snapshot via URL Hash
Share Project via ID
—
Create Route
Svelte Add
Install Package
Export / Download Project
Format current file
—
Save Project
Fork Project
Rename Project
Preferences:
Toggle Theme
Toggle File Tree
Toggle Terminal
Remove Theme Preference
—
Vim Keybindings
Font Preference
Wrap Code
—
Sort Files First
Show From /src

This is not a bad idea IMHO but I would still leave the header as is (so fork, save, login etc would still be visibile in the header) and make a bit more clear the sveltelab is a menu too (or add a third option)...also let's not forget about mobile

yes i planned to keep the icons we have already there ;)
thanks for reminding me of mobile :sweat_smile:

this is closable right @SarcevicAntonio ?


[SPARK-33900][WEBUI] Show shuffle read size / records correctly when only remotebytesread is available

What changes were proposed in this pull request?
Shuffle Read Size / Records can also be displayed in remoteBytesRead>0 localBytesRead=0.
Why are the changes needed?
At present, the page only displays the data of Shuffle Read Size / Records when localBytesRead>0.
When there is only remote reading, metrics cannot be seen on the stage page.
Does this PR introduce any user-facing change?
No
How was this patch tested?
manual test

current:

after:

Can one of the admins verify this patch?

ok to test.

Test build #133352 has started for PR 30916 at commit 1e776ad.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37943/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/37943/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/37943/

Test build #133352 has finished for PR 30916 at commit 1e776ad.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133352/

@cxzl25 Nice catch. Could you copy the screen shots to the description ?

Thanks @cxzl25 ! Merged to master/branch-3.1/branch-3.0.


Make cargo input invalidate existing binary if input is downloaded

Fixed and in main, but waiting for release.


Request API class: Rework (external) ID field

Currently, the system field for the external ID of the Request in the API class is called id, which is inconsistent with basically all other implementations of records: https://github.com/inveniosoftware/invenio-requests/blob/de30a5f8e8cd25877718db2e776edc4f9025f740/invenio_requests/records/api.py#L34
This field (for the external ID) should probably be renamed into something else, maybe even pid (but without using an acutal pidstore model), to be more consistent with other record API classes?
And the basic id field should just point to the model's UUID.
Ping @lnielsen

also, the field should be migrated over (or at least be made aware of) the RequestType refactoring, in order to still be customizable (because it's no longer the API class that's being overridden, but rather the RequestType)


[Feature] Trim whitespace of phone input on type

Is your feature request related to a problem? Please describe.
Users get confused when they enter their phone number with spaces and the validation says it's not valid:
Sample phones:
0888 888 888
0888 888888
02 999 999 999
+359 888 888 888

Describe the solution you'd like
Trim whitespace while user enters their phone number so the frontend and backend validations are happy and we don't store spaces in the db.
Describe alternatives you've considered
Changing the validation
Additional context
Related to #228 and #219

I found solution for whitespace in phone number.
https://prnt.sc/148i49v
In validation.ts
import "yup-phone";
export const phoneRegex = /^(+?\d{0,4})?\s?-?\s?((?\d{3})?)\s?-?\s?((?\d{3})?)\s?-?\s?((?\d{4})?)?$/;
export const phone = string().phone("IN", false, "Невалиден телефон").required().trim().matches(phoneRegex, customValidators.phone).min(9).max(15)

@DimitarPramatarov As I understand your solution is to update the regex to validate whitespace characters in groups.
Maybe I've not described the problem and the expected solution correcly in the description. WIll update it with sample usecases.
The solution from my perspective should be handled with react callback attached to onKeyUp or onKeyDown events that will not place the space in the visible input field.
In this way we don't have to change the validation to allow any spaces in the phone number and it will be always like:
0888888888
0888888888
02999999999
+359888888888

@kachar I added "yup-phone" dependency wich provide us  phone() method. With this additional method , we show the error message for whitespace  - string().phone("IN", false, "Невалиден телефон")

This dependency is too heavy for one phone number in my humble opinion. It's not worth spending so many kb on such tiny thing.
Destination: dist/yup-phone.umd.min.js
Bundle Size:  503.62 KB
Minified Size:  501.29 KB
Gzipped Size:  102.55 KB

We ONLY need to accept a number without spaces in it which is absolutely simple task. Removing the spaces from it even does not have to be part of the validation, only transformation step prior validation.

Do we want any validation in the contacts module about this? Currently it checks nothing see here


Updated styling issues related to inconsistency for ticket #959

Pull Request Template

Please provide all of the details below. Pull requests missing any of the information below will be closed!
Providing the issue number/url helps us identify the problem being solved and keep the issues tab clean and tidy

What issue does this fix?.
Summarize what this PR fixes:-
< Detail what your PR changes/fixes >

Drop down color in dark mode is not consistent with theme colors
Pricing header font style is not consistent with other section headers
More tab nav header size is not consistent with other nav tab headers
Never Miss An Update section should require email characters

What ISSUE NUMBER does this fix?
Fixes #959
Checklist
(Add an x between the brackets to check the items)

[x] I have summarize what this PR fixes above
[x] I have provided the issue ID/URL above
[x] I have not added Bootstrap or jQuery and used correct styling guide.
[x] This PR fixes only the issue mentioned above (create separate PRs for separate issues)
[x] I was the first one to claim the issue or I created the issue - I created the issue

There are some changes in here that would probably be okay, but it completely messed up the layout away from the mockup.
This is the current one:

and this is yours:

It is best to keep changes small and to a file or two to avoid conflicts and allow for incremental changes that don't mess the design up.

Np I'll remove the commits that edit that layout


[Issue]: Instinct MI60 Fails to initialize with Ubuntu 24.04 and 22.04 Guest VMs under ESXi 8

Problem Description
I have a Dell R7515 32 core AMD EPYC rackmount server.  I recently bought a second hand MI60 GPU to get some experience with AMD DC GPUs (It's my first AMD GPU).
The Dell is running  VMware ESXi, 8.0.3, 24022510 as my hypervisor, and I've tried Ubuntu 22.04 and 24.04 guest VMs.  Unfortunately the card fails to initialize under a VM.  I have also tried it on bare metal Ubuntu 22.04 (same iso) on the same machine and works fine.
[VM settings]
Reserved 32gb ram
pciPassthru.use64bitMMIO set to TRUE
pciPassthru.64bitMMIOSizeGB = 128,
secureboot = false
I have tried doing PCI Passthrough with both Dymanic DirectPathIO and regular Directpath IO.
lspci shows that the card is there
$ lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:07.7 System peripheral: VMware Virtual Machine Communication Interface (rev 10)
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
02:00.0 Serial Attached SCSI controller: VMware PVSCSI SCSI Controller (rev 02)
02:01.0 Ethernet controller: VMware VMXNET3 Ethernet Controller (rev 01)
02:02.0 SATA controller: VMware SATA AHCI controller
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 20 [Radeon Pro VII/Radeon Instinct MI50 32GB]

but dmesg shows that there's failures.
$ sudo dmesg | grep amd
[    0.000000] Linux version 5.15.0-124-generic (buildd@lcy02-amd64-118) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 (Ubuntu 5.15.0-124.134-generic 5.15.163)
[    4.059471] [drm] amdgpu kernel modesetting enabled.
[    4.060689] amdgpu: CRAT table not found
[    4.061819] amdgpu: Virtual CRAT table created for CPU
[    4.062712] amdgpu: Topology: Add CPU node
[    4.063968] amdgpu 0000:03:00.0: enabling device (0000 -> 0002)
[    4.067449] amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[    4.077094] amdgpu 0000:03:00.0: BARt 6: can't assign [??? 0x00000000 flags 0x20000000] (bogus alignment)
[    4.119943] amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from ROM
[    4.120839] amdgpu: ATOM BIOS: 113-D1630600-107
[   24.126942] [drm:atom_op_jump [amdgpu]] *ERROR* atombios stuck in loop for more than 20secs aborting
[   24.127710] [drm:amdgpu_atom_execute_table_locked [amdgpu]] *ERROR* atombios stuck executing 4EC8 (len 74, WS 0, PS 8) @ 0x4EE0
[   24.128761] amdgpu 0000:03:00.0: amdgpu: gpu post error!
[   24.129239] amdgpu 0000:03:00.0: amdgpu: Fatal error during GPU init
[   24.129707] amdgpu 0000:03:00.0: amdgpu: amdgpu: finishing device.
[   24.131460] amdgpu: probe of 0000:03:00.0 failed with error -22

I understand these are older cards, but there are a lot of people using these and I personally got one to see how compatible things were prior to buying MUCH more expensive cards for virtualization, as it looks like only the MI210s have been tested with VMware. :(
Operating System
Ubuntu 22/24  with esxi 8.0.3
CPU
AMD Epyc
GPU
AMD Instinct MI60, (displays as a 32gb MI50)
ROCm Version
ROCm 6.2.2
ROCm Component
No response
Steps to Reproduce
Create new VM - 32gb ram, 256gb disk, directpathio passthrough of mi60.
set pciPassthru.use64bitMMIO set to TRUE
set pciPassthru.64bitMMIOSizeGB = 128,
set secureboot = false
Fresth install of server minimal Ubuntu 22.04 enable ssh access
follow instructions for 22.04 install of rocm from: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/quick-start.html
(side note if you run this in your home directory you get a warning that the _apt user doesn't have access, better to run it from /tmp/ where all users do have access!)
reboot.
I think there's a kernel parameter or vmware setting that needs to be set to properly align the BAR (I assume that's what I'm reading here)
I have a VM snapshot of a fresh install of ubuntu 22.04 so I can repeat these steps as needed for testing, also happy to do whatever testing is needed.
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
$ /opt/rocm/bin/rocminfo --support
ROCk module version 6.8.5 is loaded
=====================
HSA System Attributes
=====================
Runtime Version:         1.14
Runtime Ext Version:     1.6
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:<PHONE_NUMBER>3709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE
System Endianness:       LITTLE
Mwaitx:                  DISABLED
DMAbuf Support:          YES

==========
HSA Agents
==========
*******
Agent 1
*******
  Name:                    AMD EPYC 7452 32-Core Processor
  Uuid:                    CPU-XX
  Marketing Name:          AMD EPYC 7452 32-Core Processor
  Vendor Name:             CPU
  Feature:                 None specified
  Profile:                 FULL_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        0(0x0)
  Queue Min Size:          0(0x0)
  Queue Max Size:          0(0x0)
  Queue Type:              MULTI
  Node:                    0
  Device Type:             CPU
  Cache Info:
    L1:                      32768(0x8000) KB
  Chip ID:                 0(0x0)
  ASIC Revision:           0(0x0)
  Cacheline Size:          64(0x40)
  Max Clock Freq. (MHz):   0
  BDFID:                   0
  Internal Node ID:        0
  Compute Unit:            64
  SIMDs per CU:            0
  Shader Engines:          0
  Shader Arrs. per Eng.:   0
  WatchPts on Addr. Ranges:1
  Memory Properties:
  Features:                None
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: FINE GRAINED
      Size:                    65826428(0x3ec6e7c) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Recommended Granule:4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
    Pool 2
      Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
      Size:                    65826428(0x3ec6e7c) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Recommended Granule:4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
    Pool 3
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED
      Size:                    65826428(0x3ec6e7c) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Recommended Granule:4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
  ISA Info:
*** Done ***

Additional Information
Running on bare metal the GPU initializes correctly:
$ sudo dmesg | grep amdgpu
[sudo] password for haydon:
[    6.909392] [drm] amdgpu kernel modesetting enabled.
[    6.909639] amdgpu: Ignoring ACPI CRAT on non-APU system
[    6.909657] amdgpu: Virtual CRAT table created for CPU
[    6.909688] amdgpu: Topology: Add CPU node
[    7.064057] amdgpu 0000:c5:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[    7.151510] amdgpu 0000:c5:00.0: amdgpu: Fetched VBIOS from ROM BAR
[    7.152748] amdgpu: ATOM BIOS: 113-D1630600-107
[    7.276963] amdgpu 0000:c5:00.0: amdgpu: MEM ECC is active.
[    7.283581] amdgpu 0000:c5:00.0: amdgpu: SRAM ECC is active.
[    7.290116] amdgpu 0000:c5:00.0: amdgpu: RAS INFO: ras initialized successfully, hardware ability[7fff] ras_mask[7fff]
[    7.307903] amdgpu 0000:c5:00.0: amdgpu: VRAM: 32752M 0x0000008000000000 - 0x00000087FEFFFFFF (32752M used)
[    7.316744] amdgpu 0000:c5:00.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[    7.325358] amdgpu 0000:c5:00.0: amdgpu: AGP: 267878400M 0x0000008800000000 - 0x0000FFFFFFFFFFFF
[    7.354853] [drm] amdgpu: 32752M of VRAM memory ready
[    7.355978] [drm] amdgpu: 32752M of GTT memory ready.
[    7.381237] amdgpu 0000:c5:00.0: amdgpu: PSP runtime database doesn't exist
[    7.417200] amdgpu: hwmgr_sw_init smu backed is vega20_smu
[    7.735764] amdgpu 0000:c5:00.0: amdgpu: HDCP: optional hdcp ta ucode is not available
[    7.736679] amdgpu 0000:c5:00.0: amdgpu: DTM: optional dtm ta ucode is not available
[    7.737388] amdgpu 0000:c5:00.0: amdgpu: RAP: optional rap ta ucode is not available
[    7.738058] amdgpu 0000:c5:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[    8.059471] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[    8.354264] amdgpu: HMM registered 32752MB device memory
[    8.373541] amdgpu: SRAT table not found
[    8.379308] amdgpu: Virtual CRAT table created for GPU
[    8.400757] amdgpu: Topology: Add dGPU node [0x66a1:0x1002]
[    8.412093] kfd kfd: amdgpu: added device 1002:66a1
[    8.461578] amdgpu 0000:c5:00.0: amdgpu: SE 4, SH per SE 1, CU per SH 16, active_cu_number 64
[    8.480648] amdgpu 0000:c5:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[    8.488733] amdgpu 0000:c5:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[    8.494434] amdgpu 0000:c5:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[    8.508736] amdgpu 0000:c5:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[    8.516575] amdgpu 0000:c5:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[    8.528760] amdgpu 0000:c5:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[    8.538282] amdgpu 0000:c5:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[    8.547216] amdgpu 0000:c5:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[    8.558412] amdgpu 0000:c5:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[    8.565479] amdgpu 0000:c5:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[    8.576903] amdgpu 0000:c5:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
[    8.584194] amdgpu 0000:c5:00.0: amdgpu: ring page0 uses VM inv eng 1 on hub 1
[    8.596738] amdgpu 0000:c5:00.0: amdgpu: ring sdma1 uses VM inv eng 4 on hub 1
[    8.603145] amdgpu 0000:c5:00.0: amdgpu: ring page1 uses VM inv eng 5 on hub 1
[    8.615585] amdgpu 0000:c5:00.0: amdgpu: ring uvd_0 uses VM inv eng 6 on hub 1
[    8.622202] amdgpu 0000:c5:00.0: amdgpu: ring uvd_enc_0.0 uses VM inv eng 7 on hub 1
[    8.632733] amdgpu 0000:c5:00.0: amdgpu: ring uvd_enc_0.1 uses VM inv eng 8 on hub 1
[    8.639847] amdgpu 0000:c5:00.0: amdgpu: ring uvd_1 uses VM inv eng 9 on hub 1
[    8.650621] amdgpu 0000:c5:00.0: amdgpu: ring uvd_enc_1.0 uses VM inv eng 10 on hub 1
[    8.659124] amdgpu 0000:c5:00.0: amdgpu: ring uvd_enc_1.1 uses VM inv eng 11 on hub 1
[    8.668217] amdgpu 0000:c5:00.0: amdgpu: ring vce0 uses VM inv eng 12 on hub 1
[    8.677994] amdgpu 0000:c5:00.0: amdgpu: ring vce1 uses VM inv eng 13 on hub 1
[    8.685370] amdgpu 0000:c5:00.0: amdgpu: ring vce2 uses VM inv eng 14 on hub 1
[    8.732550] amdgpu: Detected AMDGPU DF Counters. # of Counters = 8.
[    8.733494] amdgpu: Detected AMDGPU 2 Perf Events.
[    8.751269] [drm] Initialized amdgpu 3.42.0 20150101 for 0000:c5:00.0 on minor 1

It's been a month.  Any follow up?

Hi @haydonryan, apologies for the delayed response. Like you've said:

it looks like only the MI210s have been tested with VMware

This is the case currently as you've likely seen in our system requirements. Virtualization is a complex usecase that users have asked for, and AMD is working to improve, but our support for it is unfortunately limited at the moment.
On top of that, general ROCm support for the MI50 has been deprecated, so you will likely run into more problems in the future if you try to use it with the latest ROCm release.
That said, I apologize that this is your first experience with an AMD GPU, I know it is a frustrating experience to hear that we've dropped support for a device. I'll try to reproduce the issue internally to assess its magnitude/resolvability and keep you updated on that.

Hi @haydonryan, so unfortunately I don't think we've ever supported the virtualization usecase for MI50 and developing those codepaths / validating on that hardware is not planned at the moment.
Additionally, I see a note in the ROCm 5.6.0 release notes that MI50 has effectively reached EOL at this point so you shouldn't expect further updates to support that hardware.
I am sorry about this, but it looks like virtualization is one of those usecases where a significant amount of work needs to be done in firmware and kernel driver and that's just not planned for the MI50 generation of cards.

Very disappointing :(

@haydonryan MI50 and MI60 are effectively the same, support-wise. I am sorry to disappoint but this is unfortunately the state of ROCm at the moment.


Add build script to react version

This should resolve #2 and #3

I added babel-cli and babel-preset-env to the devDependencies so that you can now compile es6 down to es5.
I put the export keyword for each of the files, since they were missing.

Image.js was previously missing an import from util/idGenerator.js

I added 2 scripts to your package.json

build would compile the code to es5
prepublishOnly would run npm run build right before you publish the dist directory

Also, I have a question: Should the dist directory be in the .gitignore in the repository since it's now just the output from the build?
I just love using mini.css and wanted to help out!

On a side note, the same problems are probably part of the Preact library, so I guess I'll have to apply the same fixes for them, too.


Add manually triggered action for pushing docker image by SHA

Fixes

Fixes #597 by @AetherUnbound
Description

This PR adds the ability to tag a Docker image artifact by SHA only and push it to our container registry. The workflow is manually triggered and requires an input on which image to push (only one option is allowed because we are almost never making changes to both the API and ingestion server images).
The example use case for this: We've made a change to one of the services, and want to deploy it on staging. Our deployment process requires (or will soon require) a tagged Docker image to deploy. Running this workflow will tag and push an image by SHA only, so latest is unaffected. We can then deploy by pointing to said commit.
Testing Instructions

I'm going to test this in this PR!
Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

This is ready for review! I ran an API job for commit: 4d4a466585d9a55441f708fab540ecb92ae5523f (https://github.com/WordPress/openverse-api/pull/636/commits/4d4a466585d9a55441f708fab540ecb92ae5523f) using gh workflow run push_docker_image.yml --ref feature/docker-image-when-needed#597 -f image=api.
Here is the run: https://github.com/WordPress/openverse-api/runs/5891296828?check_suite_focus=true
Here is the GHCR image tagged with the commit: https://github.com/wordpress/openverse-api/pkgs/container/openverse-api/18665267?tag=4d4a466585d9a55441f708fab540ecb92ae5523f (note that latest is not on this build).

I'll add some documentation for this, then merge it 🙂

I added documentation and made some minor adjustments to other pages. I'd like to add screenshots but until this gets merged into main, the actions described won't be available. We can do that in a follow up PR. I'll merge this once everything's done building!


Owner: Be able to delete QR codes

As an owner, I want to be able to delete QR codes which are bad or malicious so that the players in the game are not offended or discouraged to play when they see them

[x] flag on DB
[x] functions to delete id
[ ] flag things connected to it
[ ] create delete button

Not done yet

Delete button now added to the search activity. Search list and the database are both updated when the button is pressed


Adds Ruby 3.1 and 3.2 to CI

Includes a Rubocop update to a compatible version and fixing a few lints.
Quotes the "3.0" in the GitHub Actions config to avoid truncation to "3".
Updates the checkout actions versions.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Sorry for the very tardy response. Closed via https://github.com/square/rails-auth/pull/75.


Dialogflow list parameters  exception

With BenTen,  Just curious if there has been any testing with Dialogflow list parameters or if this is just me that is experiencing these run-time errors (entirely possible that I'm doing something wrong with the Java code for my intent). I cannot seem to get it to successfully pass a DialogFlow parameter into BenTen through slack if the IsList checkbox is checked in dialog flow. unchecking that checkbox allows the code and the single string value to be passed and used successfully in my local testing. also, Looking at the mvn spring-boot console it seems to throw some run-time exceptions anytime Dialogflow sends a list parameter.

Fixed in release 0.1.3
You can extract list parameters using
List<String> list =
           BentenMessageHelper.getParameterAsInteger(bentenMessage, "list");


LTE RRC SystemInformation-r8-IEs ASN1 compilation issue (and work around).

'C' code output by asn1c from compilation of one specific section of the the published LTE ASN1 RRC (36.331 v990) spec, produced gcc compilation issues.
[gcc version is (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010)]
SystemInformation-r8-IEs ::=		SEQUENCE {

	sib-TypeAndInfo						SEQUENCE (SIZE (1..maxSIB)) OF CHOICE {
		sib2								SystemInformationBlockType2,
                  -- snipped for brevity
		...,
		sib12-v920							SystemInformationBlockType12-r9,
		sib13-v920							SystemInformationBlockType13-r9
	},
	nonCriticalExtension				SystemInformation-v8a0-IEs							OPTIONAL
 }

when asn1c compiled, and then gcc compiled, produced the following gcc warnings:
Sib-TypeAndInfo.h:57:9: warning: ‘struct Sib_TypeAndInfo__Member’ declared inside parameter list
   union Sib_TypeAndInfo__Member_u {
         ^
./asn_SET_OF.h:17:16: note: in definition of macro ‘A_SET_OF’
   void (*free)(type *);   \
                ^
Sib-TypeAndInfo.h:55:2: note: in expansion of macro ‘A_SEQUENCE_OF’
  A_SEQUENCE_OF(struct Sib_TypeAndInfo__Member {
  ^

As a work around that got rid of the gcc compilation warnings, I decomposed the ASN1 slightly to:
Sib-TypeAndInfo ::=						 CHOICE {
	sib2								SystemInformationBlockType2,
                  -- snipped for brevity
	...,
	sib12-v920							SystemInformationBlockType12-r9,
	sib13-v920							SystemInformationBlockType13-r9
}

SystemInformation-r8-IEs ::=		SEQUENCE {
	sib-TypeAndInfo		SEQUENCE (SIZE (1..maxSIB)) OF Sib-TypeAndInfo,
	nonCriticalExtension				SystemInformation-v8a0-IEs							OPTIONAL
}

Hi, @mdrenwick ,
Because this rrc-7.1.0.asn1 file comes from 3GPP's official document which evolve to newer version regularly and there are many places inside this ASN.1 file has similar construction, I think hand-modification of content of this file might not be a feasible way.
I spent this weekend tweaking several files in asn1c and manage to eliminate this warning when compiling RRC example. I sent out it as pull request #96. I am not sure whether it works for 36.331 v990's ASN.1 or not.  Just for your reference.
I hope @vlm and you can have a look at it and give me advice about how to make it better.
If you have any question, please let me know.
Thanks.
regards,
brchiu.

Hi @brchiu
I tried again, after applying a patch with your changes. But no change :(
Thanks for your help, nonetheless.
There's a later RRC ASN.1 spec here that you could download to test against, if you have the time.
mdrenwick

@mdrenwick , Many thanks for your feedback.
For R12's EUTRA-RRC-Definitions.asn you provided, I found that I have to modify function asn1c_lang_C_type_CHOICE() function with the same trick which I used on asn1c_lang_C_type_SEQUENCE(). Now I did not see this A_SET() warning when compiling the files generated by this R12 RRC ASN.1 file on Linux platform.
I have already made this change in my pull request.
For your reference.

@brchiu, I tried your lastest changes without success.
I think the approach of forward declaring extra struct's to fix this problem is insufficient.
The crux of the problem is within the macro definition "A_SET_OF":
#define	A_SET_OF(type)    /*snip*/ void (*free)(type *);}
When certain nested ASN.1 constructs (example: original bug report) get compiled by asn1c, the resultant generated code places a type-declaration within the last line of the expanded macro - which is a parameter of the free function pointer.
Whereas typically an invocation of the macro A_SET_OF is not nested like:
A_SEQUENCE_OF(struct InterFreqCarrierFreqInfo) list;
that expands to
/*snip*/ void (*free)(struct InterFreqCarrierFreqInfo * );}
the nested case is more like
A_SEQUENCE_OF(struct System_snip__Member { /*struct-members*/ }) list;
that expands to
/*snip*/ void (*free)(struct System_snip__Member{ /* struct-members*/ } * );}
And its the inclusion of the { /* struct-members */ } within the function parameter list that happens during the macro expansion of the nested structure that's the problem.
No amount of additional forward declaring will solve it. I believe "C" considers the inclusion of { /*struct members*/ } a declaration of a new type for the function parameter - regardless of any matching prior declared type.

Hi, @mdrenwick,
Look strange, since I don't see warning message using my yesterday's updated commit.
(I squashed two commits into one, so you might see only one commit in my pull request. please re-get the files, especially asn1c_C.c under libasn1compiler directory)
I put my generated SystemInformation-r8-IEs.c in gist.
The struct SystemInformation_r8_IEs__sib_TypeAndInfo__Member is moved forward declaration section and only
/* SystemInformation-r8-IEs */
typedef struct SystemInformation_r8_IEs {
	struct SystemInformation_r8_IEs__sib_TypeAndInfo {
		A_SEQUENCE_OF(SystemInformation_r8_IEs__sib_TypeAndInfo__Member) list;

		/* Context for parsing across buffer boundaries */
		asn_struct_ctx_t _asn_ctx;
	} sib_TypeAndInfo;
	struct SystemInformation_v8a0_IEs	*nonCriticalExtension	/* OPTIONAL */;

	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} SystemInformation_r8_IEs_t;

So the pre-processed output by gcc's -E flag is :
typedef struct SystemInformation_r8_IEs {
 struct SystemInformation_r8_IEs__sib_TypeAndInfo {
  struct { SystemInformation_r8_IEs__sib_TypeAndInfo__Member **array;
  int count; int size;
  void (*free)(SystemInformation_r8_IEs__sib_TypeAndInfo__Member *);
 } list;

  asn_struct_ctx_t _asn_ctx;
 } sib_TypeAndInfo;
 struct SystemInformation_v8a0_IEs *nonCriticalExtension ;

 asn_struct_ctx_t _asn_ctx;
} SystemInformation_r8_IEs_t;

Or is there any difference between the R12 RRC ASN.1 file you uploaded and Release 9 (v990)  ASN.1 you  mentioned in your issue ?

Hi, @mdrenwick
By the way, if you just execute make under examples/sample.source.RRC directory, it will not re-generate *.c and *.h files, you have to execute make regen to do this. The safest way to ensure code re-generation is deleting all *.c and *.h then execute make again.

Hi @brchiu,
Aha! Yes, I needed to regenerate the asn1c compiler! My error.
Having done that, the RRC v9.9.0 ASN.1 (including the nested SEQUENCE) is parsed faultlessly with your changes.
Thank you!

Hi, @mdrenwick,
Great to know this !!
Many thanks for your feedback which help me improving my original pull request.

Hi @brchiu,
Newb question: Should I close this issue now, or should I close it once merged, or will you (or vlm) close it?
Cheers

Hi, @mdrenwick,
I don't know neither, Ha !! ^_^
I am just an ordinary user who would like to use this @vlm great project in my future work. I never communicate with him. Moreover, I am not sure whether @vlm will accept my pull request or he will revise another better one.
IMHO, we can leave this issue opened as this moment, then anyone who is interested in this issue can see our conversation here and get a temporary solution.

@brchiu, @mdrenwick, thank you for your investigation and the patch. I'll merge it in shortly!

Hi @vlm ,
May I know if it has be merged already?
Best regards,
Kevin Chen


ARM-based processors

Does Windows Defender ATP support ARM-based processors? Can it be used on a Microsoft Surface Pro X?

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

ID: b8aca66a-5a8b-64d2-7201-a7b915c5d309
Version Independent ID: c3cc0543-db20-a8f2-288c-d1dea5ea479f
Content: Minimum requirements for Microsoft Defender ATP
Content Source: windows/security/threat-protection/microsoft-defender-atp/minimum-requirements.md
Product: w10
Technology: windows
GitHub Login: @mjcaparas
Microsoft Alias: macapara

@officedocsbot assign @jvsam

@thetechguy86. All Android  OS running in the smart phones  will be manufacturered ARM chips, so that meass windows defender ATP is supported.

I opened a case with Microsoft Technical support and they are stating Windows Defender ATP is not supported on ARM-based processors.

Thank you for sharing @thetechguy86! This is valuable information that can help other users since feedback or issues shared through the Microsoft Docs are public. I also recommend periodically checking the What's new in Microsoft Defender ATP content page to keep abreast of the new feature enhancements and capabilities (including those in preview). There is a good news though, users of Windows 10 19H2 will have Windows Defender Credential Guard enabled for ARM64 devices  for additional protection against credential theft for enterprises. More information available on Microsoft's blog.
Since Windows 10 for ARM does not support MDATP yet, I encourage you to submit this on UserVoice (Feedback Hub). This way, your feedback goes directly to the Microsoft product team and I assure you, they would love to hear what you think. If there's already a request, suggestion or feedback similar to yours, you can add your vote to the request. Thank you!
NOTE: We're not sure exactly what has been communicated by Windows Support with regard to ARM. If it's something that you believe needs to be called out in the docs, let us know and provide more information. Please be informed that this GitHub-based feedback system is intended to help improve the quality of the technical documentation of Microsoft Docs through user contributions and feedback. We are always looking forward to suggestions and ideas to make the docs better for users.

Hi again @thetechguy86, we hope the information we've provided helped. We will now close this issue, and again, please let us know if you have feedback or suggestions to help improve the quality of the Microsoft Docs technical documentation. Thanks for being part of the Microsoft Docs community!

@officedocsbot close