Hi, I have two questions: (1) why are 'val_data_path' and 'test_data_path' in config_training.py the same? Generally, they should be different. (2)  due to limited GPU memory, I used a for loop to replace '_=pool.map(partial_savenpy_luna,range(N)' with 'savenpy_luna(id=0, annos=annos, filelist=[single_file],....)' in prepare.py. However, I could get two '_clean.npy' results with the same filename but different image shape (e.g., [1,342,275,315] and [1,342,278,315])'. Are there some advices about the phenomenon？

two 'clean.npy' results  were generated by '**=pool.map(partial_savenpy_luna,range(N)**' and 'savenpy_luna(id=0, annos=annos, filelist=[single_file],....)'

I suggest, first run the standard cross validation. After you succeed, try to do more tasks. We have already validated the generalization ability on hold out test dataset in "Zhu, Wentao, Yeeleng S. Vang, Yufang Huang, and Xiaohui Xie. "DeepEM: Deep 3D ConvNets With EM For Weakly Supervised Pulmonary Nodule Detection." MICCAI (2018). https://github.com/wentaozhu/DeepEM-for-Weakly-Supervised-Detection"


Fixed creeper not exploding when 1-block higher than player

Fixes #708

Squashed. But do not merge yet, I want to test it a bit more.

Testing done, merge if compiles.


Bumped sass-loader to v6.0.2

Since sass-loader was sitting on an old version (4.0.0) I thought it prudent to update it since I ran into a bunch of issues with the older version.

You could switch to the master branch, pull down latest and rebase this branch using master.
We have updated to v6.0.0, and it appears your version is still using v5.0.0
Thanks for the update 👍

Coverage remained the same at 95.283% when pulling 4a3437c9031416755a0f9188fd7079fc3411be00 on ryannealmes:bump-sass-loader into 98aed8b888dce23a85841e3b3aa54fbfb8901ffb on coryhouse:master.

I will create a new branch and sort this out tomorrow.


Add the release note for 1.23.0

All comments are addressed. I also added descriptions about the newly-added PRs. PTAL. 😄

@ikhoon All addressed. 😉

Thanks a lot for reviewing. 🙇


chore: clean up cli installer code

#194
#193  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @NathanFlurry and the rest of your teammates on  Graphite


Bluetooth: add callbacks to indicate if pairing was complete or failed

Added callback functions for Bluetooth stack to notify its client that pairing has been completed or failed.
fixes: #8390

Codecov Report

Merging #9106 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #9106   +/-   ##
=======================================
  Coverage   52.45%   52.45%
=======================================
  Files         200      200
  Lines       25121    25121
  Branches     5244     5244
=======================================
  Hits        13176    13176
  Misses       9823     9823
  Partials     2122     2122

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 8ba0ddf...4a0aeed. Read the comment docs.

Hi @jhedberg , thanks for the comments! I just want to make this work to roll so that we can get the feature done as soon as possible. ( I need it. :) ). Please feel free to make more comments and directly modify it if necessary.

Reworked the patch by following your suggestions, and added two callbacks for notifying success and failure cases.
However, for the failure reason, I need more advice about what kind of reasons should be used for the failure case.

This looks pretty good to me now. It'd be nice to hear some opinion from other maintainers though. @Vudentz @sjanc does this look reasonable, or do you see something obvious missing or something?

@Vudentz @sjanc does this look reasonable, or do you see something obvious missing or something?

I'll take the lack of comments from @sjanc and @Vudentz to mean that they're fine with this ;)


Question about the use of eGPUs in beta

Hi,
I'm using the beta to create object detectors using my late 2015 iMac (graphics: AMD Radeon R9 M380 2048 MB). The performance has improved significantly over the use of my computer's CPU but it's still not good enough.
I'm thinking of getting an external GPU to help speed things up. I've heard that eGPUs have better support in macOS Mojave. If I am to get a supported eGPU (say a Vega 64) and connect it to my mac, would the beta of turi create automatically recognize it as my computer's GPU and start using it to train the neural network, or will I need to take additional measures to get the beta to incorporate the GPU into the training process?
If I need to take extra measures, what might those be?
also, can I get Turi create beta to use both my computer's GPU and the external GPU at the same time?
thanks

Hi, the current Turi Create beta does support external GPUs, so everything should just work, and you should see a significant speedup over using the GPU in your iMac. (If not, that would be a high priority bug for us!)
In practice, when using a GPU to accelerate training, the CPU is still busy performing work such as preparing the inputs into the GPU. We're always looking for ways to improve performance, but you should see CPU utilization while training on GPU.
I hope this answers your questions, if not, please feel free to re-open!


aws-lambda webhookCallback adapter doesn't work

I've started experimenting with grammyjs and encountered a few issues while trying to use the aws-lambda adapter for the webhookCallback:

webhookCallback returns an async function, which causes the lambda to be called without the callback, resulting in "callback is not a function" errors.
Webook replies don't work without explicitly setting Content-Type: application/json.
Webhook replies work only for the first method call, which is confusing.

I was able to work around issues 1 and 2 by setting the header directly and wrapping the handler with a promise:
export const handler = async (event, ctx) => {
  let result = {};

  try {
    result = await new Promise((resolve) => {
      webhookCallback(bot, 'aws-lambda')(event, ctx, (error, response) => {
        if (error) {
          console.error(error);
        }
        resolve(response);
      });
    });
  } catch (error) {
    console.error(error);
  }

  /* Needed when replying directly to the webhook request */
  if (result?.body) {
    result.headers = {
      ...result.headers,
      ...{ 'Content-Type': 'application/json' },
    };
  }

  return result;
});

If my understanding is correct, the framework could be improved by:

Supporting async/await.
Setting the header when using webhook replies.
I guess changing how the webhookCallback work would spill in a lot of other places and could be too much to ask, but it would be great to have more flexibility by having something as const reply = ctx.reply(/* ... */, { returnJsonPayload: true }) (disregarding canUseWebhookReply) so that we can explicitly set a response after we have done everything else. Is something like this possible in the current version? Without it, I am considering "leaking" the function given to canUseWebhookReply so that we can control when it should return true later on each request, but it seems messy. I hope there is a better way.

1 and 2 look like good "first issues", so I would like to contribute with a PR if that's ok.

Absolutely! I'm looking forward to your contributions :)
I believe @amberlionk to be the one who contributed the AWS adapter in #62. In case you have any questions about the implementation, I'm sure we are both open to answer them!

Sorry for the late reply btw, I was a little busy recently

@all-contributors add @chrisandrewcl for bug

@KnorpelSenf I've submitted a PR for review, addressing points 1 and 2.
Regarding point 3, is there any way to call an API method on "dry-run" to get only the JSON payload?
If not, and if it is something that makes sense for the framework, I can submit a separate feature request (to be considered for a future version) and this issue can be hopefully closed with PR#418.

Regarding point 3, is there any way to call an API method on "dry-run" to get only the JSON payload?

I'm not 100 % sure I understand what you mean, but I believe https://grammy.dev/advanced/transformers.html to be the solution.


Zoom Fastboard

When 2 users join a room and one of them zooms it, the same view (zoomed view) is visible to the other user.
Can I disable this?

This involves the issue of user perspectives. It's hard to keep this behavior always right. As for fastboard, we always keep all users in the room saw the same view. You can try WhiteViewMode in the Whiteboard library if you want to do so.
Here is a document can help you know what is all about perspective. https://developer.netless.link/ios-zh/home/ios-view


Check CVE's related to chef

Cannot see the 9 CVE's which we have listed on the release notes for Chef Infra Server 14.9.23. Can you please have them included in the release notes.
https://docs.chef.io/release_notes_server/?v=14.9.23
Expected behavior
All the listed CVE's should have added in the release notes of the latest Chef Infra version 14.9.23.

https://github.com/chef/customer-bugs/issues/478

This escalation was closed out and handled off to support


regeneratorRuntime is not defined

See #421 - getting a similar error for any existing or new async function after I'd run eject.  Is this a known issue?  Version: 1.0.14 of react-scripts.

This shouldn't be happening.
Can you please provide a non-ejected project for me to repro this on (I'll eject and have it break)?

You bet.  Will put something together.  Was surprising.  (For the record, enabling babel-polyfill fixed the issue.)

Hi @adamdonahue! I know you managed to work around this but I'd really appreciate that repro! 😄

Hi @Timer - I'm having a hard time reproducing.  It may have been a quirk of the repository settings in place, but it's a private repository so I can't send a before-after snippet of the code.  I'm a bit swamped this week but I'll try to put something more thorough together this weekend.  What I might do is bisect until eject breaks, which should be a good start.  Give me a few days.

Closing as inactive.

still

Looks like you've ejected, @diegoarcega -- can you please provide a non-ejected reproducing case?

same error. just eject and use aa. what is happed?

Hey @geminiyellow @diegoarcega if you are having problems with this, please open a new Issue and provide a valid repo case, thanks!


Feature request: holoviews.express

Wouldn't it be nice if there were a holoviews.express-interface, inspired by e.g. plotly.express?

I agree with both points.


Updating _get_noise_shape() to work in graph mode

Using the noise_shape argument in the tf.keras.layers.Dropout initializer currently doesn't work with tf.function if you have variable batch sizes because TF can't get the correct dropout mask size to use each batch. This was due to using x.shape.dims to fill in batch-specific sizes, but that doesn't work when autographed because the values stay as None. Changing this to tf.shape(x) fixes that.

@velocirabbit please sign CLA.

@velocirabbit please sign CLA.

Just signed it!

Closing this PR as this not against master, please open a new PR against master
CC @mihaimaruseac


[CORE] Change constructors of Motors & Sensors using the Interface Port.

At the moment, every example show this idea:
public class LargeMotorDemo {

    public static void main(String[] args) throws InterruptedException {

        System.out.println("Starting motors on A");
        final EV3LargeRegulatedMotor mA = new EV3LargeRegulatedMotor(MotorPort.A);
        mA.setSpeed(500);
        mA.brake();
        mA.forward();
        System.out.println(String.format("Large Motor is moving: %s at speed %d", mA.isMoving(), mA.getSpeed()));
        Delay.msDelay(2000);
        mA.stop();
        System.out.println("Stopped motors");
    }

}

The usage of classes like MotorPort or SensorPort but reviewing the classes in the process to add Unit Tests, I detected that the data type used to set the port is a String. Reviewing the source code from LeJOS, I detected that exist a Interface for that purpose, Port.
    /**
     * Use this constructor to assign a variable of type motor connected to a particular port.
     * @param port  to which this motor is connected
     */
    public EV3LargeRegulatedMotor(Port port)
    {
        super(port, null, EV3SensorConstants.TYPE_NEWTACHO, MOVE_P, MOVE_I, MOVE_D,
                HOLD_P, HOLD_I, HOLD_D, OFFSET, MAX_SPEED);
    }

It is necessary to change.

Fixed broken tests.
Added feature in Develop.
Fixed issue


Application crash due to the enhanced debug mode

Hi :)
With pull request #53 you've introduced an enhanced debug mode which is enabled in our pipelines by default to see a more verbose log.
Since the update a few hours ago, we've issues with the changes you made for the enhanced debug mode:
{"action":"generate report","data":{"provide":"gitlab"}}
{"action":"sonar get task status","data":"/api/ce/activity"}
{"action":"[axios] request","data":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"headers":{"common":{"Accept":"application/json, text/plain, */*"},"delete":{},"get":{},"head":{},"post":{"Content-Type":"application/x-www-form-urlencoded"},"put":{"Content-Type":"application/x-www-form-urlencoded"},"patch":{"Content-Type":"application/x-www-form-urlencoded"},"Authorization":"Bearer [MASKED]"},"method":"get","url":"[REDACTED]/api/ce/activity?component=[REDACTED]&onlyCurrents=true"}}
TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'ClientRequest'
    |     property 'socket' -> object with constructor 'TLSSocket'
    --- property '_httpMessage' closes the circle
    at JSON.stringify (<anonymous>)
    at Logger.debug (/usr/local/lib/node_modules/sonar-quality-gate/build/utils/log.js:18:26)
    at onResponse (/usr/local/lib/node_modules/sonar-quality-gate/build/http/interceptors.js:14:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

After the error the whole application crashes and doesn't continue decorating the merge requests in GitLab.

@jsproede
i have pushed code for fix this bug #56 , please check it again.

Hi @dieuhd,
sorry for the delay. The issue has been fixed with the changes you've pushed. Thank you! :)


feat: logic to toggle mobile view for simulator

Fixes #
Describe the changes you have made in this PR -
Tried to toggle Mobile-Ui using javascript
added device detection logic in ux.js file and then appending style code in head (if mobile view)
Screenshots of the changes (If any) -
https://user-images.githubusercontent.com/76155456/187488007-1fa4b021-d766-4abb-be4e-3fd8bf8acc10.mov
Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

Coverage remained the same at 81.907% when pulling fba92298990cccc3a8dae77f1cc116afe577b0e6 on pulkit-30:mobile-bugfix into 1f74209bef89ee9d5453ab0e78bee73e8dd21ead on CircuitVerse:master.

@pulkit-30 Yepp, it is working after reloading the page!
Need some changes:
Desktop View

Timing Diagram toolbar:

The property Panel is crashed, giving unexpected values:

Mobile View:

Icon not rendering:

Minor UI fix

@pulkit-30 Yepp, it is working after reloading the page! Need some changes:
Desktop View

Timing Diagram toolbar:

The property Panel is crashed, giving unexpected values:

Sorry, I am not finding these bugs ...
Any steps to re-produce them??

@pulkit-30 Here,
@devartstar can you also confirm this bug in your device?
Screencast from 31-08-22 07:54:45 AM IST.webm

@devartstar can you also confirm this bug in your device?

@pulkit-30 @vedant-jain03
Yeah it's happening in my device too.
But it gets fixed on reloading.


fix: Loading custom polymorphic function defs as values

Fixes #259

Codecov Report
Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@b2901d8). Learn more about missing BASE report.

Files
Patch %
Lines

guppylang/definition/custom.py
12.50%
7 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #260   +/-   ##
=======================================
  Coverage        ?   90.76%
=======================================
  Files           ?       44
  Lines           ?     4679
  Branches        ?        0
=======================================
  Hits            ?     4247
  Misses          ?      432
  Partials        ?        0

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Is page.screenshotAsync working on .NET frameworks?

I have tried on 3 separate .NET frameworks, one with POM and one without, and a fresh one based on the installation guides on playwright.dev.
using the standard:
await _page.ScreenshotAsync(new()         {             Path = "screenshot.png",             FullPage = true,         });
However no screenshot file is produced. Am I missing something?

I can run the demo code after removing `using' keyword in Console App (.NET Framework 4.8)
Can you provide us a repro which we can run locally?

Appreciate the reply, here's is a repo which essentially has the same code but in an NUnit project, as opposed to a Console App.
https://github.com/RCJONESNXT/NUnitTest2

it's work

@feiyun0112 Yes it passes, but I'm guessing there was no screenshot.png file generated?

NUnit using using afaik the bin directory or bin/net6.0 as a CWD (current working directory). Which page.ScreenshotAsync is using if you are using relative paths.
We recommend passing absolute paths, then the file will be put to the path you specify.

generated

Ok just a pathing problem then, thank you both for your help!


1.0

Current coverage is 58.86% (diff: 66.66%)

No coverage report found for master at 33bce9d.

Powered by Codecov. Last update 33bce9d...61c8627

Sweet! CIs are now passing.

What is left for this request @Prince2k3?

looks good to me!


Units conversion not working

In [2]: from gpkit import Variable, Model

In [3]: x = Variable(x, 4, 'N')

In [5]: y = Variable('y', 'lb')

In [7]: m = Model(y, [x==y])

In [8]: m.solve()
Using solver 'mosek'
Solving for 1 variables.
Solving took 0.0597 seconds.

Cost
----
 4 [lb]

Free Variables
--------------
y : 4  [lb]

Constants
---------
x : 4  [N]

Huh doesn't even seem to be checking in some cases
In [6]: x = Variable('x', 4, 'cm')

In [7]: y = Variable('y', 'kg')

In [8]: m = Model(y, [x==y])

In [9]: m.solve()
Using solver 'mosek'
Solving for 1 variables.
Solving took 0.0159 seconds.

Cost
----
 4 [kg]

Free Variables
--------------
y : 4  [kg]

Constants
---------
x : 4  [cm]

Wait lb means pound-mass?! That's vile!

yeah, lb is lb-mass
yeah, == constraints are broken units-wise right now; I'll fix that.

When @bqpd adds dollars to pint (and inevitable rewrites pint in the process), I'm excited about replacing lb with lbm, so that the only possibilities are lbf and lbm -- removes any ambiguity.

This really shouldn't be too hard to do in pint...


Force HTML output of from temper templates using html: true config

This the final piece of the puzzle to have react templates that render on the server and client. The biggest problem with react's jsx templates is that when you want to share "components" (which is basically a React.createClass instance) it's render method needs to return React.createElement instead of Pure HTML. So on the server we need to make sure that all React templates return React DOM nodes by default and ONLY transform the view property's output to raw HTML.

Related to #16


Currently docker images are not versioned which can be an issue going further

Is your feature request related to a problem? Please describe.
Docker images for VulnerableApp-facade just have 1 version latest. It should be the latest (whcih is unreleased) and specific tags for released versions.
For more information about the existing images: https://hub.docker.com/r/sasanlabs/owasp-vulnerableapp-facade/tags
How do we create images ?
we have a Github action for creating and pushing docker images: https://github.com/SasanLabs/VulnerableApp-facade/blob/main/.github/workflows/docker.yml

we have used github semantic versioning in Owasp VulnerableApp project. we can use similar thing here as well.
PR: https://github.com/SasanLabs/VulnerableApp/pull/382

Karan, you can assign this to me.
I think I better understand the 'unreleased' tag. Because you want to manually create a GitHub release, by default, the most recent build/deploys will be tagged as 'unreleased'. Is this correct?
Then would you want functionality, that when someone does manually create a release, that will trigger a workflow, which can use the tag of that newly publish release and also add the 'latest' tag on DockerHub?
Currently, with my most recent PR, the latest docker build/deploy will be tagged with the version number and 'unreleased' tags.

@merry-degaga we need the same functionality as we have in VulnerableApp repository and in both the repositories, we need an additional functionality which is to add the latest tag to docker hub.

I think both can be part of same ticket.

Hi Karan, is it okay to close this issue?
Thank you

Hi Karan, is it okay to close this issue?
Thank you

@merry-degaga yes please and thank you!!


integrations: Add add_context_for_single_integration function.

Previously, when rendering a single integration, we tacked on the
following information to the context dict that was redundant:

An OrderedDict containing all of the Integration objects for
all integrations.
An OrderedDict containing all of the integration categories.

The context dict for rendering a particular integration doc would
contain 4 OrderedDicts, 2 for categories, 2 for Integration objects
because of how many times add_integrations_context had been called.
This was very wasteful, since an Integration object doesn't need
to access any other Integration object (or itself for that matter)
to render its documentation. This commit adds a function that
allows us to only pass in the context values that are necessary.
@timabbott: FYI, this addresses the last point of the changes you requested in #7401. :)

@timabbott: You were right, doc_context was redundant. I pushed another commit removing it completely since it served no purpose. :) Thanks!

Oops just caught a mypy error, fixing now

This is great, merged, thanks @eeshangarg!


Update service-fabric-reliable-actors-timers-reminders.md

This takes care of the GitHub issue:
https://github.com/Azure/service-fabric-issues/issues/151

@VipulM-MSFT : Thanks for your contribution to the Azure documentation! The author, @vturecek, has been notified to review your proposed change.

#sign-off


PGP/GnuPG Key not saving

Brief Description: When saving after adding GnuPG key and signature an error occurs..
Data could not be saved.
GnuPG is not installed!
Operating System (OSX 10.10.5):
OpenBazaar version (shown on About OpenBazaar page in menu):
Hardware:
Reproducible (Always):
Steps to reproduce:

add GnuPG key and signature
click save changes

Observed Behavior:
doesn't save data
Expected Behavior:
save data
Additional info (links, images, etc go here):

Thank you for reporting this issue, @M45t3rJC. This is a known server issue, we will be adding a PGP library to our installation package in a future release.


Getting the height for a UITableViewCell

Hey, great project - loving it.
I'm trying to put it in a UITableViewCell - so I actually need the fittedSize before it exists (for the heightForRowAtIndexPath).
Any creative ideas of how I can do it?

Well - I figured it out (writing here for future reference)
If you do a "mock" view without adding it to a view, it still calculalates the sizes correctly.
- (void) viewWillAppear:(BOOL)animated
{
// ...


Revert "Repo sync"

Reverts github/docs#26956

👋 Hey there spelunker. It looks like you've modified some files that we can't accept as contributions. The complete list of files we can't accept are: .devcontainer/** .github/actions-scripts/** .github/workflows/** .github/CODEOWNERS assets/fonts/** data/graphql/** Dockerfile* src/** lib/redirects/** package*.json scripts/** content/actions/deployment/security-hardening-your-deployments/**
You'll need to revert all of the files you changed in that list using GitHub Desktop or git checkout origin/main <file name>. Once you get those files reverted, we can continue with the review process. :octocat:

GitHub CLI api
https://cli.github.com/manual/gh_api
gh api
--method DELETE
-H "Accept: application/vnd.github+json"
-H "X-GitHub-Api-Version: 2022-11-28"
/repos/OWNER/REPO/actions/artifacts/ARTIFACT_ID


use Invoke Obfuscation

i try to obfusctate  letmein,ps1 using Invoke Obfuscation tool because kaspersky flag it but it gives me error every time help please and thanks

In my experience, Kaspersky is the only widely used Antivirus that correctly flags letmein.ps1 as a potential threat (even so, only in some configurations). However, now that the cmdlet has been published more Antivirus solutions are eventually going to implement a specific signature. I don't think obfuscators are gonna help reliably: your best bet is to write your own loader. For further information:
https://techblog.mediaservice.net/2017/11/how-a-unix-hacker-discovered-the-windows-powershell/
https://github.com/0xdea/tactical-exploitation/blob/master/letmein.py
https://github.com/rsmudge/metasploit-loader
Happy hacking!


Remove publishr from npm package.json prod deps.

/cc @alexlande

Coverage remained the same at 96.236% when pulling 08ca912fef3c3c68d7813ef8870cc29264857b9d on infra/publishr-dep into d5ed5232f3077b46a75e27b54b3f25b535a3d460 on master.

Coverage remained the same at 96.236% when pulling 08ca912fef3c3c68d7813ef8870cc29264857b9d on infra/publishr-dep into d5ed5232f3077b46a75e27b54b3f25b535a3d460 on master.

Coverage remained the same at 96.236% when pulling 08ca912fef3c3c68d7813ef8870cc29264857b9d on infra/publishr-dep into d5ed5232f3077b46a75e27b54b3f25b535a3d460 on master.

:shipit:

Released in<EMAIL_ADDRESS>Publish diff looks good:
$ publish-diff -o<EMAIL_ADDRESS>-n<EMAIL_ADDRESS>Index: CHANGELOG.md
===================================================================
--- CHANGELOG.md<EMAIL_ADDRESS>+++ CHANGELOG.md<EMAIL_ADDRESS>@@ -1,6 +1,9 @@
 # Radium Changelog

+## 0.19.3 (July 20, 2017)
+- Remove `publishr` from prod `dependencies` in npm registry package.
+
 ## 0.19.2 (July 20, 2017)
 - Switch to `publishr` workflow. (#894, #731, #900)
 - Remove `rimraf` from prod `dependencies` in npm registry package.
 - Remove `postinstall` from `scripts` in npm registry package. (#794)

Index: package.json
===================================================================
--- package.json<EMAIL_ADDRESS>+++ package.json<EMAIL_ADDRESS>@@ -1,7 +1,7 @@
 {
   "name": "radium",
-  "version": "0.19.2",
+  "version": "0.19.3",
   "description": "A set of tools to manage inline styles on React elements",
   "main": "lib/index.js",
   "repository": {
     "type": "git",
@@ -37,10 +37,9 @@
   "dependencies": {
     "array-find": "^1.0.0",
     "exenv": "^1.2.1",
     "inline-style-prefixer": "^2.0.5",
-    "prop-types": "^15.5.8",
-    "publishr": "^1.0.0"
+    "prop-types": "^15.5.8"
   },
   "peerDependencies": {
     "react": "^15.3.0"
   },
@@ -91,13 +90,15 @@
     "babel-plugin-transform-es2015-modules-commonjs": "^6.24.0",
     "babel-preset-es2015": "^6.24.0",
     "babel-preset-react": "^6.23.0",
     "babel-preset-stage-1": "^6.22.0",
+    "publishr": "^1.0.0",
     "rimraf": "^2.6.1"
   },
   "publishr": {
     "dependencies": [
       "^babel-",
+      "^publishr$",
       "^rimraf$"
     ],
     "files": {
       ".npmignore": ".npmignore.publishr"

👍


Currently a number of functions return error messages but don't raise exceptions.

Errors need to raise exceptions in notebook so that notebook can be terminated in an error state. Currently only text warning messages are returned.

Intending to tidy up exception handling using following style:
raise Exception(f"Issue retrieving secret from key vault. Error: {e}") from None


Consultation on new parser

Hi @L3MON4D3.
It's not an issue, but I don't know any other way to contact you, so please excuse me here.
I've been writing a PR this past week to add a powerful parser for VSCode/SnipMate, and I need some advice.
The syntax of the VSCode snippet looks like this (https://code.visualstudio.com/docs/editor/userdefinedsnippets#_grammar), but it's not practical to fully support JS regular expressions. I think using vim regex for transform is a realistic way to reproduce the same thing. However, this is not a good way to use existing assets.
What do you think?

Note that even vsnip does not support anything other than (.*) are not supported. I think it would be more useful to be able to use vim's regular expressions completely rather than such a half-hearted support.

Don't worry about opening an issue about it, that's alright :D
Concerning a new parser, the current "plan" is to use the one provided by neovim (require"vim.lsp._snippets".parse or something like that), the rationale being that if it is improved, everyone gets a better parser.
I think it also supports parsing transformations, it's just up to us to implement them.
When it comes to doing the transformations, I agree that using vimscript isn't perfect. I think @kmarius made some effort on making js-regex available to lua (I think it is done, actually, but I wasn't really that interested in implementing the transformations😅), so we could use that and, if unavailable, fall back to vimscript.
What do you think about doing it that way?

I took a look at vim.lsp._snippet and it doesn't seem to do anything special about converting js-regex. (It seems to be a lua rewrite of the vsnip parser, but it's really well done).
If we use this parser, it would be better to give up eval using backtick and add ${VIM} like vsnip.

I took a look at vim.lsp._snippet and it doesn't seem to do anything special about converting js-regex. (It seems to be a lua rewrite of the vsnip parser, but it's really well done).

Yep, it only makes it available in the ast I think.

If we use this parser, it would be better to give up eval using backtick and add ${VIM} like vsnip.

I don't think we have to, we can parse the text before and after the backticks using the parser and merge the ASTs with the functionNode for backticks between them.

I wouldn't mind adding parser for backtick, but I don't think it's that important... This way is easier to extend, because we can use variable node of AST.
Wouldn't it be nice if users could configure things like embedding python code in ${PYTHON}?

@L3MON4D3 I was going to revisit the transformations once the new parser landed but didn't really follow the issue. I did eventually implement the transformations (which is the only thing the module does for now, it doesn't provide actual bindings to js-regex). What does not work is transformations on unicode characters (it does work in the QuickJs interpreter so I'm just doing something wrong).
The code is here: https://github.com/kmarius/jsregexp

I wouldn't mind adding parser for backtick, but I don't think it's that important... This way is easier to extend, because we can use variable node of AST.

I'm not sure whether the parser handles everything that could be put into variable fine, one transformation could end up in different children of the AST, or the parser could just not parse the snippet completely

Wouldn't it be nice if users could configure things like embedding python code in ${PYTHON}? (I'm going to put in a mechanism where you can add variables and their corresponding functions.)

That sounds good, check out until.environment, that's where the values for variables come from right now.

@L3MON4D3 I was going to revisit the transformations once the new parser landed but didn't really follow the issue. I did eventually implement the transformations (which is the only thing the module does for now, it doesn't provide actual bindings to js-regex). What does not work is transformations on unicode characters (it does work in the QuickJs interpreter so I'm just doing something wrong).
The code is here: https://github.com/kmarius/jsregexp

Nice, I'll definitely look into it👍

For now, let's actually write a parser using the ast returned by vim.lsp._snippet.parse.
I'll come back to ask if there are any more problems.

Sounds Good :+1:

Converting jsregex to vim regex is a no go, I tried before and there are several things that can't be translated, and it won't make sense to have it if it doesn't work well. We decided to use the c lib that @kmarius ended wrapping for lua, but we haven't work in that regard since then.

https://github.com/L3MON4D3/LuaSnip/blob/5cc313528e5e5b71508e799a037f255f26febd7c/lua/luasnip/util/environ.lua#L39
Do I need this rawset? Lazy shouldn't be cached, right?

I don't think so, just setting it should be alright.

(Does that mean rawset is necessary? Sorry, my English is not good.)
Because I have __index set up, I can't access this rawset data without using rawget, but I couldn't find rawget, so I asked. Are you using it for something other than var in util.functions?

It's alright to do self[key]=var :D
(But having -__index shouldn't prevent you from accessing a key that was rawset, __index is only called for keys that don't exist in the table yet).

Are you using it for something other than var in util.functions?

Do you mean env? If so, Yes, that's populated in every snippet, check trigger_expand and fake_expand in nodes/snippet.lua

Oh, I'm sorry. __index is only called when there is no key in the original table.
I was thinking that if it is cached with the value of the first call, I can't make snippets like ${VIM:$1} that I want to re-evaluate every time.
Changing this would have a huge impact. Should I avoid...

You could also just not set it in __index, that way it could be reevaluated each time.
Or use a different function for $VIM

That's right. I think I can manage that. Thank you.


ci: fix pr-commentor for merge queue draft pr

The mergify label copier used github-actions bot
to add labels. Actions performed by github-actions bot do not trigger a workflow and hence
pull-request-commentor was not working as expected. This commit modifies mergify label copier to use
Cephcsi-bot to copy labels which then will be
able to trigger action to add pr comments.
refer: https://github.com/Mergifyio/gha-mergify-merge-queue-labels-copier/pull/6

@mergifyio rebase

/test ci/centos/k8s-e2e-external-storage


Fix ServiceStatusView popover presenting too many times

When scrolling, the hover event gets called many times causing the popover to be presented and dismissed repeatedly.

Before
After

Thank you!


seperate page for "news"

we should create a site where we can publish news and share articles that others write about speakerinnen (blog style)

blog content is moved to seperate page which can be used from now on: blog.speakerinnen.org
We want to link it from our homepage.
It should be on the bottom where you can find "Wir in der Presse right now".
"Wir in der Presse" should move to Footer.

blog.speakerinnen.org needs an basic adaption of speakerinnen design (maybe inuit)

We need a editorial concept: > experiences with speakerinnen.org, testimonials, new features ...

done, thanks @tyranja @ur5 and @carlad !


[backport dev-v2.9] rancher/mirrored-fluent-fluent-bit:2.2.0

Issue created for tracking the backport of https://github.com/rancherlabs/image-scanning/issues/2764 to v2.9

CVE rancher/mirrored-fluent-fluent-bit:2.2.0 has been validated along with rancher logging regression: PFA
Details :
Rancher : v2.9.3-alpha5
cluster : v1.30.5+rke2r1
logging : 104.0.0+up4.4.0


New architecture

In this PR, we tried to start the conversion of fabric towards the new architecture (https://github.com/hyperledger/fabric/wiki/Next-Consensus-Architecture-Proposal).
Description

The PR and the implementation is not complete, we would like to get feedback.
The PR contains the following changes:

A proto file was added describing all the new message types and services needed by endorsers (endorser-api) and consenter peers (consensus-api).
A consensus service was introduced. For a node, whether to act as a consenter can be enabled/disabled from configuration. Other nodes use consensus-api to connect to the consensus layer.
Nodes ask for endorsements before forwarding a transaction to the consensus. Enabled/disabled status of the endorsement service on a node can be configured in core.yaml. Endorsers can be reached using endorser-api.
Nodes observe the consensus-layer using a consensus observer and consensus-api and commit to the ledger if a new consensus is made. (Ledger related functionalities were moved from consensus to core)

Functionalities missing:

Real endorsement checking is needed (not just the endorsement count but signature verification). It is a question how we could handle private/public keys and signatures (Do we need a CA? Do we need preconfigured key lists? What about using Schnorr signatures?)
Some ledger related code needs to be removed from consensus and maybe moved to core if it is still needed. (The TX execution and commitment are done in consensus-observer)
All the fields of all the records from consensus-api.proto needs to be populated with real, meaningful values.)

Motivation and Context
The motivation is to begin work on new architecture and start discussion on implementation level problems.

Fixes #
How Has This Been Tested?

BDD tests will be added.
Checklist:

[] I have added a Signed-off-by.
[] I have either added documentation to cover my changes or this change requires no new documentation.
[] I have either added unit tests to cover my changes or this change requires no new tests.
[] I have run golint and have fixed valid warnings in code I have added or modified. This tool generates false positives so you may choose to ignore some warnings. The goal is clean, consistent, and readable code.

Signed-off-by:
Gabor Hosszu<EMAIL_ADDRESS>

@gabre this has some linter errors that need to be resolved. see the Travis output.

For the read set and write set, what about

message VerDep {
      repeated VarRead readSet = 1;
      repeated VarWrite writeSet = 2;
 }

message VarRead {
	string key = 1;
	bytes version = 2;
}

message VarWrite {
	string key = 1;
	bytes value = 2;
	bytes version = 3;
}

Making a note to myself to consider the following transaction tomorrow
Read key A version 1
Write key A version 2
Read key A version 2
Write key A version 3

Need to consider if that order needs to be preserved which I cannot be in the above data structure.

@christo4ferris Yes I know about that, I will fix it. This is still a proposal, we would like to have more feedback on this (see my questions in the files, the proto definitions and the "lower level" implementation details). I would like to encourage everybody to give us feedback and suggestions.

@srderson What about making just one set of repeated VarUsage s (I was unable to find a better name, Usage = Read U Write U EveryThingElseOneCanThinkOf, U stands for union) and this way we could preserve the order if needed? Just came into my mind, haven't considered it deeply..

Something @manish-sethi mentioned this morning based on the conversation at https://github.com/hyperledger/fabric/issues/1631 is that maybe versionDependencies should just be bytes
message TransactionProposal {
    enum TxContentType {
        TRANSPARENT = 0;
        OPAQUE = 1;
        COMMITMENT = 2;
        NONE = 3;
    }

    string submitingPeerID = 1;
    string clientID = 2;
    bytes chaincodeID = 3;
    TxContentType txContentType = 4;
    bytes txContent = 5;
    bytes versionDependencies = 6;
}

This allows different ledger implementations to handle the simulation/results differently. This is very powerful as it allows for unlimited flexibility and does not lock us into the readSet/writeSet concept.
The default implementation would store a read/write set in these bytes. It would look something like
message VerDep {
      repeated VarRead readSet = 1;
      repeated VarWrite writeSet = 2;
 }

Also @manish-sethi and I confirmed that only the first reads and last writes of a key in a transaction need to be stored so we don't need to worry about capturing intermediate reads/writes.
Thoughts?

@gabre @srderson have we migrated this discussion to Gerrit?

@gabre we will be transferring the fabric and fabric-api repository and all the corresponding issues and pull requests to the hyperledger-archives org on GH and replacing this repository with a read-only mirror of our Gerrit source. As a result, any automatic GH redirects will be broken. If you haven't already migrated your PR to Gerrit, and intend to do so, you will need to change your git remote to reference the transferred repository (e.g. git@github.com:hyperledger-archives/fabric) on your local clone.


feature request: i3 template

Hello,
It would be very nice having khamer/base16-i3 support since it's the most popular WM nowadays and would make a great combo with the already supported templates.

Hi there!
Probably it would be cool to implement it with a more generic set(). Please see #31.

You can use base16 schemes in i3 with the Xresources template. Relevant reddit thread: https://www.reddit.com/r/unixporn/comments/4if9xc/i3_you_can_now_use_x_resources_in_i3/
I still think base16-manager should support i3 nonetheless, but it's not required to have base16 colours in i3 right now.

@AuditeMarlow sorry I missed that on the enthusiasm of just using base16-manager for the first time. I also don't usually make use of Xresources anymore because it feels deprecated and the solution pointed by @theova is the probably the best.

@aleprovencio: no worries! It's cool, that you're enthusiastic about using/contributing to base16-manager :-)


tls: server verification can be disabled per SIP request

Per default it is turned on. This ensures security by default.
@sreimers:
Since we want to disable TLS server verification from baresip per account and not per general config flag this can't be solved by means of sip_transp_add(). We compared with the TLS behavior of a web browser where the user has to disable the server verification per web-site and not in general.
A problem with the function sip_request() is that it allocates the struct and immediately calls request() --> ... ---> tcp_send(). But since all the work is done in the re main loop, it is possible to change tls_conn afterwards before the control goes back to the main loop. This circumstance makes this solution possible. Also the change of the transport API in commit 74d36ef366b40cad75c6355a1695063a16553403 seems to be not necessary. Let me know if I should revert this during this PR?
TODO: Have to test it. A setup is not easy. Let this a draft until tested successfully.

Had to add a lot more sipxxx_enverify() functions for notify, subscribe and session. I stopped at SIP ACK which increases the complexity for this PR to complete dramatically. The PR is already too large. The benefit is too low.
@sreimers I will prepare a PR like you suggested already based on sip_transp_add(). Thus only the general disable of server verification will be possible.
Then will close this draft.

replaced by https://github.com/baresip/re/pull/76


docs: update docs about contributing

Ⅰ. Describe what this PR did
Updated the CONTRIBUTING.md doc and fixed some typing and formatting errors.
Ⅱ. Does this pull request fix one issue?

NONE
Ⅲ. Describe how you did it
Added menu list item for "Test case contribution" in line 10.
Changed "lot of" to "a lot of" in line 25.
Changed "filing" to "filling" in line 38.
Moved the explaination of "rc" to the first place where it shows from line 99 to line 97 and added a space before "(".
Changed the "Test case contribution" from heading 3 to heading 2 in line 144.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

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

Codecov Report

Merging #1673 into master will decrease coverage by 23.28%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #1673       +/-   ##
===========================================
- Coverage   41.16%   17.87%   -23.29%
===========================================
  Files         274      229       -45
  Lines       18091    15625     -2466
===========================================
- Hits         7447     2793     -4654
- Misses       9729    12639     +2910
+ Partials      915      193      -722

Impacted Files
Coverage Δ

pkg/httputils/http_error.go
0% <0%> (-100%)
:arrow_down:

pkg/httputils/http_utils.go
0% <0%> (-100%)
:arrow_down:

apis/server/router.go
0% <0%> (-91.37%)
:arrow_down:

daemon/mgr/container_state.go
0% <0%> (-87.24%)
:arrow_down:

apis/server/volume_bridge.go
0% <0%> (-86.67%)
:arrow_down:

daemon/containerio/hijack_conn.go
2.85% <0%> (-85.72%)
:arrow_down:

daemon/mgr/container_monitor.go
0% <0%> (-85.19%)
:arrow_down:

daemon/mgr/container_logger.go
0% <0%> (-84%)
:arrow_down:

daemon/mgr/spec_annotations.go
0% <0%> (-82.36%)
:arrow_down:

apis/server/container_bridge.go
0% <0%> (-82.02%)
:arrow_down:

... and 125 more

LGTM, thanks a lot for your work. @shannonxn


Tasks should be highlighted in docstrings

From<EMAIL_ADDRESS>on 2011-10-05T10:12:13Z
What steps will reproduce the problem?
 What do you see instead? The task should be highlighted as it is the case by using single line comments (#).
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=784

From pierre.raybaut on 2011-10-06T06:54:35Z
The current implementation assumes that tasks are supposed to be written in comments (i.e. for code internal use: for the developper), not in docstring which purpose is to document the code (for code external use: for the end user).
Other than that, I don't think that it would be a problem to match this:
pattern = r"#? ?TODO ?:?[^#]|#? ?FIXME ?:?[^#]|"
r"#? ?XXX ?:?[^#]|#? ?HINT ?:?[^#]|#? ?TIP ?:?[^#]*"
instead of this: https://code.google.com/p/spyderlib/source/browse/spyderlib/utils/codeanalysis.py#26 Anyone has an opinion on this matter?

From ccordoba12 on 2011-10-07T14:17:38Z
Well, we are using docstrings to add some metadata (date/author) when a new file is created, so I don't think it's unreasonable for people to expect that other things should work inside them.
I'm +1 to add this feature.
Summary: Tasks should be highlighted in docstrings
Labels: -Type-Defect Type-Enhancement Cat-Editor

From pierre.raybaut on 2011-10-11T10:44:11Z
This issue was closed by revision 904502b048c6 .
Status: Fixed


When we use updateactivity method, "AI generated" is not displaying

Type of issue
Missing information
Feedback
When send message using SendActivityAsync, we see "AI generated" label as shown in below screenshot.

But if we update message using UpdateActivityAsync, label is not displaying.

As it is known behavior for now, adding note will help.
Page URL
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/bot-messages-ai-generated-content?tabs=before%2Cbotmessage
Content source URL
https://github.com/MicrosoftDocs/msteams-docs/blob/main/msteams-platform/bots/how-to/bot-messages-ai-generated-content.md
Author
@surbhigupta
Document Id
605a8486-6e6a-31d5-e8a1-021691206099

@SubbaReddi - Thanks for reporting your issue. We will check this and update you soon.

Hello all, this is happening to me too.
My attemps were:
                                    await context.updateActivity({
                                        id: activityId,
                                        type: 'message',
                                        attachments: [adaptiveCard],
                                        entities: [
                                            {
                                                type: "https://schema.org/Message",
                                                "@type": "Message",
                                                "@context": "https://schema.org",
                                                additionalType: ["AIGeneratedContent"],
                                            }
                                        ]
                                    });

And also:
const newActivity = MessageFactory.attachment(CardFactory.adaptiveCard(newAdaptiveCard));
                                newActivity.entities = [
                                    {
                                        type: "https://schema.org/Message",
                                        "@type": "Message",
                                        "@context": "https://schema.org",
                                        additionalType: ["AIGeneratedContent"],
                                    }
                                ]
                                newActivity.id = activityId;
                                await context.updateActivity(newActivity);

Is this an expected behaviour?
Is the "Edited" message replacing the AI Content Generator tag?
Thank you in advance.

Hello @Nivedipa-MSFT, we are working on the PR. Will update once the PR is merged into live.


SIGSEGV on WSL 2

Problem
When compiling a basic example on WSL 2, the program crashes without displaying anything.
When running it with strace, the process crashes with SIGSEGV (so a segmentation fault).
I don't really know how to fix that, I could give you a complete strace log if that's useful?
Note that cargo build works fine. It's only running that fails.
Steps To Reproduce

Create a new project
Add dioxus with the desktop feature
Use the following src/main.rs file:

use dioxus::prelude::*;

fn main() {
    dioxus::launch(|| rsx! { "hello dioxus! ƒº¼" });
}

cargo run
Enjoy the crash

Environment:

Dioxus version: 0.6.0
Rust version: 1.82.0
OS info: Windows 11 24H2, WSL <IP_ADDRESS> with Ubuntu 24.10, kernel <IP_ADDRESS>-1, WSLg 1.0.65
App platform: desktop

Running desktop in WSL has been tricky. Did you take a look at https://dioxuslabs.com/learn/0.6/getting_started/#wsl?

Yeah I have the required dependencies installed, the DISPLAY env variable set to :0, the latest WSL version + Linux kernel (at least the one available in Ubuntu 24.10).
Still doesn't work. What surprises me is not the fact it's not launching (there could be tons of incompatibility issues in terms of libraries interop and dependencies) but the fact that it crashes silently with a segmentation fault.

Hi i running into the same issue not sure if related due to me running on arch on bare metal
The desktop application fails to run not build i get the error on run under niri wayland desktop enviroment. but under gnome wayland it works fine.
Application [linux] exited with error: signal: 11 (SIGSEGV) (core dumped)

dioxus version: 0.6.0
rust version: 1.83.0
os: archlinux on not under wsl ect
desktop enviroment: niri
platform: desktop linux


Why you use Addr as keys in Maps?

Hey guys, thanks for your work!
Have a little question :)
Why you use Addr(which is a String actually) as a key in Maps? Here for example?
Here CosmWasm docs saying (and I agree):
This means that if message.signer is always the string address that signed
 the transaction and I use it to look up your account balance, if this encoding
 ever changed, then you lose access to your account. We clearly need
 a stable identifier to work with internally.

It is possible for address string representation to change, so ideally we all (smart contracts dev) should use CanonicalAddr as a key for Maps.
So, Why?

Until Stargate, the Cosmos SDK stored addresses internally as raw bytes (CanonicalAddr) form.
We reflected and considered this would make sense if they changed bech32 prefix or decided to move to base58 or whatever.
However, since 0.40 the cosmos sdk uses bech32 encoding string addresses in all messages and in storage. Thus, it is near impossible to change the address encoding on a Cosmos SDK chain. Since that limits the runtime, we don't have to make all our contracts significantly more complex to handle cases the runtime doesn't support.
We also suggest using Addr in storage for 0.14 plus. This also means doing addr_validate on any address passed in via a message to ensure it is a legitimite address and not "random-text-here" which will fail later. Thus pub fn addr_validate(&self, &str) -> Addr on deps.api.

We should update the cosmwasm docs for these new changes... Lots to do for 0.14 and 1.0 still...

Thanks much!
Should I close this issue?

No, leave it open. We need to improve the docs, then I will close it.


(main-next): draft

If I understand correctly, now the queue will stop on the commit with the merge conflict, and assign it to the person who created that commit? That sounds like a good improvement!


Feature request: tf.nn.depthwise_conv2d_transpose

System information

TensorFlow installed from (source or binary): source
TensorFlow version (use command below): ('v1.1.0-0-g1ec6ed5', '1.1.0')
Bazel version (if compiling from source): 0.4.5- (@non-git)
CUDA/cuDNN version: 7.5/5.1
GPU model and memory: NVIDIA M40, 12GB

Describe the problem
I would like to apply a tf.nn.conv2d_transpose operation to each channel of a feature image independently. There is no tf.nn.depthwise_conv2d_transpose operation.
I tried using tf.nn.depthwise_conv2d_native_backprop_input however, when I try to optimize a function that involves one of these operations, it results in an error because there is no gradient operation defined:
LookupError: No gradient defined for operation 'DepthwiseConv2dNativeBackpropInput_1' (op type: DepthwiseConv2dNativeBackpropInput)

This is related to https://github.com/tensorflow/tensorflow/issues/7934
It is possible to achieve this functionality using conv2d_transpose by constructing a large filter with many coefficients set to zero. However, it is relatively inefficient, especially for a large number of channels.

thanks  for  your  share

Why would you like to do a transpose operation to each channel of a feature image independently?

import tensorflow as tf
import numpy as np
from tensorflow.python.framework import ops
from tensorflow.python.ops import nn_ops
from tensorflow.python.ops import array_ops

NUM_ITERATIONS = 1000

@ops.RegisterGradient("DepthwiseConv2dNativeBackpropInput")
def _DepthwiseConv2DNativeBackpropInputGrad(op, grad):
  """The derivatives for depth-wise deconvolution.
  Args:
    op: the depth-wise deconvolution op.
    grad: the tensor representing the gradient w.r.t. the output
  Returns:
    the gradients w.r.t. the input and the filter
  """
  return [None,
          nn_ops.depthwise_conv2d_native_backprop_filter(
              grad,
              array_ops.shape(op.inputs[1]),
              op.inputs[2],
              op.get_attr("strides"),
              op.get_attr("padding"),
              data_format=op.get_attr("data_format")),
          nn_ops.depthwise_conv2d_native(
              grad,
              op.inputs[1],
              op.get_attr("strides"),
              op.get_attr("padding"),
              data_format=op.get_attr("data_format"))]

filter1 = tf.Variable(np.ones((3, 3, 2, 1), dtype=np.float32))
deconv1 = tf.nn.depthwise_conv2d_native_backprop_input(
  [2, 30, 30, 2],
  filter1,
  tf.ones([2, 28, 28, 2]),
  [1, 1, 1, 1],
  "VALID")
filter2 = tf.Variable(np.ones((3, 3, 2, 1), dtype=np.float32))
deconv2 = tf.nn.depthwise_conv2d_native_backprop_input(
  [2, 32, 32, 2],
  filter2,
  deconv1,
  [1, 1, 1, 1],
  "VALID")
loss = tf.reduce_mean(tf.square(deconv2 - 1))
train_op = tf.train.AdamOptimizer(1e-4).minimize(loss)

sess = tf.Session()
sess.run(tf.global_variables_initializer())
print(sess.run(filter1))
for i in range(NUM_ITERATIONS):
  print(sess.run([train_op, loss])[1], end="\r")
print(sess.run(filter1))

I have attempted to implement the gradient for tf.nn.depthwise_conv2d_native_backprop_input in the code above. If someone could tell me what is missing for a pull request (test cases, wrapper functions etc.), then I would gladly contribute.

@rdinse I think you could create the PR as an open PR will likely generate more discussion and attention.

@rdinse Are you still working on this issue?

I am also interested in this issue, and I think I have some idea how this can be done. If you read about how the depthwise_conv2d is implemented, you will find find that "depthwise_conv2d applies a different filter to each input channel (expanding from 1 channel to channel_multiplier channels for each), then concatenates the results together." -- therefore, depthwise_conv_2d_transpose could theoretically be implemented via N regular conv_2d_transpose's (where N is the number of input channels to depthwise_conv_2d) applied to the corresponding selection of the channels from the encoding, and using the corresponding selection from the filter for each, and then concatenating the results. You'd just need to know how the original depthwise_conv2d interleaves the output channels (1,1,2,2,3,3 or 1,2,3,1,2,3), so that you know how to select the correct parts of the encoding and filter for the N regular "deconvolutions". I could perhaps attempt to implement this, I will update if I do.

Here is an implementation for you. I don't have time to submit pull request with tests etc, but this works for me. Although, it's slower than when I use the regular conv2d and conv2d_transpose with the same number of input and output channels (and larger, full filters). If implemented in C++ (or in some other smarter way), it should be in fact faster. Anyway, at least it works. P.S. I've also tried using tf.while_loop when the number of channels is only known at run-time, and it also works, but I don't think this extra complication is necessary, since the number of channels is usually known at "compile time" (for TensorFlow graph).
def depthwise_conv2d_transpose(
  value,
  filter,
  strides,
  output_shape,
  data_format='NHWC',
  padding='SAME',
  name='depthwise_conv2d_transpose'):

  if data_format == 'NHWC':
    channel_axis = 3
    channel_output_shape = [
      output_shape[0],
      output_shape[1],
      output_shape[2],
      1]
  elif data_format == 'NCHW':
    channel_axis = 1
    channel_output_shape = [
      output_shape[0],
      1,
      output_shape[1],
      output_shape[2]]
  else:
    raise ValueError("Unsupported data_format: {}".format(data_format))

  filter_shape = filter.get_shape().as_list()
  if len(filter_shape) != 4:
    raise ValueError("Expected filter of dim 4, got filter shape: {}".format(filter_shape))

  conv_in_channels = filter_shape[2]
  if conv_in_channels is None:
    raise ValueError("Number of convolution input channels in filter (dim 2) " +
                     "must be known at compile time, got: {}".format(conv_in_channels))

  channel_multiplier = filter_shape[3]
  if channel_multiplier is None:
    raise ValueError("Channel multiplier in filter (dim 3) " +
                     "must be known at compile time, got: {}".format(channel_multiplier))

  # collect outputs for all input channeld
  c_outputs = []

  # create all operations in scope with name
  with tf.variable_scope(name):

    # regular conv2d_transpose for each input channel
    for c in range(conv_in_channels):

      # grab subset of value
      c_value = tf.gather(value,
        indices=list(range(
          channel_multiplier*c,
          channel_multiplier*c+channel_multiplier)),
        axis=channel_axis)

      # grab subset of filter
      c_filter = tf.gather(filter,
        indices=[c],
        axis=2)

      # run for this input channel
      c_outputs.append(
        tf.nn.conv2d_transpose(
          value=c_value,
          filter=c_filter,
          strides=strides,
          output_shape=channel_output_shape,
          data_format=data_format,
          padding=padding,
          name='channel{}'.format(c)))

    # concatenate outputs within variable scope
    output = tf.concat(c_outputs, axis=channel_axis, name='concat')

  return output

Hey, I'd like to work on this. Looks it still hasn't been done. Is that alright?


Better NPC Hightlight suggestions

Allow multiple tag styles in the right click menu at the same. The default NPC indicator plugin allows this and it's been a very useful feature. Although the commands also allow this, having the option to do it through the right click menu would be a bit more user friendly.

Add a toggle to the settings which changes whether NPC's added from the the click menu are added by name or ID. Same reasoning as above.

Loving the plugin otherwise. Thanks for mainting it :)

I would DIE for this!!!

Can we please implement this?


Initializing formal in parameter function type does not raise an error.

The language specification (15 Aug 2015, p29) specifies that 'It is a compile-time error if an initializing formal is used by a function other than a non-redirecting generative constructor'. However, dartanalyzer (1.18.0-dev.4.0) does not emit any error messages on the following class:
class C {
  var x;
  C(int g(this.x));
}

The initializing formal, this.x, is used to indicate that the function typed argument g takes one argument, so there is probably no way it could be given a meaningful semantics to allow this.

duplicate of #26860
Should be fixed in  https://codereview.chromium.org/2178123003


Remove self-referencing links for webhooks docs

Fix for Issue #4282; docs-only change.

Looks good. Thanks for the PR!


[Question] Multi entity insert (Insert object and contained object in different tables in one query)

Hi !
I'm currently discovering Moor for a professionnal project and I appreciate it. I've a question about the data insertion. Actually, I'm working with tabs which contains fieldsets, which contains fields etc..etc.. Should I insert tabs, fieldsets etc.. separatly or is there any way, with Foreign keys to just call a TabDao.insert and then insert all the structure with all datas in their own tables (created from .moor files) ?
Thanks !
KBZH

No, moor does not provide apis to insert multiple entities at once. There have been similar issues requesting moor to behave more like an ORM (https://github.com/simolus3/moor/issues/114 for instance). In general I view moor as a convenient yet thin wrapper around sqlite though, not as an ORM. Given the additional complexity that would be required to support those features well, in general I'm reluctant to work on them.
So long story short, you'll have to write that code manually. In practice its not that bad since you can essentially write an upsert for each table and then call those methods inside a transaction.


[Maint] Pin back to ubuntu-22.04 to fix CI

References and relevant issues
CI actions on ubuntu are failing, see: https://github.com/napari/napari/actions/runs/11295380512/job/31417980321?pr=7286
First reported: https://napari.zulipchat.com/#narrow/stream/212875-general/topic/Tests.20failing.20on.20Github.20linux-latest
Description
This is a work around for: https://github.com/tlambert03/setup-qt-libs/issues/65
ubuntu-latest got updated to 24.04 which is causing an issue with the GL libs.
This PR pins back to 22.04 so CI runs again while we sort out a proper fix, probably in setup-qt-libs

The --pre fails are due to zarr alpha

Hopefully this will be unneeded if https://github.com/tlambert03/setup-qt-libs/pull/66 works...

Closing, should be fixed upstream: https://github.com/tlambert03/setup-qt-libs/releases/tag/v1.8


Netlify template research

A/C
decision of what template we want to use that will allow us to:

get something up quickly
iterate over time
meets basic needs & resolves primary pain points

starting to look at templates here https://templates.netlify.com/

@vasavivempati93
Looked at a handful of the templates from the netlify library, i think one of these would work as a possible starting point. They both have Netlify CMS & Blog page types built in, and decent layout to start with...
https://templates.netlify.com/template/middleman-starter/
https://templates.netlify.com/template/bluise-nuxt-cms/

decision made from 20.04.14 meeting:

https://themeforest.net/item/jekyll-advance/23728497 is our suggested choice to start. looking into procurement solutions.
decision made b/c will accommodate lever, easy to get content in, we own netlify, responsive, has enough room to grow @vasavivempati93 @marieksmith feel free to comment if other pro's of this template

also support with paid template
looking at inspect element before procured

bought and paid. procured through cyndie. closing this.


inquiry about Myocardial Perfusion Dataset for Academic Research

Dear Author,
Greetings! I am a student specializing in medical image processing and I am very interested in your articles and experiments. I would like to inquire if the dataset is still available for application. I sent an email to apply for it last week, but I have not received a response yet.
Additionally, I would like to ask if you could inform me about any Myocardial Perfusion Imaging (MPI) datasets that have been published and are available for use. Your assistance would be greatly appreciated.
Thank you very much for your time and consideration.

Hi, thanks for reaching out. I have left the institute where I did this project and currently have no access or rights to distribute the dataset involved in this project. I personally suggest that you can contact the corresponding (last) author for any requirements about the dataset.


fix: improve type inference for array and reference methods

#159  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @pevisscher and the rest of your teammates on  Graphite


Completely outdated

While we all appreciate your effort, I think best would be to delete this repo. It is so outdated that E.T. called and wanted his code back. I get tons of out-to-date errors, a myriad of Babel Problems and to top it all of your repo is not consistent to your blog entry. I recommend either a complete overhaul or a take down. I learned a lot though by fixing all the problems, it took me 6 hours - oh my. My recommended solution for everybody that still want to try is to just take the package json out of this repo and completely ignore latest versions and ignore the steps in the blog entry, you will end up with latest libraries that will break this tutorial.

e.g., in order to concretise:

npm install --save-dev mini-css-extract-plugin
npm WARN optional Skipping failed optional dependency /jest-haste-map/fsevents:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of file-loader@* but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

I used this repo's package.json and the latest update in Part 3 of the Tutorial and get those messages. Maybe somebody can fork this repo, update everything to 2020 and then PR.


Fix slice normalization and length determination

Fixes https://github.com/alimanfoo/zarr/issues/93
Uses kenjutsu to handle a variety of tricky cases with Ellipsis, negative step sizes, negative indices, and standard cases as well. This simplifies the code, avoids a variety of bugs. Also this should avoid the need for normalizing each axis, but have not yet cut that code out.

Should add that I saw a lot of constraints on what kind of slices are permissible (e.g. step size). Am happy to add them back in.
Though some of them like an overly large slice are technically permissible both in vanilla Python and NumPy. Not to mention when provided with a slice and a shape, kenjutsu cuts these slices down to a proper size. So it shouldn't cost anything extra to just use them after they are reformatted/normalized.

Alright, I think this is ready for review.

Thank you, very helpful, and very nice that the new ellipsis tests are passing.
I'd like to mull this over for a bit. I've spent some time looking at the reformat_slices and reformat_slice functions in kenjutsu where the goodness happens. Mostly I can see what's happening but there are some bits I need to spend more time on.
I think I may bring simplified versions of these functions into Zarr as an interim solution. That way I can go through every line of code and get acquainted. This is such a critical piece of code I think I need to understand what every line is doing. Also I think it will help to have this functionality inside Zarr when working on fancy indexing, as fancy indexing will require some changes to these functions. But then ultimately when the dust settles from that, maybe consider factoring back out to kenjutsu.

Closing as superseded by indexing work #172.


Update README with endpoints for the different wallet address used in the project

Mention the some of the different endpoint that are being used
Also add reference to the backend-repo https://github.com/pramaths/onchainanalysis in the README
(⚠ Do not update anything else, just add anything that seems relevant and is missing currently)

I would like to take on this issue, Please assign this issue to me.

@aparna-u Sure, good luck.


Fix tracking rate

Details

Fix Rate formatting
Fixed Issues

$ https://github.com/Expensify/App/issues/6213
Tests and QA Steps
Action 1
Steps

In the Rate field, type any number that has less than 2 decimal places
Wait more than 3 seconds

Result
The number is formatted to 2 decimal places
Action 2
Steps

In the Rate field, type any number that has more than or equal to 2 decimal places
Wait more than 3 seconds

Result
The number is preserved
Tested On

[x] Web
[x] Mobile Web
[ ] Desktop
[ ] iOS
[ ] Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

@marktoman Just a reminder that I can't review this till you've added PR details and tested on all platforms.

@deetergp Updated

Thanks @marktoman.
Now I realize what's going on. You are saving the rate as 0.585 which makes perfect sense. But in order to normalize across several different kinds of currencies, we save our amounts in cents only, so we need to be saving the amount of fifty eight and a half cents as 58.5 but displaying it as 0.585 (zero dollars and fifty eight cents).
To illustrate, this:

Functionally ends up making expenses that pay out $0.0059 per km

Which would very likely end up upsetting anyone that tries to get reimbursed for their mileage. Does that make ~cents~ sense?

Do you experience different behavior than what the video shows? Otherwise, can you elaborate?
https://user-images.githubusercontent.com/47689923/153510352-c156452e-fdc1-42d3-a366-6176d08786d9.mp4

@marktoman What I am experiencing is the UI simply won't let me type 0.anything

@deetergp Strange, after running
git clone https://github.com/marktoman/fix-tracking-rate fix-tracking-rate
cd fix-tracking-rate
npm install && npm run web

, I tested both desktop and mobile and it behaves like my video.
Can you see errors on the console?

With the latest changes, I am not able to type anything with a leading decimal into the form. We specifically need to be able to add 0.585 since that is the 2022 default rate for the IRS.

@deetergp Is this unique to the latest commit? I have tested the first commit from scratch — no difference on my end.

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by @deetergp in version: 1.1.39-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by @timszot in version: 1.1.39-3 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


chore: bump rust version to 1.79

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

chore: bump rust version to 1.79

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

0 of 0   changed or added relevant lines in 0 files are covered.
85 unchanged lines in 7 files lost coverage.
Overall coverage decreased (-1.4%) to 70.318%

Files with Coverage Reduction
New Missed Lines
%

kclvm/api/src/service/jsonrpc.rs
2
0.0%

kclvm/query/src/selector.rs
2
87.41%

kclvm/tools/src/LSP/src/util.rs
2
44.2%

kclvm/third-party/serde_yaml/src/value/mod.rs
3
36.91%

kclvm/third-party/serde_yaml/src/mapping.rs
3
29.31%

kclvm/sema/src/core/symbol.rs
6
50.8%

kclvm/ast/src/ast.rs
67
74.57%

Totals

Change from base Build<PHONE_NUMBER>:
-1.4%

Covered Lines:
53399

Relevant Lines:
75939

💛  - Coveralls


add yacc file formatter

What problem does this PR solve?
Fix #670.
What is changed and how it works?
Use goyacc's parser to generate code from AST.
Check List
Tests

Unit test
Integration test

Code changes
Side effects
Related changes

LGTM


Update docs for changes to size add-on

Description
The code now uses comma separated params but the docs showed it without them. This updates the docs.

Hi @killion!
Thanks for the PR. This documentation is correct as-is. The comma was introduced in v5 (currently in beta), but these are the docs for v4.
We have our WIP docs for v5 at http://bourbon.netlify.com/docs/latest/, which has the comma. Once we ship the stable release, these docs will consume the ones currently living at http://bourbon.io/docs/.


Java-frontend: Fix class filtering in frontend

Some projects may include too much dependency libraries in their packaged jar files. This setting affects the effectivenes of frontend analysis on the project code as there are too much noise. This PR adds a feature to the java-frontend for filtering out classes that are not belongs to the target project. If the source directory of the target project is provided, the Java frontend will scan through that directory for a list of Java files. If a class is not in that list, it is skipped during the frontend processing.

This PR adds a new parameter to the frontend CallGraphGenerator. Default value has been set for both oss-fuzz-manager and run.sh of the java frontend.
For general oss-fuzz setup, the same default value are used in the oss-fuzz-manager, so this PR does not affect the oss-fuzz setup.
This PR does affect the auto-fuzz setup or other execution of the Java frontend through run.sh script. If the new --src parameter is provided, it will only process the classes exist in that directory. Otherwise the behaviour is same as before.


ORC-377: [c++] Add SnappyCompressionStream

What changes were proposed in this pull request?

A new BlockCompressionStream class was implemented for Snappy compression.
Why are the changes needed?

The C++ Writer doesn't support Snappy compression. This PR aims to fix that.
How was this patch tested?

The existing compression tests were copied and changed to use Snappy compression.
PR #282 aims for the very same thing, but it's not complete and inactive for a while now. The BlockCompressionStream has been introduced since it was opened, thus it was easier for me to start over from the current state and open a new pull request.
I hope it's not a problem that I've stepped in to add the functionality.

Thank you. I updated the JIRA for Apache ORC 1.7.0.


[Feature Request] Display code on the address page

[x] Display code on the address page like the resource.
[x] contract.resolve_module API to get the ModuleABI and display it.
[ ] Maybe We can use an individual page to display a module or resource

such as:

account module: https:://stcscan.io/main/address/0x1/code/Account
account resource: https:://stcscan.io/main/address/0xxxx/resource/0x1::Account::Account

#155

Maybe can refer to https://etherscan.io/token/0x12f28e2106ce8fd8464885b80ea865e98b465149#code


Documentation path with subfolders

Hi,
Thank you for this awesome repo.
I would like to ask please, I have the following dir structure:
nbs
└── project_name
├── sub_project_name
│   ├── notebook1.ipynb
│   ├── notebook2.ipynb
│   └── notebook3.ipynb
└── sub_project_name_2
Is it possible somehow to render it via Pages such that the notebooks would be rendered like

project_name (dropdown)

sub_project_name (dropdown)

notebook1
notebook2
notebook3

instead of

project_name (dropdown)

sub_project_name (dropdown)
-notebook1

project_name (dropdown)

sub_project_name (dropdown)
-notebook2

project_name (dropdown)

sub_project_name (dropdown)
-notebook3

If so, how?
Thank you,
Tamas

Are you referring to the side bar on the left? Is there any chance you could share a link to your repo?

I'm having this issue on my repo here:  https://github.com/bonding-curves/conding

Facing the sample problem. Even though on this website https://nbdev-mkdocs.airt.ai/0.5/ the problem seems solved (note: look at sidebar - not at page content)


Extend the Capture Frame/Image Actions to support Client Listeners

Clients should be able to add/remove Client Listeners to be notified when an image has been captured and saved to file.

need new data and callback typedefs to pass the image/file information to the client.
need services to add and remove the client's listener callback
clients will be notified from a thread executed in the main loop context - i.e. timer callback - so that the client may perform actions on/with the file. Examples

rename, move, etc.
use a Media Player with Image Source and Overlay Sink to overlay the image over the Pipeline's Window Sink
send the image in an email using the SMTP API (future release)

will move the file creation and save functionality to the timer callback thread as well.

/**
 * @struct dsl_capture_info
 * @brief Image capture information provided to the client on callback
 */
typedef struct dsl_capture_info
{
    /**
     * @brief the unique capture id assigned on file save
     */
    uint captureId;

    /**
     * @brief filename generated for the captured image.
     */
    const wchar_t* filename;

    /**
     * @brief directory path for the captured image
     */
    const wchar_t* dirpath;

    /**
     * @brief width of the image in pixels
     */
    uint width;

    /**
     * @brief height of the image in pixels
     */
    uint height;

} dsl_capture_info;

/**
 * @brief callback typedef for a client to listen for notification that an
 * JPEG Image has been captured and saved to file.
 * @param[in] info pointer to capture info, see dsl_capture_info struct.
 * @param[in] client_data opaque pointer to client's user data.
 */
typedef void* (*dsl_capture_client_listener_cb)(dsl_capture_info* info, void* client_data);

Update the Action types to support the add/remove
/**
 * @brief adds a callback to be notified on Image Capture complete.
 * @param[in] name unique name of the Capture Action to update
 * @param[in] listener pointer to the client's function to call on capture complete
 * @param[in] client_data opaque pointer to client data passed into the listener function
 * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_SOURCE_RESULT otherwise.
 */
DslReturnType dsl_ode_action_capture_complete_listener_add(const wchar_t* name,
    dsl_capture_complete_listener_cb listener, void* client_data);

/**
 * @brief removes a callback previously added with dsl_ode_action_capture_complete_listener_add
 * @param[in] name unique name of the Capture Action to update
 * @param[in] listener pointer to the client's function to remove
 * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_SOURCE_RESULT otherwise.
 */
DslReturnType dsl_ode_action_capture_complete_listener_remove(const wchar_t* name,
    dsl_capture_complete_listener_cb listener);

Done. needs docs


Removing local OAS doc copies, taking dependency on public OAS repo

Closing PR, files merged with PR 29.


How can i delete gdu

Please describe the problem you want to resolve clearly.

It depends on how you downloaded it. We might be able to help you if you clarify!


Build error because of spdm_version_number_t  type changed

Because  spdm_version_number_t have changed, the build error is found.
[ 89%] Building C object spdm_emu/spdm_requester_emu/CMakeFiles/spdm_requester_emu.dir/spdm_requester.c.obj
spdm_requester.c
C:\mywork\code\spdm-emu\spdm_emu\spdm_requester_emu\spdm_requester.c(143): error C2224: left of '.major_version' must have struct/union type
C:\mywork\code\spdm-emu\spdm_emu\spdm_requester_emu\spdm_requester.c(144): error C2224: left of '.minor_version' must have struct/union type
C:\mywork\code\spdm-emu\spdm_emu\spdm_requester_emu\spdm_requester.c(145): error C2224: left of '.alpha' must have struct/union type
C:\mywork\code\spdm-emu\spdm_emu\spdm_requester_emu\spdm_requester.c(146): error C2224: left of '.update_version_number' must have struct/union type
C:\mywork\code\spdm-emu\spdm_emu\spdm_requester_emu\spdm_requester.c(155): error C2224: left of '.major_version' must have struct/union type
C:\mywork\code\spdm-emu\spdm_emu\spdm_requester_emu\spdm_requester.c(157): error C2224: left of '.minor_version' must have struct/union type
C:\mywork\code\spdm-emu\spdm_emu\spdm_requester_emu\spdm_requester.c(159): error C2224: left of '.alpha' must have struct/union type
C:\mywork\code\spdm-emu\spdm_emu\spdm_requester_emu\spdm_requester.c(160): error C2224: left of '.update_version_number' must have struct/union type

Because the code is still old and still use the struct. We should update the code.
        spdm_version.major_version = (m_use_version >> 4) & 0xF;
        spdm_version.minor_version = m_use_version & 0xF;
        spdm_version.alpha = 0;
        spdm_version.update_version_number = 0;

Which version you are using?
The latest code is already changed.

Sorry. I use the latest code in my repo. But my repo don't sync from DMTF:main.  The issue can be closed.
Thanks.

Please always use latest tree, before you submit issue.


mate-ubuntu 16.04.1

mate-ubuntu 16.04.1, fresh install:
sudo ./X11rdp-o-matic.sh --branch devel --justdoit
...
Email-Address       : root@unknown
License             : apache
Package Name        : xrdp
Maintainer Name     : root
Version             : 0.9.0+devel
Package Type        : single
Date                : Mon, 15 Aug 2016 19:25:23 +0300
Done. Please edit the files in the debian/ subdirectory now.
Preparation complete. Building and packaging xrdp...
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: error: gain-root-commmand 'fakeroot' not found

apt install fakeroot solves the problem

Fixed in devel branch.


CSI data format

Hello,
I want to make sure the CSI data format.
For example, the csi data:
CSI_DATA,0,ac:67:b2:53:8f:31,-26,11,1,7,1,1,1,0,0,0,0,-88,0,13,2,51236189,0,66,0,384,1,"[66,32,4,0,0,0,0,0,0,0,3,0,15,0,15,-1,15,-1,15,-1,15,-1,15,-1,15,-1,15,-2,15,-2,14,-2,14,-2,14,-3,15,-3,15,-3,15,-3,15,-4,15,-4,15,-4,15,-4,15,-4,15,-4,15,-5,14,-5,14,-6,15,-6,15,-7,7,-4,15,-7,15,-7,15,-7,15,-7,16,-7,16,-7,16,-7,17,-7,17,-8,17,-8,17,-8,18,-8,18,-8,18,-8,19,-8,19,-8,19,-7,20,-7,20,-6,20,-6,20,-5,21,-4,20,-4,21,-4,21,-3,21,-2,5,-1,0,0,0,0,0,0,0,0,1,0,4,0,28,3,28,2,28,2,28,2,28,0,28,0,28,0,28,-1,28,-1,28,-1,28,-2,28,-2,28,-3,28,-3,28,-3,28,-4,28,-4,28,-5,28,-5,28,-6,28,-7,28,-7,28,-7,28,-8,28,-8,28,-9,28,-10,28,-10,28,-11,29,-11,29,-11,29,-12,29,-13,29,-13,30,-13,30,-14,30,-14,31,-14,31,-15,32,-15,32,-15,33,-15,34,-15,34,-15,35,-15,35,-15,36,-14,37,-13,37,-13,38,-12,38,-11,39,-10,39,-9,39,-8,40,-7,40,-5,40,-4,12,-2,2,-1,-1,0,-2,0,-1,-1,0,0,0,0,-1,-1,-1,-1,-1,-1,-4,5,-12,23,-13,23,-14,22,-14,22,-15,22,-15,22,-16,21,-16,21,-16,20,-17,20,-17,20,-17,20,-17,19,-18,19,-18,19,-17,19,-17,19,-17,18,-17,18,-17,19,-17,18,-16,18,-16,18,-16,18,-15,19,-15,19,-16,18,-15,19,-15,19,-14,19,-13,20,-13,19,-12,19,-12,20,-12,21,-12,21,-11,21,-11,21,-10,22,-10,22,-9,22,-9,23,-9,23,-8,23,-8,23,-8,24,-7,24,-7,24,-7,25,-6,25,-6,25,-5,26,-5,26,-6,27,-6,27,-5,27,-4,27,-1,3]"
sig_mode=1
secondary_channel= 2
bandwidth = 2
stbc = 1
len = 384
first_word =1
So, this data shall be

Then
LLTF: -64 ~ -1
HT-LLF: 0 ~ 63, -64 ~ -1
So, the first 64*2=128 bytes are LLTF, and the last (64+64)*2=256 bytes are HT-LLF?
And I have still a question that why so much channels are ignored in analisys_csi_data.py?
select_list = []
select_list += [i for i in range(5, 31)]
select_list += [i for i in range(33, 58)]
select_list += [i for i in range(66, 122)]
select_list += [i for i in range(123, 191)]
select_list.remove(128)

thx.

Another confusion is,
STBC or nonSTBC is it in this case?

Only multi-antenna devices will send data to include STBC. ESP32 does not support multi-antenna packet transmission, but it can receive data from multi-antenna devices.
Since we use ESP32 devices by default for testing, the script only deals with no STBC information

@zhanzhaocheng , so the data is actually nonSTBC information.
So, according to
LLTF: -64 ~ -1
HT-LLF: 0 ~ 63, -64 ~ -1

is this correct?
*the first 64*2=128 bytes are LLTF, and the last (64+64)2=256 bytes are HT-LLF?
thx again.

The received byte is 384, which is distributed in this way, but the range of different channels and bandwidths is different. Please refer to::https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html#wi-fi-channel-state-information

上面那个图就是从参考文档抓下来的。现在还不是特别清楚CSI的数据格式。
比如现在384个字节，那么就是192个复数数据。按照参考文档说的
LLTF有64个，HT-LLF有128个
那么是否这192个数据中，前面64个是LLTF，后面128个是HT-LLF？
另外在代码里面提到
select_list = []
select_list += [i for i in range(5, 31)]
select_list += [i for i in range(33, 58)]
select_list += [i for i in range(66, 122)]
select_list += [i for i in range(123, 191)]
select_list.remove(128)

为啥要这么选择呢？

Hello, @kingaza
Closing this issue, feel free to reopen with more updates. Thanks.


Using "Value::named" search for call to "os.path.join" not working

CodeQL version 2.1.0
from rest_framework.viewsets import ModelViewSet
from rest_framework.exceptions import ValidationError
import os
from rest_framework.decorators import list_route

def func1():
    pass

def preprocess(request):
    pass

class TestViewSet(ModelViewSet):
    base = "111111"
    @list_route(methods=['post'])
    def upload(self, request):
        try:
            var1 = func1()
        except:
            raise ValidationError({'message': [_('1,1')]})
        if var1['1']:
            raise ValidationError({'message': [_('1,1')]})

        (upload_file, file_name) = preprocess(request)
        path1 = base.RELATED_DIR['11111111']
        if not os.path.exists(path1):
            os.makedirs(path1)
        path2 = os.path.join(path1, file_name)

Query:
import python
from ControlFlowNode c
where Value::named("os.path.join").getACall() = c
select c

Expect result:
Can find the call to "os.path.join" on the last line
Actual result:
Just show 2 call in the python lib
Is this a bug or am I doing this in the wrong way?

Hi, my apologies for not replying to this sooner.
As far as I can see, everything you're doing is correct. I will try to see if I can reproduce this problem locally and figure out why the call isn't picked up correctly. :thinking:

So I spent some time debugging this, and I have an explanation for the behaviour you're seeing.
First, to pinpoint exactly where the problem lies, I tried inserting calls of the form os.path.join("foo") at various places in the source code, and then reran your query to see which of these were picked up. This revealed that everything below
        if var1['1']:

was missing from the analysis.
To figure out what's going on, let's first look at the possible values for var1:
import python

from NameNode n, Value v
where n.pointsTo(v) and n.getId() = "var1"
select n, v

This results in the following output
| test.py:24:12:24:15 | ControlFlowNode for var1 | file://:0:0:0:0 | None |

This means our analysis has inferred that var1 will have the value None on line 24 of the input file (which I named test.py).
Now, here's the issue: For our analysis, asking for a subscripted value of None is nonsensical -- None does not allow subscripting. This in turn means that our analysis cannot assign any value to the expression var1['1']. Because of this, the analysis assumes everything that follows is unreachable, and prunes it from further analysis. This is not entirely unreasonable, since if you were to attempt to run the above code, it would throw an exception at the var['1'] line (or possibly earlier), and so the code that follows is indeed not executed.
If instead we try changing the implementation of func1 to, say, return list_route, then the value of var1 is unknown, and so the analysis concludes that neither branch of the if can be pruned (and hence proceeds with analysing and locating the call to os.path.join that you were interested in).
Note that this depends somewhat on your local setup. If the import of rest_framework cannot be resolved, the analysis treats it as a "missing module", and treats any attributes of this module as having some "known unknown" value. If the import is resolved correctly, then the behaviour depends on the implementation of list_route. (After all, the module may set it to some value that isn't subscriptable, in which case we may end up in the same situation as above.)
I hope this explains the behaviour you encountered!

Thanks very much for the detailed explain! This piece of code is from one of my old blog. The code is really old and complex. So I extracted more code and change the list_route to api_view as I am current using the latest version of django rest.
# coding=utf-8
import os

from os.path import join
from rest_framework.viewsets import ModelViewSet
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework.exceptions import ValidationError

GLOBAL1 = "type"
GLOBAL2 = "filename"

class ClassA():
    def __init__(self):
        self.a_config = {"1": 1, "2": 2, "3": 3, "is_expired": True}

    def is_expired(self):
        return False

class ViewSetA(ModelViewSet):

    @api_view(['GET', 'POST'])
    def upload(self, request):
        try:
            info = func_1()
        except:
            raise ValidationError({'message': [_('message1')]})
        if info['is_expired']:
            raise ValidationError({'message': [_('message2')]})

        (var1, var2) = _preprocess(request)
        path1 = '/var/tmp'
        if not os.path.exists(path1):
            os.makedirs(path1)
        file_path = os.path.join(path1, var2)
        file_path = join(path1, var2)

def func_1():
    a = ClassA()
    info = a.a_config
    info.pop("1")
    info["is_expired"] = a.is_expired()
    return info

def _preprocess(request, type=GLOBAL1, pkg_type='linux'):
    try:
        upload_file = request.FILES['file']
    except:
        raise ValidationError({'message': [_('message2')]})

    file_name = upload_file.name.lower()
    if type == GLOBAL1:
        if not file_name.endswith('.zip'):
            raise ValidationError({'message': [_('message3')]})

        file_name = GLOBAL2
    if upload_file.size > 200 * 1024 * 1024:
        raise ValidationError({'message': [_('message4')]})
    return (upload_file, file_name)

Now the func_1 returns a dict and the api_view can be correctly resolved. The query in the beginning can correctly find "file_path = join(path1, var2)", but the query still cannot find the " file_path = os.path.join(path1, var2)"


MRG: Add temporal derivative distribution repair algorithm

Reference issue
As discussed in #7057
What does this implement/fix?
Adds temporal derivative distribution repair (TDDR) technique.
Adds new example showing how to apply nirs artefact correction (with plan to expand as new methods are implemented).
Additional information
I have taken the code directly from the author with permission.
I have kept the code as close to the original from the author as possible, and then used a wrapper function. I did this as the code was very nice. Also if the upstream version changes it is then easier to move the changes here.

Thanks for the early feedback @agramfort.

@larsoner could you please review again. I think I made all your suggested changes and the CI segmentation error looks unrelated.

... also needs a rebase

@frankfishburn this code is ready to be merged in to MNE. You mentioned you probably wouldn't have time to take a look, but this is just an FYI.

Thanks @agramfort

Thanks @rob-luke


Rotation Rz translation from Yao to PastaQ is incorrect

Good morning,
I just wanted to report a simple bug that I have found in YaoPastaQ.jl :
The rotation Rz  is mapped from Yao to PastaQ as
genlist!(plist, blk::RotationGate{1, Float64, ZGate}, locs, controls) = push!(plist, ("Rz", locs[1], (ϕ = blk.theta,)))

but in PastaQ.jl  the gate is defined as
gate(::GateName"Rz"; ϕ::Number) = [
  exp(im * ϕ / 2)  0
  0          exp(-im * ϕ / 2)
]

I think this can easily be solved with
genlist!(plist, blk::RotationGate{1, Float64, ZGate}, locs, controls) = push!(plist, ("Rz", locs[1], (ϕ = -1*blk.theta,)))

or something similar.
The others single qubit rotations (Rx,Ry) are well defined.

Thanks for the issue, however, I believe this needs upstream PastaQ to change the definition instead of on our side.
The rotation gates are defined as general rotation on given operators in Yao, as pointed out by @VarLad in Yao, rotation gates are defined by
\mathbf{I} cos(θ / 2) - im sin(θ / 2) * mat(U)

instead of a specific case, and for Rz you will find Yao's Rz is the same as qiskit
https://qiskit.org/documentation/stubs/qiskit.circuit.library.RZGate.html
tho, a global phase doesn't matter for single-qubit gates, I believe for the sake of consistency we might want to report to PastaQ about this.

I agree that is more consistent how it is defined in Yao, since every rotation has the same convention.
Regards.

I think now PastaQ updated its definition, @VarLad got time to double-check if that fixes this issue? then we could close this

@Roger-luo Looks good to me :)


Docs.MS CI Updates for Azure.DigitalTwins.Core

CI Update for release of Azure.DigitalTwins.Core

Docs Build status updates of commit ba59840:
:clock10: Pending: waiting for processors (12 builds ahead of you)
:warning: Docs Build is busy, currently there are 12 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit ba59840:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

bundlepackages/azure-dotnet.csv
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Problems using the queryBuilder with prefix queries.

I am having trouble to build a query using that library. In the empty node I just have a disjunct.
       Node empty = disjunct("browsers", value("browsername*"));
       result = union(empty, whiteScenary, blackScenary);
When i build the query i get the following...
(-@browsers:browsername*|(@browsers:browsername_chrome))

This is not finding anything, it just finds when I add the parenthesis sorrounding the disjunct part.
((-@browsers:browsername*)|(@browsers:browsername_chrome))

Is there any way we can fix this to continue using the queryBuilder?

@pinkfloydsito At this moment, this is the way to do. And this is happening in RediSearch. JRediSearch alone can't resolve this.


elasticsearch-model/README - update index_document with _elasticsearch...

I was trying to add re-indexing hooks to my program, by following the elasticsearch-model/README, and was getting the error (undefined local variable or method `index_document'). I changed the example to this (see below) and things worked as expected:
    after_commit on: [:create, :update] do
      __elasticsearch__.index_document
    end

    after_commit on: [:destroy] do
      __elasticsearch__.delete_document
    end

I wondered if the README needed updating? If so, I have added this pull request.

@RichardWigley Yeah!, that's true -- can you please sign the CLA so I can merge the contribution?

I googled elasticsearch and CLA and signed a CLA - I hope that is what was required.

@RichardWigley You've found the correct thing :) -- commit merged, thanks!


Add netwok tags support to the organization module

networks_tags, pretty please? network_tags might cause confusion, but tags_network is worse IMO.
And now that we're on it, the existing tags could be renamed to resource_tags?

Don't have an opinion on it @juliocc. I've just used tags_network to keep them closed in alphabetical order, but I'm fine either way.
Let me rename tags_network to network_tags in this patch, and then create another one to rename resource_tags, so we keep the scope of the PR small.

Done.