Support for delayed message delivery

Scheduled and delayed message delivery is a good feature to support in pulsar.  Basically individual message can have a header which will be set by publisher and based on the header value the broker should hold message in queue.  Upon the interval is over message should be delivered to subscribers

Is any idea to implement this feature?  I'm interest to join the discussion of design and contribute for this feature.

This is an excellent feature we heavily depend on the current messaging system.

I so wait for this

@pmwqld

We would like to use such a feature to implement an AUTO Dead Letter Queue (DLQ). Any messages that cannot be processed from the main topic can be sent to the AUTO DLQ topic and only become "visible" after a particular time depending on the retry and backoff algorithm.

I think if all messages with the same delay time in the topic, use Dead Letter Queue can match this scene. otherwise the dispatcher logic in broker and limited by the receive queue will affect the delay result.

Delayed message redelivery feature based on expose redelivery count to client. #3030

mark ,the feature have finished ??

@Ah39 PR #3033

@Ah39 it is not completed yet. there is an ongoing PIP for it.

Getdelivery count does not cover all the use cases. We are pushing the logic to determine whether the delay has expired to the client(Implementing this in all the client languages will be repetitive & some language clients may not even get this feature implemented).  If the broker sends the message to the client after the expiry of the delay then it would be simple and straightforward to remember.

@sijie is there any link to the PIP definition to share?

@skyrocknroll<EMAIL_ADDRESS>this is the discussion thread.

Awesome @sijie 👍 💥


Update based on 4 TB blob size support

Now that blobs can go up to 4 TB, we can push all the way to the maximum disk size supported by the Gen1 VMs in Azure.

@MikeBazMSFT,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@MikeBazMSFT : Thanks for your contribution to the Azure documentation! The author, @azdocprs, has been notified to review your proposed change.

@iainfoulds - Please review these proposed changes. Thanks

Thanks for your PR. This has already merged as part of your previous PR - https://github.com/MicrosoftDocs/azure-docs/pull/2719
I think is now generating a merge conflict as a result. This can likely be closed out.

@MikeBazMSFT @iainfoulds - Please add an appropriate comment so that automation can take the corresponding action. Thanks

#please-close as duplicate of previous PR that has already merged.


Ability to check the Status of ExpressVPN

If possible, could you add a "status" option so we can check the status of the connection?
The result returned could be:

Connected to [location]
Disconnected

After working with Expresso a little, I see that rerunning expresso connect will give you a status. However, this connects ExpressVPN if it isn't already connected. I'd like the ability to get the status only.

A status feature would be fantastic! Thanks for making this sttz!

What's your use case, just directly using expresso on the command line or using it with something else?

I just made a shortcut from the bat file to the desktop. Just for an easy toggle on or off.


UserAgent: Remove direct version

The direct version should not be included in the .NET v3 user agent. The direct is not done via a nuget reference so it is not necessary. This has caused a lot of confusion for customers and has not been used in any scenarios.
Current example:
cosmos-netstandard-sdk/3.26.1|3.27.2|1|X64|Microsoft Windows 10.0.22000|.NET 6.0.4|N|
The 3.27.1 should be removed. This can also be figured out from the release branch.
Updated:
cosmos-netstandard-sdk/3.26.1|1|X64|Microsoft Windows 10.0.22000|.NET 6.0.4|N|

Needs to be removed from: https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos/src/UserAgentContainer.cs


DxScheduler: custom cell duration for a view not working

I tried to specify a custom cell duration for a view like this (devextreme-angular 16.2.4):
<dx-scheduler>
    <dxi-view type="workWeek" cellDuration="15"></dxi-view>
</dx-scheduler>

The rendered view has a cell duration of 15 minutes, but the size of the appointments do not change. They are still rendered as if the view has a cell duration of 30 minutes.
Full working example: Link

The issue is not related to the Angular integration. I have created a corresponding ticket in our Support Center.


VARCHAR(MAX) creates an error when Trigger is generated

A VARCHAR(MAX) becomes like:
DECLARE @modifiedRecordsTable TABLE ([RowNumber] INT IDENTITY(1, 1), [Note] VARCHAR(-1) ....

Hello @ronnysolheim, the issue should be moved to this repository: https://github.com/IsNemoEqualTrue/monitor-table-change-with-sqltabledependency. Thanks.


Any chances add "d3d9.enableDialogMode = True" for dx11?

Windows 10 x64
Nvidia 552.22
add borderless mode for vulkan on dx11 games.

In some games, you can't set the borderless mode for vulcan, the settings in game not work.
"Valheim" work on exclusive fullscreen - (X)
"Tribes of Midgard" work on borderless for game settings- (V)

Not entirely sure what you mean? The problem that the dialogue mode option solves literally does not exist in D3D11.

This command allows you to run the application in bordeless fullscreen instead of an exclusive full screen on dx9.
In dx11 applications, vulkan is launched in exclusive full screen mode in most cases. If it is possible to launch a vгlлanoin borderless mode, I would like to use it.

Not entirely sure what you mean? The problem that the dialogue mode option solves does not really exist in D3D11.

How about making "VK_EXT_full_screen_exclusive" controllable from a config file? Name it dxvk.AllowExclusiveFullscreen, (Auto/True/False).

The extension is a Windows only thing fwiw which is not officially a target platform.

lextra2
No.
Vulkan ignores the game settings and always uses the exclusive full screen in some games (black scren when Alt+Tab), in others it uses the game settings and runs in exclusive and Borderless mode (good games)


Update RedisCluster.php

add the sixth parameter $auth to __construct()

Hey, @zgia, would you please provide fixes according to review?


Cannot set localAddress to IPv6

Hi, I'm getting a bind EINVAL error but only when attempting to connect to Google. Do you have any insight as to why this might be happening?
Here's my error:  { [Error: bind EINVAL 2604:a880:1:20::27:a000]   code: 'EINVAL',   errno: 'EINVAL',   syscall: 'bind',   address: '2604:a880:1:20::27:a000' }
When I connect to icanhazip.com it shows the correct IP. It is only Google that has this error and only with this library (I got it working with localAddress using the standard http library, and got it working from PHP as well)
Here's my proof of concept code:
var request = require('request');
var opt = {
url:'http://icanhazip.com',
// doesn't work: url:'https://www.google.ca/search?q=what+is+my+ip+address',
timeout:5000,
headers:{
	//'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.10 Safari/537.36',
}};
opt.family = 6;
// Works fine if the following line is removed:
opt.localAddress = '2604:a880:1:20::27:a000';
request(opt,function(error, response, data) {
	if (!error && response && response.statusCode == 200 ) {
		console.log(data);
	} else {
		if ( response ) console.log(response.statusCode);
		console.log(error);
	}
});

Something really interesting is that if I comment out the opt.localAddress line and just let it use opt.family = 6 then it will work, and with the same exact interface that I'm trying to set localAddress to. But if I attempt to set localAddress (and again, only when trying to connect to Google) then it will come up with the bind EINVAL error.
I highly suspect that it's not a bind EINVAL error because I can connect to it using standard http library and from command line and PHP using this interface. I really would like to use this library more than others. Please help me! :+1:

Update: This only happens when attempting to set localAddress while using https. Out of your control, so reporting to node foundation


Add autoload for test modules

Related #3238

Add autoload for test modules
Move TestHostCS.psm1 to 'test\tools\Modules' folder (later we shall move the remaining modules)
Remove explicit load TestHostCS.psm1 from test files

cc @PowerShell/area-test  for review

@PowerShell/area-test, Does anyone have any comments here.  I left one comment on what  @iSazonov should change if we take this and one about what is wrong with making this change.

@TravisEz13 Is The PR ready to merge?


Bugfix 1237 - update Remediation strategy description

Removing the mention of "NodeDeletion" Strategy
As part of ECOPROJECT-1237 updating the description so it'll be clearer to the user as to why OutOfServiceTaint strategy can't be selected.

Note: This isn't planned for SNR 0.6.0

/override ci/prow/4.13-openshift-e2e
/override ci/prow/4.12-openshift-e2e
/override ci/prow/4.11-openshift-e2e

/lgtm


Add b=0 scan from the DWI sequence as a new contrast for training model

The b=0 volume from the DWI series looks like this:

It would be nice to add it for training the contrast-agnostic model. We could use the same GT as the one for the mean DWI scan.

Apologies for not following up on this! Seems that this suggestion has indeed been incorporated and our final dataset does include DWI images for training.

B0 is not the same as the DWI data. It is without the diffusion gradients, we also have the data. But we did not follow up on this, could be done for the active learning and second super model!

oh my bad! reopening then


[SPWebApplication] Resource does not update the web application once it is created

Details of the scenario you tried and the problem that is occurring
Once the web application is created, the resource never checks any of the parameters anymore. At least the DatabaseName (what if the specified database doesn't exist anymore) and ApplicationPool should be checked and corrected.
Verbose logs showing the problem
Suggested solution to the issue
Add logic to check the two mentioned parameters
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here

The operating system the target node is running

Version and build of PowerShell the target node is running

Version of the DSC module that was used
dev

Included in my next PR


Issue Android 5.0 Lg LEON

I'm using your code but i have a problem with this kind of smartphone when configure the video encoder
The error is this

12-20 13:11:49.410 5781-5817/ I/OMXClient: Treble IOmx obtained
12-20 13:11:49.423 5781-5817/ E/ACodec: [OMX.google.h264.encoder] configureCodec returning error -38
12-20 13:11:49.424 5781-5817/ E/ACodec: signalError(omxError 0x80001001, internalError -2147483648)
12-20 13:11:49.424 5781-5816/ E/MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 3
12-20 13:11:49.425 5781-5801/ E/MediaCodec: configure failed with err 0x80001001, resetting...
12-20 13:11:49.433 5781-5817/com.humaneyes.filesave I/OMXClient: Treble IOmx obtained

So i have removed this line from MediaCodefFactory

mediaFormat.setInteger(MediaFormat.KEY_PROFILE, MediaCodecInfo.CodecProfileLevel.AVCProfileBaseline)

The encoder was created but then the code stucks on this line

while (decoderOutputIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED
|| decoderOutputIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {
decoderOutputIndex = decoder.dequeueOutputBufferInfinite(bufferInfo)
}

@FunnyDevs can you check latest repository version https://github.com/CherryPerry/VideoCrop/commit/fdd934ea3c8c302df66e97317f3b8d5371f4ea1a?

not yet, i'll try it in the next few days


Convert TagValueSeriesIDCache to use string fields

Backport of https://github.com/influxdata/influxdb/pull/11829

This should also close #11639


Improve the behavior of toggle-visibility

On line https://github.com/oddbird/css-toggles/blob/main/index.js#L119 we are setting the css visibility property to either hidden or visible, which doesn't quite do what we need, since the element boxes still render as part of the layout.
The simplest way to avoid rendering the box would be to use display:none instead. That would give the expected layout behavior, and might be a good temporary fix. For the sake of a11y, we really want something more like content-visibility: auto, but in this case:

the hidden content remains available in the DOM
but the box is not rendered unless it's 'needed'
if you move focus into the content via tab or link, or if you 'turn on' the toggle, it becomes needed
if it becomes needed while the toggle is off, turn the toggle on

I think we could achieve something close to that by making data-toggle-visibility work more like a visually-hidden but focusable element, eg:
[data-toggle-visibility='hidden']:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

It might make sense for the focus-management/link-target management to live in JS, since that should also trigger a change in the toggle state - but this approach to hiding content will (mostly) eliminate the box, without removing elements from the dom.

@mirisuzanne let me know what you think of 277b49695d5432948e773b2784eb09fd4a9b380f

Nice! This is great for the demo.
If we want to take it farther, the next step might be actually updating the toggle state if the content becomes visible because of focus, in-page search, or linking? But I'm not sure that needs to be a high priority at this point?

Right now it seems like keyboard users are unable to skip hidden content because it always opens up if it has focusable elements inside. I think we should follow what <details> does: content remains unfocusable while tabbing until the element is opened, but <details> opens automatically on search and anchor-linking. What do you think @mirisuzanne?

Yeah, that probably makes sense. Is that something we could do with e.g. inert?

It looks like inert will also prevent searching (docs):

The browser may also ignore page search and text selection in the element.

I'm surprised browsers still don't support it though, I remember hearing about for a couple years now

Did a bit of research on this and it looks like there's no way of knowing (in JS) when a user is searching for something on a page. We could try to be clever and do some sort of Ctrl+F detection but that seems out of the scope of this project and very fragile. On the other hand, with a couple of event handlers we could detect anchor-linking and expand toggles based on that.
For now my proposal is to add visibility: hidden to the injected styles to more closely match the behavior of <details>.

I think our default, if we don't have a way of adding additional magic/a11y features around it, should be display:none. I think that could replace what we have entirely, if the current approach is wrong.
I'm not sure what advantage we get from visibility:hidden. As far as I understand, they have the same a11y implications (removing elements from the a11y tree), but display:none also removes the box from the page -- which we want.

You're right, display: none is the way to go here. I left it as an injected stylesheet instead of inlining it for authors to override it with more specific selectors if required. See 718d364b3dbbba4f6e006e7b5e5e9794592841cf


Docusaurus 2.0.0-beta.0, dynamic imports using backticks not working

🐛 Bug Report
Prerequisites

[x] I'm using the latest version of Docusaurus.
[x] I have tried the npm run clear or yarn clear command.
[x] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[x] I have tried creating a repro with https://new.docusaurus.io
[x] I have read the console error message carefully (if applicable)

Description
I recently installed the docusaurus starter project using npx @docusaurus/init@latest init my-website classic and i tried using dynamic imports with the loadable/component package using backticks to dynamically import different SVG files, but it is not working, when I add a static path without backticks it works.
Have you read the Contributing Guidelines on issues?
Yes
Steps to reproduce
A fork showcasing the issue: https://codesandbox.io/s/great-wright-gzyb7?file=/src/pages/index.js
Currently the svg is shown without dynamic imports.

Comment the IconNormal component
Uncomment the Icon component
The error appears

Expected behavior
It should show the image in the same way as non-dynamic imports work
Actual behavior
It throws an error that the svg could not be loaded
The above error occurred in the </assets/images/undraw_docusaurus_mountain-92989bc69aed8241aa3f59b1477f0e56.svg> component:

    at /assets/images/undraw_docusaurus_mountain-92989bc69aed8241aa3f59b1477f0e56.svg

    at InnerLoadable (webpack-internal:///./node_modules/@loadable/component/dist/loadable.esm.js:167:34)

    at LoadableWithChunkExtractor

    at Loadable

    at div

    at div

    at header

    at HomepageHeader (webpack-internal:///./src/pages/index.js:13:517)

    at div

    at DocsPreferredVersionContextProviderUnsafe (webpack-internal:///./node_modules/@docusaurus/theme-common/lib/utils/docsPreferredVersion/DocsPreferredVersionProvider.js:16:745)

    at DocsPreferredVersionContextProvider (webpack-internal:///./node_modules/@docusaurus/theme-common/lib/utils/docsPreferredVersion/DocsPreferredVersionProvider.js:16:387)

    at UserPreferencesProvider (webpack-internal:///./node_modules/@docusaurus/theme-classic/lib-next/theme/UserPreferencesProvider/index.js:14:157)

    at ThemeProvider (webpack-internal:///./node_modules/@docusaurus/theme-classic/lib-next/theme/ThemeProvider/index.js:13:142)

    at LayoutProviders (webpack-internal:///./node_modules/@docusaurus/theme-classic/lib-next/theme/LayoutProviders/index.js:14:30)

    at Layout (webpack-internal:///./node_modules/@docusaurus/theme-classic/lib-next/theme/Layout/index.js:21:33)

    at Home (webpack-internal:///./src/pages/index.js:13:1470)

    at LoadableComponent (webpack-internal:///./node_modules/@docusaurus/react-loadable/lib/index.js:1:2843)

    at Route (webpack-internal:///./node_modules/react-router/esm/react-router.js:464:29)

    at Switch (webpack-internal:///./node_modules/react-router/esm/react-router.js:670:29)

    at Route (webpack-internal:///./node_modules/react-router/esm/react-router.js:464:29)

    at PendingNavigation (webpack-internal:///./node_modules/@docusaurus/core/lib/client/PendingNavigation.js:18:180)

    at C (webpack-internal:///./node_modules/react-router/esm/react-router.js:725:37)

    at Root (webpack-internal:///./node_modules/@docusaurus/core/lib/client/theme-fallback/Root/index.js:18:16)

    at App (webpack-internal:///./node_modules/@docusaurus/core/lib/client/App.js:23:94)

    at Router (webpack-internal:///./node_modules/react-router/esm/react-router.js:93:30)

    at BrowserRouter (webpack-internal:///./node_modules/react-router-dom/esm/react-router-dom.js:59:35)

Consider adding an error boundary to your tree to customize error handling behavior.

Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

Your environment

Public source code:
Public site URL:
Docusaurus version used: 2.0.0-beta.0
Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 14.17.0):
Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Reproducible demo
Demo at: https://codesandbox.io/s/great-wright-gzyb7?file=/src/pages/index.js
-->

Thanks
We use react-loadable component (and not @loadable/component) internally, but this is an implementation detail and we don't propose any way to use dynamic imports in your React app so far. This is not something we support and we'll wait for REact 18 for that.
Also we use webpack/svgr to turn svg files to React components. I'm not sure this loader even support a wildcard in dynamic imports. By logging await import(../../static/img/${name}.svg) you can see that it returns an URL, not a React component anymore, which does not surprise me much.
You are doing fancy things here, and Docusaurus never claimed to support what you are trying to do, so I consider it not a bug.
If you feel it should be supported, please open a canny feature request, and also provide a vanilla webpack project using dynamic loading of SVGs as a proof this is even possible. It is not for me a high-priority to support such feature in Docusaurus.

I tried with react-loadable, it still gives the same error, this only happens when using backticks in import.
Dynamic imports are supported by webpack, it is automatically available to use in Create React App with both react-loadable and @loadable/components, i was thinking it would be the same case with docusaurus.

Dynamic imports are supported by webpack, it is automatically available to use in Create React App with both react-loadable and @loadable/components, I was thinking it would be the same case with docusaurus.

Dynamic imports are supported by Docusaurus, and we use them internally and it's not directly related to React loadable libs.
I don't think the backticks is the problem, but rather the ${name} inside the dynamic import string.
Have you been able to use exactly the same (dynamic imports + string template module + backticks + SVGR) in CRA? Please show me a sandbox of that, as a proof other envs support this.


SpriteWidget.srcPosition and srcSize are not really used

What happened?
SpriteWidget class imitates Sprite and has two fields  srcPosition and srcSize.
Those are not used though, what matters are the fields inside the Sprite instance that it holds.
What do you expect?
We should remove those fields from SpriteWidget to avoid confusion.
How can we reproduce this?
No response
What steps should take to fix this?
No response
Do have an example of where the bug occurs?
No response
Relevant log output
No response
Execute in a terminal and put output into the code block below
Output of: flutter doctor -v
Affected platforms
All
Other information
No response
Are you interested in working on a PR for this?

[X] I want to work on this

They only seem to be present on the asset constructor and there they are used?

Yeah, they kinda are, but then on the asset constructor we can just transform them into constructors argument, they don't need to be fields

Those two fields in the default constructor just made me stare at my game for around 5 minutes trying to understand why my sprite was being rendered messed up hahah

But they aren't fields, and they aren't on the default constructor, are we really looking at the same class? :sweat_smile:
  /// renders the [sprite] as a Widget.
  ///
  /// To change the source size and position, see [Sprite.new]
  const SpriteWidget({
    required Sprite sprite,
    this.anchor = Anchor.topLeft,
    this.angle = 0,
    this.errorBuilder,
    this.loadingBuilder,
    super.key,
  }) : _spriteFuture = sprite;

Oh, this was removed in the last version 😅
https://github.com/flame-engine/flame/commit/f49d24c02dd0d9b781926908bad1fb6dfcbda5f2


shooting signatures from Peter Beshai

These could be used for lots of purposes outside of basketball https://gist.github.com/pbeshai/ffd0f9d84b4e8df27db2

+1 for this one.  After September, I could try to help if you'd like

these are super cool, and so nice looking

@kferris10 and @Cat1796 I have sort of held off on these, since I didn't want to just copy the author's work for basketball.  I'd love some help thinking of non-basketball use cases and then I could get much more motivated to write a htmlwidget wrapper.

I imagine that sort of spatial or temporal data would work well.  I'll try to think of a couple of ideas outside of sports today.

So this is a really dorky example with some data I found by googling "repeated measures data."

Then what I think would be cool would be shooting signatures like this plot.  If we ignore the fact that this doesn't look very nice and that I cheated by using CO2 concentration twice, what I think would be cool would be something with a little reactivity.  I think that it would be possible to make the signature, then have something like a shiny input to toggle the selected plant ID.
x %>%
  filter(plant_id == 1) %>%
  qplot(time, co2_uptake_rate, data = ., geom = "line", group = plant_id,
      colour = co2_concentration, size = co2_concentration)

At work, I often want to make a plot like this for 10 or 20 different people.  As far as I'm aware, the easiest way to do this is through a Shiny app.  But even that's kind of a pain and it's difficult to share with people if you don't want to post stuff online.  This would be a nice solution.  Even in the basketball example it would be great to just click a box and change the shooter.
Anyways, hope this makes some sense.  And sorry I wrote a novel.  I can put together some more examples if you're interested.

This is great.  Thanks so much for the effort.  I'm sold.  I won't be able to work on it until next week, but would think could get it up and running in a very short amount of time.

Forgot to reply, but that sounds great.  If you need some ideas for examples, let me know.  I'm sure that I can find something.

I started working on this at https://github.com/timelyportfolio/shotsignR.  By the end of the day, I hope it will be flexible enough to recreate your example.


[2.7] Updating the build.gradle and Install for the release

Is your feature request related to a problem? Please provide an existing Issue # , or describe.
Updating the build.gradle and Install for the release
Describe the solution you are proposing
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #341 (f421bc1) into 2.7 (7cfd23d) will decrease coverage by 0.10%.
The diff coverage is n/a.

:exclamation: Current head f421bc1 differs from pull request most recent head e42d6c1. Consider uploading reports for the commit e42d6c1 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff              @@
##                2.7     #341      +/-   ##
============================================
- Coverage     72.82%   72.72%   -0.10%
+ Complexity     3046     3041       -5
============================================
  Files           381      381
  Lines         19013    19013
  Branches       1472     1472
============================================
- Hits          13846    13827      -19
- Misses         4572     4588      +16
- Partials        595      598       +3

see 6 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Support for custom Processors, Inputs and Outputs?

Can this be done without having to pass my inputs into the benthos project itself?

Hey @ekarlso, yes but the documentation for plugins isn't in a good place quite yet. There's an example repo of an input plugin here: https://github.com/Jeffail/benthos-plugin-example, and processors and outputs are basically the same API.
You can either compile your own version of Benthos with your plugins compiled in, or alternatively you can compile your plugins as a Go plugin and link Benthos to it. There's an open ticket containing some ways of doing this with docker here: https://github.com/Jeffail/benthos/issues/148

But can I load it in when configuring benthos via pure go code instead of yaml ?

Sure, in that case you would do something like:
inputConf := input.NewConfig()
inputConf.Type = "your_custom_type"

When using the stream API: https://godoc.org/github.com/Jeffail/benthos/lib/stream

@Jeffail I tried this
I build the plugin, I copy the influx_output.so to /usr/lib/benthos/plugins
I have configured
influxOutConf := output.NewConfig()
influxOutConf.Type = "influx"
And then I just "go run" my program and it crashes with
panic: output type was not recognised
goroutine 1 [running]:
main.main()
/home/ekarlso/projects/backend/cmd/streamer/main.go:57 +0x591
exit status 2

Hey @ekarlso, if you're using Benthos as a framework and you're defining your own main function then you don't need to use Go plugins, just include the code for your custom components and they will be compiled in. You only compile components to a .so file if you want to include them in a prebuilt version of Benthos.
In your main function have an include like this:
import (
    _ "path/to/your/plugin/package"
)

@Jeffail but how do you configure the plugin then ?

It depends on how you've written your plugin, but usually it would be something like this:
plugConf := yourplugin.NewConfig()
plugConf.Foo = "bar"

influxOutConf.Type = "influx"
influxOutConf.Plugin = plugConf

I've written it like the one you have in your example :)

Okay yeah in that case it's influxOutConf.Plugin = plugConf, the config field Plugin is an interface{} type that stands in for any type of config struct your component requires.

Closing this for now, feel free to reopen if you have more questions.


This will disable FastMuxSwitch if a client is actively transcoding a liveTV stream.

It appears that when SageTV is doing server side transcoding that it is not able to do a fastmuxswitch and have the client transition to the new program/timeslot.  I have noticed this behavior in the Placeshifter, and the andriod client.  With this change, placeshifter is able to transition between timeslots without issue.  And when you are using a client without transcoding, it does a fastmuxswitch without issue.

@Narflex
I think I addressed all of the issues.  Sorry about the multiple pushes.  Some of the formatting issues were only in Git and not showing in my source.  I was taking a while for me to figure it out.
Thanks,
Josh

Thanks!


Make repo a GitHub template

Hi @matt765, thanks a lot for this nice theme! It would be super helpful if you'd make this repo a template like described here: https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-template-repository

I just did, thanks for the tip!


Need Long press option for buttons ,image buttons

From<EMAIL_ADDRESS>on October 22, 2010 03:21:40
What steps will reproduce the problem? Long press on image button on dialer dialpad number buttons .. It will b speed dial option .. What is the expected output? What do you see instead? Please provide your suggestion if there is any other possibility to do long press using solo. What version of the product are you using? On what operating system? robotium 1.8 Please provide any additional information below.
Original issue: http://code.google.com/p/robotium/issues/detail?id=24

From<EMAIL_ADDRESS>on October 22, 2010 06:21:37
You can use clickLongOnText() for buttons also that display text. For ImageButton you will need to use clickLongOnView() where you state the R.id of the ImageButton you want to longClick. Do you have access to the source of the application you are testing?
Owner: renasreda

From<EMAIL_ADDRESS>on October 22, 2010 06:22:39
Labels: -Type-Defect Type-Enhancement

From<EMAIL_ADDRESS>on October 30, 2010 09:30:33
This will be added to the project backlog. We will have to see when it can be implemented.
Status: Done


update to latest commit of im-rs

bodil/im-rs#55 is fixed so we should update to that commit and uncomment the regression test that I wrote, so that we can run the iele test that failed.

Unfortunately because the latest release of im-rc uses "edition 2018" of rust, which is first available in rust 1.31, we need to update to the latest version of rustc to accomplish this. Since we want to continue to use llvm 6, this means building rust from source, which I am working on now. I have rust built, but not cargo. Still waiting to hear back from a message sent on the rust discord about how to bootstrap cargo.


[off] Tiny cache plugin

Hello!
I am developing a very tiny (98 sloc) cache plugin
https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/tiny-cache.php

uses persistent object cache
caches only the_content() calls thus most of the HTML body
now works only by replacing the_content() in the theme's code

Any thoughts?

caches only the_content()

good idea... i have also developed two small plugin (both are 5 KB):

Speed Up - Menu: caches only the menu
Speed Up - Translation: caches only the menu translations

Thank you!
A tiny style translation cache plugin is worth considering.

Maybe, you can cache the_content only if the content has a shorttag.

Don't forget about the_content filter, it does heavy lifting too.

Thank you again for the insiration:
https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/tiny-translation-cache.php
This is the_content() cache:
https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/tiny-cache.php

Improved an moved to another repo: https://github.com/szepeviktor/tiny-cache


Hamt

@troublescooter: seems like there where some issues with the merge. I cleaned up the branch and added some fixes to get it to compile for me.

Queue: is not a queue but a stack. why not just use a Vec?
Bit: why not use a bool?
InsertError: derive(Error)
Node, Element, Entry, Data should be private.
Hamt::insert(&mut self, elem: &T) -> Result<()>

Queue: In this case it's irrelevant in what order the elements are processed, but I agree the order should be consistent with the name. I prefer descriptive names for the functions, so in this case I chose to newtype Vec.
Bit: Replacing this with a bool would be very awkward to me. get_bit doesn't answer a question, but gives back a value. As such matching on the value feels natural. I can't currently verify, but I think match x { true => {}, false => {} } doesn't work and if get_bit(...) {...} else {...} as I said looks really odd to me because it's not a question.
InsertError: Are there any benefits to deriving Error? The reason I called it InsertError was due to it being used in a Result, which is used in order to get terse shortcircuiting with ?, but these are not really errors, but just enum variants indicating the insertion process is not yet complete. As such, they are expected, fully handled and don't need to be cast because they cannot escape and no external user ever sees them.

I see, in that case Inserter for should be private


Warn on MongoDB sink if collection name contains invalid chars

connect.mongo.sink.kcql=INSERT INTO smoketest-collection SELECT * FROM smoketest-topic
The above query seems OK - but mongo is not happy with collections containing the - character. The connector could give a big WARNING (or even ERROR) in case invalid chars are used in collection name

@Antwnis I'll look at this now as I'm tackling SSL on mongo.


example dataset/model cannot be downloaded (access denied)

Wanted to try out the example https://github.com/amznlabs/amazon-dsstne/blob/master/docs/getting_started/examples.md
But downloading the sample data https://s3-us-west-2.amazonaws.com/amazon-dsstne-samples/data/ml20m-all and sample network https://s3-us-west-2.amazonaws.com/amazon-dsstne-samples/configs/config.json fails:
<Error>
AllAccessDisabled
<Message>All access to this object has been disabled</Message>
<RequestId>00DCD5FF7D395B6A</RequestId>
<HostId>
ibDnw8wMxjjhRL2sYFuWtsAo3Q3ERMQVxdNsS4owyZXlCcPWqOjSjxxdiXDihwsUAzlilPVPXbI=
</HostId>
</Error>

Thanks for letting us know, @szilard. I'm looking into it and will hopefully be able to provide updated links within the next day.
In the mean time, let me know if you would like to arrange to access to the file through some temporary means such as Dropbox.

@tristanpenman Next day is fine :) thanks for looking into this.
Btw the reason to look into this now specifically is that I'm hosting @scottlegrand at my meetup in LA on Thursday: http://datascience.la/dsstne-a-new-deep-learning-framework-for-large-sparse-datasets/
I'm also the author of this benchmark: https://github.com/szilard/benchm-ml

@szilard and @norangLemon - URLs for the MovieLens sample data have been updated in commit 6714bfd.
I'm going to close this ticket, but please feel free to re-open it if you have any trouble accessing the files at the new location.


Update toc.yml

Adding references for new-relic

@flang-msft
Can you review the proposed changes? Note that the changes will need to be moved into the private repo for staging and automated checks. Let us know if you'd like help with that.
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Due to the upcoming conference, all merging and publishing are on hold until the morning of 5/23.
This PR is ready for merge on 5/23.
#label: "event-triaged-to-10AM"
#label: "missed-content-complete"

@flang-msft
Can you review the latest proposed change: https://github.com/MicrosoftDocs/azure-docs/pull/109769/commits/ed67e9aadeecf1a814425fd5732c3e55a36d5b08?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.

#sign-off

#label: "new-relic/subsvc","partner-services/svc"

@Court72 - I think I figured it out.

Due to the upcoming conference, all merging and publishing are on hold until the morning of 5/23.
This PR is ready for merge on 5/23.
#label: "event-triaged-to-10AM"
#label: "missed-content-complete"


Smui v3 11

upgrading SMUI to current latest
activated Spelling feature (incl. ReplaceRewriter & replace-rules.txt deployment to Solr)

a good test use case for that is:

create new spelling for "laptop"
add misspelling "leptop"
create new rule for "laptop"
UP(+++++) "toshiba" or any other brand

expected:

search for misspelled "leptop"
spelling should be corrected (implicitly), boosting for the laptop brand should be applied

cc @epugh

This looks good, and I'll merge after the ApacheCon talk, probably tomorrow!


feat: add a config screen to set vendor url

@rodolfomiranda please review and merge

This closes https://github.com/WebOfTrust/signify-browser-extension/issues/67


compare 2 images

Do you have a similar utility to compare two jpeg face images and determine whether both are the same person or not, like compare.py in openface?
Thanks,

Currently there is no utility like that. It wouldn't be too much work to modify for example "validate_on_lfw" to take two jpeg images instead, but that would assume that the images has already  been face-aligned. A nicer solution would be to integrate face alignment, for example from openface, but that would be some more work. But definitly worth doing!

Thanks
On Tue, May 17, 2016 at 6:26 AM, David Sandberg<EMAIL_ADDRESS>wrote:

Currently there is no utility like that. It wouldn't be too much work to
modify for example "validate_on_lfw" to take two jpeg images instead, but
that would assume that the images has already been face-aligned. A nicer
solution would be to integrate face alignment, for example from openface,
but that would be some more work. But definitly worth doing!
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/davidsandberg/facenet/issues/16#issuecomment-219716516

I modify validate_on_lfw.py for comparing 2 aligned face images and have
one question about dim of  features for each person. Based on the code
below if images contains one face image,
feed_dict = { images_placeholder: images, phase_train_placeholder: False }
emb1 = sess.run([embeddings], feed_dict=feed_dict)
I expect emb1 should be one dim array with size 128. But emb1.shape shows
9x128.
Does facenet need 9x128 values/person face for recognition?
Openface uses 128 values/person face.
Thanks,
FC
On Tue, May 17, 2016 at 8:51 AM, kaishi Jeng<EMAIL_ADDRESS>wrote:

Thanks
On Tue, May 17, 2016 at 6:26 AM, David Sandberg<EMAIL_ADDRESS>wrote:

Currently there is no utility like that. It wouldn't be too much work to
modify for example "validate_on_lfw" to take two jpeg images instead, but
that would assume that the images has already been face-aligned. A nicer
solution would be to integrate face alignment, for example from openface,
but that would be some more work. But definitly worth doing!
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/davidsandberg/facenet/issues/16#issuecomment-219716516

I guess you have changed the batch_size to 2? If that is the case you should be able to get a tensor with the two embeddings of size 2x128 (if i remember correctly). And then you can just compute the l2 distance between the embeddings.

I change batch_size to 1 so that I can compute emb for each image.
WIth this change, I expect dim of   return from sess.run should be 1x128,
but it is 9x128 which is weird
FC
On Fri, May 20, 2016 at 1:59 AM, David Sandberg<EMAIL_ADDRESS>wrote:

I guess you have changed the batch_size to 2? If that is the case you
should be able to get a tensor with the two embeddings of size 2x128 (if i
remember correctly). And then you can just compute the l2 distance between
the embeddings.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/davidsandberg/facenet/issues/16#issuecomment-220553099

If I set batch_size =2, then dim of return from sess.run becomes 18x128.
Why is it not 2x128?
FC
On Fri, May 20, 2016 at 2:06 AM, kaishi Jeng<EMAIL_ADDRESS>wrote:

I change batch_size to 1 so that I can compute emb for each image.
WIth this change, I expect dim of   return from sess.run should be 1x128,
but it is 9x128 which is weird
FC
On Fri, May 20, 2016 at 1:59 AM, David Sandberg<EMAIL_ADDRESS>wrote:

I guess you have changed the batch_size to 2? If that is the case you
should be able to get a tensor with the two embeddings of size 2x128 (if i
remember correctly). And then you can just compute the l2 distance between
the embeddings.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/davidsandberg/facenet/issues/16#issuecomment-220553099

Hi again,
I tried to set batch_size = 1 and look at the dimensions of some tensors, and they are as expected:
images_placeholder: Tensor: Tensor("input:0", shape=(1, 96, 96, 3), dtype=float32)
embeddings: Tensor: Tensor("embeddings:0", shape=(1, 128), dtype=float32)
Have you checked the same tensors?

My aligned face image size is 144. If I redo face alignment to size 96, the
embeddings shape is (1,128) for one image.
Not sure why face image 144 will make embeddedings shape (9, 128)
On Fri, May 20, 2016 at 1:25 PM, David Sandberg<EMAIL_ADDRESS>wrote:

Hi again,
I tried to set batch_size = 1 and look at the dimensions of some tensors,
and they are as expected:
images_placeholder: Tensor: Tensor("input:0", shape=(1, 96, 96, 3),
dtype=float32)
embeddings: Tensor: Tensor("embeddings:0", shape=(1, 128), dtype=float32)
Have you checked the same tensors?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/davidsandberg/facenet/issues/16#issuecomment-220709914

Ok, that makes more sense. The function that generates the inference graph only works for input images of size 96. The key is the line
resh1 = tf.reshape(pool6, [-1, 896])
With 96 pixel images the pool6 shape is (1, 1, 1, 896)
but with 144 pixel images it is(1, 3, 3, 896).
It would probably be better to throw an exception when this happens.

Thanks for compare.py utility.
Is your pretrained model,   model-20160306.ckpt-500000,  not comparable with the latest code? I got the following error when running compare.py:
Traceback (most recent call last):
File "./compare.py", line 80, in
main()
File "./compare.py", line 58, in main
saver.restore(sess, ckpt.model_checkpoint_path)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1104, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 332, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 572, in _run
feed_dict_string, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 652, in _do_run
target_list, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 672, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors.NotFoundError: Tensor name "incept5b/in4_conv1x1_55/weights/ExponentialMovingAverage" not found in checkpoint files ./models/facenet/20160514-234418/model.ckpt-1000
[[Node: save/restore_slice_331 = RestoreSlice[dt=DT_FLOAT, preferred_shard=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_331/tensor_name, save/restore_slice_331/shape_and_slice)]]
Caused by op u'save/restore_slice_331', defined at:
File "./compare.py", line 80, in
main()
File "./compare.py", line 52, in main
saver = tf.train.Saver(ema.variables_to_restore())
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 845, in init
restore_sequentially=restore_sequentially)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 515, in build
filename_tensor, vars_to_save, restore_sequentially, reshape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 271, in _AddRestoreOps
values = self.restore_op(filename_tensor, vs, preferred_shard)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 186, in restore_op
preferred_shard=preferred_shard)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/io_ops.py", line 201, in _restore_slice
preferred_shard, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_io_ops.py", line 325, in _restore_slice
preferred_shard=preferred_shard, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py", line 693, in apply_op
op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2186, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1170, in init
self._traceback = _extract_stack()

No, there's a new model that is equivalent that you could download from
https://drive.google.com/file/d/0B5MzpY9kBtDVVFRyU2JCVmZXUEk/view?usp=sharing

It works OK with new model
Thanks
On Sun, May 22, 2016 at 1:15 PM, David Sandberg<EMAIL_ADDRESS>wrote:

No, there's a new model that is equivalent that you could download from
https://drive.google.com/file/d/0B5MzpY9kBtDVVFRyU2JCVmZXUEk/view?usp=sharing
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/davidsandberg/facenet/issues/16#issuecomment-220853567

@kaishijeng   Have you do it successfully?


Rename ddev get to ddev addon with sub-commands

Is there an existing issue for this?

[X] I have searched the existing issues

Is your feature request related to a problem?
ddev get isn't immediately obvious by the name what it does. What's more, ddev get --list and ddev get --installed, an especially ddev get --remove are all semantically a bit strange.
Having the command be ddev addon would be more immediately obvious what the command is for, and splitting the semantically different actions into sub commands means you don't have to worry about what happens if someone tries something weird like ddev get --list --all --installed --remove my-addon or just ddev get --all
Describe your solution
Add a new ddev addon command, with sub commands for each semantically different action (get to get an addon, remove to remove one, list to list them)
ddev addon get my-addon
ddev addon remove my-addon
ddev addon list --all
ddev addon list --installed

Then deprecate (and probably hide) ddev get, and update it so all it does is call the appropriate ddev addon command. Eventually, remove ddev get in a future release.
Describe alternatives
No response
Additional context
No response

It's a nice idea, but we needed you to comment on it a couple years ago :)

I agree it would have been good if it was always this way. But since it wasn't, I think having both commands for a short period, with the current one being deprecated for a while, is a good way forward.
If DDEV currently doesn't have a way to support introducing changes to functionality in a way that requires eventual-breaking-changes, then perhaps a separate discussion can be held about how to deal with that? But given there's a known way to deprecate commands, and given DDEV has done similar things to this in the past (look at ddev launch -p for example), I can't see any reason right now why this wouldn't be doable?

It's true we might be able to do it as an alias for a year or two and then deprecate. We've done that before.

Before I start working on a PR, is that something that is likely to be accepted?

The conversation is just an hour old. Please let it be for at least a couple of days so people could think about it.
And please expand your proposal to say how you'd change all the various sub-commands, and how you'd do a staged change. Keep all the flags the same? Change some? Would both "get" and "addon" be visible in ddev and ddev -h ?
How about the fact that we standardized on "add-on" a long time ago, how does that fit in? Change it everywhere? add-on is hard to write but perhaps better English.

please expand your proposal to say how you'd change all the various sub-commands

I don't think the functionality needs to change - this is mostly about naming and structuring of the command. But I will explicitly state which flags I think should become which sub-commands in the issue description.

Would both "get" and "addon" be visible in ddev and ddev -h ?

I would prefer ddev get to be hidden, but ultimately you'd be the one to decide yay or nay on that, I think. It is pitched as an option in the description already but I'll make that more explicit.

How about the fact that we standardized on "add-on" a long time ago, how does that fit in? Change it everywhere? add-on is hard to write but perhaps better English.

If you want the command to be named add-on instead of addon that's fine. Ultimately you'd decide that.

I do apologise if it seemed like I was trying to rush you into making a decision - your original response didn't include any indication that you had any concerns or that there was additional thinking to be done, so I assumed that you had already made a decision as to whether it was worth pursuing.

from a comprehension level i would prefer addon over get (probably also addon over add-on , the shorter and less complex the better).with the command addon you are setting the context what this command is about, while with get that isn't directly clear. and with get just based on the label i would assume it is only about downloading/getting something. but with get you are not only able to get the list of addons available, you are also able to list the addons installed for this project plus you are able to actually remove addons from a project (the exact opposite of getting something).
So a +1 for the addition or better the rename to addon. two thoughts, probably out of scope for this issue, but while adding the addon command maybe thinking about to add the option to update all the installed addons with something like ddev addon --update might be worth a thought. second, would it be a reasonable thought to avoid two flags in a row like for example ddev get --list --all. instead have one flag for the official list and one separate flag for the entire list. having two flags always puzzles me and makes me think for a second. separate flag might be clearer imho.

maybe thinking about to add the option to update all the installed addons with something like ddev addon --update might be worth a thought

That sounds like a good enhancement - but I think that could easily be done as follow-on work to keep the focus of this issue specifically about the name and structure of the command. Keeping the functionality as-is will make that process a lot easier and reduce the complexity we need to think about for this change.

would it be a reasonable thought to avoid two flags in a row like for example ddev get --list --all.

That's part of this proposed change - ddev get --list --all would become ddev addon list --all, so you're running the list subcommand for the addon command, and passing the all flag. List all addons.
Whereas just the regular ddev addon list (currently ddev get --list) would list only the official addons. I.e. official is the default set, and you can optionally list them all.

instead have one flag for the official list and one separate flag for the entire list

Having a separate --official flag would either be redundant, or it would make it unclear what the default behaviour of ddev addon list should be. I think leaving the default to be listing official addons makes sense but if there's a suitable alternative then that's good too.

If that is considered for the current proposed change, I'd recommend update be a subcommand, so you'd run ddev addon update my-addon to update a specific addon, or ddev addon update --all to update all addons.

as i've said i've considered my suggestion completely out of scope. i've just wanted to raise the idea in the context of the get/addon command (since it sounded like a good fit here). and about your suggestion, why not make the update for all installed addons implicit to the ddev addon update instead, that would be in line with the pattern for example homebrew or composer uses. running just update updates "everything" while when you run ddev addon update my-addon you only check and in case there is a new version update the given addon.
That's part of this proposed change - ddev get --list --all would become ddev addon list --all, so you're running the list subcommand for the addon command, and passing the all flag. List all addons.
oh my bad I've then completely misunderstood the table (just one note, the old example is then missing two dashes for ddev get list --all- based on that line i made faulty assumptions). But then i am totally fine with your suggestion if it is ddev addon list and ddev addon list --all. no need for the "offical" i've suggested
the only nitpick in regards of consistency, would it make sense to change your proposed command from ddev remove my-addon to ddev addon remove my-addon that way it would be more consistent with the rest of the commands

just one note, the old example is then missing two dashes for ddev get list --all based on that line i made faulty assumptions

Updated, thanks for pointing that out.

the only nitpick in regards of consistency, would it make sense to change your proposed command from ddev remove my-addon to ddev addon remove my-addon that way it would be more consistent with the rest of the commands

Yes it absolutely would lol. That was a typo, I've fixed it now. Thanks for pointing that out.

Maybe this is a bit out of scope, but as we are tracking the installed add-ons, might be good to also be able to "rename/set-url" addons (think of "git remote set-url").
E.g. if I installed penyaskito/ddev-hugo, and it's promoted to ddev/ddev-hugo some day, a way to update and set the new url without having to uninstall and install again.

if I installed penyaskito/ddev-hugo, and it's promoted to ddev/ddev-hugo some day, a way to update and set the new url without having to uninstall and install again.

I'm pretty sure this already works fine, for better or for worse.

I find myself typing ddev addon ... every other week so I thinks this is a great idea!
I thinking going the alias route is probably best; we're more likely to get feedback on which people prefer.
I wish addon was only 3 letter though. 😄

I wish addon was only 3 letter though. 😄

You can pretend it's 3 letters if you do ddev add<TAB> ;p

I think this idea has potential, and that we could ease it in over a few versions.

I think we can start with alias, then wait until most DDEV users have that alias available (i.e. wait a few months or quarters).
And only then start thinking about deprecation, readme add-on updates, and so on.
The biggest concern about deprecation is that users have their own non-official add-ons, so we can't just deprecate it immediately because that would add even more confusion.

Deprecation just means that if you use it, it works like normal with the addition of a warning printed to the terminal saying something like "ddev get is deprecated, use ddev addon instead".

I've created https://github.com/ddev/ddev/pull/6482 which makes this change.


Suggestions for Implementing editOwnModel permission

Hello,
I am trying to base an API project on this framework and the related components project.
My project makes extensive use of the editOwnModel permission.
Considering how yrc\rest\Controller implements the filters acl (works great, thanks) and that the model is unknown at this point - meaning all calls to ->can('editOwnModel') will fail, what is the best way to limit access using the editOwnModel permission?
Thanks in advance!

I'm not familiar with editOwnModel. It's not a standard Yii2 filter. Can you link to what you're referencing in the Yii2 documentation? Is this a custom filter you're looking to add?

My apologies for causing the confusion.
editOwnModel is a custom business rule in my code but is modelled like what the documentation calls updateOwnPost here https://www.yiiframework.com/doc/guide/2.0/en/security-authorization
Like all rules, OwnModelRule or updateOwnPost extends yii\rbac\Rule. In particular, a model and an attribute like 'created_by' can be passed and compared with the active user to determine if the user is the one that created or otherwise owns the model.
In a regular controller as in the example below, Yii::$app->user->can('editOwnModel', ...) evaluates the permission using the model and attribute parameters passed in the callback when the rule is evaluated. Its easy to conjur the model in the controller Init(), but I haven't figured out a way to do something similar for the acl in your API kit. Thanks
public function behaviors()     {         return [             'access' => [                 'class' => AccessControl::className(),                 'rules' => [                     [                         'actions' => [                             'view',                         ],                         'allow' => true,                         'roles' => ['@'],                         'matchCallback' => function () {                             return Yii::$app->user->can('editOwnModel', [                                 'model' => $this->model,                                 'attribute' => 'created_by',                             ]);                         },                     ],                 ],             ],         ];     }

This is the execute method of the rule;
public function execute($user, $item, $params)
    {
        if (!isset($params['model'])) {
            return false;
        }

        $attribute = isset($params['attribute']) ? $params['attribute'] : 'created_by';
        $result = ($user && isset($params['model']) && $user === $params['model']->getAttribute($attribute));

        return $result;
    }

Perhaps I'm misunderstanding what you're trying to achieve, but you can always override, overload, or extend the behaviors method to attach any custom behavior or filter you're looking for - there's nothing in place that restricts what for your controllers.
    public function behaviors()
    {
        $behaviors = parent::behaviors();

        $behaviors['access']['rules'][] = [
            // Add any additional rules here....
        ];

        return $behaviors;
    }

Yii2's sample starter kit has it's own OwnModel filter you could also probably drop in to achieve what you're doing as well: https://github.com/yii2-starter-kit/yii2-starter-kit/blob/master/common/filters/OwnModelAccessFilter.php.

Thank you.
I will take a closer look and revert


What about Android Q?

According to this document, API of this package should be changed?

Restriction on enabling and disabling Wi-Fi
Apps targeting Android Q cannot enable or disable Wi-Fi. The WifiManager.setWifiEnabled() method always returns false.
If needed, use a settings panel to prompt users to enable and disable Wi-Fi.

This needs more attention. Library becomes unusable for newer devices.

Yes, in android 11 this library doesn't work as expected. When this problem gets solved?

Yes, in android 11 this library doesn't work as expected. When this problem gets solved?


Installing on Windows 10

Hi,
i have following issue when I try to install.
PS C:\nuimo-electron> npm install bluetooth-hci-socket
npm WARN package.json<EMAIL_ADDRESS>No repository field.
npm WARN package.json<EMAIL_ADDRESS>No README data
-
><EMAIL_ADDRESS>install C:\nuimo-electron\node_modules\bluetooth-hci-socket\node_modules\usb
> node-pre-gyp install --fallback-to-build

[usb] Success: "C:\nuimo-electron\node_modules\bluetooth-hci-socket\node_modules\usb\src\binding\usb_bindings.node" is installed via remote

><EMAIL_ADDRESS>install C:\nuimo-electron\node_modules\bluetooth-hci-socket
> node-gyp rebuild

C:\nuimo-electron\node_modules\bluetooth-hci-socket>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node ""
Die Projekte in dieser Projektmappe werden nacheinander erstellt.  System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\nuimo-electron\node_modules\bluetooth-hci-socket
gyp ERR! node -v v4.4.4
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bluetooth-hci-socket"
npm ERR! node v4.4.4
npm ERR! npm  v2.15.1
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bluetooth-hci-socket package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bluetooth-hci-socket
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls bluetooth-hci-socket
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\nuimo-electron\npm-debug.log

npm-debug.txt

Hi @mrothenbuecher,
Unfortunately I'm not a full-time Windows user, so am not too sure what to suggest. My only suggestion is to follow's @don's Youtube guide: https://www.youtube.com/watch?v=mL9B8wuEdms

I think this is a problem with your windows and Visual Studio setup. If it's of any use, I compile with MSCV 2013 (Microsoft Visual Studio 12.0) and everything works fine.

I have the very same issue with windows 7 and Visual Studio Community 2015 (same as in the youtube vid). I already tried the actual master of 'node-gyp' and 'node-bluetooth-hci-socket'.

Has anyone tried this? https://stackoverflow.com/questions/38149603/npm-install-fails-with-error-c2373-with-vs2015-update-3

I had to install 'rimraf' separately. But then this worked for me! :-) Thanks a lot!

@TorstenRobitzki great to hear! Did you use the answer with the green checkmark? (http://stackoverflow.com/a/38149604/2020087)
Closing, as there is a know workaround and it seems to be an issue with npm.

yes, I've used the accepted answer.


Discoverability of component parameters - typed parameters

Hey,
I discovered your project through a comment on HackerNews - and it got me curious. The idea looks really nice as I often struggle with managing my components in Django projects, so this fits the bill nicely.
I'm posting more as a discussion / idea issue rather than actual problem.
Have you thought about any way on how could it be possible to make discoverability of component parameters better?
Let's use the examples from your website: https://mitchel.me/slippers/docs/getting-started/
{% #card heading="I am the heading" %}
Card accepts in this case children (that will be embedded) and parameter heading. But let's imagine a case where I've component consisting of 10 different parameters (and let's assume this is a must, and it's greatly reusable for my imaginary project). This can be for example parameter color that must be css-compatible color name, or size that must be either small, medium or large
Is there any way to make discoverability of parameters and their values better? Right now you have to go to the source code of the component and find your way through the HTML and discover every and each parameter and judge from the code if its required/obligatory or not and what is it even accepting.
I've always thought that components in django miss some kind of typing like React's propTypes: https://www.npmjs.com/package/prop-types
Do you think slippers could be a project where this kind of typing could be useful?
I've been thinking about hacking with your project to implement such thing but wanted to hear on if you have had any vision about that :)

Hi Nicarim,
Thanks for this. I totally get your point and this is something that I have been thinking about. I do believe that the discoverability of component parameters is important and it's something I want slippers to facilitate.
I'm not too sure about going with full-blown type checking like PropTypes because I don't think DTL was built for that. It's like when I try to access a parameter that doesn't exist, it just prints nothing; it doesn't explode.
Barring that though, I am keen for there to be a way to "surface" what parameters a component requires to render, and maybe even validate enums like in your example for size.
My initial ideas:
{% prop color %} {# If DEBUG=True, explodes if color is not defined #}
{% prop variant|default:"primary" %} {# Sets variant to "primary" if variant isn't defined #}
{% prop size "small" "medium" "large" %} {# If DEBUG=True, explodes if size is not one of the following #}

Or alternatively, using filters and var.
{% var color=color|required %}
{% var variant=variant|default:"primary" %}
{% var size=size|one_of:"small,medium,large" %}

Maybe we could add shorthand syntax to var so we don't have to have the variable name twice.
{% var color|required %}
{% var variant|default:"primary" %}
{% var size|one_of:"small,medium,large" %}

I'm keen to hear your ideas as well for how to improve the discoverability of component parameters.

What you've proposed is actually more or less what I thought about - having a way to define that at the top of component.
More so - if you would have such definitions in the components themselves there could be a way to have some kind of static checks that you can run as for example django command that would tell you if all components are properly used / you defined all variables that you try to use. Like manage.py check_components would tell you componentX in file.py:123 is not defining required param *color*. Or componentY uses param size but has no definition. This could be really useful for CI pipelines to be sure everyone follows same convention.
This would be incredibly useful IMO.
I'm not just sure if filters are fit for that. I was thinking more in terms of pydantic models that you would assign to components. Not as clean as what you provided (because defining that in the same file would be impossible) but on the other hand it would allow for some more complex validation. It would also allow for better integration with IDE plugins if they were to be ever created for your project :).
But I like the idea of defining these as filters.

I've started working on this on #25

The work you've done in #25 is fantastic and it makes me think of the possibility of code editor 'intellisense'-style extensions. By picking up components.yaml files, then scanning the referenced templates for frontmatter, a code editor extension could provide hints and autocompletions for available props, as one types.

I see that #25 is merged. However, after the last release. Are there any plans for the next release?

Sorry my weekends have been busy and I haven't finished writing the docs. That's why the next release is taking so long.

No problem, totally understand. Let me know if there is any way I can help.


New Initializer generator

Use rails generate high_voltage:install to create a new initializer
Include description of initializer options in the initializer comments
Include usage help

This seems unnecessary; something than an improved README would take care of.
My thinking is: what this generates and the generator itself are both poorly documented. We could improve the docs to say "if you want to configure High Voltage run this generator then edit the config file. The configuration are ...", or we could improve the docs to say "the configurations are ... . Here is a sample config/initializers/high_voltage.rb". The second option has less code for us to maintain.

Ok no probs. Closing this pull request.


Gemini uses wrong language

In #45 there was a discussion about hinting to the model to understand what language to converse in.
https://github.com/allenhutchison/obsidian-gemini/issues/45#issuecomment-2561944684
https://github.com/allenhutchison/obsidian-gemini/issues/45#issuecomment-2564790385
https://github.com/allenhutchison/obsidian-gemini/issues/45#issuecomment-2564817794
Using const lang = window.localStorage.getItem('language'); I can get the language the UX is set to, which should give me a good default for the model. I'll add this to the system instructions to ensure that it applies for all usage modes.

This has been fixed in 1.4.2 and published.


TypeError: Cannot read property 'bind' of undefined when using Flow

Is this a bug report?
Yes

Did you try recovering your dependencies?

Yes
Which terms did you search for in User Guide?

flow bind
Environment

Environment:
  OS:  macOS Sierra 10.12.6
  Node:  10.11.0
  Yarn:  Not Found
  npm:  6.4.1
  Watchman:  4.7.0
  Xcode:  Xcode 9.2 Build version 9C40b
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: ^16.5.2 => 16.5.2
  react-dom: ^16.5.2 => 16.5.2
  react-scripts: 2.0.1 => 2.0.1

Steps to Reproduce

Create a component like this one

  class Foo extends React.Component {
    constructor(props) {
      super(props)
      this.foo = this.foo.bind(this)
    }
    foo: () => ()
    foo() {}
    render() { return <div /> }
  }

Run the tests for Foo
TypeError: Cannot read property 'bind' of undefined

Expected Behavior

The file should run in the tests
Actual Behavior

I think Flow's syntax is confusing the tests. Note that this same code was working in the previous version of CRA
Reproducible Demo

Simply clone https://github.com/Gpx/cra2-bind and run the tests

This is because Babel 7 changed the behavior of class properties so that an empty “definition” like this is treated as assigning undefined. AFAIK this is closer in behavior to the latest specification.
We’ll need to mention this in migration notes.
Still I’m not sure if this is correct. We’ll need more eyes on this.
Some discussion:
https://github.com/babel/babel/issues/8417. Apparently this could solve it?
https://github.com/xing/hops/commit/9cf7791ae7d358daa4add47236c7409a14ceb361 Maybe our preset should do this.

@Gpx try this.  This uses the flow commenting method.  Obviously not ideal but it should provide with a workaround.
diff --git a/src/App.js b/src/App.js
index d70a6ba..8c37374 100644
--- a/src/App.js
+++ b/src/App.js
@@ -10,7 +10,7 @@ class App extends Component {
     this.foo = this.foo.bind(this);
   }

-  foo: void => void;
+  /*::  foo: void => void */
   foo() {}

   render() {


Target listener

In the section "Add a routing rule with a redirection configuration" is written to "ensure the Target listener is set to appGatewayHttpListener", but I believe the correct Target listener should be the original Https listener, shouldn't it?

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

ID: 6e69f361-3b89-3970-11d6-7e88f9ef4a3e
Version Independent ID: 2926c4df-236a-e0f4-3bd6-9292e2ccab22
Content: HTTP to HTTPS redirection in portal - Azure Application Gateway
Content Source: articles/application-gateway/redirect-http-to-https-portal.md
Service: application-gateway
GitHub Login: @vhorne
Microsoft Alias: victorh

@accampos , You are correct. The target listener should be the HTTPS listener which you want to point. In this case, "appGatewayHttpListener" is the HTTPS listener of the Application Gateway. If you look into the PowerShell version of the same doc, you can see the HTTPS listener of this Application gateway is named as "appGatewayHttpListener ".

@accampos , Do you have any update on this issue?

No, thank you for your feedback.

@msrini-MSFT
It seems this document is incomplete then. Shouldn't it be creating two listeners? The redirect to the appGatewayHttpListener listener can't be created if you follow the doc in its current state. Please have that added to the doc.
#please-reopen


Integrate upstream changes v2

Supersedes the previous PR https://github.com/localstack/lambda-runtime-init/pull/23 where I squashed the upstream changes instead of merged all commits as is.
Motivation
The official AWS lambda-runtime-init received some upstream updates (typically merged in big blobs from their internal repository). We should update our customized localstack version to support the latest features (e.g., response streaming) and updates (e.g., the new Golang version). Beyond smaller doc updates, the main updates were:

Jun 8, 2023 chore(deps): Update to Golang 1.19 (#95) ⇒ Easy deps upgrade to Go 1.19
Apr 27, 2023 feat: Pull upstream changes 2023/04 (#87) ⇒ Major changes to the init and internal API (6,845 additions and 2,726 deletions)

Background
Internal docs: https://www.notion.so/localstack/Update-RIE-with-upstream-changes-for-response-streaming-18a303b503c54f958cfbee5841ef5402?pvs=4
Changes
Integrates the upstream changes from the AWS lambda-runtime-init repo and adjusts the API accordingly (see documented commit log for details).
👉 Custom LocalStack changes git show 6c95d75
Testing
Test against the LocalStack test suite.
🧪 The localstack branch integrate-lambda-init-upstream-changes contains some improved tests for the request_id propagation issue. For example: tests.aws.services.lambda_.test_lambda.TestRequestIdHandling.test_request_id_invoke
I tested other categories including:

tests.aws.services.lambda_.test_lambda.TestLambdaBaseFeatures
tests.aws.services.lambda_.test_lambda.TestRequestIdHandling

TODO

[x] Fix failing snapshot test due to uuid not being replaced in the test tests.aws.services.lambda_.test_lambda.TestLambdaFeatures.test_invocation_with_qualifier
[x] Resolve TODOs (mostly coding out some logs, error handling etc)
[x] Rebase after merging the permission PR https://github.com/localstack/lambda-runtime-init/pull/22 => Merged the localstack branch back as a quickfix because rebasing again is terrible with so many conflicts 😢

Merged with 605fa1c


Lazy loading doesn't working

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/p/sandbox/io4q09?file=%2Fsrc%2FApp.jsx
Bug description
When try to add Lazy module <Swiper ... modules={[Lazy, FreeMode, Navigation, Thumbs]} /> getting the error TypeError: mod is not a function. You can check it in sandbox example from documentation, it's broken as well.
Expected Behavior
No response
Actual Behavior
No response
Swiper version
9.1.1
Platform/Target and Browser Versions
chrome all versions
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[X] I'm willing to open a PR

Where do you see Lazy module in swiper 9 docs?


Azcopy 10 fills up unknown error macos

Which version of the AzCopy was u
10
Note: The version is visible when running AzCopy without any argument
Which platform are you using? (ex: Windows, Mac, Linux)
Mac
What command did you run?
Copy
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
What problem was encountered?
Unknown error. Fills up hard drive with junk then quits.
How can we reproduce the problem in the simplest way?
Always from the same HDD
Have you found a mitigation/solution?
No

Where does it put the junk?

.azcopy/plans source hdd 3tb, boot drive 500gb ands plan takes 200gb until i see

Hi @masters3d, sorry for the inconvenience, could you please tell us a bit about the size of the job you are running?

I am copying a whole HDD which is about 3TB. I just select the root of the drive as a the folder.

@zezha-msft What did we think the most probable cause was for this?  Plan file size? Log file size? Something else?

@JohnRusk It appears to be plan files. I've made its location configurable for the upcoming release.

OK. Will mark it as included in the 10.3 release, since the solution will be to move the plan files to a location with more space.

This has been fixed in 10.3.0!
@masters3d please use the environment variable AZCOPY_JOB_PLAN_LOCATION to put the state tracking files elsewhere. We are really sorry for the inconvenience and appreciate your patience.


feat: #850 primevue component tab

Implementation of primevue tab component
Delegated admin tab is disabled until the respective table is available
The styling is on the common repo

I think you forget to add the icon

I think you forget to add the icon

I'll add it now


escape_chars fails in filter() and filter_() (and possibly elsewhere...)

On Win32 systems, the escape_chars function turns berserk and hyper-escapes some symbols.
This result in an invalid parameter in ffmpeg and fails to run.
Testcase
import ffmpeg
testcase = ffmpeg.input("Wildlife.wmv").filter('scale',"320:-2").output("wontwork.mp4")
print(testcase.compile())
testcase.run()

Output
['ffmpeg', '-i', 'Wildlife.wmv', '-filter_complex', '[0]scale=320\\\\\\\\\\\\:-2[s0]', '-map', '[s0]', 'wontwork.mp4']

<some ffmpeg output>
[Parsed_scale_0 @<PHONE_NUMBER>5c6c80] Invalid size '320\:-2'
[AVFilterGraph @<PHONE_NUMBER>8c6500] Error initializing filter 'scale' with args '320\\\:-2'
Error initializing complex filters.
Invalid argument

Discussion

The colon : is escaped by escape_chars although it shouldn't (at least on win32 systems).
Saving testbench.compile() to a .bat file, manually removing the six \ and running the command solves the issue.
The reason between the fact that there are 12 \ is unclear (would default to 6 passed to Popen, then 3 when parsed by ffmpeg)

Configuration

Windows 7
Python 3.6.3 :: Anaconda custom (64-bit)
ffmpeg-python version 0.1.16
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers

-ffmpeg.input("Wildlife.wmv").filter('scale',"320:-2").output("wontwork.mp4")
+ffmpeg.input("Wildlife.wmv").filter('scale', 320, -2).output("wontwork.mp4")

The reason there are so many \ characters is because of ffmpeg's recursively nested escaping rules. Try using the drawtext filter manually from the command line and see how many backslash escapes it takes to draw the text "\" over a video. It's intended behavior - see the escape_chars test cases.

Understood!
This is more of a filter documentation problem to me then.
Thanks for your answer!

Thanks for the feedback about documentation. We'll keep that in mind as the documentation is improved.

Also big props for such a well-written ticket. I appreciate the time you spent keeping the ticket organized so that it was easy to see what's going on.


[cluster-test] Add --chain-id argument

When used in swarm mode against an existing network, the chain ID won't
necessarily be TESTING. Add a --chain-id param to set the chain ID
and use this when constructing transactions.

/land

:broken_heart: Test Failed - Build images and run cluster test

/land


logfile naming

Hi!
it's not really an issue, but I'd like to clarify the naming of the logfiles.
If I start a collector instance with a single crawler, then the logfile's name is:
<crawlerid>.log
If the instance have more than one crawler, then a single combined log file is used for all jobs:
<httpcollectorid>.log
Is it configurable? I'd prefer always to have separate logfiles for every job (crawler).
Thank you!

This is not a configuration options via XML.  It would have to be done programmatically.
The collector uses a library called JEF API which among other things handles the log storage.  There is an interface that defines how logs are handled by that library called  ILogManager.  The default implementation is FileLogManager and only minimum tuning is offered by way of the collector config.  It does not provide ways to have different log files per crawlers (which are "jobs" to the JEF API). You would have to provide your own implementation that does it, but it may get tricky since I think the JEF API draws certain benefits from having only one log per program execution.
We can turn this into a feature request if you like.

I think, it would be very helpful to have a logfile per job, when you have hundreds of crawlers.
Especially on an environment where you can only login using the command line :)
Thank you!

Version 3 no longer explicitly deals with log files.  In fact, logging has been abstracted out using SLF4J. The default logging implementation is Log4J2 and it logs to STDOUT. You can replace it with your own.
In version 3, Each crawler has their name set to their thread and that name is being logged by default.  So you have each entry "tagged" with your crawler name already, making it easy to read/parse.  Relying on thread names in your logs to split would be a good approach.  Using grep with your crawler name would do it.
If you still need to log to different files, you can have a look at the options offered by Log4J2 or another implementation.  Another option is to use your OS shell commands to split the content into multiple files.
As this won't be implemented in version 2.x and is no longer applicable in version 3.x, I'll close this ticket.


Create STEP from file explorer

#Hello everyone,
First of all thank you for your precious work and for the development of SolidWorks add.
As is already existing for open in "quick view" mode an assembly or a drawing :
https://www.codestack.net/solidworks-api/getting-started/scripts/vbscript/open-quick-view/
I would like to know if it is possible to do the same with the save as step file command ?
The step will have the same name of the sldprt or sldasm, and save in the same directory.
I tried to modify the existing vbScript without result...
Thank you in advance for your support.
Adrien

Thank you for the feedback. Could you please clarify the request a little bit. Do you want to create 'Save As Step' command in the context menu in Windows explorer and when you click this command it creates step next to the source file? Just want to make sure I understand the request.

Yes it is exactly that.


Text Analytics - Update quickstart for AnalyzeSentiment

This PR updates the quickstart for analyzing sentiment when sending opinion mining as a parameter.

@suhas92 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@suhas92 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

#sign-off


servicefabric depends on docker-ce - can we downgrade this to an optional requirement?

$ dpkg -i servicefabric_<IP_ADDRESS>.deb
...
dpkg: dependency problems prevent configuration of servicefabric:
 servicefabric depends on docker-ce (>= 17.03.0~ce-0~ubuntu-xenial); however:
  Package docker-ce is not installed.

Where docker is installed a different way (my situation) or perhaps where using docker-ee instead, can we make docker-ce an optional package to install?

@mani-ramaswamy

Back in 6.x we had removed docker-ce as a direct dependency with the switch to moby-engine, which is installed during the node configuration phase of setup.


[VL] Refine cmake flags to decrease normal build time

Move duckdb and test_util targets under BUILD_TESTS flag to decrease build time, and modify related build scripts.
normal means without benchmark/test.

@rui-mo @PHILO-HE could you help review this patch? thanks!

We just updated velox. Please do a code rebase. Thanks!

We just updated velox. Please do a code rebase. Thanks!

Could you help review again? thanks!

Thank you!

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_3485_time.csv
log/native_master_11_05_2023_16e287450_time.csv
difference
percentage

q1
34.27
34.85
0.584
101.71%

q2
24.63
25.12
0.492
102.00%

q3
36.24
40.11
3.866
110.67%

q4
37.36
37.09
-0.265
99.29%

q5
71.11
71.44
0.328
100.46%

q6
8.34
9.10
0.760
109.11%

q7
84.53
87.61
3.083
103.65%

q8
87.15
85.22
-1.931
97.78%

q9
120.89
121.12
0.233
100.19%

q10
53.56
51.83
-1.727
96.78%

q11
20.38
19.68
-0.701
96.56%

q12
27.15
28.01
0.866
103.19%

q13
48.72
48.61
-0.104
99.79%

q14
16.79
19.14
2.352
114.01%

q15
32.39
33.03
0.634
101.96%

q16
16.43
16.10
-0.325
98.02%

q17
102.89
102.08
-0.809
99.21%

q18
148.67
149.04
0.368
100.25%

q19
15.71
18.25
2.542
116.18%

q20
30.02
30.91
0.896
102.98%

q21
225.04
222.95
-2.095
99.07%

q22
13.08
13.47
0.390
102.98%

total
1255.32
1264.76
9.437
100.75%


add topics

I suggest adding the topics fortran, fortran-compiler in the About section at https://github.com/yasuho68k/focs_pc-8001.

Thank you for your suggestion. But actually, it is a fortran-like programming language so language syntax is different from proper language specification. (e.g. it has write instruction but it doesn't have format instruction) Add topics may conflicts for users who looking for the fortran.


tailscale: 1.8.7 -> 1.8.8

Motivation for this change
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

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

[ ] Fits CONTRIBUTING.md.

Looks good, but note we just released Tailscale 1.10.0, so you might want to jump straight to that :)

Ah, thanks for the hint! I'll throw that in soon too then, as there is no PR yet


Update README.md

Added documentation for getting the latest authorization model

I'm not sure. I think it's a feature people would want and they are more likely to find it if it's explicitly included with its own section than as a note in the get command.


Support specifying layered requirements in a single file

I recently noticed #2679 -- awesome to see all the interest in that!
As long as we're thinking about enabling combining different requirements files for different platforms into a single, platform-independent lockfile, is there any interest in enabling you to specify additional requirements layers (e.g. for running tests, building docs, etc., which should be constrained by the base layer, in a single file as well?
Many projects end up with requirements file explosion due to layering even more often than due to platform differences. Enabling users to define their requirement layers in a single file would be a wonderful simplification.

Hi! Have you seen PEP 735? I think that addresses what you're talking about. Right now we're only exposing a single group for development dependencies but we're watching that PEP as a possible standard we could use for specifying multiple groups. We're working on a lock file format (#3314) that is a single file. I'm not sure we'd extend locking of multiple groups to requirements.txt style files.

Thanks for the heads up about PEP 735, and great you're already thinking along these lines!
Any solution enabling projects to maintain a single pair of files -- one for all the dependency group inputs, and one with the result of resolving those inputs -- would be a win. Using a standardized and more structured format than requirements.txt to accomplish that would be icing on the cake.

Great to hear! Yeah we're planning on using the pyproject.toml for the declaration (with a tool.uv.sources extension for things like custom indexes per package that are not supported by the standard project.dependencies section) and a uv.lock with cross-platform resolutions of all of your extras and development dependencies. You can try some of it right now if you want, we'll be announcing more and writing new documentation soon though!

I think https://github.com/astral-sh/uv/issues/3347 can be used to track this request.


The example repository for Docker/OSX is out of date with newer versions

You're using...
os.Getenv("ELASTICSEARCH_PORT_9200_TCP_ADDR"),
os.Getenv("ELASTICSEARCH_PORT_9200_TCP_PORT")

to find the port and host address. As of Docker 1.10 or 1.9, you should use elastic.SetURL("elasticsearch:9200") I believe.
If your docker service is named as followed...
elasticsearch:
  // etc

I've just stumbled across this issue, if I can figure out how to get it working without using environment variables, I'll update this issue. Thanks!

I think Docker Compose v2 format sets up a network like this: https://docs.docker.com/compose/networking. If you could check that and provide a PR, I'd be happy to merge that.

I've just updated the elastic-with-docker repository to use the latest version of Docker / Docker Compose.
Please file an issue at that repository next time. It keeps things together. Thanks for reporting.

Thanks! Great work! And will do.


Too small secure buffer size

Overview
Secure buffers seem to be hardcoded to 8192 bytes, resulting in slow download speeds. It would be desirable to have the size configurable at runtime.
Where
https://github.com/dart-lang/sdk/blob/82ea8416ed2a22e40c5c67252cb37bebec3a57e8/sdk/lib/_internal/vm/bin/secure_socket_patch.dart#L73-L76
These 2 sizes are then used to create buffers for SSL operations (see this function):
https://github.com/dart-lang/sdk/blob/master/runtime/bin/secure_socket_filter.cc#L367
Whats the problem
The buffer sizes limit download speeds. Downloading an 16MB file takes over 20 seconds(!).
People seem to have experienced this in the wild already quite a lot:
https://stackoverflow.com/a/65656847
Affected platforms
As far as I can tell, everything which runs the DartVM. For flutter this means probably only desktop platforms, but this is a Dart issue anyway.

Do you have an example of some Dart code which shows the problem? I recently helped some guy with some download code and could easily download 800 mb in no time with the code I ended up with, so I don't think your issue here is a general issue. Also, which platforms do you have the problem on?

The platform I have the problem on is Linux. Basically any secure (https in this context) download using the dart:io HTTP client shows the problem for me.

Here is an example I have written:
import 'dart:io';

Future<void> main() async {
  final stopWatch = Stopwatch()..start();
  final httpClient = HttpClient();
  final request = await httpClient.getUrl(Uri.parse(
      'https://mirror.one.com/archlinux/iso/2021.06.01/archlinux-2021.06.01-x86_64.iso'));

  final response = await request.close();
  await File('/tmp/archlinux-2021.06.01-x86_64.iso')
      .openWrite()
      .addStream(response);

  stopWatch.stop();
  print('${stopWatch.elapsed}');
}

Running on my Arch Linux server, with 100 Mbps download connection, I get the following outout:
[julemand101@beta tmp]$ dart test.dart
0:01:09.400919
[julemand101@beta tmp]$ ls -lsh archlinux-2021.06.01-x86_64.iso
775M -rw-r--r-- 1 julemand101 julemand101 775M Jun 26 22:31 archlinux-2021.06.01-x86_64.iso

Can you show an example I can try run just to see if I can reproduce your problem?

Alright... it turns out to actually be a problem with my test setup. Well, the more you know.
The issue was the way I was buffering the data, which turned out to be incredibly slow. I'm still quite confused about why I receive the data in 8191 bytes followed by 2 byte batches, which lead to my initial though of the problem being the secure buffer size.
Thanks for hinting me at the correct implementation, I guess I should have analyzed the issue in a different way.
Closing, not a bug but my fault

I'll give a quick though on what I think is happening:
If I have a LinearProgressIndicator visible on the application, the download time extends from 1 second to 26 seconds. I did not start the download in a new isolate, so my guess is that the UI update task for the progress indicator takes up the time and slows down the download callback (I'm buffering data into a List).
Starting the download in a new isolate randomly hangs it... but this doesn't fit this issue anymore

@Janrupf
Your problem is properly that you are firing an redraw event on the LinearProgressIndicator every time you get an event on the network stream which happens to be in very small sizes indeed. I don't know your code but you should add some logic so you are only sends an update to the progress bar when e.g. 1-5% of the total download has been done.

@Janrupf I believe to have a similar issue with RefreshIndicator (api request slowing down if response body > 100 kb for package "http/http.dart"). Did you solve your issue? Can you share your solution?

TL;DR: Perform the download in a separate isolate, make sure its main function does not terminate before the download finishes
My solution was simply to not run the HTTP request on the UI isolate. As mentioned before, the HTTP client shares the event loop with UI updates. This means that if running on the UI isolate, and some other element is active on it (an animating progress bar for example, the HTTP client does not get enough processing time to perform a fast download.
The solution is to perform the download on another isolate (where the HTTP client has its own event loop, don't perform other tasks on that isolate or you will have issues again). Also make sure to hang the Isolate main function until the download completes, else it will terminate the event loop before the download finishes (thus effectively cancelling the download).

Thanks for your explanation. It seems that my issue is independent from this. There is a huge performance drop from ~100 milliseconds to ~ 5 seconds if request body gets greater than 100 kb. That is, even for 101 kb the request takes ~5 seconds. Will check if this can also be reproduced in the dart:io package. I was using the http/http.dart package.


feat(hive): check state before deferring HivePartitionSensorAsync

Similar to SnowflakeOperatorAsync, we want to check whether the task has finished before it's deferred. For most sensors, we have a poke method in its sync counter part which can help us do such check.

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/astronomer/providers/apache/hive/sensors/hive_partition.py", line 45, in execute
    if not self.poke(context=context):
  File "/usr/local/lib/python3.10/site-packages/airflow/providers/apache/hive/sensors/hive_partition.py", line 78, in poke
    return hook.check_for_partition(self.schema, self.table, self.partition)
  File "/usr/local/lib/python3.10/site-packages/airflow/providers/apache/hive/hooks/hive.py", line 601, in check_for_partition
    partitions = client.get_partitions_by_filter(
  File "/usr/local/lib/python3.10/site-packages/hmsclient/genthrift/hive_metastore/ThriftHiveMetastore.py", line 3611, in get_partitions_by_filter
    return self.recv_get_partitions_by_filter()
  File "/usr/local/lib/python3.10/site-packages/hmsclient/genthrift/hive_metastore/ThriftHiveMetastore.py", line 3626, in recv_get_partitions_by_filter
    (fname, mtype, rseqid) = iprot.readMessageBegin()
  File "/usr/local/lib/python3.10/site-packages/thrift/protocol/TBinaryProtocol.py", line 148, in readMessageBegin
    name = self.trans.readAll(sz)
  File "/usr/local/lib/python3.10/site-packages/thrift/transport/TTransport.py", line 62, in readAll
    chunk = self.read(sz - have)
  File "/usr/local/lib/python3.10/site-packages/thrift/transport/TTransport.py", line 164, in read
    self.__rbuf = BufferIO(self.__trans.read(max(sz, self.__rbuf_size)))
  File "/usr/local/lib/python3.10/site-packages/thrift/transport/TSocket.py", line 166, in read
    raise TTransportException(type=TTransportException.END_OF_FILE,
thrift.transport.TTransport.TTransportException: TSocket read 0 bytes