client doesn't respect precedence if empty configuration is provided + command line flags

Describe the issue
In the case where the configuration looks as follows:
---
grpc_server:
identity:

And some command line arguments are provided, e.g. --grpc-host=<IP_ADDRESS> --grpc-port=1234 --identity-url=http://localhost:1654
The command line client does not respect the precedence order. That is, it'll randomly pick either the default for the config or the command line flag.
This is not an issue if there is no configuration file or if the configuration file actually contains the relevant values.
To Reproduce
No response
What version are you using?
main

So, it was indeed a flaky test. I cleared the test cache and then got a few consecutive greens while testing these. @JAORMX  I would like to figure this out if you are not working on it.

@JAORMX This issue is not just with the client CLI but with the server too, so let's retitle the issue. We do not process the config files correctly. Try this test for server config:
func TestReadConfigWithEmptyInputConfigAndFlags(t *testing.T) {
	t.Parallel()

	cfgstr := `---
http_server:
grpc_server:
metric_server:
`

	cfgbuf := bytes.NewBufferString(cfgstr)

	v := viper.New()
	flags := pflag.NewFlagSet("test", pflag.ContinueOnError)

	require.NoError(t, serverconfig.RegisterServerFlags(v, flags), "Unexpected error")

	require.NoError(t, flags.Parse([]string{"--http-host=foo", "--http-port=1234", "--grpc-host=bar", "--grpc-port=5678", "--metric-host=var", "--metric-port=6679"}))

	v.SetConfigType("yaml")
	require.NoError(t, v.ReadConfig(cfgbuf), "Unexpected error")

	cfg, err := serverconfig.ReadConfigFromViper(v)
	require.NoError(t, err, "Unexpected error")

	require.Equal(t, "foo", cfg.HTTPServer.Host)
	require.Equal(t, 1234, cfg.HTTPServer.Port)
	require.Equal(t, "bar", cfg.GRPCServer.Host)
	require.Equal(t, 5678, cfg.GRPCServer.Port)
	require.Equal(t, "var", cfg.MetricServer.Host)
	require.Equal(t, 6679, cfg.MetricServer.Port)
}

Digging into viper internals, I found the answer to this.
TLDR: Having keys with a nil value in the configuration and the viper store can give unexpected results due to how viper searches for a value for that key.
Reason
The following config:
http_server:
grpc_server:
metric_server:

Will add three keys: http_server, grpc_server... to the viper key store with value nil.
Now while initializing the viper store, we actually set default values for all these three flags. Well, technically not these flags, but a nested field in these structs.
Since the direct value for these keys is nil, viper will try to find a value.

So viper as a last resort will read the value for http_server as:
http_server:
  host: <default>
  port: <default>

because we have defined default values for it. See https://github.com/spf13/viper/blob/e36638d8786b0b58231039fc6d7db32b904dd1ba/viper.go#L1295 for value resolution.
Why flaking and not failing
viper keeps a map of keys, these keys are processed in non-deterministic order. If http_server.host was processed before http_server, its value would be overridden by default viper gets for http_server as viper collects values of all keys before returning it to a user if we use methods like v.getSettings(..).
To fix this, we should not allow keys with nil values which are lists or dictionaries in the config file i.e. not allow http_server to enter the viper key store but allow http_server.port, http_server.host in the key store.

To fix this, we should not allow keys with nil values which are lists or dictionaries in the config file i.e. not allow http_server to enter the viper key store but allow http_server.port, http_server.host in the key store.

I think this is a good idea
I re-titled the issue. Thanks a lot for looking into this!


rebase master branch

Codecov Report

Merging #212 (28e4575) into v2.2.0 (3e17700) will decrease coverage by 0.23%.
The diff coverage is 56.25%.

@@            Coverage Diff             @@
##           v2.2.0     #212      +/-   ##
==========================================
- Coverage   68.07%   67.83%   -0.24%
==========================================
  Files          71       71
  Lines        5077     5105      +28
==========================================
+ Hits         3456     3463       +7
- Misses       1170     1181      +11
- Partials      451      461      +10

Impacted Files
Coverage Δ

server/sync_server.go
0.00% <0.00%> (ø)

api/application.go
76.15% <50.00%> (-1.43%)
:arrow_down:

api/config.go
79.67% <50.00%> (-0.78%)
:arrow_down:

api/certificate.go
69.56% <60.00%> (-0.89%)
:arrow_down:

api/registry.go
59.43% <60.00%> (-0.37%)
:arrow_down:

api/secret.go
65.41% <60.00%> (-0.48%)
:arrow_down:

api/node.go
69.51% <62.50%> (-0.22%)
:arrow_down:

plugin/link/httplink/httplink.go
67.85% <0.00%> (-3.58%)
:arrow_down:

Continue to review full report at Codecov.

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


[SECURITY] CVE-2019-16303 - JHipster Vulnerability Fix - Use CSPRNG in RandomUtil

This is a security fix for a  vulnerability in your JHipster generated RandomUtil.java file(s).
Technical Impact
Using one password reset token from your app combined with the POC below, an attacker can determine all future password reset tokens to be generated by this server. This allows an attacker to pick and choose what account they would like to takeover by sending account password reset requests for targeted accounts.
Tell Me More!
A version of JHipster Generator that was vulnerable to CVE-2019-16303 was used to generate this project.
This version of JHipster generated code using an insecure source of randomness in security sensitive locations.
This class of vulnerability is better known as CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
This vulnerability has a CVSS v3.0 Base Score of 9.8/10.
POC code has existed since March 3rd, 2018 for taking one RNG value generated by RandomStringUtils and reversing it to generate all of the past/future RNG values.
This contribution is a part of a submission to the GitHub Security Lab Bug Bounty program.
Detecting this and Future Vulnerabilities
LGTM.com was used to automatically detect this vulnerability using a custom CodeQL query.
As of September 2019 LGTM.com and Semmle are officially a part of GitHub.
You can automatically detect future vulnerabilities like this by enabling the free (for open-source) LGTM App.
I'm not an employee of GitHub nor of Semmle, I'm simply a user of LGTM.com and an open-source security researcher.
Source
Yes, this contribution was automatically generated, however, the code to generate this PR was lovingly hand crafted to bring this security fix to your repository.
The source code that generated and submitted this PR can be found here:
JLLeitschuh/bulk-security-pr-generator
The fix was generated for each vulnerable file, preserving the original style of the file, by the Rewrite project. See the specific code for this fix here.
Opting-Out
If you'd like to opt-out of future automated security vulnerability fixes like this, please consider adding a file called
.github/GH-ROBOTS.txt to your repository with the line:
User-agent: JLLeitschuh/bulk-security-pr-generator
Disallow: *

This bot will respect the ROBOTS.txt format for future contributions.
Alternatively, if this project is no longer actively maintained, consider archiving the repository.
CLA Requirements
This section is only relevant if your project requires contributors to sign a Contributor License Agreement (CLA) for external contributions.
It is unlikely that I'll be able to directly sign CLAs. However, all contributed commits are already automatically signed-off.

The meaning of a signoff depends on the project, but it typically certifies that committer has the rights to submit this work under the same license and agrees to a Developer Certificate of Origin
(see https://developercertificate.org/ for more information).
- Git Commit Signoff documentation

If signing your organization's CLA is a strict-requirement for merging this contribution, please feel free to close this PR.
Tracking
All PR's generated as part of this fix are tracked here:
https://github.com/JLLeitschuh/bulk-security-pr-generator/issues/5

@JLLeitschuh : Thanks a bunch. 😄

Hey @SudharakaP
Since this is a security vulnerability, would you like to work together to get a CVE number assigned to help with your disclosure to your users?

@JLLeitschuh : Certainly. I don't have much idea on how to do this as I haven't done this before. Do I have to create an security advisory though GitHub?

That would be appropriate. Do you have a way to communicate with all of your users?

That would be appropriate. Do you have a way to communicate with all of your users?

Thanks. I don't have a way of communicating with users at the moment; although we do have the email addresses, we don't have consent to bulk email them I think so the security advisory should hopefully be enough for now I think. 😄


Mi Bluetooth BLE devices cannot use trigger conditions during automation

My 3 Xiaomi Bluetooth BLE devices cannot use trigger conditions in automation, But in the environmental conditions, the conditions can be selected normally.
Xiaomi Door Sensor 2 (MCCGQ02HL)
Xiaomi Motion Sensor 2 (RTCGQ02LM)
Xiaomi TH Sensor 2 (LYWSD03MMC) .
Is this normal? or should I configure something?

Please reopen the issue if it is still relevant


Rendering error with trained model

Hi,
I trained a model locally using the comprehensive car dataset (64x64). Then using this model I tried to render images to see if I can reproduce the results of the original pretrained model. To do this, I copied the config file cars_64_pretrained.yaml and changed the test model_file location to my trained model instead of the online pretrained model location. Then I ran the following command:
python render.py "my config file"
I am getting the  following error.
      File "im2scene/giraffe/config.py", line 62, in get_model
          if cfg['test']['take_generator_average']:
      TypeError: string indices must be integers

"take_generator_average" is set to True in default.yaml. As per the render.py code, default.yaml is being loaded in addition to my config file. Other than the model file location under test, should I be making any other change in my config file in order to use my model instead of the pretrained model?
Thanks for your help.

Hi @athena913 , thanks for your interest in the project!
I have to admit that I do not fully understand what you did. To train a model from scratch, you have to run python train.py CONFIG as indicated in the README. I assume this worked for you? If so, then you can just run python render.py CONFIG where you use the same config as you used for training.
The _pretrained configs should only be used to run the pre-trained models, not for running your own models - you should always use your own config file for this.


React native support

How complicated would it be to adapt this for developing react native components?

@tonyxiao it's not as complicated as one would think :)
With the Mantra module system, we should be able to just replace the preview module and use it to send/receive messages with a react-native app. We're still only planning this feature so can't say anything for now. We'll notify when we have a working POC.

Most probably in this week.

Is there a status report on this? Just decided to start using Storybook for our web app and we'd love to use it for native too! (Would totally devote some dev hours to this if it were a relatively short-term goal)

@tonyxiao @j6k4m8 I'm happy to share with you my attempt to solving this react-native/web gap with my React Native for Web Starter. In a nutshell, I plan on developing a webapp and later on launch a v2, native, as it may need depth sensors.

@grabcode awesome. At first glance it seems to render native components into web browser?

That is what it does mate. Check it out and contribute!

@mnmtanish @arunoda Any update on this issue? Are you looking for help?

@tonyxiao as promised earlier, here's the POC. It works but need to jump through a few hoops. We still have some major issues to fix, write docs, contributor guides, etc. before announcing it.

Check these repos and issues but please note that it's possible that it may change dramatically over following few days:

https://github.com/kadirahq/react-native-storybook
https://github.com/kadira-samples/react-native-button

If you really want to try it out right now:
git clone https://github.com/kadira-samples/react-native-button
cd react-native-button
npm install
npm run storybook

(in another tab)
react-native run-ios

Enable Remote JS Debugging or it won't work for now (https://github.com/kadirahq/react-native-storybook/issues/3). And it only works on OSX with the iOS simulator.
@gisenberg @j6k4m8 I'll update here as soon as the contributor guide is ready and thanks :)

@arunoda @grabcode It'll be awesome if we can render the component using react-native-web instead of the "Please check your device/simulator" text. It can also be used for the static build to push to gh-pages.

@mnmtanish react-native-web is a tiny subset of component of React Native. So, spending time on that is not wise.
May be we can stream the device's screen and render it on the web :)

@mnmtanish: Is there any configuration file that need to be setup to load the stories like .storybook/config.js we have in react-storybook. I tried cloning react-native-button repo but no stories get loaded.

@deeptiagrawa Yes, configuration quite similar to react-storybook but the directory name has changed. Use storybook (without the leading dot) instead of .storybook. Stories will appear only after a device connects. I've updated the README here with a short guide to help get started.

React Native Storybook is quite stable right now so I'll close this issue.

oh wow this is awesome!

great! THX your Hackness!!

Is there any way to build the android apk  using the browser ie. when the user will fill out the prop values of components and when he clicks build the app will be generated with that values.


Generate MediaType lookups in requests that are required

Currently in TypeScript MediaType.from(type: string) returns undefined. In Swift, MediaType?(type: String) is a nullable initializer.
When using these to lookup unhandled content types it creates a bad request, if it compiles at all. Instead inside the request the lookups should either return a valid media type or throw an. error; e.g. MediaType.require().

TypeScript
MediaType.from(type: string, def?: MediaType) now throws and error when no default is given; this matches the format output by the generator.
Swift
MediaType(valid: String) requires a valid value or throws an error and the generator has been updated to output usages of this initializer.


[MMdetection 3]  How should I use gradient accumulation correctly

In mmdetection, Ir is 0.01 when batch-size is 8*2=16.
Due to hardware problems, I can only set the batch to 8 on a single gpu. So I want to use gradient accumulation to solve this problem.
The following is part of the config file：
train_dataloader = dict(
batch_size=8,
......）
optim_wrapper = dict(
type='OptimWrapper',
optimizer=dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001))
accumulative_counts=2)  # Add this line to set the batch to 16.
auto_scale_lr = dict(enable=True, base_batch_size=16)
Now there is a question, should my learning rate be set to 0.005（0.01/2） or 0.01？（After all, the actual batch-size is still 8）
I don't quite understand the internals of gradient accumulation.  And how to set the learning rate to make it closest to batch_size=16, Ir=0.01 on a single gpu?

I miss the same question, have you solved it?

For your question -
Ir is 0.01 when batch-size is 8*2=16.
Now when running on single-gpu with batch-size=8 and accumulative_counts=2, then you will use the same lr = 0.01 as the batch-size is 8*2=16 (or you can assume it to be the effective batch-size).


sonar stop in front of obstacles

Cool, thanks! But this currently doesn't distinguish between a distance sensor for avoidance and a distance sensor for height estimation.
@LorenzMeier how should we do that? Create a new avoidance distance message?

Ah I guess we could add checks for the orientation https://github.com/PX4/Firmware/blob/b596874b91e8b1178bbdb9df625460d8188e079b/msg/distance_sensor.msg#L17

I don't think this should be in the multicopter position controller. Collision avoidance architecture obviously needs way more thought, but it should probably be either a navigator mode or standalone collision avoidance module.
For example as a standalone module you could publish a collision report. https://github.com/PX4/Firmware/blob/master/msg/collision_report.msg
Then navigator could make the appropriate adjustment mid mission, or switch to another nav state.

Obstacle avoidance is a whole track by itself. There ate numerous algorithms from simple to sophisticated ones. So given the hardwate constraints, one should start with the simple ones. I suggest to have a seperare module and it published obstacle avoidance topics. Then, navigation /controller modules can eith use or not based on user-adjustable parameters.

Closing this.


The voice indicator shows always active

When being in a voice channel or private call it shows always green as it would be sending voice data.

This is most likely a RadialStatus issue: https://github.com/DiscordStyles/RadialStatus/issues


add correct bot commands with BotCommands

as in https://github.com/teloxide/teloxide/tree/master

Probably want:

Unauthorized
AdminPanel
UpdatingValue
AppendingToValue
RemovingFromValue


cleanup: remove gc package

This PR removes pkg/gc which is not used currently.

Well, eventually we do what garbage collection.
Maybe you can wire it up instead? :)

Ah It is supposed to collect objects that were marked for deletion! I somehow did not get that the first time reading through. Am i correct? Could you give me a pointer where it should go canonically?

Well, eventually we do what garbage collection.
Maybe you can wire it up instead? :)

Ack! Was thinking initially that this package was forgotten. I'll look into wiring it up at some point!


Fix subtracting from stack in inventory after trade (issue #136)

issue #136

Goodbye, you were a cute li'l bug fix 😢


[UI] Settings: Metrics background should be white

Screenshots/Logs

Contributor Guides and Handbook

🎨 Wireframes and designs for Meshery UI in Figma
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Is this issue still open ? maybe I can work on this.

Is this issue still open ? maybe I can work on this.

I will soon raise a pr @error9098x

Is this issue still open? I can try fixing it!

Is this issue still open? I can try fixing it!

Go ahead


Investigate orchestrator bit pull down during build for deployment

[ ] Learn the node gyp install process for Orchestrator.
[ ] Look to the CI/CD future to determine where in the stack this should go.

Here’s some background material:
https://fuselabs.visualstudio.com/Orchestrator/_git/samples?path=%2FDocs%2FOrchestrator-node-pre-gyp.md&_a=preview


routing tab in menu

Move Routing stuff in its own subtab

@fichtner @AdSchellevis hope it looks good this way

@fichtner Please wait with the merge until https://github.com/opnsense/plugins/pull/163 is ready.

This will take some coordination and tweaking anyway. It's a long overdue change, but it's difficult to make this look perfectly clear, e.g. when Quagga isn't installed it would say "Routing: Static Routes" and it sounds off.

@fichtner quagga is the "Dynamic Routing" entry while "Static Routes" has been moved from "System"

I have also moved Gateways to this top level menu so all relevant layer 3 things are together.

I can see that, but it doesn't look "enterprisey" ;)

@fichtner Improvements?

Possibly, but I need to crunch a few old docs for that

do you know you can move items in your plugins by deleting the original one?

@AdSchellevis no, I don't. Is there some documentation about that?

@fabianfrz I don't have documentation, but an example is easy to provide, the following xml hides the documentation, forum and support items:

<menu>
    <Help>
        <Documentation  Visibility="delete"/>
        <Forum  Visibility="delete"/>
        <Support Visibility="delete"/>
    </Help>
</menu>

thanks @AdSchellevis should we close this and I restructure the menu only if the plugin is present?

@fabianfrz I think it's better to do so, the current location is fine when quagga isn't used in my opinion.

Hey, I want to do more research ;)

@fichtner Here some example views from "enterprisey" vendors.
Sophos:

Cisco ASA:

SecurePoint (doesn't offer dynamic routing):

@AdSchellevis does your opinion still stand? if yes we'll address it in FRR. In general I don't mind either way, though. It could help clarity and future growth.

I could provide another screenshot of Sonicwall if needed :)

@fichtner yes, although I don't have a very strong meaning about the subject, when FRR is used it seems to make more sense.

It could complicate documentation a bit. Routes and Gateways don't perfectly fit System or Interfaces at the moment, both of which are very "rich" menus.
Another approach would be to use "Networks" and "Devices" instead of "Interfaces" and shuffle assigned interfaces into Networks along with routes/gateways and keep all non-network device configuration in Devices. But that seems way more confusing than breaking out routing.

Network and devices could indeed be better, but we shouldn't do that pre 18.7 in my opinion.

do you mean skip for 18.7 or wait for 18.7 to ship this?

wait for, too big a change for a minor release

Here's a test for a separate Routing entry...

Put it on a branch for review (patching is futile, I changed menu stuff in master) https://github.com/opnsense/core/tree/routing_menu_maybe

Just seeing it, routing -> routes looks silly, but the gateway stuff ruins every attempt at consistency

Why dont call it Static in menu above?

@fichtner just remove the intermediate heading routes. It is not needed.

FYI
https://blog.webernetz.net/basic-mp-bgp-lab-cisco-router-palo-alto-fortinet/
Some views from Palo Alto how they are doing things

Continued in ticket...

IMHO, from a functional point of view, having the Routes and Gateway menues mixed with all other system general menues is not very well structured.
The action of routing is a very specific task and in is better placed in its own menue group.
The same is for gateway stuff. It is also a routing task.
We are used to find these functions under System menu beause they were included there in pfSense from the beggining, but for new users it would be no matter nor confusing in finding these functions under a Routing main menu item.
Chers

@mimugmail didn’t want the routing menu last we talked about it. It’s rather exhausting to bring everyone on the same side on a seemingly trivial matter (it’s not unfortunately)  so I personally do not have an strong opinion anymore.

It's ok, but I didn't want to lose the opportunity of giving my opinion.
I opened another issue asking this change, #2282, and it was closed because the subject was being discussed here, but I never read this until today. A little late :-)
Thank you for your reply


How can I Convert the project to .net4.0？

Hi,There!
I want to use this tools in my project,which is running on Windows Xp(only support '.net 4.0' or lower).Is it possible?

OK,I found it in Nuget ,finally.All I need to do is changing the Version.

We will not support outdated versions of .NET


SystemError: new style getargs format but argument is not a tuple

@carpedm20 In my mac, when I ran the example, error occurred:
SystemError: new style getargs format but argument is not a tuple

Finally I found the solution for the problem, go to http://stackoverflow.com/questions/26964379/systemerror-new-style-getargs-format-but-argument-is-not-a-tuple-in-ros-camerac for more detailed explanation
in environment/environment.py line 111, the last argument for imresize should be cast to tuple, using tuple(***) for that, like this: y_screen = imresize(y, tuple(self.observation_dims)).

solved.


allow running single-user servers on subdomains

relies on CHP's host-based routing (a feature I didn't add!)
requires wildcard DNS and wildcard SSL for a proper setup

This is so great.

Very cool. Subdomains for class/lecture sections :+1:

Okay, I think everything's working, now. I just need to rig up some way to run the tests with the subdomain flag on via xip.io, and it should be good to go.

It works! Thanks to xip.io, it's even testing with (and without) subdomains on Travis.

The xip tricks are so handy here.

Being able to test with xip is really nice.


attribute shape_arc_cropDirection (aka in.magic.swap.user:shape_arc_cropDirection) not found.

AAPT: error: attribute shape_arc_cropDirection (aka in.magic.swap.user:shape_arc_cropDirection) not found.

Same problem..

same problem

app:shape_arc_cropDirection="outside"      inside not found

I had to use a older version:
implementation 'com.github.florent37:shapeofview:1.3.2'

You guys should really read the release notes :P , arc_direction has been removed as it is now calculated by arc_height, -dp for inward +dp for outward.


Stack overflow exception then trying to get sqlite schema on an empty turso database on Windows (only)

Stack overflow exception then trying to get sqlite schema on an empty turso database on Windows (only). Works on linux (Fedora v40), unknown for MacOs.
use libsql::{Builder, Connection};

#[tokio::main]
async fn main() {
    let builder = Builder::new_remote("libsql://<subdomain>.turso.io".into(), "<token>".into()).build().await.unwrap();
    let connection = builder.connect().unwrap();
    get_current_db_schema("Test", &connection).await;
}

pub async fn get_current_db_schema(name: &str, connection: &Connection) -> Option<Vec<String>> {
    let query = format!("SELECT sql FROM sqlite_schema WHERE name = {}", name);

    let result_query = connection
         .query(&query, ())
         .await;

    if let Ok(mut result_row) = result_query {
         let result_rows = result_row
              .next()
              .await;

         if let Ok(_result_row) = result_rows {
              return None;
         }
         else {
              return None;
         }

    }
    else {
         return None;
    }
}

Repository with the same code: https://github.com/milen-denev/libsql_stackoverflow/

#1051

Is there anyone looking at this issue, I am a library maintainer, and I wish I could move forward supporting both Windows and Linux.


ignore_fields and exclude

I'm new to both haystack and and drf-haystack, so pardon me if I'm all wrong because my brain is fried after a long day.
I'm following the examples from the docs about ignore_fields. But I can't get it to work as expected. I'm basically doing the same as in the example, but fields in ignore_fields are still serialized and transfered to the client.
While looking at the source, I think I may have a guess why it is so:
As I understand the logic there, ignore_fields is only checked if exclude evaluates to True. I don't have an exclude (and neither does the example in the docs), thus my ignore_fields is, alas, ignored.
Do you agree this is what is happening? I'd happily provide a PR for this if you like, but I'd like you to confirm this bug before I do the work. As this is probably a quick fix, you may also want to just do it yourself. Anyway, let me know!
PS: The old logic seems to make more sense to me.

Hi,
Thanks for reporting!
This seems to have slipped in when we introduced support for multiple serializers. Also, it seems like we're missing unit tests for this, since it hasn't been catched before.
I'd be happy to accept a pull request. ignore_fields should work either way.
=)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 11/06/2015 04:01 PM, Rolf Håvard Blindheim wrote:

This seems to have slipped in when we introduced support for
multiple serializers.

Yeah. Even the comment in the code mentions that it's complicated. It
seems whoever wrote the new check was aware this probably was messed up
:)
Also, it seems like we're missing unit tests for this, since it hasn't
been catched before.
Right. I noticed that afterwards.

I'd be happy to accept a pull request. ignore_fields should work
either way.

I will give it a shot, including tests, but probably not before next wee
k.

Mikkel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJWPMMSAAoJECYcJXx0qnZLWZEH/3F4Ny19qWAfJ/X0OjKgEG1k
kXkn6UOA1RSsnqgJfGU5+MZ+zxLHOB308iiYciAPsqWE8HPNumxYBwY67XFQHg5T
fN9T75P/+4b8l1Plje2Z2cPA3Cc5FkDiu6c6QJKRnCiMjAWy443LO9LsLyPRTv4d
JlXM9tXoeY9/AuIc7DP78ks2aiqdI7r6AAQ2Bv9NMpIu8K78PX0DPZmB7ntC0D2R
LKQak3WF6mIAjmcqLba6EUWbPTtmiXkyP6XCV/zjpUewqza2PLEapEwQWSgQ8BKw
yT24ML9XcsDCUBs5UjV577DJLOmwZrsl5ExPvyogQB/1xMXjphoeQXhLJcPVebQ=
=MbSI
-----END PGP SIGNATURE-----

Great, thanks =)

I'm giving this a try today, but I have some problems running the existing tests. Can you give me quick step-by-step guide to get them to run (and succeed)?

Hi,
Just run
$ python setup.py test

If you want to run the tox tests, you need to make sure you have installed the Python version for the tox environment you want to run.
For example, if you want to test Python 2.7 with Django 1.7, you'd have to install Python 2.7 on your computer and run.
$ tox -e py27-django1.7

Take a look in the tox.ini file for what environments that's defined.

Yeah, and also you'd have to install elasticsearch and libgeos if you want to test the geo spatial filters.

Okay, that's also what I do (python setup.py test). But I get a lot of errors like this one:
NotFoundError: TransportError(404, u'{"found":false,"_index":"drf-haystack-test","_type":"modelresult","_id":"_query","_version":28,"_shards":{"total":2,"successful":1,"failed":0}}') ok
And my result it:
Ran 73 tests in 106.792s

FAILED (SKIP=3, errors=3, failures=10)

Is there some test data to load into the search index before running the tests?

Hm, weird.
No, the test suite should load all the data it needs in the setUp methods in the TestCase.
What version of Elasticsearch are you running?
I don't think we're compatible with the 2.x branch yet...
Maybe try to delete the drf-haystack-test index manually will help?

Aha! I am running 2.0.0. Let me try with an older version. Thanks!

Yeah, try the 1.9 branch.
Got an open Issue on supporting 2.x

Much better. Thanks again.

Great, np =)

So, there you go, in #32.

Great thanks =)

Fixed by merging #32

You're welcome! Will you also push an update to PyPI?

Yes, I'll try to push it tomorrow.

bump

Yeah, sorry I've been a bit busy lately...
I'll do it now =)

1 for this! ignore not working for me with a simple use case

class ShopperSearchSerializer(HaystackSerializer):
    pk = serializers.IntegerField()
    is_followed = serializers.SerializerMethodField()
    profile_picture_tb = serializers.URLField(source='object.profile_picture_tb')

    class Meta:
        index_classes = [ShopperIndex]
        fields = ('text', 'pk', 'name', 'is_followed', 'profile_picture_tb', )
        ignore_fields = ['text']
        field_aliases = {
            "q": "text"
        }

Just uploaded to pypi!

@rhblind Thanks a lot!

@rhblind Thanks!!!


Multiple conflicting extras installed when using explicit index assignments

When conflicting extra groups share a dependant, both extra groups seem to be installed.
Consider the following example adapted from the docs:
[project]
name = "project"
version = "0.1.0"
requires-python = ">=3.11,<3.12"
dependencies = []

[project.optional-dependencies]
cpu = [
  "torch>=2.5.1",
  "torchvision>=0.20.1",
]
cu124 = [
  "torch>=2.5.1",
  "torchvision>=0.20.1",
]
metrics = [
  "torchmetrics>=1.2.0",
]

[tool.uv]
conflicts = [
  [
    { extra = "cpu" },
    { extra = "cu124" },
  ],
]

[tool.uv.sources]
torch = [
  { index = "pytorch-cpu", extra = "cpu", marker = "platform_system != 'Darwin'" },
  { index = "pytorch-cu124", extra = "cu124" },
]
torchvision = [
  { index = "pytorch-cpu", extra = "cpu", marker = "platform_system != 'Darwin'" },
  { index = "pytorch-cu124", extra = "cu124" },
]

[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true

[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true

The key difference is the additional extra metrics that includes the torchmetrics package that depends on torch.
When I lock and sync both cpu and metrics extras, I get multiple versions of torch installed:
$ uv sync --extra cpu --extra metrics
Resolved 34 packages in 1ms
Uninstalled 3 packages in 199ms
Installed 3 packages in 1.10s
 ~ torch==2.5.1
 ~ torch==2.5.1+cpu
 ~ torch==2.5.1+cu124

Interesting, thanks. I don't think the extra indexes are relevant, since you can reproduce with:
[project]
name = "project"
version = "0.1.0"
requires-python = ">=3.11,<3.12"
dependencies = []

[project.optional-dependencies]
foo = [
  "idna==3.10",
]
bar = [
  "idna==3.9",
]
baz = [
  "anyio",
]

[tool.uv]
conflicts = [
  [
    { extra = "foo" },
    { extra = "bar" },
  ],
]

From there, uv tree gives you:
project v0.1.0
├── idna v3.9 (extra: bar)
├── anyio v4.6.2.post1 (extra: baz)
│   ├── idna v3.9
│   ├── idna v3.10
│   └── sniffio v1.3.1
└── idna v3.10 (extra: foo)

Thanks. It also happens if the two conflicting extra groups share the common dependant:
[project]
name = "project"
version = "0.1.0"
requires-python = ">=3.11,<3.12"
dependencies = []

[project.optional-dependencies]
foo = [
  "idna==3.10",
  "anyio",
]
bar = [
  "idna==3.9",
  "anyio",
]

[tool.uv]
conflicts = [
  [
    { extra = "foo" },
    { extra = "bar" },
  ],
]

Working it out by hand, I think the conditional logic for each idna dependency in each of the three forks present in this example is:
 idna==3.9: extra != "foo" and (extra == "bar" or extra == "baz")
idna==3.10: extra != "bar" and (extra == "foo" or extra == "baz")
idna==3.10: (extra != "foo" and extra != "bar") and extra == "baz"

Which combines to:
 idna==3.9: extra != "foo" and (extra == "bar" or extra == "baz")
idna==3.10: (extra != "bar" and (extra == "foo" or extra == "baz"))
            or ((extra != "foo" and extra != "bar") and extra == "baz")

And simplifies to:
 idna==3.9: extra != "foo" and (extra == "bar" or extra == "baz")
idna==3.10: extra != "bar" and (extra == "foo" or extra == "baz")

Note that because of how extras work, the above notation is quite misleading. It's more clearly written like this:
 idna==3.9: "foo" not in extras and ("bar" in extras or "baz" in extras)
idna==3.10: "bar" not in extras and ("foo" in extras or "baz" in extras)


Add new test-e2e-local target

What type of PR is this?
/kind cleanup
What does this PR do / why we need it:
It allows us to run e2e locally so we can debug them. To do this, this PR skips the RHSSO test (if you wish to run it, you have to modify the test so port-forwards its service locally, so the test can access it)
Have you updated the necessary documentation?

[x] Documentation update is required by this PR.
[x] Documentation has been updated.

Yes, see the README.
Test acceptance criteria:

[ ] Unit Test
[x] E2E Test

How to test changes / Special notes to the reviewer:
Follow the documentation. Running the new makefile target should work (remember to get yourself a clusterbot cluster first and oc login into it)

/retest

/ok-to-test

/test v4.8-e2e

/test v4.8-e2e

As mentioned in Cabal yesterday, there might be no need to skip the tests. Please test it locally and let me know if skipping is required. In my machine, the RHSSO test fails, that's why I had to skip it.

/retest

/test v4.8-kuttl-sequential


Removing the hiding of page_token as a parameter

Also:

PHP: switching from html tags to three ticks for code blocks
PHP: Switching repeated types to the type plus brackets

@jmuk @geigerj Please check Python/Ruby/Node and make sure the changes are acceptable.

Currently, in Python/Node/Ruby, we still want to hide the page_token. In those languages, page_token is field in the CallOptions. The presence/absence of a page token in the CallOptions is the switch to toggle page-streaming between per-resource and per-page, so it's not treated like just another optional parameter. (Example)

Oh ok. We should probably make PHP match that pattern too.
Although, I find it odd that a field from the RPC is treated differently like this; it doesn't quite match our policy of generally reflecting the API surface in a transparent way.

Agreed about transparency. I'm open to discussing an alternative approach for all four languages if you think this is a significant disadvantage.

I'm going to close this PR; @michaelbausor will come up with a cross-language proposal for page streaming enhancements relative to where we are now.


[Feature] - Lesson Page Star Modal

When students complete a lesson, we should prompt them to enter stars
https://app.zeplin.io/project/5e19606fd539a701e62f9d70/screen/5e44ed56382cc08bb0f19ec3

fixed and deployed


How can close option block

I use this option, but want to auto close option block, because data-max-options="1"
<select name="user" data-container="body" class="selectpicker show-menu-arrow" data-max-options="1" title="-Select-" multiple>
I use this option method, because if I use without "multiple" I can't choice empty options.
I find this, but how can add data-max-options option?

I add that.options.maxOptions == false and it's work, please add to next update version.
if (that.multiple && that.options.maxOptions == false) {
  e.stopPropagation();
}```

Just do this instead:
<select name="user" data-container="body" class="selectpicker show-menu-arrow" title="-Select-">

I try this way, but have problem, when I want to unchecked choose option, it's impossible...

I try this way, but have problem, when I want to unchecked choose option, it's impossible...

Ah, ok - I see the issue now. I can integrate this into the next version, but I'll use if (that.multiple && that.options.maxOptions !== 1) instead.


I have tried to improve the page about symlinks in Windows

@alexlehm
The updated explanation looks good.
Please split commit message by title and body, and leave only abstraction for the change. You can rebase or amend the commit and force push.

not complete sure it that is what you mean, I changed the commit message a bit

@alexlehm Thanks. This is exactly what I want. +1

@alexlehm Thanks for contribution, I merged this to master, 1.x, 1.0.x branches.


update emojis

Update emoji to the latest google emoji set.
This involves:

get the latest version of NotoColorEmoji.ttf, replace the old one with it.
update emoji_map.json accordingly.
update dump_emoji.py to account for the less useful filenames that ttx produces from the new NotoColorEmoji.ttf. They're of the form glyph00023.png, and the numbers have no relation to the unicode codepoint. Happily, the NotoColorEmoji.ttx that ttx produces has enough information that we can figure out what file is what emoji. dump_emoji.py now parses this info and uses to to decide where to put things. I also made some misc cleanups of this script while I was at it.
update emoji.js so the completer knows about the new emoji

@timabbott?

Automated message from Dropbox CLA bot
@porterjamesj, thanks for the pull request! It looks like you haven't yet signed the Dropbox CLA. Please sign it here.

(signed the CLA)

Automated message from Dropbox CLA bot
@porterjamesj, thanks for signing the CLA!

Awesome, thanks for doing this @porterjamesj!
I get this traceback when I try running this:
(zulip-venv) tabbott@zaset:~/zulip$ ./tools/setup/emoji_dump/build_emoji
+ rm -rf static/third/gemoji/images
+ cd tools/setup/emoji_dump
+ python ./emoji_dump.py
Dumping "NotoColorEmoji.ttf" to "NotoColorEmoji#1.ttx"...
Dumping 'GlyphOrder' table...  (22:00:27)
Reading 'post' table from disk  (22:00:27)
Decompiling 'post' table  (22:00:27)
Reading 'maxp' table from disk  (22:00:27)
Decompiling 'maxp' table  (22:00:27)
Reading 'cmap' table from disk  (22:00:27)
Decompiling 'cmap' table  (22:00:27)
Reading 'head' table from disk  (22:00:27)
Decompiling 'head' table  (22:00:27)
Dumping 'head' table...  (22:00:27)
Reading 'hhea' table from disk  (22:00:27)
Decompiling 'hhea' table  (22:00:27)
Dumping 'hhea' table...  (22:00:27)
Dumping 'maxp' table...  (22:00:27)
Reading 'OS/2' table from disk  (22:00:27)
Decompiling 'OS/2' table  (22:00:27)
Dumping 'OS/2' table...  (22:00:27)
Reading 'hmtx' table from disk  (22:00:27)
Decompiling 'hmtx' table  (22:00:27)
Dumping 'hmtx' table...  (22:00:27)
Dumping 'cmap' table...  (22:00:27)
Reading 'name' table from disk  (22:00:27)
Decompiling 'name' table  (22:00:27)
Dumping 'name' table...  (22:00:27)
Dumping 'post' table...  (22:00:27)
Reading 'CBDT' table from disk  (22:00:27)
Decompiling 'CBDT' table  (22:00:27)
Reading 'CBLC' table from disk  (22:00:27)
Decompiling 'CBLC' table  (22:00:27)
Dumping 'CBDT' table...  (22:00:27)
Dumping 'CBLC' table...  (22:00:27)
Reading 'GSUB' table from disk  (22:00:27)
Decompiling 'GSUB' table  (22:00:27)
Dumping 'GSUB' table...  (22:00:27)
Done dumping TTX  (22:00:27)
Traceback (most recent call last):
  File "./emoji_dump.py", line 110, in <module>
    main()
  File "./emoji_dump.py", line 89, in main
    color_font(code_point, code_point_to_fname_map)
  File "./emoji_dump.py", line 20, in color_font
    code_point_to_fname_map[int(code_point, 16)]
KeyError: 52

The test failure is a mypy issue; we can investigate that together tomorrow (I think it might be an issue with the xml module stubs in typeshed)

hmm, Dumping "NotoColorEmoji.ttf" to "NotoColorEmoji#1.ttx"... suggests to me that you might have an old version of NotoColorEmoji.ttx lying around, generated from the old version of NotoColorEmoji.ttf. I changed the script to be aggressive about deleting anything like this before it runs, which seems like a good idea even if it's not the cause of the problem you're having.

Awesome, people are going to enjoy all those new emoji! :)

Can you split out the reformatting part of https://github.com/zulip/zulip/pull/875/commits/e12c6e6f14a5d54179c1c2174ae7b16266eb136e into its own commit?  I think it'll be nice for folks reading the history to be able to see just the functional changes, which seems like it'd be like 1/3 of the diff, and I think it should be pretty fast to do.
(and we'll need to debug the mypy thing, otherwise this looks ready to merge!)

o7

Confirmed that fixing the stubs in typeshed fixes the mypy error above. PR fixing this: https://github.com/python/typeshed/pull/254
We can either wait for that PR to make it's way into mypy and upgrade mypy before merging this, or I can just do a hack (use .iter, use .getchildren(), etc.) to get mypy to be happy and we can merge sooner. I'm happy to do either.

Cool.  I think it probably makes sense to use a # type: ignore # https://github.com/python/typeshed/pull/254 to suppress the mypy issue while we wait for your fix to be merged

Emoji waits for no man, so I went ahead and did that tweaks, and merged this, after adjusting capitalization in your commit messages to match our style (should probably add a linter for that).
Thanks @porterjamesj for doing this!!!

Thanks! Sorry for delay, I was traveling and moving for the last couple days.

No worries, I'm just excited about our new modern emoji.  I would celebrate with :upside_down_face:, but apparently GitHub doesn't have it :frowning:


python bug

Type: Bug
there is an error in the extension make me not able to use it
Extension version: 2024.20.0
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 5 4600H with Radeon Graphics          (12 x 2994)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
7.87GB (1.52GB free)

Process Argv
D:\Me\grad\dataset anemia (1)\dataset anemia\hgb_level.ipynb --crash-reporter-id f78d88e9-4010-472d-8002-a0343da5166c

Screen Reader
no

VM
50%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythonvspyt551cf:31179979
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

Can you provide details on what that error is?

Tell me that i don't have python and i have to install it every time i use vs code
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Karthik Nadig @.>
Sent: Sunday, December 8, 2024 1:23:40 PM
To: microsoft/vscode-python @.>
Cc: Seifeldin Khaled ibrahim @.>; Author @.>
Subject: Re: [microsoft/vscode-python] python bug (Issue #24554)
You don't often get email from @.*** Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification
Can you provide details on what that error is?
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-python/issues/24554#issuecomment-2525662232, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEOXIGBLLOTFJ55BCIROMDT2EQT3ZAVCNFSM6AAAAABTGOMWKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRVGY3DEMRTGI.
You are receiving this because you authored the thread.Message ID: @.***>

Can you share where had how you install Python? Also share the logs from Python extension found at Output > Python.

I have been working with VS code for more than 3 years and this happened now
I tried to download Python from the official website and from the Microsoft Store, and then the program says to work unless I close the laptop.
Then it asks me to download Python again.
This happened suddenly
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Karthik Nadig @.>
Sent: Sunday, December 8, 2024 2:00:44 PM
To: microsoft/vscode-python @.>
Cc: Seifeldin Khaled ibrahim @.>; Author @.>
Subject: Re: [microsoft/vscode-python] python bug (Issue #24554)
Can you share where and how you install Python? Also share the logs from Python extension found at Output > Python.
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-python/issues/24554#issuecomment-2525682517, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEOXIGCTJDB54GTJXALLOKT2EQYGZAVCNFSM6AAAAABTGOMWKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRVGY4DENJRG4.
You are receiving this because you authored the thread.Message ID: @.***>

If you open a terminal outside of VS Code and try to run Python does that work? Also, please share the logs, otherwise it is impossible to diagnose.


feat(build): download tiflash.rules.yml directly

tiflash is public repo now,  download rules.yml directly

replay tested  https://cd.pingcap.net/blue/organizations/jenkins/prometheus-tiup-mirrior-update-test/detail/prometheus-tiup-mirrior-update-test/461/pipeline/26


Feat:Want to Improve Ui of newsletter #533

Updated Ui of NewsLetter Page

hey @mdazfar2 i have solved merge conflicts now you can check it

hey @mdazfar2 can you please review this pr as well


Make LocalTarget usage consistent across all modules

Do not pass paths around ever, pass around LocalTarget objects.

This is actually a bad idea.


Yosys multiranges

CC @hzeller @mithro
As you can see we're still going through our own review before we try to mainline it, but feel free to weight in.
Please also CC Ethan if you can, I'm not sure what's his GH handle

Adding Ethan @QuantamHD

Multiranges support is already moved to uhdm-plugin. Closing this PR.


Feature Request - var interpolation inside of query()

When creating a template, it'd be really handy to be able to pass in a relevant string that varies between tasks vs having to pass the entire query into the var
var thingName string
var crit lambda

batch
    |query('''
       SELECT mean("value")
       FROM "myDB"."autogen".foo
       WHERE "thing" = {{ thingName }}
    ''')
    ...
   |alert()
     .crit(crit)
   ...

@markhuge I believe you should be able to do this already with string concatenation:
var thingName string
var crit lambda

batch
   |query('SELECT mean("value") FROM "myDB"."autogen".foo WHERE "thing" = ' + thingName)
    ...
   |alert()
     .crit(crit)
   ...

But I agree that being able to use templated variable names would be the best solution.

@rossmcdonald Just FYI, the string concatenation does expand the variable, but it's not evaluated by the query. It looks like it needs to be wrapped in escaped single quotes to work:
   |query('SELECT mean("value") FROM "myDB"."autogen".foo WHERE "thing" = \'' + thingName + '\'')

Ah, yes, you will also need to include quotes around any literals. Thanks for letting me know.


Make Commands Usable while Connected :D

[x] I have checked that a similar feature request does not already exist.
i clicked through the suggestions but couldnt finde one like this or im blind ¯_(ツ)_/¯

Is your feature request related to a problem? Please describe.
My problem is that if i use my device and i always have my screen turn off but when i turn it on by accident i cant turn it off again so i have to restart the capture >:C
Describe the solution you'd like
Make commands usable when having a connection to the phone :)
So like i could turn off the screen while im already in connection or do other commands on the fly when possible
Additional context
Making dat happen would be rly nice :D

nvm


Getting error deploying to Heroku

I'm using dragonfly 0.9.10 with refinerycms 1.0.9 and when I add the dragonfly heroku initializer I get the below error when I deploy to heroku.
/app/.bundle/gems/ruby/1.9.1/gems/refinerycms-images-1.0.9/lib/refinerycms-images.rb:25:in block (2 levels) in <class:Engine>': undefined method root_path=' for #Dragonfly::DataStorage::S3DataStore:0x00000004a715a8 (NoMethodError)
I followed the setup here http://markevans.github.com/dragonfly/file.Heroku.html
I couldn't find anything on the googles which makes me think I'm doing something wrong.

Yup, I'm dumb.  Guess I should have read http://refinerycms.com/guides/how-to-install-refinery-on-heroku first.

no worries ;)


⚠ Bofrost.fr has degraded performance

In 40d39ff, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1885 ms

Resolved: Bofrost.fr performance has improved in 0019bfe.


Data JSON parsing

Great job on the dashboard, I want to use it for my project but I have one issue that prevents me from doint it:
While creating job and passing data json, for example:

In database this json is saved like this:
"data" : "{\n   \"test\":\"test\",\n   \"test2\":\"test2\"\n}"
It saves all the new lines as "\n", and if there are tabs it's gonna save those aswell like "\t", so the job doesn't work like this and I have to parse inputs which adds mess to my code.
This doesn't happen in original agendash, passing same json saves it normally

Hi @Sairyss
Thanks for taking the time to test this feature.
I'll send a fix for it this weekend.


Not able to append data using 'file_client.append_data'

Package Name: azure/storage/filedatalake
Package Version: 12.8.0
Operating System: Linux
Python Version:  3.6.15

Describe the bug
'append_data' is not appending data to the file in the container.
return :'etag': None,
To Reproduce
Steps to reproduce the behavior:

Container has Only read permission

Thanks for the feedback, we’ll investigate asap.

Got the issue -
the container does not have read permission and hence was not able to get file size using 'file_client.get_file_properties()'
Since was not providing the existing file size in 'file_client.flush_data()',  Data was not getting uploaded.


Add support for ctmask, nfmask, restore_mark.

I made a PR for puppetlabs-firewall to add support for these flags.
Figured I'd add them here as well.

@hb0nes I have merged too soon! I see your PR here has not been merged yet
https://github.com/puppetlabs/puppetlabs-firewall/pull/1234
In order to raise the same feature here, you would need to firstly have your feature in firewall both merged and released. Once that's done, note that the project has a script gen_params.sh that code generates based on the checked out firewall module. Do also have a look at that if you want to contribute here. Thanks!

Oh! My bad about the script. I wrote those changes manually, heh. But then
I'll just leave the PR as I'm sure the changes will eventually be picked up
by your generation script.
Thanks.
On Sun, Oct 6, 2024, 09:18 Alex Harvey @.***> wrote:

@hb0nes https://github.com/hb0nes I have merged too soon! I see your PR
here has not been merged yet
puppetlabs/puppetlabs-firewall#1234
https://github.com/puppetlabs/puppetlabs-firewall/pull/1234
In order to raise the same feature here, you would need to firstly have
your feature in firewall both merged and released. Once that's done, note
that the project has a script gen_params.sh that code generates based on
the checked out firewall module. Do also have a look at that if you want to
contribute here. Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/alex-harvey-z3q/puppet-firewall_multi/pull/46#issuecomment-2395327449,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJIOJVPLM2JELRMPFTJ6CIDZ2DP6HAVCNFSM6AAAAABPMS37K2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGMZDONBUHE
.
You are receiving this because you were mentioned.Message ID:
@.***>


Have one error for this command:hal config storage edit --type redis

Page: /setup/storage/redis/
Feedback:Hello,When i setup storage(--type redis), i got one error. The error is as following:
Unexpected exception: java.lang.RuntimeException: Failed to
invoke validate() on "DeploymentConfigurationValidator" for node
"DeploymentConfiguration
I hava tried to update the Halyard,  but it don't work.  How can i solve this problem? Thank you.

This question is probably best asked in the #halyard channel of the Spinnaker chatroom: https://join.spinnaker.io

@ttomsu Thank you very much.


Fixes unit tests

If the relation is broken, accessing relation.data results in a RuntimeError.
We should avoid creating the LegendGitlabConsumer in this case, otherwise we can end up with 2 objects claiming the same object path, resulting in an error when the relation is rejoined.

The unit tests now pass.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2336 ms

Resolved: Bofrost.at performance has improved in cc21061 after 6 minutes.


How to import custom 3d model

I'm wokring on a new project, and I want to import a new model to the project. Is that possible? I tried it by changing the src in a face tracking example. It didn't work. Is there such a feature?

what didn't work? can you post your code?

that is simply loading the asset. additionally you need to "render" it to an anchor with something like this
 <a-entity mindar-face-target="anchorIndex: 127">
   <a-gltf-model rotation="-0.1 -0 0" position="0 -0.3 -0.3" scale="0.05 0.05 0.05" src="#earringModel" class="earring-entity" visible="false"></a-gltf-model>
</a-entity>

https://hiukim.github.io/mind-ar-js-doc/face-tracking-examples/tryon


Dynamic Setup Fix

Codecov Report

Merging #75 (1b1bc00) into main (c881c51) will decrease coverage by 0.02%.
The diff coverage is 87.50%.

: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             @@
##             main      #75      +/-   ##
==========================================
- Coverage   96.88%   96.87%   -0.02%
==========================================
  Files         185      185
  Lines        6173     6181       +8
==========================================
+ Hits         5981     5988       +7
- Misses        192      193       +1

Impacted Files
Coverage Δ

ellar/core/modules/config.py
98.71% <83.33%> (-1.29%)
:arrow_down:

ellar/core/factory.py
100.00% <100.00%> (ø)

ellar/core/main.py
99.18% <100.00%> (+<0.01%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Add style transfer example

Use Acer models in ONNX format as model baseline.
Fixed https://github.com/webmachinelearning/webnn-samples/issues/25.
Preview: https://honry.github.io/webnn-samples/style-transfer/

@huningxin, @anssiko, @BruceDai, PTAL, thanks!

Thanks much @Honry to implement Style Transfer example.
When running this sample, I met two small problems as following, let's investigate and fix them:

Pick an image, after inference, then change another style, the input image size would change.
Sometimes there's an error "Cannot read property 'compute' of null".

Good catch, thank you! @BruceDai. I will fix them.

@Honry Verified, thanks for fixing.

@huningxin, thank you so much for your comprehensive review, all comments addressed, PTAL, thanks!

@huningxin, thanks for the new comments! All should be addressed now, PTAL again, thanks!

@huningxin, good suggestions for the UX improvement, thanks! PTAL again. :)

The UX looks good now. Thanks @Honry !
This example would allow users to switch models. However, because JavaScript class doesn't know when it is garbage collected, the webnn-polyfill cannot release the constant tensors of a model even if it is not referenced. This would lead do out-of-memory eventually. The solution for this issue there is Compilation.dispose() method of webnn-polyfill implementation, you can call when it is available (for polyfill).

Thanks @huningxin! Yeah, I've been aware of this potential memory issue, I'll improve the code once the dispose() method is ready.

@huningxin, aha, I made mistake that I thought it was not implemented. Done now, thanks!


Too many automatic redirections were attempted.

Hey all,
I'm trying to get this set up on my webserver. I copied the /src/ folder to /i/ (for images) and moved the uploader to my root http directory (/srv/http/) but I'm gettong the following error:
Error: Message:
Too many automatic redirections were attempted.

Request URL:
http://natfan.io/upload.php

Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at ShareX.UploadersLib.Uploader.SendRequestFile(String url, Stream data, String fileName, String fileFormName, Dictionary`2 args, NameValueCollection headers, CookieCollection cookies, ResponseType responseType, HttpMethod method, String contentType, String metadata)

I've tried both http and https, along with natfan.io and www.natfan.io, but to no avail. The following is my config file, with the secure key redacted:
<?php

return array(
        /* This is a secure key that only you should know, an added layer of security for the ima
ge upload */
    'secure_key' => 'SECUREKEYISSUPERSECURE!',

    /* This is the url your output will be, usually http://www.domain.com/u/, also going to this
url will be the gallery page */
    'output_url' => 'http://natfan.io/i/',

    /* This is a redirect url if the script is accessed directly */
    'redirect_url' => 'http://natfan.io/',

    /* This is a list of IPs that can access the gallery page (Leave empty for universal access)
*/
    'allowed_ips' => array('<IP_ADDRESS>', '<IP_ADDRESS>'),

    /* Page title of the gallery page */
    'page_title' => 'Natfan\'s Image Uploader',

    /* Heading text at the top of the gallery page */
    'heading_text' => 'Natfan\'s Image Uploader',
);

The following is a screenshot of my ShareX settings; again with the secure key redacted.
Am I doing anything wrong or just being silly? I'm running Arch Linux with apache2.

the php file isnt closed
<?php

return array(
        /* This is a secure key that only you should know, an added layer of security for the ima
ge upload */
    'secure_key' => 'SECUREKEYISSUPERSECURE!',

    /* This is the url your output will be, usually http://www.domain.com/u/, also going to this
url will be the gallery page */
    'output_url' => 'http://natfan.io/i/',

    /* This is a redirect url if the script is accessed directly */
    'redirect_url' => 'http://natfan.io/',

    /* This is a list of IPs that can access the gallery page (Leave empty for universal access)
*/
    'allowed_ips' => array('<IP_ADDRESS>', '<IP_ADDRESS>'),

    /* Page title of the gallery page */
    'page_title' => 'Natfan\'s Image Uploader',

    /* Heading text at the top of the gallery page */
    'heading_text' => 'Natfan\'s Image Uploader',
);
?>

try this

@iamhansen Sorry for the delay, now it seems to just output the HTML of my front page. I edited the upload.php file to use i/config.php and /i/ in it's variables, rather than the defaulted /u/.
I also did what you recommended, silly me. I'm trying to learn PHP, should have seen such an obvious mistake!

You shouldn't need to close a php file, so don't worry.
I'm worried you haven't uploaded everything to the right place?
If you are getting redirect back to your front page, then whats likely happening is you are getting sent back to your 'redirect_url' that you set in config.php
/* This is a redirect url if the script is accessed directly */     'redirect_url' => 'http://natfan.io/',
This only happens in two instances:
Your key is invalid, ensure that whatever you have set on this line
/* This is a secure key that only you should know, an added layer of security for the ima ge upload */     'secure_key' => 'SECUREKEYISSUPERSECURE!',
is correct and is also set in your shareX configuration like so:
http://jiy.io/18.05.37-07.11.17.png
I hope this is clear, if not have another read of the setup steps, as it should be correct, and if you are changing the path from 'u' to 'i' make sure its done in all the instances it occurs in upload.php

I am a MORON!
I changed the upload.php to output both what the key in the config is showing and the key from the POST value. What I saw was that the config key was fine, but the POST key (sharex side of the config) was showing blank.
It turns out I had a space (" ") after the "key" variable, meaning it had the value "key ". Of course, this caused it to fail! Thank you so much for your help @JoeGandy!


Tolls - Enbridge Mainline

Re-order the buttons - Local first, then Mainline, then FSP

Rename as:

Canadian Local Tolls
International Joint Tolls
Flanagan South Pipeline Tolls

Convert to $/barrel. Add option to select between the two units, with $/barrel set as the default. And vice versa for FSP (convert to $/m3 with an option to flip between the two units)

Replace "cnd" with "condensate"

For Local and FSP: if possible, convert the Service and Toll to lowercase to be more consistent with the labelling format of the other fields.

Tolls description box: Mainline description is duplicated. Will only need the top section.

For FSP: rename "ALL" to "All Delivery Points"

Edit no. 6 above to clarify:
The first two paragraphs about the CTS is relevant to all 3 systems. I have included them within the database. So the text for FSP, Local, and Mainline should read exactly as in the database.


Improve documentation for ObjectID.isValid()

Hi,
I've noticed what appears to be a small mistake in the documentation for ObjectID.isValid().
The method is a static, but the documentation omits (unlike the other statics before) to specify that an ObjectId should be passed as a parameter.
PS: I did not find any guidelines on how to contribute to the documentation, so I hope this is the right way.

Great pull requests thanks a lot for such an awesome contribution !


fix(esl-panel-group): add capturedBy and fix 'esl:after:show' dispatch

Closes: #849

:tada: This PR is included in version 4.0.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


MSID: 93983 Version: 2 DOI: 10.1101/2<IP_ADDRESS>2395

MSID: 93983
Version: 2
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>2395
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=93983
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>2395

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/93983v2
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>2395
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/93983/v2/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!


Dev/jim/use new gather

For #

[ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
[ ] Title summarizes what is changing
[x] ~Has a news entry file (remember to thank yourself!)~
[ ] Appropriate comments and documentation strings in the code
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[ ] Unit tests & system/integration tests are added/updated
[ ] Test plan is updated as appropriate
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed)
[ ] The wiki is updated with any design decisions/details.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@3fab0e1). Click here to learn what that means.
The diff coverage is 41.57%.

@@            Coverage Diff            @@
##             master    #9755   +/-   ##
=========================================
  Coverage          ?   60.75%
=========================================
  Files             ?      571
  Lines             ?    30820
  Branches          ?     4392
=========================================
  Hits              ?    18726
  Misses            ?    11143
  Partials          ?      951

Impacted Files
Coverage Δ

...ience/interactive-common/interactiveWindowTypes.ts
100% <ø> (ø)

src/datascience-ui/interactive-common/mainState.ts
54.76% <0%> (ø)

...er/jupyterInterpreterSubCommandExecutionService.ts
83.33% <0%> (ø)

...tascience/interactive-ipynb/nativeEditorStorage.ts
50.64% <10%> (ø)

src/client/datascience/commands/commandRegistry.ts
31.74% <100%> (ø)

...ient/datascience/interactive-ipynb/nativeEditor.ts
11.24% <4.76%> (ø)

src/client/datascience/dataScienceSurveyBanner.ts
68.96% <60.97%> (ø)

...e/jupyter/interpreter/jupyterInterpreterService.ts
89.58% <64.28%> (ø)

Continue to review full report at Codecov.

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


Image preview, toolbar function unavailable

TuSimple/naive-ui version (版本)
2.34.2
Vue version (Vue 版本)
3.2.45
Browser and its version (浏览器及其版本)
106.0.5249.119
System and its version (系统及其版本)
MacOS10.15.3
Node version (Node 版本)
Reappearance link (重现链接)
https://codepen.io/umono/pen/GRBgQEw
Reappearance steps (重现步骤)
 <n-image
      width="100"
      src="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
 />

When clicked, the zoom function on the toolbar cannot be used
Expected results (期望的结果)
All functions on the toolbar should work normally.
Actual results (实际的结果)

Vue warn :Unhandled error during execution of native event handler
Uncaught TypeError: Cannot read properties of undefined (reading 'style')

Remarks (补充说明)

    <n-image-group>
      <n-space>

缺少对应标签

should be fixed with #4154


Change the name of Action  Cloumn header

Summary of problem or feature request
in fact i develop an application using Arabic language  so i need to change the name of Action column for example  from Action To   اﻻجراءات.
There is any way to achieve that with this Awesome package . Thanks

Operating System Ubuntu 16.4
PHP Version 7.0
Laravel Version 5.3
Laravel-Datatables 6.0

Just add title attribute:
->addAction(['title' => 'اﻻجراءات'])

Awesome Thanks @yajra  for help .

Just add title attribute:
->addAction(['title' => 'اﻻجراءات'])

Thanks ... its working


Why don't you release the code?

Thank you for your attention and understanding. As the readme.md mentions the paper is under review. Therefore, the full source code will be released upon conference acceptance.

@Zeying-Gong 你好， 麻烦你知道他们大概什么时候会完成论文的审阅吗？我很想看看你们的代码 🙏

The full source code is now available for you to access. Grateful to you all.
代码已开源，谢谢你们🙏


See #1948 for more context.


Consider additional sections

Infographics such as: https://fpf.org/wp-content/uploads/2021/01/FPF_AIEcosystem_illo_03.pdf

Or licensing: https://bonterms.com/forms/ai-standard-clauses-version-1-0/

Sustainability

#97

parodies and criticism

Various organizational/model policies:
privacy policies
acceptable use policies
privacy policies that mention AI
model policies and procedures

Example organizational governance documents

Responsible AI for beginners:


Unable to write to disk / ComponentNotRegisteredException: ValidationPlugins.Dns.KeyVaultJson has not been registered

This is my first bug report: I'm doing my best here so hopefully this is the correct place for htis.
Describe the bug
When creating a certificate, "9: [dns] Create verification records with acme-dns (https://github.com/joohoi/acme-dns)" is used and storing certificates in Azure Key Vault. After successful validation with pretend-domain mydomain.com:

[DBUG] Creating task to run as system user
[INFO] Adding renewal for [Manual] *.mydomain.com
[INFO] Next renewal due at 2023/4/6 14:50:23
[EROR] Unable to write [Manual] *.mydomain.com to disk
Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'PKISharp.WACS.Plugins.ValidationPlugins.Dns.KeyVaultJson' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters)    at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType)    at PKISharp.WACS.Services.Serialization.PluginOptionsConverter.Write(Utf8JsonWriter writer, PluginOptionsBase value, JsonSerializerOptions options)    at PKISharp.WACS.Services.Serialization.PluginOptionsListConverter.Write(Utf8JsonWriter writer, List1 value, JsonSerializerOptions options)
at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)    at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)    at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)    at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo1 jsonTypeInfo)
at System.Text.Json.JsonSerializer.WriteString[TValue](TValue& value, JsonTypeInfo1 jsonTypeInfo)    at System.Text.Json.JsonSerializer.Serialize[TValue](TValue value, JsonTypeInfo1 jsonTypeInfo)
at PKISharp.WACS.Services.RenewalStoreDisk.b__7_0(Renewal renewal)
[INFO] Certificate [Manual] *.mydomain.com created

To Reproduce
Below is the full command line output with --verbose:

[DBUG] Logging at level Verbose
[VERB] No W3SVC detected
[VERB] No FTPSVC detected
[VERB] Looking for settings.json in C:\ProgramData\chocolatey\lib\win-acme\tools
[DBUG] Use existing configuration folder C:\ProgramData\win-acme
[DBUG] Use existing configuration folder C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org
[DBUG] Use existing log folder C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Log
[DBUG] Use existing cache folder C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Certificates
[VERB] Loaded validation plugin Azure from C:\ProgramData\chocolatey\lib\win-acme\tools\PKISharp.WACS.Plugins.ValidationPlugins.Azure.dll
[VERB] Loaded store plugin KeyVault from C:\ProgramData\chocolatey\lib\win-acme\tools\PKISharp.WACS.Plugins.StorePlugins.KeyVault.dll
[DBUG] Found 1 secrets in secrets.json
[DBUG] Renewal period: 55 days
[VERB] Sending e-mails False
[VERB] Arguments: --verbose
[VERB] ExePath: C:\ProgramData\chocolatey\lib\win-acme\tools\wacs.exe
[VERB] ResourcePath: C:\ProgramData\chocolatey\lib\win-acme\tools
[VERB] PluginPath: C:\ProgramData\chocolatey\lib\win-acme\tools\
[INFO] A simple Windows ACMEv2 client (WACS)
[INFO] Software version <IP_ADDRESS>8 (release, pluggable, standalone, 64-bit)
[INFO] Connecting to https://acme-v02.api.letsencrypt.org/...
[DBUG] [HTTP] Send GET to https://acme-v02.api.letsencrypt.org/directory
[VERB] [HTTP] Request completed with status OK
[INFO] Connection OK!
[DBUG] Running with administrator credentials
[DBUG] IIS not detected
[INFO] Scheduled task looks healthy
[INFO] Please report issues at https://github.com/win-acme/win-acme
[VERB] Unicode display test: Chinese/語言 Russian/язык Arab/لغة
N: Create certificate (default settings)
M: Create certificate (full options)
R: Run renewals (0 currently due)
A: Manage renewals (0 total)
O: More options...
Q: Quit
Please choose from the menu: m
[INFO] Running in mode: Interactive, Advanced
[VERB] Autofac: creating PluginFrontend scope with parent root
[VERB] Autofac: creating PluginFrontend scope with parent root
[VERB] Autofac: creating PluginFrontend scope with parent root
[WARN] Source plugin IIS not available: No supported version of IIS detected.
Please specify how the list of domain names that will be included in the
certificate should be determined. If you choose for one of the "all bindings"
options, the list will automatically be updated for future renewals to
reflect the bindings at that time.
1: Read bindings from IIS
2: Manual input
3: CSR created by another program
C: Abort
How shall we determine the domain(s) to include in the certificate?: 2
[VERB] No value provided for --host
Description:        A host name to get a certificate for. This may be a
comma-separated list.
Host: *.mydomain.com,mydomain.com
[VERB] Autofac: creating PluginBackend scope with parent root
[INFO] Source generated using plugin Manual: *.mydomain.com and 1 alternatives
Friendly name '[Manual] *.mydomain.com'.  to accept or type desired name:
[VERB] Autofac: creating Target scope with parent PluginBackend
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] No W3SVC detected
[VERB] No FTPSVC detected
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
By default your source identifiers are covered by a single certificate. But
if you want to avoid the 100 domain limit, want to prevent information
disclosure via the SAN list, and/or reduce the operational impact of a single
validation failure, you may choose to convert one source into multiple
certificates, using different strategies.
1: Separate certificate for each domain (e.g. *.example.com)
2: Separate certificate for each host (e.g. sub.example.com)
3: Separate certificate for each IIS site
4: Single certificate
C: Abort
Would you like to split this source into multiple certificates?:
[VERB] Global validation option not found for *.mydomain.com
[VERB] Global validation option not found for mydomain.com
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[WARN] Validation plugin SelfHosting not available: HTTP validation cannot be used for wildcard identifiers (e.g. *.example.com)
[WARN] Validation plugin FileSystem not available: HTTP validation cannot be used for wildcard identifiers (e.g. *.example.com)
The ACME server will need to verify that you are the owner of the domain
names that you are requesting the certificate for. This happens both during
initial setup and for every future renewal. There are two main methods of
doing so: answering specific http requests (http-01) or create specific dns
records (dns-01). For wildcard identifiers the latter is the only option.
Various additional plugins are available from
https://github.com/win-acme/win-acme/.
1: [http] Save verification files on (network) path
2: [http] Serve verification files from memory
3: [http] Upload verification files via FTP(S)
4: [http] Upload verification files via SSH-FTP
5: [http] Upload verification files via WebDav
6: [dns] Create verification records in Azure DNS
7: [dns] Create verification records in Cloudflare DNS
8: [dns] Create verification records manually (auto-renew not possible)
9: [dns] Create verification records with acme-dns (https://github.com/joohoi/acme-dns)
10: [dns] Create verification records with your own script
11: [tls-alpn] Answer TLS verification request from win-acme
: Abort
How would you like prove ownership for the domain(s)?: 9
[VERB] No value provided for --acmednsserver
Description:        Root URI of the acme-dns service
AcmeDnsServer: https://auth.acme-dns.io
[DBUG] Using C:\ProgramData\win-acme\acme-dns\auth.acme-dns.io for acme-dns configuration
[INFO] Existing acme-dns registration for domain mydomain.com found
[INFO] Record: _acme-challenge.mydomain.com
[INFO] CNAME: 00000000-27d3-42f6-9f96-d00000000000.auth.acme-dns.io
[DBUG] Configuration will now be checked at name servers: <IP_ADDRESS>, <IP_ADDRESS>
[VERB] Verification of CNAME record successful at server <IP_ADDRESS>
[VERB] Verification of CNAME record successful at server <IP_ADDRESS>
[INFO] Verification of acme-dns configuration succesful.
[INFO] Existing acme-dns registration for domain mydomain.com found
[INFO] Record: _acme-challenge.mydomain.com
[INFO] CNAME: 00000000-27d3-42f6-9f96-d00000000000.auth.acme-dns.io
[DBUG] Configuration will now be checked at name servers: <IP_ADDRESS>, <IP_ADDRESS>
[VERB] Verification of CNAME record successful at server <IP_ADDRESS>
[VERB] Verification of CNAME record successful at server <IP_ADDRESS>
[INFO] Verification of acme-dns configuration succesful.
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
After ownership of the domain(s) has been proven, we will create a
Certificate Signing Request (CSR) to obtain the actual certificate. The CSR
determines properties of the certificate like which (type of) key to use. If
you are not sure what to pick here, RSA is the safe default.
1: Elliptic Curve key
2: RSA key
C: Abort
What kind of private key should be used for the certificate?:
[VERB] Flag --ocsp-must-staple not present
[VERB] Flag --reuse-privatekey not present
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
When we have the certificate, you can store in one or more ways to make it
accessible to your applications. The Windows Certificate Store is the default
location for IIS (unless you are managing a cluster of them).
1: IIS Central Certificate Store (.pfx per host)
2: PEM encoded files (Apache, nginx, etc.)
3: PFX archive
4: Store certificate in Azure Key Vault
5: Windows Certificate Store (Local Computer)
6: No (additional) store steps
How would you like to store the certificate?: 4
[VERB] No value provided for --azureenvironment
1: AzureChinaCloud
2: AzureCloud
3: AzureGermanCloud
4: AzureUSGovernment
5: Use a custom resource manager url
Which Azure environment are you using?:
[VERB] Flag --azureusemsi not present
Do you want to use a managed service identity? (y/n*) - yes
[VERB] No value provided for --vaultname
Description:        The name of the vault
VaultName: kv-watermelon-domain
[VERB] No value provided for --certificatename
Description:        The name of the certificate
CertificateName: mydomain-com
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
1: IIS Central Certificate Store (.pfx per host)
2: PEM encoded files (Apache, nginx, etc.)
3: PFX archive
4: Store certificate in Azure Key Vault
5: Windows Certificate Store (Local Computer)
6: No (additional) store steps
Would you like to store it in another way too?:
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] Autofac: creating PluginFrontend scope with parent target
[WARN] Installation plugin IIS not available: No supported version of IIS detected.
With the certificate saved to the store(s) of your choice, you may choose one
or more steps to update your applications, e.g. to configure the new
thumbprint, or to update bindings.
1: Create or update bindings in IIS
2: Start external script or program
3: No (additional) installation steps
Which installation step should run first?:
[VERB] Autofac: creating Execution scope with parent root
[VERB] Autofac: creating PluginBackend scope with parent Execution
[INFO] Plugin Manual generated source .mydomain.com with 2 identifiers
[VERB] Autofac: creating Split scope with parent PluginBackend
[VERB] Autofac: creating PluginBackend scope with parent Split
[INFO] Plugin Single created 1 order
[VERB] Autofac: creating Order scope with parent PluginBackend
[VERB] Autofac: creating PluginBackend scope with parent order-main
[DBUG] Reading certificate cache
[DBUG] No cache files found for renewal
[VERB] Main: no cached information found
[VERB] Order Main should run: True
[DBUG] Reading certificate cache
[DBUG] No cache files found for renewal
[VERB] Obtain order details for Main
[DBUG] Refreshing cached order
[DBUG] Refreshing order...
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/order/957530466/164006302326
[VERB] [HTTP] Request completed with status OK
[WARN] Cached order has status invalid, discarding
[VERB] Creating order for identifiers: [".mydomain.com", "mydomain.com"]
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/new-order
[VERB] [HTTP] Request completed with status Created
[VERB] Order https://acme-v02.api.letsencrypt.org/acme/order/957530466/164006676356 created
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/authz-v3/202383924806
[VERB] [HTTP] Request completed with status OK
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/authz-v3/202383924816
[VERB] [HTTP] Request completed with status OK
[VERB] Autofac: creating Target scope with parent PluginBackend
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] No W3SVC detected
[VERB] No FTPSVC detected
[VERB] Autofac: creating Target scope with parent PluginBackend
[VERB] Autofac: creating PluginFrontend scope with parent target
[VERB] No W3SVC detected
[VERB] No FTPSVC detected
[VERB] Autofac: creating PluginBackend scope with parent PluginBackend
[VERB] Handle authorization 1/2
[INFO] [.mydomain.com] Authorizing...
[VERB] [.mydomain.com] Initial authorization status: pending
[VERB] [.mydomain.com] Challenge types available: ["dns-01"]
[VERB] [.mydomain.com] Initial challenge status: pending
[INFO] [.mydomain.com] Authorizing using dns-01 validation (acme-dns)
[DBUG] [.mydomain.com] Attempting to create DNS record under _acme-challenge.mydomain.com...
[DBUG] Using C:\ProgramData\win-acme\acme-dns\auth.acme-dns.io for acme-dns configuration
[DBUG] Configuration will now be checked at name servers: <IP_ADDRESS>, <IP_ADDRESS>
[VERB] Verification of CNAME record successful at server <IP_ADDRESS>
[VERB] Verification of CNAME record successful at server <IP_ADDRESS>
[INFO] Verification of acme-dns configuration succesful.
[DBUG] Sending update request to acme-dns server at https://auth.acme-dns.io/ for domain mydomain.com
[DBUG] [HTTP] Send POST to https://auth.acme-dns.io/update
[VERB] [HTTP] Request completed with status OK
[DBUG] [.mydomain.com] Record E_a7QalIPd-U20unsDDxzL9OCF5x9UAo3QZ-jL3S-6Q successfully created
[VERB] Starting commit stage
[VERB] Commit was succesful
[DBUG] [.mydomain.com] Submitting challenge answer
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/chall-v3/202383924806/n8NweA
[VERB] [HTTP] Request completed with status OK
[DBUG] Refreshing authorization (1/15)
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/chall-v3/202383924806/n8NweA
[VERB] [HTTP] Request completed with status OK
[INFO] [*.mydomain.com] Authorization result: valid
[VERB] Starting post-validation cleanup
[VERB] Post-validation cleanup was succesful
[VERB] Handle authorization 2/2
[INFO] [mydomain.com] Authorizing...
[VERB] [mydomain.com] Initial authorization status: pending
[VERB] [mydomain.com] Challenge types available: ["http-01", "dns-01", "tls-alpn-01"]
[VERB] [mydomain.com] Initial challenge status: pending
[INFO] [mydomain.com] Authorizing using dns-01 validation (acme-dns)
[DBUG] [mydomain.com] Attempting to create DNS record under _acme-challenge.mydomain.com...
[DBUG] Using C:\ProgramData\win-acme\acme-dns\auth.acme-dns.io for acme-dns configuration
[DBUG] Configuration will now be checked at name servers: <IP_ADDRESS>, <IP_ADDRESS>
[VERB] Verification of CNAME record successful at server <IP_ADDRESS>
[VERB] Verification of CNAME record successful at server <IP_ADDRESS>
[INFO] Verification of acme-dns configuration succesful.
[DBUG] Sending update request to acme-dns server at https://auth.acme-dns.io/ for domain mydomain.com
[DBUG] [HTTP] Send POST to https://auth.acme-dns.io/update
[VERB] [HTTP] Request completed with status OK
[DBUG] [mydomain.com] Record KzJe0rqOAHkN3W8XK9rZiXTA03ANGvnOrEvulRqtyDE successfully created
[VERB] Starting commit stage
[VERB] Commit was succesful
[DBUG] [mydomain.com] Submitting challenge answer
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/chall-v3/202383924816/Su8s7Q
[VERB] [HTTP] Request completed with status OK
[DBUG] Refreshing authorization (1/15)
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/chall-v3/202383924816/Su8s7Q
[VERB] [HTTP] Request completed with status OK
[INFO] [mydomain.com] Authorization result: valid
[VERB] Starting post-validation cleanup
[VERB] Post-validation cleanup was succesful
[VERB] Order 1/1 (Main): processing...
[DBUG] Creating new private key at C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Orders\3536f60cb32d39f0f771257ba8843bda66811c4a.order.keys...
[DBUG] CSR stored at JegPowkqUUG7igqA-main-cb6b0b7bcafcc920af77d3a438a8c66bef4fdfedkqsqa-csr.pem in certificate cache folder C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Certificates
[VERB] Submitting CSR
[DBUG] Waiting for order to get ready (1/15)
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/order/957530466/164006676356
[VERB] [HTTP] Request completed with status OK
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/finalize/957530466/164006676356
[VERB] [HTTP] Request completed with status OK
[INFO] Downloading certificate [Manual] *.mydomain.com
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/cert/03828abc295aa73cfc95f0f3350c58535da7
[VERB] [HTTP] Request completed with status OK
[VERB] Parsing certificate from 5808 bytes received
[VERB] Parsing PEM data at range 0..2056
[VERB] Parsing PEM data at range 2058..3883
[VERB] Parsing PEM data at range 3885..5807
[VERB] Parsing certificate from 5808 bytes received
[VERB] Parsing PEM data at range 0..2056
[VERB] Parsing PEM data at range 2058..3883
[VERB] Parsing PEM data at range 3885..5807
[DBUG] [HTTP] Send POST to https://acme-v02.api.letsencrypt.org/acme/cert/03828abc295aa73cfc95f0f3350c58535da7/1
[VERB] [HTTP] Request completed with status OK
[VERB] Parsing certificate from 3884 bytes received
[VERB] Parsing PEM data at range 0..2056
[VERB] Parsing PEM data at range 2058..3883
[VERB] Parsing certificate from 3884 bytes received
[VERB] Parsing PEM data at range 0..2056
[VERB] Parsing PEM data at range 2058..3883
[DBUG] Found 2 version(s) of the certificate
[DBUG] Option 1 issued by DST Root CA X3 (thumb: 3442FA3973ACD42E4F803DA0EA3836CD3A25488D)
[DBUG] Option 2 issued by ISRG Root X1 (thumb: 3442FA3973ACD42E4F803DA0EA3836CD3A25488D)
[DBUG] Selected option 1
[DBUG] Certificate written to cache file kqtPowJegkqsdqUUG7igqA-main-cb6b0b7bcafcc920af77d3a438a8c66bef4fdfed-temp.pfx in certificate cache folder C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Certificates. It will be reused when renewing within 1 day(s) as long as the --source and --csr parameters remain the same and the --force switch is not used.
[VERB] Processing order 1/1: Main
[VERB] Autofac: creating PluginBackend scope with parent PluginBackend
[INFO] Store with KeyVault...
[DBUG] [HTTP] Send POST to https://kv-watermelon-domain.vault.azure.net/certificates//mydomain-com/import?api-version=7.3
[VERB] [HTTP] Request completed with status Unauthorized
[DBUG] [HTTP] Send POST to https://kv-watermelon-domain.vault.azure.net/certificates//mydomain-com/import?api-version=7.3
[VERB] [HTTP] Request completed with status OK
[INFO] Adding Task Scheduler entry with the following settings
[INFO] - Name win-acme renew (acme-v02.api.letsencrypt.org)
[INFO] - Path C:\ProgramData\chocolatey\lib\win-acme\tools
[INFO] - Command wacs.exe --renew --baseuri "https://acme-v02.api.letsencrypt.org/"
[INFO] - Start at 09:00:00
[INFO] - Random delay 04:00:00
[INFO] - Time limit 02:00:00
Do you want to specify the user the task will run as? (y/n*) - no
[DBUG] Creating task to run as system user
[INFO] Adding renewal for [Manual] *.mydomain.com
[INFO] Next renewal due at 2023/4/6 14:50:23
[EROR] Unable to write [Manual] *.mydomain.com to disk
Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'PKISharp.WACS.Plugins.ValidationPlugins.Dns.KeyVaultJson' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters)    at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType)    at PKISharp.WACS.Services.Serialization.PluginOptionsConverter.Write(Utf8JsonWriter writer, PluginOptionsBase value, JsonSerializerOptions options)    at PKISharp.WACS.Services.Serialization.PluginOptionsListConverter.Write(Utf8JsonWriter writer, List1 value, JsonSerializerOptions options)
at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)    at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)    at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)    at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo1 jsonTypeInfo)
at System.Text.Json.JsonSerializer.WriteString[TValue](TValue& value, JsonTypeInfo1 jsonTypeInfo)    at System.Text.Json.JsonSerializer.Serialize[TValue](TValue value, JsonTypeInfo1 jsonTypeInfo)
at PKISharp.WACS.Services.RenewalStoreDisk.b__7_0(Renewal renewal)
[INFO] Certificate [Manual] *.mydomain.com created
N: Create certificate (default settings)
M: Create certificate (full options)
R: Run renewals (0 currently due)
A: Manage renewals (1 total)
O: More options...
Q: Quit
Please choose from the menu:

Expected behavior
Because of this, win-acme doesn't remember this certificate was successfully created. When I run the wacs command again, "Manage renewals" is grayed-out because it thinks there are none.
Platform:

OS: Windows 11 Version 21H2 (OS Build 22000.1455)
Version: Software version <IP_ADDRESS>8 (release, pluggable, standalone, 64-bit)

Hi Sam, this issue has already been resolved in one of the more recent builds of 2.2.0. if you download it again from the releases page it should work a lot better


Entering a youtube link in the search causes old search results to come back.

The search clears, loads like normal but the results will be the old result list.

Need to escape the query param in the search API

Fixed in Beta 0.1.4


Fix issue collapse when previous line has code

If there is an issue marked at the end of the line as a comment it can be raised on the line or after the line even if the line itself is non-empty.
issueCaseNotRaised(00); // [ISSUE-CODE]
issueCaseRaised(010); // [ISSUE-CODE]

In the above even though the issueCaseNotRaised doesn’t raise the issue it will pass scatr tests as the line after raises the issue in question.
This PR fixes this bug.

@akshit-deepsource just rename and put a note for the other convo then we can merge.


Saving and loading model seems to be regressing to lower performance

Hi, it is a great experience working with your library so far. I wanted to ask what the best way is to save and load the model.
I save:
model = ViT(hyperparams)
train(model)
torch.save(model.state_dict(), save_loc + f"model_e{epoch+1}.pth")

I load:
model = ViT(hyperparams) # exact same
model.load_state_dict(torch.load(f"models/VITM/model_e13.pth"))

However, I get the loaded model has lower train and test scores on the exact same dataset. Are there other things that I will need to save that I am missing? What could be the reason for this?
I am using 0.1 dropouts, but I do not expect that to cause this discrepancy.

My eval setup had me just run the training part of the code with model.eval(). The loss.backward() and optimizer.step() weren't commented out because I thought it won't have an effect since I am running in eval mode. However this was inherently doing something weird because if I only evaluated on the test set things worked as expected.