numba AOT distribution

umap-learn uses numba for JIT. This is fine for making the code run fast, however, this also makes distributing the umap-learn package a pain in other open-source software. We are interested in integrating UMAP into Orange, but we are hesitant to do so because of the numba and llvmlite dependencies, as this would add another 30Mb size to our installers, which are already too big.
I have recently learned that numba also has an Ahead-of-Time (AOT) mode, which precompiles binaries without any changes to the code. I haven't looked into it, but my understanding is that these binaries then do not require neither numba nor llvmlite to be installed. This would likely complicate the build and distributing process for umap-learn, since, if you went this route, you'd likely need to setup a CI system to build on all the major platforms and Python versions.
I am wondering if you have any plans to migrate to numba AOT, or distributing precompiled binaries in any other capacity?

I think there is some potential benefit to providing binary wheels. A catch is that compilation specific to the processors of the host machine can be pretty beneficial, and binary wheels tend to be generic. That gives me some hesitancy of trying to distribute AOT based binary wheels directly on PyPI. On the other hand potentially a specific AOT based version of these libraries might be practical under a different name on PyPI. Alternatively if you are packing things up yourself you can build AOT versions for distribution? I'm open to ideas on this as I agree it would potentially be useful.

Yes, the binary wheels are more generic and typically won't be as fast than if they are compiled on the native system. I don't know how much numba is affected by this, but it isn't that drastic when compiling cython extensions. Noticeable, yes, but not drastic.
Even if you do start packaging binaries, you could still make a source distribution that would either install the non-AOT-ed version or it would perform the AOT compilation on the host machine. Users can opt for the sdist version with the --no-binary flag in pip, which installs packages from source. However, users will have to remember to use it because wheels get installed by default. Releasing a new, separate package would solve these issues, and seems like a good solution.
I haven't played around with this at all, so I can't really comment on setting up numba's AOT. But looking at the documentation, it seems pretty straightforward. We could probably build the umap binaries for orange ourselves, but we tend to try to avoid that since it just complicates and already complicated build pipeline.

I'll try to look into the AOT a little more and see if I can have umap-learn-aot and pynndescent-aot packages available on PyPI; hopefully that would resolve some of the issues for you.

Thanks, that would be very helpful!

Hi @lmcinnes, found this thread to be extremely resonating in terms of the concerns highlighted by @pavlin-policar . I was wondering if you reached any resolution for the AOT packages and publishing the binary wheels? Thanks!

No further news I am afraid. I'm really dependent on numba's AOT compilation to make this possible. I understand there is work being done on this, but it is not yet really in a state where we can distribute binary packages.


Use ConcurrentHashMap to keep language-specific UnknownTypes

We had to observe some random crashes when using the unknown type map recently with concurrent modification exceptions. This PR should fix this issue.

In the long run we might want to have an UnknownLanguage instead of a lot of null languages.


Square tabs with full height

Tabs should be squared and have the same height as the rest of the window head.
The tabs should be without the corner radius, so they fit the style of the rest of the system more. Also the tab "ceiling" should end right at the top of the window head (and not below like it is right now), so users can click on them without aiming. They would also have the same padding at the top as they have at the bottom, which would look even nicer.
I want the tabs to be resized to fit the whole window head and their corner radius to be removed.

Thanks for reporting this. Would you mind helping us out and keeping UI issues in the “ui mega thread”? #1375

Oh, I am sorry. Will watch out for that the next time.


[bug]There is a problem with setting the output device when connecting a Bluetooth headset

Describe the bug
When a Bluetooth headset is connected, the audioOutputs queried by the Android side will have:
0 = MediaDevice{deviceId: bluetooth, label: Free BYRD, kind: audiooutput, groupId: bluetooth}
1 = MediaDevice{deviceId: speaker, label: Speakerphone, kind: audiooutput, groupId: speaker}
2 =  MediaDevice{deviceId: earpiece, label: Earpiece, kind: audiooutput, groupId: earpiece}
use : _room.setAudioOutputDevice(device);
Set any device output, and the Bluetooth headset device will emit sound
Describe the bug
iOS phone cannot find the Receiver device，but can find it occasionally，
0 =  MediaDevice{deviceId: com.apple.avfoundation.avcapturedevice.built-in_video:0, label: Back Camera, kind: videoinput, groupId: nu
1 = {UNEEDMediaDevice} MediaDevice{deviceId: com.apple.avfoundation.avcapturedevice.built-in_video:1, label: Front Camera, kind: videoinput, groupId: n
2 = MediaDevice{deviceId: Built-In Microphone, label: iPhone 麦克风, kind: audioinput, groupId: MicrophoneBuiltIn}
3 = MediaDevice{deviceId: Speaker, label: 扬声器, kind: audiooutput, groupId: Speaker}
Describe the bug
At the same time, after the iOS phone is connected to the headset, the headset device can be found for the first time. When it is switched to the speaker, the headset device will disappear and cannot be found. In addition, the Bluetooth connection device is in the connected state in the phone settings.
Flutter (Channel stable, 3.24.3, on macOS 15.1.1 24B91 darwin-arm64, locale
zh-Hans-CN)
android 14  galaxy S22+
iOS iPhone X
livekit_client: ^2.3.0

Enumerating the device list on mobile devices is not reliable, because it works differently from desktop (Windows/macOS), there is a system audio routing management control, so on mobile devices not always can list all audio devices (sometimes not accurate), so the output can let the system take over, just set to use/or not use the Hardware.instance.setPreferSpeakerOutput(bool).  and avoid using _room.setAudioOutputDevice(device); for mobile


Error in install

I follow tutorial for installing
but when I have used make command, giving  me the error below:
ROTOC = "protoc"
CC_PREFIX = ""
sed: 1: "tensorflow/contrib/make ...": undefined label 'ensorflow/contrib/makefile/download_dependencies.sh'
make[2]: *** [tensorflow-stamp/tensorflow_base-configure] Error 1
make[1]: *** [CMakeFiles/tensorflow_base.dir/all] Error 2
make: *** [all] Error 2

Hi, I am not able to reproduce this. Is this on the latest master? What OS?

I used MacOS Catalina.
bazel= 0.23.0
cmake version 3.16.4

There might be a problem with https://github.com/FloopCZ/tensorflow_cc/blob/91997b1d5e4d8ac4b31c494c6a182611e0bae013/tensorflow_cc/cmake/TensorflowBase.cmake#L22 on MacOS version of sed. Unfortunately, I do not have a MacOS to debug, can you try to shuffle/escape it somehow?

Sorry guys, I deprecated the static build entirely because of TF 2.1 deprecation of contrib/makefile. Please use shared build instead. Feel free to open a new issue.


@mbernst should be part of all the technical quality review and technical operations teams

Since the start of this project @mbernst has unofficially taken these rolls. He is technically adept, is heavily involved with day to day operations, and has a strong track record of contributing an enormous amount of time to this project.

Use comments to share your response or use emoji 👍 to show your support. To officially join in, comment I will help. To break consensus, comment using this template. To find out more about this process, read the how-to.

I will support this proposal.

Duplicate of https://github.com/crowdresearch/collective/issues/1


What's the best way to wait until i18n messages are ready?

I just found out if you immediately renders a component that needs i18n. The translations will be marked as not found :(

Never mind.. Just found out I need to require i18n before RN starts


Not save role

Hello, good project, but I have a problem and that is that it does not save or read the roles. Because the PermissionPolicy.getRoles() function only obtains an empty array even if I apply await PermissionPolicy.giveRole('admin');

Hi @hortigado,
Thanks for reporting this, I'll take a look now and let you know my findings 👍

Hi @hortigado,
I've just tested this and it appears to be working.
Could you try the below code in your project?
RoleAndPermissions roleAndPermissions = {
      "Admin": ['admin'],
      "Subscriber": ['can_unsubscribe', 'view_exclusive_content'],
      "User": ['can_subscribe', 'view_content'],
      "Sales Manager": ['view_revenue', 'view_apps'],
 };
PermissionPolicy.instance.addRoles(roleAndPermissions); // Add roles to the permission policy

await PermissionPolicy.giveRole("Admin"); // Give the user the role of Admin

await PermissionPolicy.giveRole("User"); // Give the user the role of User

List<String> roles = await PermissionPolicy.getRoles();

print(roles); // [Admin, User]

Correct in main.dart I put it
 RoleAndPermissions roleAndPermissions = {
    "owner": ['owner'],
    "admin": ['admin'],
    "worker": ['worker'],
    "vet": ['vet'],
  };
  PermissionPolicy.instance.addRoles(roleAndPermissions);

And in my controller i give the role
await PermissionPolicy.giveRole("Admin");
Maybe there is some conflict in my project or with some package. I would have to keep trying

@hortigado,
Yeah, I think there might be a conflict in your project.
Here's the complete code I used to test if that helps 👍
I'll mark this issue as closed.
import 'package:flutter/material.dart';
import 'package:permission_policy/permission_policy.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  RoleAndPermissions roleAndPermissions = {
    "Admin": ['admin'],
    "Subscriber": ['can_unsubscribe', 'view_exclusive_content'],
    "User": ['can_subscribe', 'view_content'],
    "Sales Manager": ['view_revenue', 'view_apps'],
  };
  PermissionPolicy.instance.addRoles(roleAndPermissions); // Add roles to the permission policy

  await PermissionPolicy.giveRole("Admin"); // Give the user the role of Admin

  await PermissionPolicy.giveRole("User"); // Give the user the role of User

  List<String> roles = await PermissionPolicy.getRoles();
  print(roles);

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // TRY THIS: Try running your application with "flutter run". You'll see
        // the application has a purple toolbar. Then, without quitting the app,
        // try changing the seedColor in the colorScheme below to Colors.green
        // and then invoke "hot reload" (save your changes or press the "hot
        // reload" button in a Flutter-supported IDE, or press "r" if you used
        // the command line to start the app).
        //
        // Notice that the counter didn't reset back to zero; the application
        // state is not lost during the reload. To reset the state, use hot
        // restart instead.
        //
        // This works for code too, not just values: Most code changes can be
        // tested with just a hot reload.
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // TRY THIS: Try changing the color here to a specific color (to
        // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
        // change color while the other colors stay the same.
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          //
          // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
          // action in the IDE, or press "p" in the console), to see the
          // wireframe for each widget.
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}


[SPIKE] Test validate dataset classes in catalog using LSP

Related to: https://github.com/kedro-org/vscode-kedro/issues/5
This is a spike to test using the lamguage server protocol from pygls to add validation for dataset classes.
How to Use the Feature

Install or Update the Kedro VSCode Extension
Open Your Kedro Project in VSCode
The extension will automatically initialize and start scanning catalog files.
View Diagnostics in the Problems Pane it will display diagnostics for any issues found in your catalog files, even if the files are not open.

This is looking good already, you may want to add some documentation or screenshot at the end to show how to use this feature. This is definitely a very useful feature!

Hey @noklam, thanks for the feedback! I'm currently working on extending the feature to validate closed files as well. I agree that it would make sense to quickly identify all missing dependencies when starting a new project.  I'll also add documentation and include screenshots to demonstrate how to use this new feature.

I've implemented validation of closed files but there is a bit of a performance aspect to this. For projects with many files it may take some time to load them all.

Haven't read the code as I am on my phone. It only need to read the relevant files so it shouldn't need to read the entire project. It can make use of the configuration that it only scan the base /local or the selected env

I'd love to do some QA, @SajidAlamQB do you think a .vsix can be generated from this PR?

Tested with a spaceflights project. It works, although the LSP doesn't immediately pick up changes in the environment. For example, starting from here:

(kedro-datasets and pandas not present in the environment)
I then do uv pip install kedro-datasets pandas and it didn't immediately update. Maybe it has to do with this error I'm observing in the Output tab:
2024-12-16 14:54:35.847 [info] Failed to handle request 12 textDocument/definition DefinitionParams(text_document=TextDocumentIdentifier(uri='file:///Users/juan_cano/Projects/QuantumBlackLabs/kedro-spaceflights-mlflow/conf/base/catalog.yml'), position=45:3, work_done_token=None, partial_result_token=None)
Traceback (most recent call last):
  File "/Users/juan_cano/.vscode/extensions/kedro.kedro-0.2.2/bundled/libs/pygls/protocol/json_rpc.py", line 266, in _handle_request
    self._execute_request(msg_id, handler, params)
  File "/Users/juan_cano/.vscode/extensions/kedro.kedro-0.2.2/bundled/libs/pygls/protocol/json_rpc.py", line 188, in _execute_request
    self._send_response(msg_id, handler(params))
                                ^^^^^^^^^^^^^^^
  File "/Users/juan_cano/.vscode/extensions/kedro.kedro-0.2.2/bundled/tool/lsp_server.py", line 366, in definition
    result = _query_catalog(document, word)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/juan_cano/.vscode/extensions/kedro.kedro-0.2.2/bundled/tool/lsp_server.py", line 333, in _query_catalog
    catalog_paths = _get_conf_paths(server, "catalog")
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/juan_cano/.vscode/extensions/kedro.kedro-0.2.2/bundled/tool/lsp_server.py", line 235, in _get_conf_paths
    config_loader: OmegaConfigLoader = server.config_loader
                                       ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'KedroLanguageServer' object has no attribute 'config_loader'

Also, something that just noticed (and I think it's happening with the current version too): somehow the extension is trying to parse pipeline.py as YAML


Windows: Consider whether it's important to write/handle config.yml and docker-compose.yml in crlf native windows textfile format

What happened (or feature request):
On Windows we're creating text files in Unix format (with just LF at end of lines). Windows text files have CRLF at end of line. Lots of things handle this fine but it definitely shows that we're not windows-native and may be a problem to some developers who use editors like notepad that aren't up to the task.
Here's what our config.yml looks like in notepad:

What you expected to happen:
Perhaps we want to write files in windows-native format, assuming that docker-compose can handle that.
How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
Related source links or issues:

Adding to this: we also use \n quite often in CLI code. I assume it's probably handled OK by bash windows, but is there anywhere else that might be problematic?

If I'm not mistaken, \n is actually a newline in the local environment, at least it has been since the days of 'C', so I think this is working OK in golang as well.

References for work on this:
https://github.com/andybalholm/crlf
https://godoc.org/golang.org/x/text/transform
https://groups.google.com/forum/#!topic/golang-nuts/VwpNO73V1CE

Tagging w/v1.0 because that is when we are targeting improved Windows support. See Roadmap.

Proposed next actions:

[ ] Timeboxed audit (search) to find the number of usages of \n in our codebase.
[ ] Research if there is a Go library to normalize this.

Not sure if this would be something that @nmccrory or @rfay would be more appropriate for. This also doesn't need to be queued this sprint.

This has not blocked us at any point, nobody has ever complained. Closing for now.


PDFKIT Install Procedure > Request

I've spent 4 days exploring PDFKIT/NODE as a solution for lambda based PDF generation....  and I've yet to get PASSED the install successfully more than once.
AWS EC2 + AMZ Linux Flavor
STEPS USED
EC2 Create AMZ LINUX
As EC2-user
COMMANDS
cd /home/ec2-user/
curl https://raw.githubusercontent.com/creationix/nvm/v0.23.3/install.sh | bash
source ~/.bashrc
nvm install stable
nvm use v7.10.0
cd /var/www/html/
npm install pdfkit
node t.js   <here NODE is executing a test of PDFKIT)
Sometimes PDFKIT installs without errors.. sometimes I get complaints it seems.
Goal is to explore PDFKIT for viability, but I need to form a reliable environment, and that's not yet been what I'd call ideal.
PLEASE SUPPLY AN IDEAL SETUP PROCEDURE from start to finish so I can explore PDFKIT for viability.
If another path is suggested due to maturity, I invite that direction
n8

What errors are you getting?

I usually get the following... but then once I get PDFKIT installed, I can't find viable test syntax... everything errors out due to syntax..  Syntax reference available?
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/package.json'
npm WARN html No description
npm WARN html No repository field.
npm WARN html No README data
npm WARN html No license field.
It appears I can get to SOME form of functional readiness... which I think I have at now.
Based on latest NODE 7.10... I'm testing PDFKIT for viability, and things as simple as TEXT adding.. errors all over from the examples...

I have had mixed results installing.. likely due to my inexperience w NODE and when/where to use which user type
i've achieved enough at this point to get what I needed, so this can close, however an UPDATED FINAL/CLEAN install document would be great for elimination of time waste, and incorporation for someone like myself exploring w little time.
thanks! :)

See #670. The plan is to convert from coffeescript to JS soon.


mark: 11.2.0 -> 11.3.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/kovetskiy/mark/releases.
meta.description for mark is: Tool for syncing your markdown documentation with Atlassian Confluence pages
meta.homepage for mark is: https://github.com/kovetskiy/mark
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 11.3.0 with grep in /nix/store/k9qp1f0h351mpksdaqvy38j9czmwig20-mark-11.3.0
found 11.3.0 in filename of file in /nix/store/k9qp1f0h351mpksdaqvy38j9czmwig20-mark-11.3.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

mark

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/k9qp1f0h351mpksdaqvy38j9czmwig20-mark-11.3.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A mark https://github.com/r-ryantm/nixpkgs/archive/ce1f649ca1857a2fb822ccd68beabf133c3c699b.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/ce1f649ca1857a2fb822ccd68beabf133c3c699b#mark

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/k9qp1f0h351mpksdaqvy38j9czmwig20-mark-11.3.0
ls -la /nix/store/k9qp1f0h351mpksdaqvy38j9czmwig20-mark-11.3.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

mark

Maintainer pings
cc @rguevara84 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 360764

aarch64-darwin

:white_check_mark: 1 package built:

mark


Some questions about operators

1、Vmsingle is similar to Prometheus local storage?
2、vmservicescrape_ service_ Sd.yaml file has an error: regex: true
3、Is Kube state metrics required for k8s cluster deployment?
4、Does k8s cluster deployment need to install metrics server?
5、Does vmagent have a dashboard similar to Prometheus

Yep, it almost the same, but it cannot scrape metrics or execute alerts (vmagent and vmalert is needed).

Thanks! sorry for that, documentation is not good and there can be some typos and mistake. Any kind of help is welcome.

kube-state metrics can be installed separately. There is also all-in-one chart, that install everything needed to monitor k8s cluster from scratch https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-k8s-stack

metrics server can be also installed separately, there is no such requirement for operator.

neither vmagent, nor vmsingle, doesn't have built-in dashboard. We are working on it and some of next VictoriaMetrics releases will include ui for vmselect of VMCluster and VMSingle

Thank you for your reply. Now it seems that the operator is more like https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-k8s-stack But the collection of related components is not as comprehensive as chart warehouse. The installation mode of helm is more like the implementation of Kube Prometheus. Victoria metrics should be released for a long time, but I seldom use it in production environment through search engine. Therefore, I am looking forward to the performance test of Kube Prometheus and victoria-metrics-k8s-stack to learn that Victoria metrics can replace Prometheus.


Sandcaslte: keyboard events use code instead of keyCode

Description
When exploring our camera sandcastles I noticed they're still using KeyboardEvent.keyCode which has been deprecated for quite a while. This PR just updates all uses of keyCode in the sandcastles to use the KeyboardEvent.code property which is much more reliable.

Testing plan

Open the following sandcastles and make sure they still behave as expected and listed in the demo tooltip

Camera Tutorial
HeadingPitchRoll
Imagery Cutout
LocalToFixedFrame

Author checklist

[x] I have submitted a Contributor License Agreement
[x] I have added my name to CONTRIBUTORS.md
[ ] I have updated CHANGES.md with a short summary of my change
[ ] I have added or updated unit tests to ensure consistent code coverage
[ ] I have update the inline documentation, and included code examples where relevant
[x] I have performed a self-review of my code

Thanks for the cleanup @jjspace!


Handle existing cfds on daemon startup

fixes #137
Cfd actor handles upon startup:

"cleaning up" cfds that were left in a state that cannot be continued (any state before PendingOpen will be transitioned to SafelyAborted)
transaction (re-)publication for states that publish a transaction (at the moment: PendingOpen and MustRefund)

note: publishing commit transaction through user interaction is not done yet, see #69 (I will see to work on that next)

Monitor actor handles upon start:

trigger necessary monitoring based on state.

squashed to make rebase easier


fix(core): fix aliasing of embeddables in update query

…query over embedded field
When I perform a nativeUpdate as
await orm.em.nativeUpdate(User, {
      address4: {
        number: {
          $gt: 2,
        },
      },
    }, {
      after: 2,
    });

the result is:
TableNotFoundException: update "user" set "after" = 2 where ("e0"."address4"->>'number')::float8 > 2 - missing FROM-clause entry for table "e0"

this pr refactors some checks on whether it is necessary to include a prefix based on the type of operation and it puts the decision in a single method.
Thank you for your excellent work!

Thanks!


 mention not working inside poll

Hi there,
this does not work for me:
/poll Find a time
<time:2020-12-02T14:00:00+01:00>
<time:2020-12-02T15:00:00+01:00>
would be great to have timezone support in polls for finding a meeting time
thanks in advance
Oliver

@zulipbot claim

I'll work on this issue with @Alexander3312

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot still working

@zulipbot still working

@zulipbot claim

So I claimed this as my first issue because I figured this was something I could figure out, but I am a little confused. I've been able to recreate the bug on the web app, but I'm confused as to what time notation this is and how it is generally parsed within zulip. Thank you

Did some research and I understand the format, my question now is whether this should convert the time to the viewer's time zone

https://github.com/zulip/zulip/issues/12947 is closely related here.  Basically, we don't do any markdown conversions for poll items.  We have a JS-side markdown parser, but we probably don't want to support every possible feature of markdown for poll items.  Instead, we probably want basic things like bold, italics, and links.  And then the time widget makes sense, too, since scheduling is a pretty compelling use case for the poll.

@zulipbot claim

@zulipbot claim

@hackerkid I would like to work on this issue. I was able to recreate the bug on the dev server. Could you please assign me this issue?

@godlike786 Hello, I was still working on this issue and almost completed it. If there's anyway you'd be willing to unassign and allow me to claim again I would really appreciate it, I don't know why I was unassigned. I'm definitely willing to work together on this but I need to contribute to Zulip for a class I'm in for a group project and I have people relying on me to submit a pull request for this. I understand if you want to work on it yourself but I would appreciate it, thank you!

@zulipbot claim

@andersk I have an alternative solution to this issue that just uses the existing markdown.js and poll_widget.js files with some small changes, would it be ok to make a PR after making sure it passes tests?

@JacobRoddam Feel free to create the PR if you already have something ready.

@hackerkid Just linked my pull request. This is the first PR I've made with zulip so please let me know if there's anything I need to fix or do differently when creating a PR with zulip.


Add support for macos aarch64

Seems to work for 32/64 bit values.
We need this on our tarantool-module project, so we would appreciate if you merge this.

Thanks for the PR.
Looking at the implementation, isn't this new module nearly identical to the x86 implementation?

Looking at the implementation, isn't this new module nearly identical to the x86 implementation?

Doesn't look like it to me. The values are offset by 64 bits even if they're aligned 32 bit ones, if I'm not missing anything. The tests pass anyway.

Sorry it's taken so long to get to this, haven't had the energy to look at it properly.

Sorry, I just clobbered all of your changes  with a refactor to reduce code duplication. Could you test that it's still working (I don't know if github actions can do macos-arm64

It's all good, still works. Thanks for taking the time to clean up the code I've hastily implemented!


Remove sox backend for one test, followup from Issue 764

See https://github.com/pytorch/audio/pull/772#issuecomment-657218491

Thanks! Now this test runs on Windows!
https://app.circleci.com/pipelines/github/pytorch/audio/2726/workflows/ee2a127b-52dc-4402-ba20-d3d661d8cccb/jobs/73628/steps


VnVPlan Domain Expert

Hi Phil,
Here is my VnVPlan, I would be happy to hear any feedback or comments.
Thanks,
Cynthia

Hi Cynthia,
I have created my feedback issues: #18 #19 #20 #21 #22.
Some of these are more of questions than issues. Maybe I am not understanding some aspects very clearly. Please take a look.
Thanks,
Phil


How to split main.py into multiple modules?

main.py is pretty full.
I have two concerns about splitting it up:

It would be a shame if we didn't use the opportunity to get good testability
Need to make sure the development experience is still good (see: https://forum.sublimetext.com/t/module-module-loader-reload-modules-dependencies-without-restarting-sublime-text/18781/17)

Where should we start? How small should the modules be?
Example for Commands:

create commands.py, -or-
split each command into commands/SomeCommand.py

As LSP has to handle quite a lot of different stuff, splitting it into several modules is unavoidable. There are several packages out there, which could be used as an example to see how it works. You might have a look into GitSavvy or GitGutter which both do so.
There are some major facts to pay attention to, before splitting the main.py.

Sublime Text actively loads all modules and API classes from the root of each package (only). This is good and bad as well.

Modules living in the root of a package should not be included into other modules as ST will create two instances of them otherwise. One instance is created by python's import statement and one by ST's core when searching for API classes. This is known as the "double loading bug" and is of interest when working with global variables.

Modules living in a subdirectory are ignored by ST and therefore can be imported as often as desired without creating several instances. By placing an init.py into each sub directory python will handle them as one big file in the end. The drawback of that is ST won't automatically reload any module after modification or upgrade.

I decided to put all modules into a subdirectory anyway as there are more advantages then disadvantages.
Pros:

The package publishes only the least required classes to ST.
Loading time of the package is smaller then with multiple files in the root (no double loading)
Smaller modules can be maintained easier and function may be grouped by categories

Cons:

After modification you must manually trigger reloading the modules.
I use AutomaticPackageReloader for that. Not too inconvenient.
ST needs to be restarted after upgrading the package to apply the changes.
I added a reloader module to GitGutter, which does nearly the same as AutomaticPAckageReloader and is triggered after Package Control upgrade.

About the size of each module - it depends on complexity of each module. I'd create a module for each type of function and start splitting any further if it becomes too big. pylint starts complaining if a package exceeds 500 lines of code by default. Same with number of attributes of a class (max 12 or 15), or branches in a function (12 or 15). These values may be used as a guideline to make decisions.

With a look onto the ongoing development and size of main.py, a module structure should be one of the next steps to keep the package maintainable.
Maybe something like:

general language-server-protocol stuff

client
protocol constants
...

library

commonly used functions

intermediate functions which handle certain server responses

diagnostics
references
goto definitions
code actions
completions
docstring popup rendering (handle RST, markdown, Google Docstrings, ...)

sublime API

commands
events

This is done, developers will need to install "AutomaticPackageReloader" to see code changes reflected in Sublime Text.


Remove all cookie if device is offline

if I need to logout and can not make request to server, I want just to delete cookie.
document.cookie is always empty. And it is not possible to just remove all cookies?
We need anything like window.WebviewProxy.clearCookie()

Thank you for using this plugin and this report. As we currently don't need this feature, I don't think I would implement it myself soon. I would love to review a pull request though.
You could try to implement this feature yourself. The cookies are stored in WKHTTPCookieStore and you could implement a clearFunction which iterates through them and deletes them.
Here is the cookie store: https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy/blob/2663ad67c7d4bc5d7af8c02e7f06977a0750ceb0/src/ios/WebviewProxy.m#L36-L37

This is my first code in Objective-C, I hope it's OK?


WIP: new system tests under BATS

Initial attempt at writing a framework for podman system tests.
The idea is to define a useful set of primitives that will
make it easy to write actual tests and to interpret results
of failing ones.
This is a proof-of-concept right now; only a small number of
tests, by no means comprehensive. I am requesting review in
order to find showstopper problems: reasons why this approach
cannot work. Should there be none, we can work toward running
these as gating tests for Fedora and RHEL8.
Signed-off-by: Ed Santiago<EMAIL_ADDRESS>

Oh fantastic, perfect timing, I just got https://github.com/containers/libpod/pull/2435 to pass CI also.  I'll take a peek at this first thing Tuesday.

@edsantiago this is great, more than good enough starting point.  I didn't actually run anything yet because...let me get jq installed (anything else?) on all our CI VM images.  That will support running the tests across all our platforms.  Again, that's not intended for official use, it's just a short-cut to support the pull-request and review workflow...

@cevich thank you! For your helpful feedback and kind words. What would you think of making the json tests skippable in the absence of jq?

Given the amount of JSON involved, no, I think it's a basic-requirement we need to have as a dependency.  It's not hard to add to the VM images, the hard part is waiting for the associated PR to merge, then running a few commands.  Anything else you can think of that might be handy tooling wise?
(Look in ./contrib/cirrus/packer/*_setup.sh for what we have now)

I'm fairly sure there are no other requirements yet. It's possible that future tests could use netcat but I'm not even close to there yet -- that may be too hairy for BATS testing. (I'll look into it anyway)

Yeah, we def. want system-tests to be high-level, light and fluffy.  In fact, I nearly forgot I had that other PR open...should we just merge #2257 document into here?

Ooh, thanks for the reminder. #2257 is a great reference - why don't you merge it, and I'll rebase my PR and mark off progress on TODO.md ?

Force push: rebase, implement review feedback, many other fixes

Having heard no objection at demo time, I'd like to submit this for merge. That will let me start working on packaging it for Fedora and RHEL, while continuing to develop further tests.

/approve

Tests failing becaus quay.io is down; known outage; no word on ETA.

/lgtm


Support PDF encryption

Merge changes in https://github.com/Hopding/pdf-lib/pull/1015
Additional modifications after merging the PR above:

Omit user password and permission control
Omit encryption algorithms other than AES-128
Change property PDFDocument#isEncrypted to a method since it is dynamic now
Avoid overwriting the first element of PDFContext#trailerInfo.ID when updating the ID (see PDFDocument#updateId)

Ideally the ID should be generated from the file contents, but for now we're doing it from the value of PDFContext#trailerInfo.Info

Abort encrypting in the method PDFDocument#encrypt if already encrypted
Refactor some changes in the original PR

Bump up version to 1.17.1-mod.2023.2

This PR is to be reverted due to copyright concerns.


[WIP] Update counter example to use Tauri v2

WIP Draft
Working (on my machine :upside_down_face: ) example updated using https://beta.tauri.app/blog/tauri-2-0-0-beta/ .
Feel free to close if not wanted, as I know it's too early to update here to an unstable dependency.I am hopeful once v2 is out, this PR will still be viable. :crossed_fingers:
Todo

[x] Built tauri app emits "Unhandled Promise Rejection: event.listen not allowed. Permissions associated with this command: event:allow-listen, event:default"... https://beta.tauri.app/references/v2/js/core/namespaceevent/#listen seems to be related... maybe tauri has new security measures?

[x] https://beta.tauri.app/references/v2/acl/ indeed, you must add a new config file :ok:

Now that 2.0 has been released, I'm closing this, as the changes are now included in https://github.com/redbadger/crux/pull/276
Thank you @nuke-web3 this was very useful.


ability to "deep clone" grant deadlines

Based on the this Idea: https://powerofus.force.com/hub-ideas/1062
Users should be able to "deep clone" grant opportunities to get all the associated items in one clone, rather than just copying the record without its associated deadlines.

**lurch: add

Tracking W-010919

Closed, as the product development team has decided not to address this item.


fix: Pr local dev docker

fixes #5218
Overview
The dev container Dockerfile was failing, this PR fixes that
What is it?

[ ] Feature / enhancement
[x] Bug
[ ] Docs / tests / types / typos

Description
The nightly version of Rust in the Dockerfile was causing some of the cargo install to fail, also the Dockerfile was set such that pnpm store and node_modules was getting created in the same directory, hence pnpm install was failing in the Dockerfile.
The fix was to update the Rust version to LTS and setting the directory for pnpm store in Dockerfile.
Use cases and why
Now the dev container vscode plugin as well as manual docker dev env setup will run successfully.
Checklist:

[x] My code follows the developer guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

Thanks for your contribution 💪

Hi @SauravChanda 👋
Thanks a lot having a look at this issue 🙏  just checked it locally and in combination with orbstack on my mac and it works as expected 🎉 leave it open for a bit so others have time to check it as well on other OS / docker clients

That's interesting and thx a lot for testing it with docker desktop @zoltanszogyenyi 🙏 on my end it opens the app on port 3000 using orbstack. @SauravChanda any chance u can have a look at this issue or try to reproduce it?

Sure @zanettin

@zoltanszogyenyi I think I know what is the problem here, the docker container was made with vs code dev container in mind, that's why I didn't add the pnpm install and pnpm serve at the end.
According to the document you can access the container using:
docker run --rm -d --name qwik-container -p 3300:3300 -p 9229:9299 -v $PWD:/home/circleci/project -t qwik-container
once the container is built and run the following to start the servers:
pnpm install pnpm serve
Or use vs code dev container, which opens a separate window with the container running.

gonna merge this now. thanks again @SauravChanda  for your contribution! 🙏


Make title cleaner

Coverage remained the same at 87.645% when pulling 24c22298168aa1d1becaffe2ce3625a4a319cbc0 on readme into c488781ff1a9df7486d08d15e02206b2818f5c4e on master.


add shortcut for caller info

Thank you for this PR. Could you add a test?

@dmathieu Test added :-)

@sirupsen what do you think of this?


Capture daily facility open/closed status on metrics objects.

Description
When a BC Parks admin user exports the capacity report it can show that 350 passes are available on all days even when the season is over and the facility is set to closed. It would be useful to have the report show 0 passes available when the facility is closed as that reflects reality. This ticket is to do that automatically instead of having a user go in and adjust any capacity numbers, the capacity numbers should stay the same but when a facility is closed it shows as no passes available.
This ticket is to add status properties to our metrics schema.
When a new metrics object is created, it should include the status of the facility, which can be gathered from resObjs for past/future dates, and from the facility itself for current dates if no resObj exists.
{
  pk: metrics::<orcs>::<facilityName>,
  sk:<shortDate>,
  ...
  status: 'open' || 'closed',
}

There is also an opportunity here to collect information on whether the facility had passes required or not on a given day. Open/closed status and Booking Days & Bookable Holidays have different definitions. It should be investigated whether Passes Required can also be captured on a metrics object - though this is not captured in resObjs so it may not be possible.
passesRequired: true || false

For example, a facility may not have any bookings because it is open but not requiring passes.
Acceptance Criteria

Facility status is included in the metrics object when it is created
Facility Passes Required is investigated on whether it can be included in the metrics object, and if it can be included, Passes Required is included in the metrics object when it is created
Relevant exporters reflect the status/passRequired of the facility (if applicable)

Notes
Exporters such as the capacity exporter may need updates to show the new status information.
Linked issues
blocks

[ ] https://github.com/bcgov/parks-reso-admin/issues/312

relates to

[x] ~BRS-1020~

Addressed in https://github.com/bcgov/parks-reso-api/pull/341 and https://github.com/bcgov/parks-reso-admin/pull/330

Tested on TEST: Pending

Verified that the capacity report now has two columns for "Status" and "Passes required".
But, when the Status is set to Close, the Passes required still show TRUE (here as per the description i assume it should show FALSE: Need to clarify this @JLWade ). Also, if the Status is closed do you want the individual capacities for AM, PM, and All day to show zero?

When status is set to closed, passes can still be required as this may be due to a snowstorm or one of many is closed so technically passes are still required by the facility itself is closed or unaccessible.
If the capacity report has those two columns visible now that should work for offline analysis - I will need to confirm with marshall for longer term changes to that chart in the admin tool.

Thanks for the reply @JLWade . I will then move this to PO review.

@cameronpettit do yo uknow what the N/A means? looking at joffre in test

This only hit TEST 4 days ago. Only net new metrics will have a status attribute.

thought that might be the case - moving to done


Add disabled for option

Add disabled code adn style for option tags as well.

Hello,
Thank you for your contribution, but I actually already implemented this in a version that I haven't published yet. I will release it soon.

@mdbassit Please release the new version.

@mdbassit I see, thanks for your work!

I just implemented this feature.


Improper encoding of []uint8 type stored in an any type

Marshalling the following:
m := map[string]any{
	"Categories": []uint8{1},
}

Produces:
{"Categories":"AQ=="}

This causes the unmarshal to come back as a string instead of a []uint8.  I'm guessing this has something to do with the encoder thinking that []uint8 is not an array of numbers but []byte and therefore tries to deal with that encoding []byte as a string.  Somewhere in the any I think it gets confused.
Maybe the encoding is expected behavior.  I'm not sure what the expected unmarshalling behavior should be, in this case it seems to keep it as a string when using "any".
Here is a playground link to demonstrate:
https://go.dev/play/p/Hhja0Y2QL_t
As a note: This package is great, and I've got to imagine so much work and pain with so many corner cases.  Thanks for all the hard work.

How would you expect this to work for any Go types? JSON doesn't have a bytes type/kind, so roundtripping []byte without Go type information is not possible.

I'm going to need to expand the problem here.  I was trying to simplify it to its core, but what I really need to show is the change in expected behavior.  Trying to make it simpler made it show expected behavior.
And I probably need to change the title but let me update here and then I'll amend.
Encoding as a string encoding seems to be the behavior in encoding/json.  However, that package can decode back into []uint8 of a custom type, this package does not.  This may be expected new behavior.
Using encoding/json to decode the encoded json into a struct:
https://go.dev/play/p/8TCLcNznOdu
Using go-json-experiment to decode the encoded json into a struct (does not work):
https://go.dev/play/p/ZSlqMAwQjX0
Same, but change custom type for uint8 to just uint8:
https://go.dev/play/p/QbDG2pCgLuO

Updated title and problem statement.  Sorry for the adjustment.

Given that the behavior of this is identical between v1 and v2, I'm not sure I understand why this is an issue filed against the v2 prototype. Trying to preserve binary data in JSON without a scheme is fundamentally not going to reliably roundtrip since the JSON grammar itself has no basic type to represent binary data. The use of a base64 encoded JSON string means that it is impossible to distinguish between a JSON string that happened to be valid base64 or really does contain encoded base64 data.
Closing as inactionable.

Hey Joe,
The behavior is not consistent between v1 and v2.  I'm sorry if this isn't clear.
Here is v1 behavior:
https://go.dev/play/p/8TCLcNznOdu
Here is v2 behavior:
https://go.dev/play/p/ZSlqMAwQjX0
The problem is that V2 cannot unmarshal back into a custom type based on uint8, where as v1 can.   This might not be something you want to support, but if I'm not missing something, this is a behavior change from v1 to v2.


Saga - Incoming Channel Map

@keybase/react-hackers
Adds helpers to use channel map. Changes actions/devices to use the channel map.

@MarcoPolo this was merged but not into master?


Adding aries-endorser-service-alert-workflow and endorser-service-decision-tree diagram

@rajpalc7, You are also missing the DCO signoff on at least one commit.  When you are done, I would recommend rebasing you changes onto the latest version of main, as there are a number of commits and merge commits that should not exist in this PR.  You could address the DCO signoff at that point.


properly support already-encoded SQL strings with psycopg2

What does this pull request do?
The query might be supplied as already encoded byte string (e.g. when using psycopg2.extras.execute_values). In this case, truncation of the query fails unless we decode the query again using the connection encoding.
Related issues
closes #991

:broken_heart: Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Pull request #994 opened

Start Time: 2021-01-04T13:14:10.388+0000

Duration: 22 min 33 sec

Test stats :test_tube:

Test
Results

Failed
3

Passed
11512

Skipped
8228

Total
19743

Test errors
Expand to view the tests failures
Initializing / Test / windows-3.7-none / test_send_remote_failover_sync[validating_httpserver0-sending_elasticapm_client0] – tests.client.client_tests

Expand to view the error details
 AssertionError

Expand to view the stacktrace
 should_try = <MagicMock name='should_try' id='2926330661064'>
sending_elasticapm_client = <elasticapm.base.Client object at 0x000002A9573E6F48>
caplog = <_pytest.logging.LogCaptureFixture object at 0x000002A9573E6088>

    @pytest.mark.flaky(reruns=3)  # test is flaky on Windows
    @pytest.mark.parametrize(
        "sending_elasticapm_client",
        [{"transport_class": "elasticapm.transport.http.Transport", "async_mode": False}],
        indirect=True,
    )
    @pytest.mark.parametrize("validating_httpserver", [{"app": ContentServer}], indirect=True)
    @mock.patch("elasticapm.transport.base.TransportState.should_try")
    def test_send_remote_failover_sync(should_try, sending_elasticapm_client, caplog):
        sending_elasticapm_client.httpserver.code = 400
        sending_elasticapm_client.httpserver.content = "go away"
        should_try.return_value = True

        # test error
        with caplog.at_level("ERROR", "elasticapm.transport"):
            sending_elasticapm_client.capture_message("foo", handled=False)
        sending_elasticapm_client._transport.flush()
        assert sending_elasticapm_client._transport.state.did_fail()
>       assert_any_record_contains(caplog.records, "go away")

tests\client\client_tests.py:253:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

records = [<LogRecord: urllib3.connectionpool, 30, C:\Python37\lib\site-packages\urllib3\connectionpool.py, 781, "Retrying (%r) ...-mbp_PR-994\src\github.com\elastic\apm-agent-python\elasticapm\transport\base.py, 286, "Failed to submit message: %r">]
message = 'go away'

    def assert_any_record_contains(records, message):
>       assert any(message in record.message for record in records)
E       AssertionError

tests\utils\__init__.py:33: AssertionError

Initializing / Test / Python-pypy-2-3 / test_psycopg2_execute_values – tests.instrumentation.psycopg2_tests

Expand to view the error details
 ImportError: cannot import name 'execute_values'

Expand to view the stacktrace
 instrument = None
postgres_connection = <PGConnectionProxy at 0x9795248 for Connection at 0x9781f68>
elasticapm_client = <tests.fixtures.TempStoreClient object at 0x0000000009781da8>

    @pytest.mark.integrationtest
    @pytest.mark.skipif(not has_postgres_configured, reason="PostgresSQL not configured")
    def test_psycopg2_execute_values(instrument, postgres_connection, elasticapm_client):
>       from psycopg2.extras import execute_values
E       ImportError: cannot import name 'execute_values'

tests/instrumentation/psycopg2_tests.py:492: ImportError

Initializing / Test / Python-pypy-3-3 / test_psycopg2_execute_values – tests.instrumentation.psycopg2_tests

Expand to view the error details
 ImportError: cannot import name 'execute_values'

Expand to view the stacktrace
 instrument = None
postgres_connection = <PGConnectionProxy at 0x6c05980 for Connection at 0x6c04448>
elasticapm_client = <tests.fixtures.TempStoreClient object at 0x0000000006c052b8>

    @pytest.mark.integrationtest
    @pytest.mark.skipif(not has_postgres_configured, reason="PostgresSQL not configured")
    def test_psycopg2_execute_values(instrument, postgres_connection, elasticapm_client):
>       from psycopg2.extras import execute_values
E       ImportError: cannot import name 'execute_values'

tests/instrumentation/psycopg2_tests.py:492: ImportError

Steps errors
Expand to view the steps failures

Show only the first 10 steps failures

Shell Script

Took 1 min 16 sec . View more details on here
Description: ./tests/scripts/docker/run_tests.sh pypy-3 psycopg2-newest

Shell Script

Took 1 min 4 sec . View more details on here
Description: ./tests/scripts/docker/run_tests.sh pypy-3 psycopg2-newest

Install tools

Took 1 min 3 sec . View more details on here
Description: .\scripts\install-tools.bat

Run tests

Took 1 min 14 sec . View more details on here
Description: .\scripts\run-tests.bat

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: No such saved stash ‘coverage-pypy-2-elasticsearch-7’

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-2-mysqlclient-newest

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: No such saved stash ‘coverage-pypy-3-elasticsearch-7’

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-3-pymysql-newest

Archive the artifacts

Took 0 min 0 sec . View more details on here
Description: [2021-01-04T13:35:40.915Z] Archiving artifacts
hudson.AbortException: script returned exit code 1

Error signal

Took 0 min 0 sec . View more details on here
Description: Python-pypy-2-psycopg2-newest tests failed : hudson.AbortException: script returned exit code 2

Log output
Expand to view the last 100 lines of log output

[2021-01-04T13:34:53.294Z] ERROR: No such saved stash ‘coverage-pypy-2-elasticsearch-7’
[2021-01-04T13:34:53.896Z] ERROR: No such saved stash ‘coverage-pypy-2-mysqlclient-newest’
[2021-01-04T13:34:57.408Z] ERROR: No such saved stash ‘coverage-pypy-3-elasticsearch-7’
[2021-01-04T13:34:58.011Z] ERROR: No such saved stash ‘coverage-pypy-3-pymysql-newest’
[2021-01-04T13:34:59.831Z] + python3 -m coverage combine
[2021-01-04T13:35:38.585Z] + python3 -m coverage xml
[2021-01-04T13:35:39.992Z] [Cobertura] Skipping Cobertura coverage report as build was not SUCCESS or better ...
[2021-01-04T13:35:39.992Z]
[2021-01-04T13:35:40.413Z] + curl -sLO https://code.jquery.com/jquery-3.3.1.slim.min.js
[2021-01-04T13:35:40.713Z] + curl -sLO<EMAIL_ADDRESS>[2021-01-04T13:35:40.915Z] Archiving artifacts
[2021-01-04T13:35:41.072Z] Stage "Building packages" skipped due to earlier failure(s)
[2021-01-04T13:35:41.152Z] Stage "Integration Tests" skipped due to earlier failure(s)
[2021-01-04T13:35:41.234Z] Stage "Benchmarks" skipped due to earlier failure(s)
[2021-01-04T13:35:41.419Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-01-04T13:35:41.454Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-01-04T13:35:41.534Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-01-04T13:35:41.614Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-01-04T13:35:41.938Z] Running on Jenkins in /var/lib/jenkins/workspace/thon_apm-agent-python-mbp_PR-994
[2021-01-04T13:35:42.084Z] [INFO] getVaultSecret: Getting secrets
[2021-01-04T13:35:42.345Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-01-04T13:35:43.264Z] + chmod 755 generate-build-data.sh
[2021-01-04T13:35:43.264Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-994/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-994/runs/1 FAILURE 1292607
[2021-01-04T13:35:43.515Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-994/runs/1/steps/?limit=10000 -o steps-info.json
[2021-01-04T13:35:49.996Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-994/runs/1/tests/?status=FAILED -o tests-errors.json

:bug: Flaky test report
:snowflake: The following tests failed but also have a history of flakiness and may not be related to this change:

Name: Initializing / Test / windows-3.7-none / test_send_remote_failover_sync[validating_httpserver0-sending_elasticapm_client0] – tests.client.client_tests has not been reported yet.

Expand to view the summary

Test stats :test_tube:

Test
Results

Failed
3

Passed
11512

Skipped
8228

Total
19743

Genuine test errors
:broken_heart: There are test failures but not known flaky tests, most likely a genuine test failure.

Name: Initializing / Test / Python-pypy-2-3 / test_psycopg2_execute_values – tests.instrumentation.psycopg2_tests
Name: Initializing / Test / Python-pypy-3-3 / test_psycopg2_execute_values – tests.instrumentation.psycopg2_tests

:broken_heart: Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Pull request #994 opened

Start Time: 2021-01-04T13:14:10.388+0000

Duration: 22 min 33 sec

Test stats :test_tube:

Test
Results

Failed
3

Passed
11512

Skipped
8228

Total
19743

Test errors
Expand to view the tests failures
Initializing / Test / windows-3.7-none / test_send_remote_failover_sync[validating_httpserver0-sending_elasticapm_client0] – tests.client.client_tests

Expand to view the error details
 AssertionError

Expand to view the stacktrace
 should_try = <MagicMock name='should_try' id='2926330661064'>
sending_elasticapm_client = <elasticapm.base.Client object at 0x000002A9573E6F48>
caplog = <_pytest.logging.LogCaptureFixture object at 0x000002A9573E6088>

    @pytest.mark.flaky(reruns=3)  # test is flaky on Windows
    @pytest.mark.parametrize(
        "sending_elasticapm_client",
        [{"transport_class": "elasticapm.transport.http.Transport", "async_mode": False}],
        indirect=True,
    )
    @pytest.mark.parametrize("validating_httpserver", [{"app": ContentServer}], indirect=True)
    @mock.patch("elasticapm.transport.base.TransportState.should_try")
    def test_send_remote_failover_sync(should_try, sending_elasticapm_client, caplog):
        sending_elasticapm_client.httpserver.code = 400
        sending_elasticapm_client.httpserver.content = "go away"
        should_try.return_value = True

        # test error
        with caplog.at_level("ERROR", "elasticapm.transport"):
            sending_elasticapm_client.capture_message("foo", handled=False)
        sending_elasticapm_client._transport.flush()
        assert sending_elasticapm_client._transport.state.did_fail()
>       assert_any_record_contains(caplog.records, "go away")

tests\client\client_tests.py:253:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

records = [<LogRecord: urllib3.connectionpool, 30, C:\Python37\lib\site-packages\urllib3\connectionpool.py, 781, "Retrying (%r) ...-mbp_PR-994\src\github.com\elastic\apm-agent-python\elasticapm\transport\base.py, 286, "Failed to submit message: %r">]
message = 'go away'

    def assert_any_record_contains(records, message):
>       assert any(message in record.message for record in records)
E       AssertionError

tests\utils\__init__.py:33: AssertionError

Initializing / Test / Python-pypy-2-3 / test_psycopg2_execute_values – tests.instrumentation.psycopg2_tests

Expand to view the error details
 ImportError: cannot import name 'execute_values'

Expand to view the stacktrace
 instrument = None
postgres_connection = <PGConnectionProxy at 0x9795248 for Connection at 0x9781f68>
elasticapm_client = <tests.fixtures.TempStoreClient object at 0x0000000009781da8>

    @pytest.mark.integrationtest
    @pytest.mark.skipif(not has_postgres_configured, reason="PostgresSQL not configured")
    def test_psycopg2_execute_values(instrument, postgres_connection, elasticapm_client):
>       from psycopg2.extras import execute_values
E       ImportError: cannot import name 'execute_values'

tests/instrumentation/psycopg2_tests.py:492: ImportError

Initializing / Test / Python-pypy-3-3 / test_psycopg2_execute_values – tests.instrumentation.psycopg2_tests

Expand to view the error details
 ImportError: cannot import name 'execute_values'

Expand to view the stacktrace
 instrument = None
postgres_connection = <PGConnectionProxy at 0x6c05980 for Connection at 0x6c04448>
elasticapm_client = <tests.fixtures.TempStoreClient object at 0x0000000006c052b8>

    @pytest.mark.integrationtest
    @pytest.mark.skipif(not has_postgres_configured, reason="PostgresSQL not configured")
    def test_psycopg2_execute_values(instrument, postgres_connection, elasticapm_client):
>       from psycopg2.extras import execute_values
E       ImportError: cannot import name 'execute_values'

tests/instrumentation/psycopg2_tests.py:492: ImportError

Steps errors
Expand to view the steps failures

Show only the first 10 steps failures

Shell Script

Took 1 min 16 sec . View more details on here
Description: ./tests/scripts/docker/run_tests.sh pypy-3 psycopg2-newest

Shell Script

Took 1 min 4 sec . View more details on here
Description: ./tests/scripts/docker/run_tests.sh pypy-3 psycopg2-newest

Install tools

Took 1 min 3 sec . View more details on here
Description: .\scripts\install-tools.bat

Run tests

Took 1 min 14 sec . View more details on here
Description: .\scripts\run-tests.bat

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: No such saved stash ‘coverage-pypy-2-elasticsearch-7’

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-2-mysqlclient-newest

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: No such saved stash ‘coverage-pypy-3-elasticsearch-7’

Restore files previously stashed

Took 0 min 0 sec . View more details on here
Description: coverage-pypy-3-pymysql-newest

Archive the artifacts

Took 0 min 0 sec . View more details on here
Description: [2021-01-04T13:35:40.915Z] Archiving artifacts
hudson.AbortException: script returned exit code 1

Error signal

Took 0 min 0 sec . View more details on here
Description: Python-pypy-2-psycopg2-newest tests failed : hudson.AbortException: script returned exit code 2

Log output
Expand to view the last 100 lines of log output

[2021-01-04T13:34:53.294Z] ERROR: No such saved stash ‘coverage-pypy-2-elasticsearch-7’
[2021-01-04T13:34:53.896Z] ERROR: No such saved stash ‘coverage-pypy-2-mysqlclient-newest’
[2021-01-04T13:34:57.408Z] ERROR: No such saved stash ‘coverage-pypy-3-elasticsearch-7’
[2021-01-04T13:34:58.011Z] ERROR: No such saved stash ‘coverage-pypy-3-pymysql-newest’
[2021-01-04T13:34:59.831Z] + python3 -m coverage combine
[2021-01-04T13:35:38.585Z] + python3 -m coverage xml
[2021-01-04T13:35:39.992Z] [Cobertura] Skipping Cobertura coverage report as build was not SUCCESS or better ...
[2021-01-04T13:35:39.992Z]
[2021-01-04T13:35:40.413Z] + curl -sLO https://code.jquery.com/jquery-3.3.1.slim.min.js
[2021-01-04T13:35:40.713Z] + curl -sLO<EMAIL_ADDRESS>[2021-01-04T13:35:40.915Z] Archiving artifacts
[2021-01-04T13:35:41.072Z] Stage "Building packages" skipped due to earlier failure(s)
[2021-01-04T13:35:41.152Z] Stage "Integration Tests" skipped due to earlier failure(s)
[2021-01-04T13:35:41.234Z] Stage "Benchmarks" skipped due to earlier failure(s)
[2021-01-04T13:35:41.419Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-01-04T13:35:41.454Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-01-04T13:35:41.534Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-01-04T13:35:41.614Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-01-04T13:35:41.938Z] Running on Jenkins in /var/lib/jenkins/workspace/thon_apm-agent-python-mbp_PR-994
[2021-01-04T13:35:42.084Z] [INFO] getVaultSecret: Getting secrets
[2021-01-04T13:35:42.345Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-01-04T13:35:43.264Z] + chmod 755 generate-build-data.sh
[2021-01-04T13:35:43.264Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-994/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-994/runs/1 FAILURE 1292607
[2021-01-04T13:35:43.515Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-994/runs/1/steps/?limit=10000 -o steps-info.json
[2021-01-04T13:35:49.996Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-994/runs/1/tests/?status=FAILED -o tests-errors.json

:bug: Flaky test report
:snowflake: The following tests failed but also have a history of flakiness and may not be related to this change:

Name: Initializing / Test / windows-3.7-none / test_send_remote_failover_sync[validating_httpserver0-sending_elasticapm_client0] – tests.client.client_tests has not been reported yet.

Expand to view the summary

Test stats :test_tube:

Test
Results

Failed
3

Passed
11512

Skipped
8228

Total
19743

Genuine test errors
:broken_heart: There are test failures but not known flaky tests, most likely a genuine test failure.

Name: Initializing / Test / Python-pypy-2-3 / test_psycopg2_execute_values – tests.instrumentation.psycopg2_tests
Name: Initializing / Test / Python-pypy-3-3 / test_psycopg2_execute_values – tests.instrumentation.psycopg2_tests


Nested Metadata

Is your feature request related to a problem? Please describe.
It seems that the plugin doesn't handle nested metadata at all. I tried making changes but it severely mangled my current metadata and reformatted it in a breaking way.
Metadata beforehand:

Example Column: (I put in a test value after this)

Metadata afterward:

Describe the solution you'd like
Would it be possible to handle nested metadata without major reformatting and would it be possible to edit nested meta data fields through accessors like this.very.nested.field or in my case content.my.rating
Describe alternatives you've considered
N/A

sure!, will be considered

Here is what I want to use this for: https://jeffszuc.com/tutorial/how-to-add-habit-tracking-to-obsidian-with-java-script-and-dataview.
Nesting the variables makes it much easier to filter them

This issue will be a nice improvement for the edit engine, but requires a big effort. We need to construct an unmarshall function from yaml to string
I will work on it as soon as the mobile version was fixed

Mybad to do not use this native function of Obsidian!
import { stringifyYaml } from "obsidian";

Nested metadata will be supported with the next version

I've tried the version that implemented this issue and I can't understand what was really done.
The 2.6.7 release section says "Frontmatter editions now respect nested metadata". This means that nested metadata won't be messed up by the plugin or nested metadata will be supported by the plugin?
Because I thought the @kvietcong possible solution was accepted and implemented, where:
level1:
  level2:

would be considered as level1.level2 as the name field by the plugin.
When I create a field separating field levels by dot, the DB turns empty (error).
When I try to create a field that already exists in DB , only the level1 can be added
and the data is shown as json in DB: .
If this data is edited by plugin, the nested metadata in YAML will be messed up:
.
Is there another issue related to what I've described above?

We have a missunderstanding here then. What we achieve now is to respect the nested properties when you edit a different one, since before it returned them as shown in your capture.
The possibility of being able to edit nested values is not yet contemplated. I can open an incident based on your comment to leave it contemplated in the future

I will support your request here https://github.com/RafaelGB/obsidian-db-folder/issues/442


Corrects some typos in the uplink catalog, adjusts grammar

About the PR

I was poking through the uplink in the dev server and noticed some weird grammar/wording.
Why / Balance

Technical details

Just touches up some of the uplink description entries.
Also includes a bunch of emptycommits from when I broke my repo and was trying to unbork it. If that's an issue, I can try and remove them or something.
Media

Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

Thanks for the cleanup!


v 2.1.0 Multi Tenant capability in static files no longer works

Sorry for the mis-understanding. My mistake


Distinguish between field and lab sessions for K6 users

Description
For customers who are using K6 testing we need to be able to distinguish between K6 (Lab) and Faro (Field) data.
It is important to ensure that lab and field data will never be mingled together which will lead to distorted or wrong data
Proposed solution
Enrich signal meta data with the respective k6 information
Context
K6 PR
### Tasks
- [x] Implement PoC
- [ ] Implement final vesion

PR: https://github.com/grafana/faro-web-sdk/pull/263


Help for implementation in a different setup.

Hi,
I have a specific setup where I'm using Activator.CreateInstance.
Because I have a memory leak I want to try your approach.
But I'm not an expert so I want to ask you help to understand how to do it.
Here my current code
I have an array of  class name like this one:
 public static readonly string[] authTables = new string[]
        {
            typeof(User).FullName,
            typeof(UserInfo).FullName
        };

and I give it to my method (in tables):
   public static void CreateTablesInDB(SqliteConnection con, string[] tables)
        {
            foreach (var table in tables)
            {
                Type tableType = Type.GetType(table + ", MyAssemblyName");//* assembly name
                var instanceTable = Activator.CreateInstance(tableType);
                // here do some stuff with my instanceTable....
                string strCreateTable = ClassToDDL(instanceTable, "create");
            }
        }

User and UserInfo are my classes.
My question is: Can I use your approach? In which way?
Thank you.

Hi, thanks for the comment.
If T is unknown at compile time.
You can use FastNew.GetCreateInstance<object>(type)
Try:
 public static readonly Func<object>[] authTables = new Func<object>[]
        {
            FastNew.GetCreateInstance<object>(Type.GetType(typeof(User).FullName + ", MyAssemblyName")),
			FastNew.GetCreateInstance<object>(Type.GetType(typeof(UserInfo).FullName + ", MyAssemblyName"))
        };

 public static void CreateTablesInDB(SqliteConnection con, Func<object>[] tables)
        {
            foreach (var table in tables)
            {
                var instanceTable = table();
                // here do some stuff with my instanceTable....
                string strCreateTable = ClassToDDL(instanceTable, "create");
            }
        }

Hi,
Thank you for your answer
I made the changes and I have memory leak when I call var instanceTable = table();
Any suggestions?
Thank you;

Hi, Thank you for your answer
I made the changes and I have memory leak when I call var instanceTable = table();
Any suggestions?
Thank you;

Is the object you created implemented IDisposable or IAsyncDisposable?
If so you should call Dispose() or DisposeAsync() after your task is done.
public static void CreateTablesInDB(SqliteConnection con, Func<object>[] tables)
{
    foreach (var table in tables)
    {
        var instanceTable = table();
        // here do some stuff with my instanceTable....
        string strCreateTable = ClassToDDL(instanceTable, "create");

        (instanceTable as IDisposable)?.Dispose();
    }
}

It can also be caused by the constructor code of the object.
You may need to decompile the DLL file that contains your object for more info.
And here are some tips about how to fix memory leaking problems:
https://docs.microsoft.com/en-us/dotnet/core/diagnostics/debug-memory-leak
https://michaelscodingspot.com/find-fix-and-avoid-memory-leaks-in-c-net-8-best-practices/
Hope this can help you out :)

Hi, thank you for your answer :)
It implement IDisposable
I added it and I added GC.Collect(); after it.
Still have the memory leak. But I'm not sure if the tool I have keep the warning even if the memory will became free again.
I have to investigate.
Thank you for the links. I will read them.
I will came back to you when I will have more news.
Thank you again.


More robust flag options in frontend

Right now, each flag on the nunaweb frontend acts independently of each other:

It might be good to have some flags be capable of disabling others (e.g. disabling serialization support should probably also disable the float serialization flag, as AFAIK it has no effect if serialization support code is not generated).

This is sensible. Also, the option flags should be language-specific, because, for instance, the Python backend is not configurable at all: it is always any-endian (big/little is chosen at runtime) and full serialization is always enabled there.


updates to DataLib section

File name change from previous PR change case fro datalib to DataLib, creating conflict.  Rejecting this PR and updating file directly from update to master.


[mvn] Update maven wrapper to 0.4.0 (removes jar from git)

Version 0.4.0 introduces solution to remove the maven wrapper jar from source.

rebased with current master.

@hazendaz Can you clarify what we get with these changes except removing one jar from git?
The changes add quite a bit of code to maintain, I want to make sure the benefits outweigh the costs.

@joel-costigliola Sure, the maven wrapper is 100% untouched from maven-wrapper.  When the builds are run on travis, the maven wrapper is used instead of the default that travis supports.  So there is really no support here other than upgraded every so often when takari puts out an update.  They also have a maven run you can execute that will actually just update the items for you so there is no copy paste involved.  You can find that here

Thanks @hazendaz.


Broken UTF-8 causes crash

This widget seems to assume UTF-8 bytes are always correct, so when it encounters a broken UTF-8 sequence it crashes on this line (if the byte is on the end of the line): https://github.com/santaclose/ImGuiColorTextEdit/blob/76d9ff0d22e89c8e4e93d0cf5e40f8af3def19a8/TextEditor.cpp#L1234C3-L1234C3

are you loading a file? can you provide the file if so?

@santaclose here it is: crash.txt


GIX-1833: Remove unused colors

Motivation
Clean up unused colors before moving on with colors synchronization with Figma.
We won't be using the concept of "tint", "shade"... anymore in the theme colors. Instead, there will be a file with the primitive colors, and then the theme variables will be renamed more semantically and they will point to the primitive values.
See more here: https://www.notion.so/dfinityorg/Introduce-NNS-Color-Theme-Stage1-9edcc25b784c4ede90fa1d429024f297?pvs=4
Changes

Remove file global/colors.css. Non of the colors there was used.
Remove unused colors in gix-components or nns-dapp from "themes/dark.css" and "themes/light.css".

Screenshots
No new UI.

@mstrasinskis please review


JS-T: Submit a post

Submit a post
AC

[x] Example of submit post to blockchain
[x] Explanation of common standards for tags, title, content length, etc.
[x] Proper UI to perform submit new post preferably on Testnet

I did a copy pass: 6d3c91e6c88d2118a199c3b2fc98376fd9cbde35


Platform.js vulnerability issue

Currently npm audit is throwing a vulnerability issue with the package platform using an old version. Can it updated to the latest version 1.3.6?
https://github.com/medialize/ally.js/blob/master/package.json#L159

sure :)


add GPX to default formats

[ ] I added an entry to CHANGELOG.md if knowledge of this change could be valuable to users.

Here is a brief summary of what I did:

 [RESPECT] 4.3 Upload von Vektordaten

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.002%) to 84.391%

Files with Coverage Reduction
New Missed Lines
%

operators/src/source/ogr_source/mod.rs
1
93.06%

Totals

Change from base Build<PHONE_NUMBER>:
-0.002%

Covered Lines:
39559

Relevant Lines:
46876

💛  - Coveralls

bors merge


Batch size

Hi, thank you for providing the pytorch version!
I am currently training my model using pytorch dgcnn model, but due to the size of my dataset and model, I am trying to train my model using stochastic gradient descent (batch size = 1).
However, it doesnt seem to be straight forward to implement it due to use of nn.batchnorm1d and I get errors when I set batch size=1.
Is there any solution or work around so that I can train my model using batch size =1?
Thank you

If you use bachsize=1,  delete the nn.batchnorm1d.


⚠ Bofrost.at has degraded performance

In fc8370b, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2056 ms

Resolved: Bofrost.at performance has improved in 1be4741.


P0356 unit & Patch without green menu

Hello, i have some questions

is it possible to patch without entering green menu, or maybe activate just by script, as it was possible in Audi MMI?
when will be available support for ZR P0356 unit?

No
When anyone with fw 356 updates Toolbox to https://github.com/olli991/mib-std2-pq-zr-toolbox/archive/refs/heads/master.zip and then provides support files as answered in the last question of FAQ here https://github.com/olli991/mib-std2-pq-zr-toolbox#readme


Honor origin's HTTP status code

This PR resolve issue https://github.com/smartnews/yoya-thumber/issues/9
In an environment with CDN middleboxes, if yoya-thumber receive StatusNotFound(404) from origin and send StatusBadGateway(502) to the client, the contents will not be cached on CDN and cause a load problem.

With this fix applied, getting a 302 Found status code from the origin doesn't seem to send the URI to the client.
A common problem with reverse proxies is that if the origin URI is relayed to the client as is, the client may bypass the proxy (yoya-thumber) and communicate directly with the origin.
That shouldn't be yoya-thumber's intent.

Refine the treatment of status.
origin     client

200     => 200 (StatusOK)
4xx,5xx => 4xx,5xx (status unchanged) Fix by this commit
other   => 502 (BadGateway)

bad parameter on URL => 400 (BadRequest)
PR: https://github.com/yoya/yoya-thumber/commit/ec085ed4972c8209d98beddf3663a31e33ef9b2d


outputs

Hello,
I have the problem that all the outputs like (userRowSelect) & (edit) returns undefined. I cannot figure out how to solve this. Does anyone has a solution for me?
Kind regards,
Meindert

Hi @MeindertRomkes!
We will be happy to help you. Please, provide a bit more information about your environment and code.

Sorry for the late response.
My environment:
webpack version: 2.1.0-beta.22 (Angular CLI)
Webpack configuration is handled by angular cli, (more information)[https://github.com/angular/angular-cli]

typescript version 2.0.2

module version: latest of npm.

Environment: Ubuntu docker container.

I have this code in the component:
getOrders() {
    this.isRequesting = true;

    this.service.getOrdersFormatted('confirmed', true).subscribe(confirmedOrders => {
      this.source.load(confirmedOrders);
      this.isRequesting = false;
    });

    this.source.refresh();
}

selectOrder(data) {
    console.log(data);
  }

In the HTML:
<ng2-smart-table [settings]="settings" [source]="source" (userRowSelect)="selectOrder(data)"></ng2-smart-table>

Oke I found the problem in my code. In the HTML I should have send the $event object instead of data. The html should be something like this:
<ng2-smart-table [settings]="settings" [source]="source" (userRowSelect)="selectOrder($event)"></ng2-smart-table>


Examples are not working with NodeMCU v0.9

I tried many of the examples with both an Arduino UNO and a NodeMCU v0.9 (ESP8266) and all of them worked in case of the UNO and none of them in case of the NodeMCU.
I connected the Nextion's RX to NodeMCU's D10 pin and Nextion's TX to NodeMCU's D9 pin. Also, I disabled Serial debugging and set #define nexSerial Serial
I found no relevant information on the Internet to solve this issue.
Any help would be appreciated!

I see that nobody helped. I'm fighting with Nextion display and WeMos D1 R2 (ESP8266) since 3 days. I have 50% of success - I can send command to display and it's working very well. I connected it to D4 (TX for Serial1 in ESP8266 -> to RX in Nextion) and to D9 (RX for both serials in ESP8266 -> to TX in Nextion).
After long time of fighting with all sort of libraries I realised that I tried to use Latest ITEADLIB which won't work with ESP8266. After changing it to latest stable 0.7.0 version I reached small success. Exaple code "CompButton" now is compiling without errors and seems to work in one way. I see button and "1" digit on it. And in debug window I see:
RetCommandFinished err
recvRetCommandFinished err
setup done

It's long story - tried everything (softwareserial, external power supply (yes - I know about common GND), checked resistance of blue wire (Nextion TX)). Tried to send command: bkcmd=3 and page to see if something will came from Nextion. Without success. Also tried another libraries: https://github.com/bborncr/nextion. Finally, I bought USB2RS232 (CH340) converter and tomorrow I'll check display with Nextion Editor. But I suppose that this battle will be lost.

check this should solve your problem


Duplicate ID issue in SAP FIORI Launchpad Service while trying to hide the shell header

SAPUI5 version:1.71.41
Browser/version (+device/version):
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:
1.Try to include the following code in Component.js and deploy the apps to cloud foundry.
if (sap.ushell.Container) { 				var oRenderer = sap.ushell.Container.getRenderer("fiori2"); 				oRenderer.setHeaderVisibility(false); 			}
2.Navigate to the app from shell home and click application's back functionality since we are hiding the header.
var oHistory = History.getInstance();
var sPreviousHash = oHistory.getPreviousHash();
if (sPreviousHash === undefined) {
window.history.go(-1);
}
3.For the first time it works fine and when trying to navigate again it gives the error as attached.
What is the expected result?
Expected to navigate perfectly without errors since the same logic works fine in SAP WEBIDE with UI5 Version 1.52.47
What happens instead?
Any other information? (attach screenshot if possible)

Hi @Abhi0806
The sap.ushell namespaced code is part of SAPUI5 not of OPENUI5. GitHub is a place for managing issues for OPENUI5 only.
Please, open a ticket in SAP ticket system for managing incidents.


cluster: add initial gc implementation

/cc @hongchaodeng

@fatduo Check this out. If you want to implement lazy gc, you would need to call collectCluster before creating a new cluster.

@xiang90  Fine. I have created a new PR #523

@fatduo I saw that one. But we want to get this pr merged and use gc.collectCluster to implement lazy gc.

@xiang90 OK. Pls discard that PR. I saw the gc code. Did we have ownerReferences between tpr etcdcluster and it's pods/svcs?

@hongchaodeng is working on resource tracking

lgtm


Interaction after update 2.8.0+

Can't esc or interact with terminal after the update, it didn't happen until relog/change profile of the save game. Not sure if it was from other mods has yet to update or not compatible to this mod new version. Maow :3

Please attach your logoutput.log file (located in bepinex folder) from a session where this occured.

https://pastebin.com/eAC3jUE6
Here's the log around when it happens, me open terminal when the game start is fine, playing just fine, until relog at some point, can no longer click esc and when click into terminal, can't close it.
Me think it causes by LC API, but me not sure.

It was Terminal Game mod and it's API from what me have removed and it's back to normal so far. Maow :3


SDC fieldmap-less error

What happened?
Good morning,
We have recently updated the version of fMRIPrep we are using.  It looks like the issue is related to the SDC step. Indeed, if we launch fMRIPrep without syn-sdc, the pipeline finishes successfully. However, we don't understand why we got errors for some participants while it ran successfully for some other participants. We precise that there is no difference when we compare the data between a participant who ran successfully and one who finished with errors.
We should precise that when we use another SDC approach (like PEPOLAR), the process finishes successfully. However, we cannot use the PEPOLAR approach for all our participants because we don't have 2 fMRI runs for all participants. In addition, we cannot use a direct field mapping because the magnitude files were not saved when the data were acquired. Therefore, to be consistent, we don't have the choice and need to use the syn-sdc approach.
What command did you use?
/opt/conda/bin/fmriprep /data/rossolab/Spared/Imaging_Data/NIFTI /data/rossolab/Spared/Imaging_Data/derivatives/fmriprep_relaunched participant --fs-license-file /cm/shared/freesurfer-6.0.1/license.txt --participant_label sub-PAC103 --output-spaces MNI152NLin6Asym:res-2 anat fsaverage --n_cpus 4 --mem-mb 16384 --notrack --use-aroma --use-syn-sdc -vv -w /data/rossolab/Spared/Imaging_Data/derivatives/fmriprep_relaunched/workdir

What version of fMRIPrep are you running?
22.0.2
How are you running fMRIPrep?
Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
Stderr:
	Exception Object caught:

	itk::ExceptionObject (0x2fdc8d0)
	Location: "unknown"
	File: /src/ants/build/staging/include/ITK-5.1/itkImageMomentsCalculator.hxx
	Line: 148
	Description: itk::ERROR: ImageMomentsCalculator(0x2fd1910): Compute(): Total Mass of the image was zero. Aborting here to prevent division by zero later on.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/lib/python3.9/site-packages/nibabel/loadsave.py", line 90, in load
	    stat_result = os.stat(filename)
	FileNotFoundError: [Errno 2] No such file or directory: '/data/rossolab/Spared/Imaging_Data/derivatives/fmriprep_relaunched/workdir/fmriprep_22_0_wf/single_subject_PAC103_wf/func_preproc_task_rest_run_1_wf/coeff2epi_wf/coregister/transform_Warped.nii.gz'

	During handling of the above exception, another exception occurred:

	Traceback (most recent call last):
	  File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 398, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/lib/python3.9/site-packages/niworkflows/interfaces/fixes.py", line 110, in _run_interface
	    _copyxform(
	  File "/opt/conda/lib/python3.9/site-packages/niworkflows/utils/images.py", line 79, in _copyxform
	    resampled = nb.load(out_image, mmap=False)
	  File "/opt/conda/lib/python3.9/site-packages/nibabel/loadsave.py", line 92, in load
	    raise FileNotFoundError(f"No such file or no access: '{filename}'")
	FileNotFoundError: No such file or no access: '/data/rossolab/Spared/Imaging_Data/derivatives/fmriprep_relaunched/workdir/fmriprep_22_0_wf/single_subject_PAC103_wf/func_preproc_task_rest_run_1_wf/coeff2epi_wf/coregister/transform_Warped.nii.gz'

221005-20:12:38,880 cli ERROR:
	 Preprocessing did not finish successfully. Errors occurred while processing data from participants: PAC103 (1). Check the HTML reports for details.
221005-20:12:38,880 cli ERROR:
	 Preprocessing did not finish successfully. Errors occurred while processing data from participants: PAC103 (1). Check the HTML reports for details.

Additional information / screenshots
You can find the HTML report here: https://www.dropbox.com/s/ij8ljvnpzbf9lro/sub-PAC103.html?dl=0

How many BOLD runs are you using, and could you provide the affines (fslhd <image> | grep sform)? This may be an issue where the estimated fieldmaps are too far out of alignment with the BOLD series.

Thank you for your reply!
We are using one BOLD run. The result of fslhd  | grep sform is:
sform_name     Scanner Anat
sform_code     1
sform_xorient  Right-to-Left
sform_yorient  Posterior-to-Anterior
sform_zorient  Inferior-to-Superior

I'm seeing this same issue on a dataset I'm working with. Thanks for your patience while I track this down.

Good morning,
Thanks for taking some time to troubleshoot this error. I don't know if they will be helpful, but here are some new info:

Out of 25 subjects, 18 had either a co-registration error or an SDC that looks awful
I relaunched fMRIPrep for these 18 subjects without changing anything in the command
Out of these 18 subjects, 5 finished without any error and the SDC looks good
For the 13 remaining subjects, some have still the same error as previously, but some have another error (i.e., some subjects with a co-registration error have now an awful SDC, and some with an awful SDC have now a co-registration error)

Therefore, it seems that relaunching the fMRIPrep command may help for some subjects. However, most subjects still have an error...
If I can be of any help to troubleshoot these errors, feel free to ask.
Best,
Quentin

Good morning,
I would like to know your opinion on the use of two different SDC approaches in the same population. Indeed, for 88% of our subjects, we have two fMRI runs with opposite PE directions. Therefore, we could use the PePOLAR approach for these subjects. However, for the remaining 22%, our only option is the syn-sdc approach (and so, we need to wait for the error above to be resolved). Do you think it would be better to use the same approach (syn-sdc) on all our subjects for the sake of consistency or could we use two different approaches in the same study?
Best,
Quentin

Hi @QDevignes, apologies for the slow response. My inclination would be to try to keep processing as consistent as possible, but it may be worth taking a couple subjects and comparing the results of SyN and PEPOLAR and see if you get significantly better results. There's an argument to be made for "consistently using the best available processing", as well.

Hi @effigies, thanks for your reply. We decided to use the same SDC approach (syn-sdc) for all our participants. Therefore, we are using fMRIPrep version 20.2.7 to avoid the syn-sdc error reported above.


Your Message form should be Improved

=> as i attached the image, in that for your message form the submit button is not good, it should be changed for the better appearance

I woud like to work on this please assign it to me.

you can work on it


Publish symbols

Assembly symbols should be published to NuGet (either by being published separately, or by being included in the package). Ideally, we should have SourceLink set up to make the symbols automatically get referenced from GitHub (supposedly it's as easy as doing the steps listed here: https://github.com/dotnet/sourcelink#using-source-link-in-net-projects).

Fixed in PR #9

Fixed in PR #9


Allow spaces in the cc compiler bin

I'm trying to use zig cc as a compiler option for jpm. I changed several things in cc.janet but here the stacktrace is not very helpful and so far I'm stuck.
I mostly replaced all (shell cc ... with (shell ;(string/split " " cc) ... in cc.janet, this is the stacktrace after that:
> jpm -l build --cc="/home/grfork/reps/zig/build/zig cc" --verbose
generating executable c source build/server.c from src/server.janet...
compiling build/server.c to build/build___server.o...
/home/grfork/reps/zig/build/zig cc -c build/server.c -std=c99 -Wall -Wextra -I/usr/local/include/janet -I/home/grfork/reps/janet-nrepl/jpm_tree/lib -O2 -o build/build___server.o
linking build/server...
/home/grfork/reps/zig/build/zig cc -std=c99 -Wall -Wextra -I/usr/local/include/janet -I/home/grfork/reps/janet-nrepl/jpm_tree/lib -O2 -o build/server build/build___server.o /usr/local/lib/libjanet.a -lm -ldl -lrt -pthread
error: @["/home/grfork/reps/zig/build/zig cc"
  "-std=c99"
  "-Wall"
  "-Wextra"
  "-I/usr/local/include/janet"
  "-I/home/grfork/reps/janet-nrepl/jpm_tree/lib"
  "-O2"
  "-o"
  "build/server"
  "build/build___server.o"
  "/usr/local/lib/libjanet.a"
  "-lm"
  "-ldl"
  "-lrt"
  "-pthread"]: No such file or directory
  in os/execute [src/core/os.c] on line 1049
  in shell [/usr/local/lib/janet/jpm/shutil.janet] (tailcall) on line 109, column 5
  in <anonymous> [/usr/local/lib/janet/jpm/rules.janet] on line 18, column 20
  in executor [/usr/local/lib/janet/jpm/rules.janet] on line 25, column 8
  in worker [/usr/local/lib/janet/jpm/dagbuild.janet] on line 65, column 23
  in <anonymous> [/usr/local/lib/janet/jpm/dagbuild.janet] on line 21, column 43
  in pmap [/usr/local/lib/janet/jpm/dagbuild.janet] on line 26, column 7
  in pdag [/usr/local/lib/janet/jpm/dagbuild.janet] (tailcall) on line 71, column 3
  in _thunk [/usr/local/bin/jpm] (tailcall) on line -1, column -1
  in cli-main [boot.janet] on line 3644, column 17

If you read the stacktrace, you clearly didn't replace every instance, since it is callling /home/grfork/reps/zig/build/zig cc. Otherwise, this should work fine.

@bakpakin thanks for replying! Sure, I just don't know where else to replace so far. If I were to submit a patch, is this approach generally correct or there's a single place where we could do the splitting? This will probably be required for all the parts such as compiler, linker, archiver.


Have CI to auto-promote charms to stable for changes in track branches

Context
There are a lot of cases where we fixed something in a track branch, but the fix/feature was silently left in edge risk for long periods of time. Since the track branch exists in order for us to be able to push changes to supported releases, we can unload that chore from ourselves and instead have the CI promote automatically charms from edge risk to stable for changes in a track branch.
What needs to get done
Implement CI that will do that promotes automatically charms from edge risk to stable for changes in a track branch.
Definition of Done
There is the CI decsribed above in all of our charms.

Step 4 could use sth like promote train


update Env_files

Codecov Report

Merging #383 into master will increase coverage by 1.73%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #383      +/-   ##
==========================================
+ Coverage   42.32%   44.06%   +1.73%
==========================================
  Files          21       21
  Lines       10764    10764
==========================================
+ Hits         4556     4743     +187
+ Misses       5047     4807     -240
- Partials     1161     1214      +53

Continue to review full report at Codecov.

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

LGTM

LGTM
@upccup Need change all docs related mixed mode, and need compose email to all Dataman-Clouder inform this change.


Inconsistent results of  call "string_to_name" in "name.hpp" and "types.hpp"?

Inconsistent results of  call "string_to_name" in "name.hpp" and "types.hpp"?
Eosjs encodeName and their results are also inconsistent。

@xiangxn , do you have any examples?

Because of the LE problem in JS, I have already processed.