UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.10 to before v5.10.43",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b91540d52a08b65eb6a2b09132e1bd54fa82754c",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5148066edbdc89c6fe5bc419c31a5c22e5f83bdb"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "b91540d52a08b65eb6a2b09132e1bd54fa82754c",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "5148066edbdc89c6fe5bc419c31a5c22e5f83bdb",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "efi/fdt: fix panic when no valid fdt found\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.43 by commit 5148066edbdc89c6fe5bc419c31a5c22e5f83bdb, it was introduced in version v5.10 by commit b91540d52a08b65eb6a2b09132e1bd54fa82754c. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1000762


Revert removal of GDNativeExtensionScriptInstanceInfo::get_property_type_func in GDExtension

Reverting the change on GDNativeExtensionScriptInstanceInfo I made in https://github.com/godotengine/godot/pull/67750, I thought it would be simpler to have a similar interface between GDExtension and GDNativeExtensionScriptInstanceInfo, but after deeper investigation it turns out it is much better to have GDNativeExtensionScriptInstanceInfo being just a proxy over Godot's internal ScriptInstance.
Besides, by removing this function pointer, we had to do property list create/free each time we want to access type which is quadratic complexity :/ (and implementing a cache on this is complex given property can be dynamically modified)

Thanks!


Arrow2 test fixes

This fixes the json tests @houqp

also physical_plan::planner::tests::bad_extension_planner

The error on the sha224 test is because the new arrow2 print function prints binary data as bits in base 10 rather than hex... Frankly I think that's a mistake because it's pretty unreadable, so do we patch this in a fork of arrow2 ? https://github.com/jorgecarleitao/arrow2/blob/main/src/array/display.rs#L107

The avro tests also need access to this fix that got merged https://github.com/jorgecarleitao/arrow2/blob/main/src/io/avro/read/deserialize.rs#L99
Since it came after the 'Chunk' migration we should really create a temporary arrow2 fork with the proper cherry picks and modifications that we need.

The error on the sha224 test is because the new arrow2 print function prints binary data as bits in base 10 rather than hex... Frankly I think that's a mistake because it's pretty unreadable, so do we patch this in a fork of arrow2 ? https://github.com/jorgecarleitao/arrow2/blob/main/src/array/display.rs#L107

cc @jorgecarleitao , do you have any particular preference on this? I am leaning towards displaying hex by default in arrow2 for better readability as well.

Since it came after the 'Chunk' migration we should really create a temporary arrow2 fork with the proper cherry picks and modifications that we need.

How about we implement the record batch abstraction within datafusion? As a temp workaround, we can also have a temp arrow2 branch with that particular avro commit cherry-picked on top of the arrow2 commit we are based on right now.

@houqp Yeah implementing RecordBatch is the way to go, I just thought it was out of scope for this PR since it will also make it harder to pull in new changes from df.


Expose activation code removal in the API

What is the ask?
An API endpoint that remove activation codes (probably that is only active in dev mode)
What is the goal / desired outcome?
So that I can test front-end code that activates the cluster
If there is a way to accomplish this today via workaround, what does that require?
deleting the key directly from etcd

We now have the deactivate call which does this I think. Closing, please reopen if that end point doesn't satisfy this.


Using find.descendant in find.descendant results in a DartVM error

Hello, I am trying to use find.descendant in a find.descendant like so
const id = descendant({
    of: find.byValueKey(`history_work_order_item_1`),
    matching: find.descendant({
      of: find.byType("WorkOrderStatusIndicator"),
      matching: find.byType("Text"),
      matchRoot: false,
      firstMatchOnly: true,
    }),
    matchRoot: false,
    firstMatchOnly: true,
  });
const status = await driver.getElementText(id);
console.log(status);

This is the output in the Appium server log
[debug] [FlutterDriver@89ba (e366c792)] Calling AppiumDriver.getText() with args: ["eyJmaW5kZXJUeXBlIjoiRGVzY2VuZGFudCIsImZpcnN0TWF0Y2hPbmx5Ijp0cnVlLCJtYXRjaFJvb3QiOmZhbHNlLCJvZiI6IntcImZpbmRlclR5cGVcIjpcIkJ5VmFsdWVLZXlcIixcImtleVZhbHVlU3RyaW5nXCI6XCJoaXN0b3J5X3dvcmtfb3JkZXJfaXRlbV8xXCIsXCJrZXlWYWx1ZVR5cGVcIjpcIlN0cmluZ1wifSIsIm1hdGNoaW5nIjoie1wiZmluZGVyVHlwZVwiOlwiRGVzY2VuZGFudFwiLFwiZmlyc3RNYXRjaE9ubHlcIjp0cnVlLFwibWF0Y2hSb290XCI6ZmFsc2UsXCJvZlwiOlwie1xcXCJmaW5kZXJUeXBlXFxcIjpcXFwiQnlUeXBlXFxcIixcXFwidHlwZVxcXCI6XFxcIldvcmtPcmRlclN0YXR1c0luZGljYXRvclxcXCJ9XCIsXCJtYXRjaGluZ1wiOlwie1xcXCJmaW5kZXJUeXBlXFxcIjpcXFwiQnlUeXBlXFxcIixcXFwidHlwZVxcXCI6XFxcIlRleHRcXFwifVwifSJ9","e366c792-142b-4c8c-8a04-75a1200a2efa"]
[debug] [FlutterDriver] Executing Flutter driver command 'getText'
[debug] [FlutterDriver] >>> {"command":"get_text","finderType":"Descendant","firstMatchOnly":true,"matchRoot":false,"of":"{\"finderType\":\"ByValueKey\",\"keyValueString\":\"history_work_order_item_1\",\"keyValueType\":\"String\"}","matching":"{\"finderType\":\"Descendant\",\"firstMatchOnly\":true,\"matchRoot\":false,\"of\":\"{\\\"finderType\\\":\\\"ByType\\\",\\\"type\\\":\\\"WorkOrderStatusIndicator\\\"}\",\"matching\":\"{\\\"finderType\\\":\\\"ByType\\\",\\\"type\\\":\\\"Text\\\"}\"}"}
[debug] [FlutterDriver] <<< {"isError":true,"response":"Uncaught extension error while executing get_text: type 'bool' is not a subtype of type 'String' in type cast\n#0      new LinkedHashMap.from.<anonymous closure> (dart:collection/linked_hash_map.dart:187:26)\n#1      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:617:13)\n#2      new LinkedHashMap.from (dart:collection/linked_hash_map.dart:186:11)\n#3      Descendant.deserialize (package:flutter_driver/src/common/find.dart:329:9)\n#4      DeserializeFinderFactory.deserializeFinder (package:flutter_driver/src/common/deserialization_factory.dart:32:44)\n#5      FlutterDriverExtension.deserializeFinder (package:flutter_driver/src/extension/extension.dart:401:18)\n#6      new CommandWithTarget.deserialize (package:flutter_driver/src/common/find.dart:32:30)\n#7      new GetText.deserialize (package:flutter_driver/src/common/text.dart:14:64)\n#8      DeserializeCommandFactory.deserializeCommand (package:flutter_driver/src/common/deserialization_factory.dart:49:39)\n#9      FlutterDriverExtension.deserializeCommand (package:flutter_driver/src/extension/extension.dart:421:18)\n#10     FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:365:31)\n#11     BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:855:32)\n<asynchronous suspension>\n","type":"_extensionType","method":"ext.flutter.driver"} | previous command get_text
[debug] [FlutterDriver@89ba (e366c792)] Encountered internal error running command: Error: Cannot execute command get_text, server reponse {
[debug] [FlutterDriver@89ba (e366c792)]   "isError": true,
[debug] [FlutterDriver@89ba (e366c792)]   "response": "Uncaught extension error while executing get_text: type 'bool' is not a subtype of type 'String' in type cast\n#0      new LinkedHashMap.from.<anonymous closure> (dart:collection/linked_hash_map.dart:187:26)\n#1      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:617:13)\n#2      new LinkedHashMap.from (dart:collection/linked_hash_map.dart:186:11)\n#3      Descendant.deserialize (package:flutter_driver/src/common/find.dart:329:9)\n#4      DeserializeFinderFactory.deserializeFinder (package:flutter_driver/src/common/deserialization_factory.dart:32:44)\n#5      FlutterDriverExtension.deserializeFinder (package:flutter_driver/src/extension/extension.dart:401:18)\n#6      new CommandWithTarget.deserialize (package:flutter_driver/src/common/find.dart:32:30)\n#7      new GetText.deserialize (package:flutter_driver/src/common/text.dart:14:64)\n#8      DeserializeCommandFactory.deserializeCommand (package:flutter_driver/src/common/deserialization_factory.dart:49:39)\n#9      FlutterDriverExtension.deserializeCommand (package:flutter_driver/src/extension/extension.dart:421:18)\n#10     FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:365:31)\n#11     BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:855:32)\n<asynchronous suspension>\n",
[debug] [FlutterDriver@89ba (e366c792)]   "type": "_extensionType",
[debug] [FlutterDriver@89ba (e366c792)]   "method": "ext.flutter.driver"
[debug] [FlutterDriver@89ba (e366c792)] }
[debug] [FlutterDriver@89ba (e366c792)]     at FlutterDriver.executeElementCommand (C:\git\qa_customer_app\node_modules\appium-flutter-driver\lib\sessions\observatory.ts:198:11)
[debug] [FlutterDriver@89ba (e366c792)]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[debug] [FlutterDriver@89ba (e366c792)]     at FlutterDriver.getText (C:\git\qa_customer_app\node_modules\appium-flutter-driver\lib\commands\element.ts:4:20)

Once it reaches the await driver.getElementText, it fails. I have a whole suite of code using appium-flutter-driver working perfectly up until it reaches that code, so I am pretty sure the cause is in using a find.descendant in a find.descendant. also I tested using a single find.descendant and it works correctly.

Cleaned up, the response from DartVM looks like
Uncaught extension error while executing get_text: type 'bool' is not a subtype of type 'String' in type cast\
new LinkedHashMap.from.<anonymous closure> (dart:collection/linked_hash_map.dart:187:26)
_LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:617:13)
new LinkedHashMap.from (dart:collection/linked_hash_map.dart:186:11)
Descendant.deserialize (package:flutter_driver/src/common/find.dart:329:9)
DeserializeFinderFactory.deserializeFinder (package:flutter_driver/src/common/deserialization_factory.dart:32:44)
FlutterDriverExtension.deserializeFinder (package:flutter_driver/src/extension/extension.dart:401:18)
new CommandWithTarget.deserialize (package:flutter_driver/src/common/find.dart:32:30)
new GetText.deserialize (package:flutter_driver/src/common/text.dart:14:64)
DeserializeCommandFactory.deserializeCommand (package:flutter_driver/src/common/deserialization_factory.dart:49:39)
FlutterDriverExtension.deserializeCommand (package:flutter_driver/src/extension/extension.dart:421:18)
FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:365:31)
BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:855:32)\n<asynchronous suspension>\n

@KazuCocoa Could you please confirm if using find.descendant in find.descendant is supposed to work as I expected, where I can find widget with key 'history_work_order_item_1', then find.descendant that to find it's Text? Basically I'm trying to find the Text on it like history_work_order_item_1->WorkOrderStatusIndicator->Text. This is necessary because I have a list of history_work_order_item's and GetText can only work on one widget at a time.
If this is a bug in appium-flutter-driver I don't mind spending time fixing it, I just don't want to waste time if it is not intended behavior.
Thanks!

I'm not so familiar with flutter_driver internal, but basically this driver sends flutter_driver command to the Dart VM directly. For example https://api.flutter.dev/flutter/flutter_driver/Descendant-class.html, so the behavior also depends on it.
I created like below change in flutter's basic sample app.
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          key: Key('key-counter-parent'), // To pvidide a key to detect the elemenet
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              key: Key('key-counter'),
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          ],
        ),
      ),

Then, below query shown 0, that was text in key: Key('key-counter').
parent = by_value_key 'key-counter-parent'
counter_key = by_value_key 'key-counter'
counter = by_descendant(
  serialized_finder: parent,
  matching: counter_key
)
counter = ::Appium::Flutter::Element.new(driver, finder: number)
counter.text  # => 0 which is "text" in "key-counter'"

The render tree as a reference
https://gist.github.com/KazuCocoa/44c64eee864c2b0afc6256137874b089 is the rendertree

@KazuCocoa, I spent some time debugging tonight and pulled the flutter repo for 3.3.10, which is what version I was getting the error at. Anyways, after some debugging I managed to get it to correctly deserialize by turning all booleans in the JSON into strings. This makes sense when looking at the Descendant.deserialize function in flutter_driver:
   /// Deserializes the finder from JSON generated by [serialize].
  static Descendant deserialize(Map<String, String> json, DeserializeFinderFactory finderFactory) {
    final Map<String, String> jsonOfMatcher =
        Map<String, String>.from(jsonDecode(json['of']!) as Map<String, dynamic>);
    final Map<String, String> jsonMatchingMatcher =
        Map<String, String>.from(jsonDecode(json['matching']!) as Map<String, dynamic>);
    return Descendant(
      of: finderFactory.deserializeFinder(jsonOfMatcher),
      matching: finderFactory.deserializeFinder(jsonMatchingMatcher),
      matchRoot: json['matchRoot'] == 'true',
      firstMatchOnly: json['firstMatchOnly'] == 'true',
    );
  }}

This is the particular line which was erroring:
 final Map<String, String> jsonMatchingMatcher =
        Map<String, String>.from(jsonDecode(json['matching']!) as Map<String, dynamic>);

It reads the JSON, finds the boolean, then tries to cast a boolean to a string, hence the error.
I changed the JSON to:
{
    'command': 'get_text',
    'finderType': 'Descendant',
    'firstMatchOnly': 'true',
    'matching': '{\"finderType\":\"Descendant\",\"firstMatchOnly\":\"true\",\"matchRoot\":\"false\",\"of\":\"{\\\"finderType\\\":\\\"ByType\\\",\\\"type\\\":\\\"WorkOrderStatusIndicator\\\"}\",\"matching\":\"{\\\"finderType\\\":\\\"ByType\\\",\\\"type\\\":\\\"Text\\\"}\"}',
    'matchRoot': 'false',
    'of': '{\"finderType\":\"ByValueKey\",\"keyValueString\":\"history_work_order_item_1\",\"keyValueType\":\"String\"}'
}

Which allowed this test I wrote in packages\flutter_driver\test\src\real_tests\find_test.dart to pass:
  test('Descendant in descendant finder deserialize', () {
    final Map<String, String> serialized = <String, String>{
      'command': 'get_text',
      'finderType': 'Descendant',
      'firstMatchOnly': 'true',
      'matching': '{\"finderType\":\"Descendant\",\"firstMatchOnly\":\"true\",\"matchRoot\":\"false\",\"of\":\"{\\\"finderType\\\":\\\"ByType\\\",\\\"type\\\":\\\"WorkOrderStatusIndicator\\\"}\",\"matching\":\"{\\\"finderType\\\":\\\"ByType\\\",\\\"type\\\":\\\"Text\\\"}\"}',
      'matchRoot': 'false',
      'of': '{\"finderType\":\"ByValueKey\",\"keyValueString\":\"history_work_order_item_1\",\"keyValueType\":\"String\"}'
    };
    final Descendant a = Descendant.deserialize(serialized, fakeDeserialize);
    expect(a.of, isA<ByValueKey>());
    expect(a.matching, isA<Descendant>());
    expect(a.matchRoot, isFalse);
    expect(a.firstMatchOnly, isTrue);
  });

To me, this looks like we should just always pass in the booleans as strings.
Please let me know what you make of it.
Thanks!

interesting... thanks.
I haven't tested well (since the original implementation was different person, I followed that), but it seems like serializing with string could be more proper for the latest spec. Let me take a look https://github.com/appium/appium-flutter-driver/issues/586#issuecomment-1754113891 again.
If so, the finder libraries should handle properly

I confirmed these match_root and first_match_only should be string especially they are nested. So the client finder should fix that

https://github.com/appium/appium-flutter-driver/tree/main/finder they have the string value converting in this repo's finders. User user-facing code has no changes.

Thank you for the update @KazuCocoa. Running with the update solved this issue for me.

@williampearl @KazuCocoa I'm reading this thread with great interest - I updated to 2.2.4 but I still see this issue when I try to do anything with an element that I acquired as a descendant of a descendant - do I need to do something else besides get the latest to get this fix?

Actually - I figured it out - you have to update the appium-flutter-finder in the package.json to 0.2.0, run npm install to get it, and it works.


Check for duplicate destination

ref https://github.com/keboola/input-mapping/pull/22#discussion_r242246698

obsolete


Mikemeinz master

Differences in line-endings between Windows and Linux explained 2 of the travis test failures. This is now fixed.
I've locally set up a docker-based container running identical versions as travis of: linux, mono, nunit, .NET; but this does not reproduce the travis failures.

Various comments with a few requests. Some of the logic still makes my head hurt, but that's okay :)

A little of the logic's been simplified, but I know what you mean! It took me a while to get my head around it.
Working on the comments now...

PTAL

Okay. I still don't like the anaemic IUploadSessionData, but I can live with it.


correct syntax errors in LSP section

The ShapeBase actually should be RectangleBase
In the Square class, better to set the Width and Height properties as both are protected properties inherited from RectangleBase.

Better fixed is #75

I'll fix rest of examples regarding SOLID principles.

@thangchung : Do you have a chance to have a look at these changes? From my point of view, it good to merge.


SAK-45337 Overview, Site Info: Incorrect instructions on the Manage Overview page.

https://jira.sakaiproject.org/browse/SAK-45337

I'm going to merge this, if QA fails then we'll provide additional commits, thanks @fostersdesign !


Add contiguous reading metric to prefetcher

Description of change
Sharing an idea for a metric which may help both maintainers and users reason about how much their application is seeking around.
One problem with the change right now is that it doesn't record the final read for an open file (since we only record it when the offset is no longer sequential).
Relevant issues: N/A
Does this change impact existing behavior?\
No change.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

Looks good. Let's start adding this in, we can consider more metrics later.

Needed to merge in latest changes from main for clippy fix. No change to PR itself.


mobile: fix table. remove dep on semantic ui

@jyeakel @byc1234 you may need to check if tables in documentations look OK after this PR


Fix NULLPTR in C harness

In PR https://github.com/cpputest/cpputest/pull/1773 NULLPTR was used as an argument CHECK_EQUAL_C_MEMCMP_LOCATION instead of NULL.
So, it was impossible to use CHECK_EQUAL_C_MEMCMP in C files.

coverage: 99.279%. remained the same
when pulling 2c19ce3f03a531b31e2278a9add696c1bf225d85 on d06alexandrov:c_memcmp_nullptr
into 25885b5d00cfd82280135ba79ea5e4d73d2d8c18 on cpputest:master.


Remove pytorch-transformers from dependencies.

Description

Related Issues

Checklist:

[ ] My code follows the code style of this project, as detailed in our contribution guidelines.
[ ] I have added tests.
[ ] I have updated the documentation accordingly.

@hlums do you know why the test didn't trigger?

@hlums do you know why the test didn't trigger?

there is something wrong, it looks there was a problem on Oct 29 and the pipelines stopped. I'll take a look

When trying to run the test I see the error: Request failed with result: 'Moved Permanently' o_o

oh I know what is happening, I think around 29 Oct we renamed the repo, right @saidbleik?


Holoparasites are tethered to their owner in death

Description
Holoparasites will forcefully move with the owner's body, even after the owner has died.
If the host gets deleted (ie. gibbing) your game will also bug out and go into the Void:tm:, not too dissimilar to what used to happen to closet skeletons.
Reproduction
Be a holoparasite, kill your owner and then flush them down disposals or move their corpse through other means
Watch as the holoparasite's ghost forcefully moves.
Additional context
Discovered on Wizard's Den Vulture on round #41275

This is also true for mothroaches used as hats


Enable Infinite Scroll Up

Additionally fix display issue for infinite scroll 'blank block' #2535
Code changes enable infinite scroll up. Changes are as follows:
File: misc/tutorial/212_infinite_scroll.ngdoc
Update documentation to load the data for up and adjust the load data
for down to append to exiting data, not overwrite the hashKeys
src/features/infinite-scroll/js/infinite-scroll.js
Updated file to add new needLoadMoreDataTop method and supporting code
to call method.
src/features/infinite-scroll/test/infiniteScroll.spec.js
Updated unit test to test for needMoreLoadDataTop
src/js/core/constants.js
Added new constant for scroll direction
src/js/core/directives/ui-grid-viewport.js
Added supporting logic to set scroll direction properly
src/js/core/directives/ui-grid.js
Added new function to adjust scroll position after an infinite scroll
data load up or down.
src/js/core/factories/Grid.js
Added logic to reset scroll direction to none after a debounce as well
as increased debounce to 1000 to allow for timeout added to reset scroll
position to execute
src/js/core/factories/GridRenderContainer.js
Added logic too datawatch function to calculate the row to scroll to
after a data load. The up scroll is tricky because you ahve to find the
row you were on in the new data array. This was done by searching for
the hashKey of the row we were on. Supporting code was also added. The
"blank block" issue was fixed here by allowing the logic to execute if
infinite scroll is enabled.

This code looks clean and well documented, and has unit tests, thanks for that.
I can see it fiddles with the scrolling a little bit, @swalters you may want to cast an eye over that, it has a specific if clause that checks for infinite scroll being enabled, but I'm aware that we had problems with blank rows in other situations than just infinite scroll - maybe that code should be generalised?
Given the code is localised to infinite scroll - merging.

Note that a chunk of this code has been backed out so as to remove the infiniteScroll logic that had crept into core.  However, the concepts and intent I think have been retained.


Discussion: Re-implement pre-commit in rust (in uv)?

pre-commit is a great tool, but it has some weaknesses.

It's not written in rust (I mean c'mon)
It doesn't have great mono-repo support, e.g. if you have multiple packages in one repo it's hard to apply different sets of linting rules per package/subfolder within a repo. uv seems to have 1st-class support for multi-package repos (with Workspaces)

But seriously, would it make sense to bring pre-commit into uv or otherwise into ruff or it's own project?

FYI there is https://pypi.org/project/pre-commit-uv but obviously could be built into uv though pre-commit supports other languages (such as node, r, etc), so a full reimplementation would be more difficult.

For me the real strength of pre-commit (the tool, not the git hook) comes from its ci integration (pre-commit.ci) that provides autofixing. It does however have some things its lacking in. Like a 250MiB download limit (which makes it near impossible to use large/complex ESLint configs). The fact it has to pin exact versions, which duplicates versions defined in code. The autoupdate PRs not being possible to disable. Blocks all downloads at runtime (so no referencing online configs). Monorepo support could be better. And probably more.
On the CI side, it might be worth considering a GitHub action like https://github.com/EndBug/add-and-commit or https://github.com/stefanzweifel/git-auto-commit-action instead . Just run your formatters and autofixers as usual, then autocommit them. I'm personally looking for something like this since I'm also hitting pre-commit limitations with dprint and eslint (on top of the version lock annoyance), but haven't yet tested or vetted any. At work I wrote our own Azure DevOps extension for it.

Hi, I'm working on a Rust implementation of the pre-commit tool: pre-commit-rs. It's still in the early stages, with only a few features implemented and not yet ready for production use. If anyone is interested, please give it a try!


Thrift clients

What changed?

Explicitly listed Client interfaces instead of embedding thrift client interfaces.
Created thriftClient wrappers. Currently they only forward the request as is.

Why?
This is prep-work for introducing internal application types. For now this change simply adds no-op thrift wrappers.  Explicitly listed Client interfaces will operate on on internal types and only at the thriftClient they will be converted to thrift counterparts.

How did you test it?

Existing tests unit tests.
Run canary locally.

Potential risks

Coverage decreased (-0.2%) to 59.254% when pulling fa4f11f3d542c7b33c348f605a137a5796771d94 on vytautas-karpavicius:thrift-clients into aff5afab02615f90e629d846470edd93932c2c05 on uber:master.


Bomb Threat- Feature highlight occurs for previous buffer.

Steps to reproduce:
1.Add points on map and click on RUN, after buffer gets generated click on the buffer to open the info popup and observe the highlight.
2.Now without clearing the results, Add another point on map and click on RUN.
3.After buffer gets generated zoom out to the extent where previous buffer area and current buffer area can be seen.
4.Now hover the mouse cursor over the new buffer area.Observe that highlight for feature occurs at at the previous location.
Refer attached snapshot:-

pull request #202 closes this issue


White black schema toggle

could you add a toggle for light mode on the site? for some reason the colors between the background and the UI is hard for me to read, or maybe make the UI buttons brighter or something, personally I think this site is where most of the time should be spent, thergb site looks kinda sketch, it just "looks" off, I think it is a better idea to continue with your unique site, instead of recreating something others have recreated and spamming malware, people would be warry because of how similar they look

I'm confused. Aren't you the owner of this repo!?

ha ha copied same from r/piracy user, so to have context

fixed


use np.memmap to hold the training data in faiss

[ ] use np.memmap to hold the training data
[x] Optional: load from the trained indexer (treat faiss indexer as a pretrained model)

use np.memmap to hold the training data

I won't add this feature, as it seems unnecessary.


Cengage Companion

The cengage companion is not opening. I have closed and reopened and tried refreshing over and over. It will not open
Version: 1.85.2
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/<IP_ADDRESS>
Embedder: codespaces

Have you found a solution? I have the same problem


Developing Kafka Connector in .NET (question)

Hello. I hope you are fine.
Maybe this is not the right place to ask this question, I apologize for that.
Do we have a library like Java Connect API in C#? And if we don't have it, why can't we have the equivalent of this library in .NET?
And another question, what way do you suggest for developing Kafka Connector in .NET?

No, there is no Kafka Connect implementation for .NET. Given that most people use existing connectors off-the-shelf that in order to use all you need to do is configure, the cost/benefit in reimplementing and maintaining another implementation of Kafka Connect doesn't make a lot of sense.
If you need to integrate with a custom system, your options are to write a connector in Java or build something on top of this client (which may be just fine, if your requirements aren't demanding).


Define linter for Shakedown and begin cleanup.

Summary:
flake8 shows almost three hundred errors. With this change we define
our dev dependencies with pipenv and run the linter with make build.
We also follow the style guide in network.py, command.py and
master.py.
Please note that the tests are not linted.

Once we have all linting issues fixed  we can trigger the build with our CI.


Wrong namespace gets set in cmd-docker-devfile-url-pushtarget on windows platform

/kind bug

What versions of software are you using?

Ran make test-cmd-docker-devfile-url-pushtarget on windows 3.11 cluster PSI
Actual behavior
> make test-cmd-docker-devfile-url-pushtarget
ginkgo  -randomizeAllSpecs -slowSpecThreshold=120 -timeout 7200s -nodes=1 -focus="odo docker devfile url pushtarget command tests" tests/integration/devfile/docker/
Running Suite: Docker Devfile Suite
===================================
Random Seed:<PHONE_NUMBER> - Will randomize all specs
Will run 2 of 38 specs

SCreated dir: C:\Users\Admin\AppData\Local\Temp\428769507
Current working dir: C:\Users\Admin\go\src\github.com\openshift\odo\tests\integration\devfile\docker
Setting current dir to: C:\Users\Admin\AppData\Local\Temp\428769507
Running odo.exe with args [odo preference set Experimental true]
[odo] I0710 12:16:27.496607    4744 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] Global preference was successfully updated
[odo] I0710 12:16:27.554385    4744 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running odo.exe with args [odo preference set pushtarget docker]
[odo] I0710 12:16:27.786948    8420 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] Global preference was successfully updated
[odo] I0710 12:16:27.875735    8420 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running odo.exe with args [odo preference set pushtarget kube -f]
[odo] I0710 12:16:28.192807    8844 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] Global preference was successfully updated
[odo] I0710 12:16:28.318734    8844 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running odo.exe with args [odo create nodejs tcetfs]
[odo] I0710 12:16:28.520259    1192 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] Experimental mode is enabled, use at your own risk
[odo]
[odo] I0710 12:16:28.585262    1192 util.go:410] path .odo\config.yaml doesn't exist, skipping it
[odo] I0710 12:16:28.585262    1192 util.go:410] path .odo\env\env.yaml doesn't exist, skipping it
[odo] I0710 12:16:28.585262    1192 util.go:410] path devfile.yaml doesn't exist, skipping it
[odo] I0710 12:16:28.585262    1192 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] I0710 12:16:28.698905    1192 util.go:410] path devfile.yaml doesn't exist, skipping it
[odo] I0710 12:16:28.699790    1192 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] I0710 12:16:28.745107    1192 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] I0710 12:16:28.748666    1192 util.go:410] path devfile.yaml doesn't exist, skipping it
[odo] I0710 12:16:28.748666    1192 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] Validation
[odo]  -  Checking devfile existence  ...
 V  Checking devfile existence [0ns]
[odo]  -  Checking devfile compatibility  ...
[odo]  -  Creating a devfile component from registry: DefaultDevfileRegistry  ...
 V  Checking devfile compatibility [0ns]
 V  Creating a devfile component from registry: DefaultDevfileRegistry [0ns]
[odo]  -  Validating devfile component  ...
 V  Validating devfile component [0ns]
[odo] I0710 12:16:28.748671    1192 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] I0710 12:16:28.748671    1192 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] I0710 12:16:28.749328    1192 util.go:410] path devfile.yaml doesn't exist, skipping it
[odo]
[odo] Please use `odo push` command to create the component with source deployed
[odo] I0710 12:16:28.795082    1192 odo.go:72] Could not get the latest release information in time. Never mind, exiting gracefully :)
Running odo.exe with args [odo url create --host <IP_ADDRESS>.com --ingress]
[odo] I0710 12:16:29.018760    9596 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo] I0710 12:16:29.109882    9596 preference.go:182] The path for preference file is C:\Users\Admin\AppData\Local\Temp\428769507\config.yaml
[odo]  X  You don't have permission to create or set namespace 'phcmzmjhud' or the namespace doesn't exist. Please create or set a different namespace
[odo]   %!(EXTRA string=odo)
Removing locally running Docker images with label component=tcetfsListing locally running Docker images with label component=tcetfsRunning docker.exe with args [docker ps -q --filter label=component=tcetfs]
Setting current dir to: C:\Users\Admin\go\src\github.com\openshift\odo\tests\integration\devfile\docker
Deleting dir: C:\Users\Admin\AppData\Local\Temp\428769507

------------------------------
+ Failure [2.268 seconds]
odo docker devfile url pushtarget command tests
C:/Users/Admin/go/src/github.com/openshift/odo/tests/integration/devfile/docker/cmd_docker_devfile_url_pushtarget_test.go:14
  Switching pushtarget
  C:/Users/Admin/go/src/github.com/openshift/odo/tests/integration/devfile/docker/cmd_docker_devfile_url_pushtarget_test.go:44
    switch from kube to docker, odo push should display warning [It]
    C:/Users/Admin/go/src/github.com/openshift/odo/tests/integration/devfile/docker/cmd_docker_devfile_url_pushtarget_test.go:63

    No future change is possible.  Bailing out early after 0.419s.
    Running odo.exe with args [odo url create --host <IP_ADDRESS>.com --ingress]
    Expected
        <int>: 1
    to match exit code:
        <int>: 0

Expected behavior
It should not try to set some unknown namespace.
Any logs, error output, etc?

I'd honestly just remove the test / rip it out since we're no longer supporting docker.

I would say let this issue be there. If in future we try to support docker then we can consider this one otherwise just ignore.

This is docker related, @elsony can you please take a look at it.


Implement garbage management

This is a follow-up of #4, and it should not be merged until #4 is merged.  I am creating a PR for sharing the code.
The increment from #4 is https://github.com/crossbeam-rs/crossbeam-epoch/pull/5/commits/bad559163e82672a3ea306eed56a57cd09dea29c.
@stjepang I heard that you have your working implementation (https://github.com/crossbeam-rs/crossbeam/issues/116#issuecomment-321801000).  Can we compare yours and mine in order to make sure that we put best ideas in the merged code?

Can you please rebase on top of #4, which I've just merged?
The implementation I mentioned in that thread was actually coco. :) I've just released version 0.2.0 that more closely mirrors the new Crossbeam API so that Tyler can start playing with the new API. But I don't intend to work on coco anymore - it'll be deprecated as soon as we finish crossbeam-epoch.

I just rebased.  I will soon read coco 0.2.  Thanks!

As I said in #7, I tested this branch (+ #7) against @stjepang's channel.    I suspect it is due to the use of lazy_static! in this branch, but I am entirely not sure of it.  I will investigate further on the performance issue.

Well, the only benchmarks that actually touch coco/crossbeam-epoch are unbounded_mpmc and  unbounded_select_both. So I think there is a lot of noise in those benchmarks. :)

@stjepang Thank you for clarification.  Then maybe we can say that coco and crossbeam-epoch performs comparably for channel.  But it makes me more puzzled, as other test cases reveal unexplicable performance difference..

Yeah, they do perform comparably. Thanks for doing the benchmarks. I'll look more into discrepancies in tests like unbounded_seq - that one is really weird.

FWIW, I ran the two benchmarks and unbounded_select_both is slower with epoch by .173 sec on average. unbounded_mpmc is slower by .031 sec, but that's probably not significant.

I addressed @Vtec234 's comments.  Thank you!
There is an unresolved issue on ms_queue::Queue::try_pop_if(): https://github.com/crossbeam-rs/crossbeam-epoch/pull/5#discussion_r134118438  I will work on it.
Also I am worrisome about the benchmark result: it is consistently slower than coco.  Yet I prefer to we can deal with it in a later PR.  What do you think?

I'd say don't worry about performance for now, but if you're looking for cluses: it's possible that the queue is slow. IIRC, MsQueue is not particularly efficient, and in Coco I reimplemented the queue from scratch with slightly different memory orderings that made it a bit faster.

@Vtec234 @stjepang I added a commit that solves ms_queue's try_pop_if problem.  It just follows the design of coco.

I addressed @stjepang's comments.  Thank you!

I am merging it on the behalf of 3 approvals.  Thank you all for reviewing!
There are several pending issues, however:

lazy_static is blocking.
fn defer_drop() requires the types to be 'static.  It may be too restrictive.
Why #[cold] in fn try_advance()?
Can we think of a better name for Garbage?

I am filing issues for each of them so that we can address them later.

I accidentally added garbage.rs.bk in this branch.  I just pushed a commit that removes it.  I am sorry.


Incorrect CK_VERSION string value

Hi, it seems that CK_VERSION.ToString method is returning incorrect value.
I'm currently using Pkcs11Interop 5.1.2 library and it is returning FirmwareVersion = 7.2 instead of FirmwareVersion = 7.02.
According to PKCS#11 v2.40 section 3.1, minor version number is the hundredth portion of the version. Provided example in PKCS#11 specification shows that CK_VERSION { major = 2, minor = 1 } is 2.01 version
So, in order to correctly display version string, CK_VERSION.ToString method implementation should be something like this:
public override string ToString()
{
    if (Minor[0] == 0)
    {
        return string.Format("{0}.{1}", Major[0], Minor[0]);
    }

    return string.Format("{0}.{1:D2}", Major[0], Minor[0]);
}

Thank you for reporting the bug in Pkcs11Interop. I truly appreciate the time and effort you invested in identifying the issue. I will ensure it is fixed in the next release.


Add install UI/panel

This seems like a super easy pre-req for #3 and #4 ?
I'd like to contribute, can make time this week. Any preference for how this is executed, assuming I follow the structure of the project?


Logging Out while in hyberbox reset's player location

Observation
When logging out of a singleplayer world while inside a hyperbox, the player will be placed in the overworld upon relog.
Expectation
Either to log back in and still be inside the hyperbox or be outside the box but beside/near it.
Steps to Repoduce

travel to a random location
place and enter a hyberbox
save and exit world
load world
find yourself at worldspawn

Versions:
Forge: 43.1.58
Hyperbox: 1.19-<IP_ADDRESS>
Details that might be relevant

I do not have a home bed location
My hyperbox was underground when i logged out, and the Y coordinate when i logged back in seemed to be similar (my XZ was worldspawn but my Y seemed to mimic the Y of my hyperbox.

there appears to be a saved data error in the log as well.
latest.log
The hyperbox is named "1337" because I couldn't think of a name that did not use the letter "e".  I planned to make an issue about not being able to use the letter in in the box name (because it closes the gui) too.

Fixed in <IP_ADDRESS> (also fixed the inventory-keybind-gui problem)


Release probfit 1.1

The last probfit release is 1.0.5 from 2013:
https://pypi.python.org/pypi/probfit/1.0.5
I'd like to release a new version 1.1 now that probfit works with Python 3.
@piti118 - Do you want to make a release? Or can you please give me access on PyPI for probfit?

@piti118 - Could you please give @alexpearce and me access on PyPI?
https://pypi.python.org/pypi/probfit/
@alexpearce is fixing up some issues now and would be willing to make a release soon.

added @cedil as owner.

@piti118 - Thanks
@alexpearce - I've added you as "maintainer". I think this means you can make and upload the 1.1 release (but not add others or delete the package).

Thanks @cdeil! I'll work on the milestone on come back to this issue once we're ready.

Hello guys,
Would it be possible to tag version 1.1 now and update it on pypi? pypi currently still has probfit version 1.0.5, which does not have the code adjustments for Python 3 and consequently fails there (the current master works fine though). If version 1.1 requires more work, why not tag 1.0.6 for the meantime? Python 3 support alone is worth a version bump in my opinion.
Cheers!

Hi folks, a version 1.1.0 working with Python 3 is now a reality, see https://github.com/scikit-hep/probfit/pull/95. The release on PyPI will come out shortly.

The tag is done - https://github.com/scikit-hep/probfit/releases/tag/1.1.0.
Can one of you maintainers on PyPI (@cdeil, @piti118, @alexpearce, @HDembinski) upload to PyPI asap and close this? Would be great, thanks a lot.

@cdeil I can see probfit listed as "my projects" when I log into PyPI, but the "Management" button is grayed out. I am not sure if I can upload this version.

@HDembinski - you were maintainer and already had permission to upload releases:
There are two possible roles for collaborators:

Maintainer
Can upload releases for a package. Cannot add collaborators. Cannot delete files, releases, or the project.
Owner
Can upload releases. Can add other collaborators. Can delete files, releases, or the entire project.

I changed you to owner just now, so you can add other collaborators as useful.

Thanks! But this means, I can upload the package. ok.

It is uploaded. Installation via pip seems to work.

Thanks @HDembinski.


Signoff checklist: Does FPGA_TIMING actually make sense?

The D2 signoff checklist contains an FPGA_TIMING item that says "FPGA synthesis timing meet (Fmax-10%) target or better". What does this mean in the context of OpenTitan? If it's just that the FPGA syntheses that we do in CI hit their timing, then this is guaranteed by CI.
Maybe the item can be removed?
@eunchan (I think you wrote the original text?)
@imphil (as resident CI guru!)
@tomroberts-lowrisc (as lowRISC HW lead)

If it's just that the FPGA syntheses that we do in CI hit their timing, then this is guaranteed by CI.

Yes, that's what is meant by that. (When we wrote the checklist it wasn't clear that CI would check FPGA timing, and actually it didn't.)
But even with CI checking the FPGA timing, it's good to have it in the list because it motivates having the check in CI in the first place.
I'd therefore just leave things as-is and call it an easy item to check off in the list.

Hmm, but there are lots of things in CI that aren't motivated by this checklist. Also, it's a bit awkward that "Fmax" isn't really defined. Especially, since the text sounds like there's some wiggle room and there really isn't with the CI check.
Maybe we should reword it to something like "Block is synthesized for FPGA in CI and meets timing."?

The suggested reword sounds fine to me.


Add support for loading user-defined CSS stylesheet

Users often want to define custom styling (CSS, SCSS, or SASS) for their site. This allows them to do lightweight theming without needing to create an entirely new theme. It also allows authors to make page-specific styling for certain UI components etc.
Proposal
We should allow users to:

Define custom CSS for their MyST sites.
Allow users to write this as SCSS or SASS, including the use of variables.
Ideally, allow for this either on a per-page basis (e.g. page metadata), or a project wide basis (e.g. myst.yml)

Inspiration

Point to an (S)CSS file from myst.yml. here's how sphinx does this
Add CSS directly to a page via HTML in the markdown (e.g. <style> tags)
Add CSS via frontmatter on the page or in myst.yml (e.g. a key like site.style: <scss rules to add to the page or the website>)

Related

https://github.com/jupyter-book/mystmd/issues/857 would allow users to add classes that could be styled with this CSS
https://github.com/jupyter-book/mystmd/issues/1040 would allow people to add style directly to a page
Hugo transpiling SCSS docs)
Quarto support for SASS variables.

Tasks and updates

[ ] Automatically include e.g. myst-theme.scss

I added a few ideas for how this could look from a user's perspective to the top comment

That would be a great feature!

Looking forward to this!  In addition to CSS, it might be nice to be able to support SASS / SCSS transpiling into CSS.  SASS supports things like variable definitions and many users may find it easier to write SASS than raw CSS (or modify any of the many scss themes).  Other popular static site generators, like Hugo, have supported SCSS transpile on the fly for a while now (https://gohugo.io/hugo-pipes/transpile-sass-to-css/), and quarto supports SASS variables as well https://quarto.org/docs/output-formats/html-themes.html#sass-variables.

thanks for this @cboettig - I've included your links into the top comment of the issue and cleaned it up a bit

Hi, I'd like to voice my support for adding the ability to reference raw HTML files in the myst.yml file. This would be valuable for my use case:
I maintain a tool documentation site (https://pachterlab.github.io/seqspec/) and have custom HTML content on a separate site (https://www.sina.bio/seqspec-builder/regions.html). I'd like to embed this custom content at a specific path on the main site (e.g., https://pachterlab.github.io/seqspec/regions.html).
The custom HTML contains an auto-generated table from a database, describing file format features documented on the main site. Colocalizing the docs and examples via MyST would improve user experience.
Ideally, I'd like to reference HTML files in the myst.yml file like this:
  toc:
    # Auto-generated by `myst init --write-toc`
    - file: README.md
    - file: docs/INSTALLATION.md
    - file: docs/UNIFORM.md
    - title: Examples # <-- requested additional feature
      children:
      - file: docs/regions.html
      - file: docs/reads.html
      - file: docs/assays.html
    - title: Documentation
      children:
      - file: docs/SEQSPEC_FILE.md
      - file: docs/SEQSPEC_TOOL.md
      - file: docs/SPECIFICATION.md
    - title: Tutorials
      children:
      - file: docs/TUTORIAL_SIMPLE.md
      - file: docs/TUTORIAL_COMPLEX.md
      - file: docs/USING_SEQSPEC.ipynb
      - file: docs/SEQ_PRIMER.md
    - file: docs/CONTRIBUTING.md
    - file: docs/CHANGELOG.md

This feature would significantly enhance my workflow and improve documentation integration.

This is super cool work @sbooeshaghi, thanks for sharing!

Thinking about the implementation of this:

we should keep this to the template and extend from that direction, which will allow different themes to treat these differently. For example, some themes may do tailwind or scss, or sass, plain css, or have no customizations, IMO that shouldn't be up to mystmd engine, but up to the theme. (e.g. asking for more than just a start command to be defined, and allowing for files in the template which is already possible).
There also needs to be a pass on adding class to every directive.

Adding classes to everything can happen right away. I would like a bit more discussion on how to add/compile css.


Bump PHP version to (at least) 5.4

At the time of writing phpDocumentor has PHP 5.3.3 as a minimum version but this should be bumped to a newer version as an effort to move the PHP eco-system further, support newer features of the language and be able to upgrade the Zend Framework components.
The expected benefits are:

Zend Framework dependencies can be upgraded to the newer minor; they bumped their minimum version to 5.3.23, which we cannot match
The Descriptor component of phpDocumentor contains a lot of duplication and would benefit from the use of traits
Performance of PHP 5.4 and higher is significantly better than 5.3

This is an item intended for phpDocumentor version 3.0, which is unplanned as of this stage

This issue is implemented in develop for v3; there was no real reason to go to 5.5 in terms of features so I kept it at 5.4


Special handeling of key presses not as expected in AntdInput

Hi!
I was playing around with the AntdInput that is text-area. In a nutshell, I would like to mimic how a code editor for python works, so when clicking tab, 4 spaces are inserted and when clicking enter after ":" an enter with an indent takes place and if there is no ":" it just uses the previous tab.
I have created a clientside callback to intercept the key strokes of space and enter and do the logic I want.
While the Tab key handling is working as a charm, the Enter key handling doesn't want to work for some magic reason.
I have compared it with dcc.Textarea and it seems to work fine, I also even tested the behaviour directly with Antd components and it also works.
Do you have any idea what could be the reason?
In the following gif, the first text areas is dcc.TextArea's and the lower is antd. you can see the expected behaviour with the first text area, but with the second, the cursor always sticks to the end of the line.

from dash import Input, Output, Dash, dcc, html
import dash_bootstrap_components as dbc
import feffery_antd_components as fac

app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])

app.layout = html.Div(
    [
        dbc.Button("Open modal", id="open-modal-btn"),
        dbc.Modal(
            [
                dbc.ModalHeader("Header"),
                dbc.ModalBody(
                    [
                        dcc.Textarea(id="dcc-area", style={"width": "100%"}),
                        fac.AntdInput(id="fac-input", mode="text-area"),
                    ]
                ),
                dbc.ModalFooter(dbc.Button("Close", id="close-modal-btn")),
            ],
            id="modal",
        ),
    ]
)

app.clientside_callback(
    """
    function(is_open) {
        if (is_open) {
            const input = document.getElementById('dcc-area');
            input.addEventListener('keydown', function(e) {
                if (e.key === 'Tab') {
                    e.preventDefault();
                    const start = this.selectionStart;
                    const end = this.selectionEnd;
                    this.value = this.value.substring(0, start) + '    ' + this.value.substring(end);
                    this.selectionStart = this.selectionEnd = start + 4;
                    return this.value;
                }
                if (e.key === 'Enter') {
                    e.preventDefault();
                    const value = this.value;
                    const start = this.selectionStart;
                    const prevLineStart = value.lastIndexOf('\\n', start - 1) + 1;
                    const prevLine = value.substring(prevLineStart, start);
                    const indentMatch = prevLine.match(/^\\s*/);
                    const currentIndent = indentMatch ? indentMatch[0] : '';
                    let newIndent = currentIndent;

                    if (start >= 1 && value.charAt(start - 1) === ':') {
                        newIndent += '    ';
                    }

                    this.value = value.substring(0, start) + '\\n' + newIndent + value.substring(start);
                    const newCursorPosition = start + 1 + newIndent.length;
                    this.selectionStart = this.selectionEnd = newCursorPosition;
                    return this.value;
                }
            });
        }
        return '';
    }
    """,
    Output("dcc-area", "value", allow_duplicate=True),
    Input("modal", "is_open"),
    prevent_initial_call=True,
)

app.clientside_callback(
    """
    function(is_open) {
        if (is_open) {
            const input = document.getElementById('fac-input');
            if (input){
            input.addEventListener('keydown', function(e) {
                if (e.key === 'Tab') {
                    e.preventDefault();
                    const start = this.selectionStart;
                    const end = this.selectionEnd;
                    this.value = this.value.substring(0, start) + '    ' + this.value.substring(end);
                    this.selectionStart = this.selectionEnd = start + 4;
                    return this.value;
                }
                if (e.key === 'Enter') {
                    e.preventDefault();
                    const value = this.value;
                    const start = this.selectionStart;
                    const prevLineStart = value.lastIndexOf('\\n', start - 1) + 1;
                    const prevLine = value.substring(prevLineStart, start);
                    const indentMatch = prevLine.match(/^\\s*/);
                    const currentIndent = indentMatch ? indentMatch[0] : '';
                    let newIndent = currentIndent;

                    if (start >= 1 && value.charAt(start - 1) === ':') {
                        newIndent += '    ';
                    }

                    this.value = value.substring(0, start) + '\\n' + newIndent + value.substring(start);
                    const newCursorPosition = start + 1 + newIndent.length;
                    this.selectionStart = this.selectionEnd = newCursorPosition;
                    return this.value;
                }
            });
        }
        }
        return '';
    }
    """,
    Output("fac-input", "value", allow_duplicate=True),
    Input("modal", "is_open"),
    prevent_initial_call=True,
)

@app.callback(
    Output("modal", "is_open"),
    [
        Input("open-modal-btn", "n_clicks"),
        Input("close-modal-btn", "n_clicks"),
    ],
    [Input("modal", "is_open")],
)
def toggle_modal(open_click, close_click, is_open):
    if open_click or close_click:
        return not is_open
    return is_open

if __name__ == "__main__":
    app.run_server(debug=False)

@CNFeffery From having a look at the code, it seems it is caused because of the setting of the onPressEnter event. Could we for example make the onPressEnter more generalized and the user can specify what to execute?https://github.com/CNFeffery/feffery-antd-components/blob/7b8ece6b72a6832df45ddbd5131eac00adbd183d/src/lib/fragments/dataEntry/AntdInput.react.js#L391

@GhaziXX AntInput itself adds a lot of extra functionality to the original input box, and it is not recommended to use js code to change it. If you need to simulate simple code editor behavior, take a look at this library: https://github.com/dawidkopczyk/dash-editor-components


Create method for joining Video and Audio Streams

As the only video+audio streams currently available directly through pytube only go to 720p, I would like to work on a method for selecting a Video Stream and an Audio Stream independently, and having the output file have the tracks joined together properly.
This will allow us to do seamless downloads for videos up to 2160p (if available) with audio.
Opening this issue for discussion and tracking. Any one that can help (that has knowledge behind what is required for this), is more than welcome to fork and create a PR.

I've added a function to download 1080p or higher resolution videos.  I've created a pull request for the same. PR#15.


Init next project with TS

Next.js project Init with TS, Eslint, Prettier & lint-staged.

Why use this folder structure?

Please put some description next time.

Do we need to keep the default page of next.js(pages/index.tsx , styles/Home.module.css and etc)?

Hey, I think that is not necessary.

Do we need to keep the default page of next.js(pages/index.tsx , styles/Home.module.css and etc)?

As I said yesterday about the node package, every repository needs an entry point to run. index.tsx in the pages folder is one of the entry points. If you have to change or remove it, there will be a lot of config you need to set up by only changing the entry points to another file. I highly recommend not deleting the index.tsx.
For all CSS files, yes they can be deleted.


Social image for shared game is preview of game

@karamassie I believe this was one of your asks, can you clarify this ask?

@kognise says this is not easy, so i'd just list it as nice to have. VERY LOW PRIO
The feature ask was that if I share a link of a game with someone (like in slack) the preview image that comes with it is the little preview image of my game , like we see in the gallery.
This is easier to accomplish for games already in the gallery.

very difficult to do, and would require rearchitecting.


Move historical results from members.json into separate file

What is the expected enhancement?
Move historical results from members.json into separate file

Seems like a good first issue to try.
Do you mean moving the values for the key tests_results or historical_test_results if values exist under the first nesting level (Main, Community, Extensions, etc)?

@dhruvshettty Hey! Thank you for interest in this issue!
I mean remove historical_test_results field from members.json and move it to separate file. Probably separate file structure will be something like
{
    "1": {
        "repo_url": ...,
        "historical_test_results": [...]
    }
}

@IceKhan13 yes please, I'd like to take this up.
This is the format I'm thinking of:
{
    "1": {
              "repo_url": "...",
              "tier": "Community",
              "historical_test_results": [...],
    }
}

I'm choosing to keep the tier key since that would help us identify the structure of the JSON. And the number is just a unique ID. If this works, I'll get on with it, else please let me know if there are changes required.

@dhruvshettty assigned to you! Thank you for jumping on this! You rock! 😄

@AbdullahKazi500 & @dhruvshettty if you are still there maybe you both could sync with @frankharkins and pass on the issue #424 to be clear on the new structure

Hi I don't get it I am currently working on this @mickahell

Because, the file members.json is gonna disapeared to be split into separated individual folder.

@AbdullahKazi500 what do you have so far? Slack me on the Qiskit workspace (@frankharkins) if you prefer.

Hi, sorry I could not work on this. I'm removing myself from this issue, however, @AbdullahKazi500 happy to help you if you need it

Hi @AbdullahKazi500, @frankharkins finished the new structured. You can pull the evolve and go ahead :)

I mean remove historical_test_results field from members.json and move it to separate file. Probably separate file structure will be something like
{
    "1": {
        "repo_url": ...,
        "historical_test_results": [...]
    }
}

I think you can integrate historical_test_results into the new unitary project toml file.
Do not hesitate if you have any question

Gonna close as this seems stale, and I don't think this is needed any more.
With the new structure, having historical test results in the same file is no longer a problem as they can be easily ignored. Separating them out would most likely make the code more complicated. I'm open to other opinions though.


Test suite fails on Postgres 10+

Additionally, I am unclear in general about how Postgres version support is intended to be handled for this package (see patches below)
First off, these are the test suite failure messages:
    createTable has column metadata for the event table
      ✗ that has raw column
        »
        actual expected

        CURRENT_TIMESTAMPnow()
         // macros.js:14

      ✗ that has special CURRENT_TIMESTAMP column
        »
        actual expected

        CURRENT_TIMESTAMPnow()
         // macros.js:14

I have a patch that addresses these test cases. However the Travis configuration appears to only test one version, so the conditionals in this patch would not be covered. I am not familiar enough with Travis to know if a setup with multiple Postgres versions is possible.
I used a quick and dirty docker-compose setup to test multiple versions locally (branch here) and found that a handful of tests also fail on Postgres 8.
The motivation for all this was that I want to be able to use Postgres 10 declarative partitioning in migrations. I have a PoC here (with some very sad test hacks because I can't determine the version before the code runs). But it seems there are some issues (such as this ticket) that require more insight from the core team before version-specific features can be implemented in a straightforward way.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Oh man, I totally did that thing where I fixed the tests and broke the library (and of course notice after posting the issue). So sad.

@sonya Instead of patches, put out a a PR :)
Your changes are however indeed breaking it for all other platforms. This is not just postgres, the pg driver is the base for a lot of other platforms that rely on the pg wire protocol.
Do you know what exactly has changed in pg 10, maybe I can have a look though?

Thanks for the feedback, @wzrdtales
The specific change in Postgres 10 that broke the tests is that when you create a column with CURRENT_TIMESTAMP as the default value, in pg10 the table metadata displays CURRENT_TIMESTAMP as the default value, whereas in pg9 the metadata displays now(). (I can't find actual Postgres documentation about this change, but this discussion on the Rails repo has a lot of good info.)
I didn't open a PR because I'm more interested in starting a discussion with you guys about what approach would align best with the library. After I filed this issue I did some more digging and at this point I believe the "right" solution would be along the lines of exposing a method in the shared interface (in db-migrate-shared) to get the server version.


Update_connection method fails with 405 error

Describe the bug
We are trying to update connections of a workbook using update_connection method but it fails
Command ---> server.workbooks.update_connection(workbook_item=workbook,connection_item=m_list[0])
where m_list = workbook.connections   ,  and the workbook just has one embedded datasource with a single connection
Below is the code snippet
workbook = server.workbooks.get_by_id('31193efb-6b65-435a-956d-f07adb74125c')
server.workbooks.populate_connections(workbook)
Below is connectionItem object returned by populate_connections method

pprint(vars(workbook.connections[0]))
{'_connection_type': 'genericodbc',
'_datasource_id': 'f6f5efc0-6a8c-4ab2-920e-37ad157eca70',
'_datasource_name': 'DS_NAME',
'_id': '6ffe8054-d0be-4bb9-b694-30119e675de8',
'connection_credentials': None,
'embed_password': True,
'password': None,
'server_address': '',
'server_port': None,
'username': 'username'}

m_list=[]
m_list=workbook.connections
m_list[0].username ="new_username"
m_list[0].password = "new_password"
m_list[0].connectioncredentials=("new_username", "new_password" , True)
server.workbooks.update_connection(workbook_item=workbook,connection_item=m_list[0])
It gives following error
tableauserverclient.server.endpoint.exceptions.NonXMLResponseError: b'\n\n405 Method Not Allowed\n\nMethod Not Allowed\nThe requested method PUT is not allowed for this URL.\n\n'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
NOTE : 1) The username with which we are logging into tableau server here is has site role as "Server Administer Explorer".
Does that matter?
Versions
Details of your environment, including:

Tableau Server version - 2021.4
Python version - 3.6
TSC library version - 3.14

To Reproduce
Pasted code above
Results
tableauserverclient.server.endpoint.exceptions.NonXMLResponseError: b'\n\n405 Method Not Allowed\n\nMethod Not Allowed\nThe requested method PUT is not allowed for this URL.\n\n'
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

Just to add I am getting same  error "tableauserverclient.server.endpoint.exceptions.NonXMLResponseError: b'\n\n405 Method Not Allowed\n\nMethod Not Allowed\nThe requested method PUT is not allowed for this URL.\n\n'
"       when trying to execute update_workbook(updated_workbook_item)

Hi , Does anyone have suggestions for above error? Any help will be greatly appreciated . Is there any way "PUT" Api calls can be enabled to update datasources/workbooks/connections?

Hi Rohit, the PUT call should work - I haven't had time to look at this deeply, but nothing jumps out at me.
Are you able to try running the workbook sample code we have, and let me know if that works for you? https://github.com/tableau/server-client-python/blob/master/samples/explore_workbook.py

Hi jacalata , None of the update functions( API calls which have PUT in them) are working and they throw "method not allowed error" . I tried to just update a description for a workbook and even it gave me the same error. Are we supposed to do some setting at Tableau server level to allow PUT requests .
Note : POST and GET requets are working fine

Also, I tried  https://github.com/tableau/server-client-python/blob/master/samples/explore_workbook.py
with just one change in it .  I added  a line of code --->server.add_http_options({'verify': False})   . It gave me the same error for update_workbook which we have been since the start
. @jacalata  Do you think adding server.add_http_options({'verify': False})  affects the code?
tableauserverclient.server.endpoint.exceptions.NonXMLResponseError: b'\n\n405 Method Not Allowed\n\nMethod Not Allowed\nThe requested method PUT is not allowed for this URL.\n\n'

hi , does anyone have any insight in above issue . Any help will be appreciated

Hi Rohit, sorry I forgot about this issue.
server.add_http_options({'verify': False}) will only change whether you need a valid SSL certificate. If you are using that, then it sounds like you are using a server that expects a https URL. One possible cause for this Method Not Allowed error is if you are using a http URL, and the server redirects you to https. This will cause your request to be changed to a GET instead of PUT, which will cause the Method Not Allowed error you are seeing.
Does that sound like it might be what's happening here?

Sorry I didnt get you @jacalata  . Can you please suggest any solution which could work? I get ab error if I remove line server.add_http_options({'verify': False}) from the code

Hi , Does anyone have any idea how to solve above method not allowed error? Do i need to add anything in the code or need to change Tableau server configuration

Are you attempting to connect to a server using an address like "http://myserver.com" or just "myserver.com"? Have you tried an address that starts with https instead?

Hi @jacalata I am using "https://myserver.com/" and it still gives same error

Hi , @jacalata  Do you think there is someone incorrect/ needs to be changed in Tableau server config settings to allow PUT method?

Hi , @jacalata Do you think there is someone incorrect/ needs to be changed in Tableau server config settings to allow PUT method?

I don't think there's any way Tableau Server could be configured to do this. I think you need to look at your network setup, like any proxies, firewalls etc between you and the Tableau Server. If you can use Postman (https://www.postman.com/) to send the requests, then there might be more information in the response headers or something like that.


Add Scroll Bar

Hello, I would like to know how to add a scroll bar, for example.
I reduced the SetNextWindowSize, and that hid some options.

its not Osiris problem, its imgui problem

Still should be able to do it. You can edit ImGUI.

Still should be able to do it. You can edit ImGUI.

:(


Redux support in Angular 4

In the Startup.cs file for React with Redux, it has the following code:
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
{
   HotModuleReplacement = true,
   ReactHotModuleReplacement = true
 });

My understanding is that this allows React components to be changed without losing in-memory state. I believe this is due to its use of Redux. Redux, however, is technology agnostic. It doesn't care if its being used by React or other javascript environments. There are a number of people using it with Angular online, but I also know that I can't add the ReactHotModuleReplacement flag to Startup.cs in an Angular project.
My question is, if I use Angular with Redux, does the Angular template support Hot Module Replacement for components while retaining in-memory state?

My question is, if I use Angular with Redux, does the Angular template support Hot Module Replacement for components while retaining in-memory state?

That's not something that would happen automatically. In the React+Redux template, there's react-hot-loader package that makes the state retention happen. You'd need to set up some equivalent for Angular, though I don't know what exactly the equivalent package would be, or if there is one. I'd enquire with the Angular community to see what folks are using for this.

Look into angular-HMR here: https://github.com/AngularClass/angular-hmr to get it setup.

Ok, I've implemented the redux pattern in the original template, but I haven't done the hot module replacement with retained in-memory state just yet.
If anyone is interested, I have put my solution on github here..
This demonstrates using redux in the counter component and the fetchdata component. The router state is managed for you just by registering the StoreRouterConnectingModule.
The entry point to redux may be found in the store folder, found under ClientApp/app. It contains root.redux.ts, which is where you find the application-wide redux components, in this case counter, fetchdata and the router (the RootReducer and RootState are referenced here).
A simplified version of the pattern is found in counter, where you can find the counter.redux.ts file, containing the Actions, Reducers and Methods. I have added variables (initial numbers, increment and decrement values, and reset value) to demonstrate passing of payload into the actions.
If you execute the application, go to the counter page and click on the Increment/Decrement/Reset buttons and change the values, you can then change to the forecast page, then change back to the counter page and the state is retained. The value is where you left it when you transitioned to the forecast page.
Because of the retention of state, if you now go back to the forecast page, it does not need to call the api again to retrieve the forecasts. I have deliberately made it so that it only makes the call once. (You could create another action to cause a refresh on demand.)
A slightly more complicated version exists in fetchdata. The fetchdata.component attaches variables to the store in its constructor. It also dispatches an action (found in the fetchdata.redux file) to request forecast data, if it hasn't already been loaded. The effects file contains the action executor.
When you raise the "RequestWeatherForecastsAction" event, the effects method (action executor), which was registered in the app module, calls the fetchdata service, which retrieves the forecast data from /api/sampledata controller. It then calls another action (ReceiveWeatherForecastsSuccessAction) to say that the data has been retrieved. This returns the data to the subscription on the component page, and it will then show on the fetchdata.component.html page.
Note that there are a bunch of references in the app.module.shared file that I have added, grouped together. Also, this still works in prerender mode, and I have not made any modifications to the webpack files.
I hope this is of value to somebody!


fix(mongo): database authentification

Using v3.40.2, we have the following issue when trying to run platform service:mongo:export:

I don't know if there is a test for this because I made a really quick fix, but this should do the work.

Thanks @Kocal !

Released in version v3.40.4 (update with platform up)

Nice :+1:

(and it's working fine)


Update base image to phusion/baseimage

Use phusion/baseimage as the base image.

Finished the upgrade.


Added game 27 to game_list.js

#17

@KAUTH It seems like there was a failure with a github "Greetings" bot. Is this something I should fix? thanks!

No don't worry about it, that is a problem on my side. Thanks for the PR, I'll review it shortly!


Update styles.xml

Updated Styles to the BJCP 2015 Style Guide. No Gradle changes this time

@couchguy how did you generate this new styles sheet?
Since this PR it appears that a number of properties aren't correct - for example, min/max ABV for a number of styles are wrong.

I think this is probably the cause: https://github.com/couchguy/BJCP-Style-Guide-to-BeerXML/pull/1

Biermacht fix is here: https://github.com/caseydavenport/biermacht/pull/78


How to handle statefulness in an online HiPPO implementation?

I am training HiPPO models on times series where the model predicts an output for every time step of the input sequence. During training, I reset the states at the beginning of each batch, while at test time I reset the state only at time zero. While, this is a common practice in traditional recurrent networks like LSTMs and GRUs, I am getting poor test performance with HiPPO models (LagT, LegT, and LegS).  The performance improves if I reset the states at the exact sequence length that I used during training, however this has the downside of erasing the memory. I was wondering what would be your recommendation on how to maintain statefulness for the three elements of the state (i.e. h, memory and time_step) during online, real-time predictions?

This is an interesting phenomenon. I think we did not ever train in settings where the test sequences were much longer than training sequences, so we didn't encounter this.
One note is that I would expect LegS to not work well in this setting (because it is not "stationary" in a sense, so its behavior will be quite different on longer sequences), but I would have expected LegT to be ok.
A few questions about the setting: What are the lengths of the training and test sequences? Are all train sequences the same length and the testing sequences are much longer? Is it a setting where you have very long sequences and are chunking them during training; if this is the case, can states also be passed between batches during training instead of being reset?

Thanks for the prompt response! As you correctly pointed out, LegS did not work well, and the best performance was indeed achieved with LegT. To answer your questions,  the data consists of long time series that we are chunking during training. Keeping the state alive between batches would be difficult due to large variations in the length of datasets and random discontinuities within each data set. Perhaps, a possible intermediate solution would be the increase the sequence length and use TBPTT.

Yeah, that may be a good approach. This is an interesting problem to explore!


Swapchain Layer: Unnecessary error when selecting VK_PRESENT_MODE_FIFO_KHR without enumeration

The swapchain extension spec notes that VK_PRESENT_MODE_FIFO_KHR is required (extended spec section E.3.6 issue 11), and thus no enumeration of presentation modes should be needed to select it. Currently the layer indiscriminately complains that vkGetPhysicalDeviceSurfacePresentModesKHR() has not been called. There should probably be a special check to silence the error in this particular situation.

Fixed here #118

The PR has been accepted, closing.


stalwart-mail: package und use upstream systemd unit

Description of changes
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Was it intentional that the group/user in systemd are removed? Here it was added https://github.com/NixOS/nixpkgs/pull/315697 . Right now linux user is created but not used which seems wrong.

Ah, ok, thanks. Turns out I was missing another thing - AF_UNIX in RestrictAddressFamilies . Postgresql can be used with unix sockets which I was trying to configure, but got confused with these users. Should it be included by default maybe?

That would be nice, maybe toggle AF_UNIX depending on the configuration, if Postgresql is used? Would you like to open a pull request for it?


Changed Rabbit preflight - Uses invalid variable

Why does this check not use the same variable as the rest
command: "getent ahostsv4 {{ hostvars[item]['ansible_hostname'] }}"
^^^^^^^^^^^^^^^^^^^^^^
Produces this output
FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'ansible_hostname'\n\nThe error appears to have been in '/usr/share/kolla/ansible/roles/prechecks/tasks/port_checks.yml': line 442, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Check if all rabbit hostnames are resolvable\n  ^ here\n"}
A change from variable ansible_hostname to inventory_hostname fixes the issue.

Thank you for contributing to openstack/kolla!
openstack/kolla uses Gerrit for code review.
If you have never contributed to OpenStack before make sure you have read the
getting started documentation:
http://docs.openstack.org/infra/manual/developers.html#getting-started
Otherwise please visit
http://docs.openstack.org/infra/manual/developers.html#development-workflow
and follow the instructions there to upload your change to Gerrit.


fix(root-layout): focus ring on scrollable regions

fix(root-layout): focus ring on scrollable regions

Obligatory GIF (super important!)

:hammer_and_wrench: Type Of Change

These types will increment the version number on release:

[x] Fix

:book: Description
Added inset focus ring on focus visible to sidebar and content sections
:bulb: Context
By accessibility rules scrolling regions must be focusable, however our root layout component does not currently indicate focus. Added an inset focus ring on focus-visible. This gets cut off by the scrollbar if it is shown, however I cannot find any possible way to fix this due to the component taking up all available space with no padding / margin 🤷. This solution is still better than nothing
:pencil: Checklist

For all PRs:

[x] I have ensured no private Dialpad links or info are in the code or pull request description (Dialtone is a public repo!).
[x] I have reviewed my changes.
[x] I have added all relevant documentation.
[x] I have considered the performance impact of my change.

For all CSS changes:

[x] I have used design tokens whenever possible.

:camera: Screenshots / GIFs

:link: Sources
https://accessibilityinsights.io/info-examples/web/scrollable-region-focusable/

It looks ok for me 🤔

Even with the scrollbar it doesn't look too bad, but it's not the same as the screenshot you provided

Even with the scrollbar it doesn't look too bad, but it's not the same as the screenshot you provided

Ah yeah it's the "Always show scrollbars" option on mac. I have this enabled so I notice bugs exactly like this, haha

Even with the scrollbar it doesn't look too bad, but it's not the same as the screenshot you provided

Ah yeah it's the "Always show scrollbars" option on mac. I have this enabled so I notice bugs exactly like this, haha

Right, always forgot about that setting 😅


Run python lint test on *.py files

Incorporate test into Travis CI

Closing as this is being done in watchmaker.


reorganise .cha file for minimum NeXus compliance (to enable visualisation)

import h5py
import numpy as np

def write_cha2(x, y, metadata, dataset_name="raw", filename='nexus_compliant_spectrum_file.h5'):
    """
    Create a NeXus compliant HDF5 file from given x, y arrays and metadata.

    :param x: numpy array for the x-axis data (e.g., wavenumbers).
    :param y: numpy array for the y-axis data (e.g., counts).
    :param metadata: dictionary containing metadata information.
    :param dataset_name: dataset name, e.g. "raw" , "processed"
    :param filename: The name of the output NeXus file.
    """
    # Create a new NeXus compliant HDF5 file (write mode)
    with h5py.File(filename, 'w') as nexus_file:

        # Create the root NXentry group
        nxentry = nexus_file.create_group('entry')
        nxentry.attrs['NX_class'] = 'NXentry'

        # Add the raw data group
        nxdata_raw = nxentry.create_group(dataset_name)
        nxdata_raw.attrs['NX_class'] = 'NXdata'

        # Add x and y datasets
        nxdata_raw.create_dataset('x', data=x)
        nxdata_raw.create_dataset('y', data=y)
        nxdata_raw['x'].attrs['units'] = "cm-1"
        nxdata_raw['y'].attrs['units'] = "a.u."
        nxdata_raw.attrs['signal'] = 'y'
        nxdata_raw.attrs['axes'] = 'x'

        # Add metadata
        for key, value in metadata.items():
            nxentry.attrs[key] = value

# Example usage
x = np.linspace(0, 10, 100)  # Example x data
y = np.sin(x)  # Example y data (e.g., counts)

# Metadata dictionary example
metadata = {
    'title': 'Sample Spectrum Data',
    ...
}

# Create the NeXus file
write_cha2(x, y, metadata, "raw")
write_cha2(x, y, metadata, "processed")

@georgievgeorgi this is a proposal for .cha v2   (in addition to NeXus file generated using https://github.com/ideaconsult/pyambit
The main change is there is a top level group (entry,  name could be anything) and then there could be multiple NXdata groups, then the actual data as h5 datasets.
This shall enable visualisation in h5web.  Also will be possible to have multiple spectra in the same file (different top level entries)
Question - can we fit the cache within this new structure ?

The cache is based on nested datasets. The name of the dataset represents the applied processings over the parent data. This way we support branching. If the NeXus format supports nested datasets, the rest is doable, i believe.

NeXus  is just hdf5 file with some conventions for the structure.
there is no convention for nested datasets , but we could invent .


[FEATURE] withReactQuery - add an option to seed the queryClient or to prefetch query

In SSR, to limit the amount of calls from different use queries; we have an init useQuery that retrieves all the initial data. Subsequent queries will attempt to retrieve the data from the cache, but if it's not available, they will make an api call.
Since withReactQuery will populate the queryCache in the prepass process, but not execute the fetch immediately, the  dependent queries won't find anything in cache and hence decide to make an api call instead. There's no option to re-render and make the dependent queries to reevaluate themselves.
Can there be a way to hint the withReactQuery hoc to execute queries in priority or an option to prefetch certain queries before the prepass (so the cache is already there)?
Maybe provide another param that's an async delegate which receives the queryClient then we can call a prefetch inside. I also tried setting the __queryClient in locals in the AppConfig, but it didn't quite work.
withReactQuery(AppConfig, options, async () => {
    await queryClient.prefetchQuery({
        queryKey: ['todos'],
        queryFn: fetchTodos,
    })
})

Hi @sorioinc
The way react query works within the PWA-Kit is intentional, and the reason we don't have serialization of api calls via the react query is that doing so would be detrimental to rendering performance as you'd be introducing a single link in the render pipeline that is blocking all other requests from being made.
May I ask what the exact use case you are hoping to solve is? There might be other things that you can do to overcome the limitations that you ran into. For example, have you thought about using SCAPI hooks to enhance the data that is being returned via the API, in that way you can serialize things on the server.
Another option is to use the useCommerceApi hook to get direct access to the api client, once you have access to the client you can build your own query using useQuery directly. This would also allow you to serialize calls inside the fetch function. There would be some limitations as to where the data ends up being cached, but nothing you couldn't work around I don't think.
Ben

Thanks for your reply @bendvc,
Our use case is similar to the following, since we are using react-query for our own bff endpoints:
Imagine endpoints on our custom BFF:

company_custom_promotions
company_custom_banners
company_custom_preferences
initial_values: a one call endpoint that returns the data from the three above (promotions + banners + preferences)
random_data_endpoint

React Queries related in this order:

useQuerySSRInitialVals
usePromotions - will check useQuerySSRInitialVals if already in cache
useQueryBanners - will check useQuerySSRInitialVals if already in cache
useQueryPreferences - will check useQuerySSRInitialVals if already in cache
useQueryRandomData

In CSR, it works because the useQuerySSRInitialVals is called higher in the component tree; when the user journey eventually takes them to banners or promotions, the useQuery will check useQuerySSRInitialVals for the cached value and decide to do network request from the browser.
In SSR, on each document request; react-ssr-prepass, will discover the useQueries (including useQuerySSRInitialVals) and later resolve them concurrently. This means we get five network requests from the server every single time.
In the server I'm looking to avoid network requests for promotions, banners, and preferences, because those values can be gathered from the initial_values endpoint already, so if useQuerySSRInitialVals can be executed before the prepass or a way to seed the cache then I would be able to achieve that.
Right now I made a little hack, by locating useQuerySSRCache as higher in the component tree execution as possible, then setting initialData with data that I store in a singleton with initial_values endpoint result from previous document requests. This ends up making only on one network request afterwards
After the server boots up, first document request from user browser will make five network requests from the server to external resources:

initial_values
company_custom_promotions
company_custom_banners
company_custom_preferences
random_data_endpoint

Second request from user browser, will produce network calls for:

random_data_endpoint

In SSR, on each document request; react-ssr-prepass, will discover the useQueries (including useQuerySSRInitialVals) and later resolve them concurrently. This means we get five network requests from the server every single time. In the server I'm looking to avoid network requests for promotions, banners, and preferences, because those values can be gathered from the initial_values endpoint already, so if useQuerySSRInitialVals can be executed before the prepass or a way to seed the cache then I would be able to achieve that.

Have you considered having the hooks you don't want to run on the server be disabled? Specifically for the data that you don't want, promotions, banners, and preferences.


redirect netlify PR previews

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please ask for approval from durandom after the PR has been reviewed.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

tested and works


[no merge] Measure pytest overhead

Tweaking collected tests to measure pytest overhead in Travis CI.

Before this PR (#8085)

Before tests: 77 seconds
Tests:  1277  seconds

This PR (only pytest overheads)

Before tests: 77 seconds
Tests: 273 seconds


Add Support for HTTP Headers

What is the ideal scenario for using this feature?
Using NoSqlBench for testing an Astra Database via the REST API requires HTTP headers for the auth token, among other things.
Is your feature request related to a problem? Please describe.
No, just thinking of using this for my DA Astra demo.
Would you like to help implementing or testing it?
I think with headers available I could get the rest going.
Additional context
This link here outlines the GET message format for Astra.

Per @phact, I believe the edit is here:
https://github.com/nosqlbench/nosqlbench/blob/main/driver-http/src/main/java/io/nosqlbench/activitytype/http/HttpAction.java#L88

I did a quick experiment to see if we could retrofit the HTTP driver to use a more modern configuration format. It looks like it is mostly done. This will make all requests fully customizable, including headers, content source etc.
Something usable should be in place by tomorrow.

This is implemented in the current version of the HTTP driver, and should be ready for alpha level testing. Additional features will be added to the HTTP driver before it is more widely announced:

[ ] result verification parameters (status, content) and documentation
[ ] possible request chaining for redirects, etc and documentation
[ ] metrics and documentation
[ ] exception handling design review and documentation

Hi @jamesc127 are you able to try with the latest version that includes fixes that @jshook and I worked on and Shook got into a release recently?  I was able to get the http driver working with Stargate's REST/Document API to load data so I don't see a reason why it wouldn't work with GET.  The version that works with it is https://github.com/nosqlbench/nosqlbench/releases/tag/nosqlbench-3.12.154 and later.  The http driver documentation has been updated with new diag features and there are also additional features like URLEncode and URLDecode (in the conversion bindings documentation.  Other examples of running with it are in this repo if that helps as well.
Ultimately, I'm wondering if this has been fixed.

Headers are supported in the documented format now.


ARROW-14147: [IR] [C++] Make Filter node expression a conjunction

similar to https://github.com/apache/arrow/pull/11243 I'd prefer to avoid multiple ways to represent expressions

Cool. Let's keep it as is for now.


Request for adding mailchimp email subscription box in footer and sample contact form response

Would be good if we have a subscription box in footer for mailchimp along with adding sample response in contact form by adding dummy function to extract values from contact form and then showing the values in alert followed by success response and display response in the same page

Hey @eric-stanley
thanks for choosing our theme. we don't currently have any plans for this. but if you want any feature improvement or theme customization, then you can contact us here https://themefisher.com/custom-development


Is this project still maintained?

Has this project been abandoned?

@vriera ya i also wonder the same.
this is a good project, but last major release was over a year ago :(
i proposed some new ideas a few months back but i am not sure whats the current status of this project. check it here https://github.com/olton/Metro-UI-CSS/issues/559

Dear friends! I live in Ukraine. You probably know what the situation, including economic. I now have to exert a lot of effort to provide for the family. Work on the framework is only very slowly, because most of the time I'm busy at the earnings. Sorry.

God bless you. Olton .


added comment for board change

Implemented automatic issue comment feature when an issue is moved within the project board.

@burakhanoztas i tried running this locally, doesnt seem to work

@burakhanoztas i tried running this locally, doesnt seem to work

@iminfinity it works fine. with which brach did you try it locally?

@burakhanoztas i tried running this locally, doesnt seem to work

@iminfinity it works fine. with which brach did you try it locally?

i was in your branch, found the issue, this only work in repo/projects  and not in org/-/projects where i was checking

@burakhanoztas i tried running this locally, doesnt seem to work

@iminfinity it works fine. with which brach did you try it locally?

i was in your branch, found the issue, this only work in repo/projects and not in org/-/projects where i was checking

i fixed the problem. you can check.

hi @delvh, can you review this? seems the PL is ready.

I'm tired of adding more and more columns on the comment table. Maybe we need a new design for comment table before introducing more columns.

This will be replaced by #29311


Update inappbrowser.js

report the events over the progress function of Q
expose the show methode

Thanks for the suggestion @sunsus, but we opted to use $broadcast events to transmit these messages and events, and I don't think q.notify is the right thing to use here.
Also I've added the show() method in a different commit.


Build but won't run in simulator

I'm getting this project to build successfully but the simulator doesn't seem to want to open and it's not recognizing my iPhone 5s as a device, are there special requirements or limitations I should be aware of in general?

Hi,
Which iOS-version on your device?
Do you run demo application or another?

and XCode version?

8.3 but the simulator isn't launching either
Sent from my iPhone

On Apr 15, 2015, at 1:34 AM, sstepashka<EMAIL_ADDRESS>wrote:
Hi,
Which iOS-version on your device?
Do you run demo application or another?
—
Reply to this email directly or view it on GitHub.

xcode 6.3 (6D570)

Hey Tommy, Could you please post the error details here?
We do not have any specific requirements - should run on 5s and your setup without problems.


Forward all from a domain to an email.

When I create Alias, the system prevents me to create<EMAIL_ADDRESS>The warning of "star" is "This value is not valid."
Please show me the solution...

+1

Will be added in the next release! :)


Add documentation to GodotSharp, Fix PackedInt64Array typo

Follow-up to #40218, #50867 and #51044

Adds documentation to almost every class and member in GodotSharp (Related to #39703 but I'm not sure if this is enough to close it).
Fixes a typo in bindings_generator.h
Fixes the documentation generation for [constant] tags in bindings_generator.cpp

What is the reason that this PR is marked as draft?

Since this PR changes so many files and #50872 will probably conflict I thought you may want to merge that one first and then I can rebase this one.

#50872 is now merged, so this PR is good to merge as well once rebased.

Thanks!


library columns enhancements

Hello, I just tried museeks and I found it very good and it could be a valid (if not the best) mp3 player for linux, if you keep it so minimal and clean.
I just want to point you to some important enhancements that in my opinion must be done on the library component:

first of all, the table lacks the availability to sort columns, for instance you cannot sort by artist or album, that is quite a pain, eventually multiple sorting, i mean: by artist and by album
in settings will be very useful to choose which columns to display in library, because, for instance I need the track number and year to sort by artist->album->year->track number
resizing columns could be very helpfull

I will be very glad if you will find this comment helpfull.
Thank you and keep the good work!
Daniele
PS. I would like to contribute but I've seen you use react, while I use angular for my day-time job, so I need to learn it first and I think it requires a pretty huge pattern shifting... ;-)

Hellp @danidev !
Everything you mentioned is here: https://github.com/KeitIG/museeks/issues/62, sorting columns will come first as it's the easiest thing to implement :)

I would like to contribute

There are some tasks fairly easy to do if you're afraid with React