Question: aspnetcore netsh self hodted appid to allow http add sslcert ipport=x.x.x.x:yyyy certhash= appid=

Hi
When registering the https sert for net framework wcf window services it was easy to:

netsh http add sslcert ipport= certhash= appid=

The appId is the guid in the executing assembly  AssemblyInfo.
Question:
Can we do the same with aspnetcore self-hosted (as windows service).
if so, There is no Guid in the new csporj format. What do we add to the project file to add the Guid/Appi id for the host?
I know there is:
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-2.2#endpoint-configuration.  But this only references using the stores.
We deploy our product on many servers with different certs, domains and names. and therefore the "http add sslcert" is best
is the appid as simple as adding:

Best Regards @generik0

AppID isn't linked to your app, it's just an identifier so you can use it to identify the binding later, if you want.
You can use any GUID you'd like,

Hi @Blowdart
Well call me a newbie...
Strange, last time we changed our guid for our net framework host, the netsh didn’t work until I change it to the Assembly Guid...
Please tell me then, how can I use the guid in the aspnetcore application, so it is linked to the binding?
If it is a link, I would expect the aspnetcore app need to know the guid for the link?

That's super weird, I don't believe there is any real connection here. If, for example, I look at the default bindings we create as part of the SDK install;
    IP:port                      : <IP_ADDRESS>:44397
    Certificate Hash             : a774dd1f4944a95baa94f9a143095a90b1b437ab
    Application ID               : {214124cd-d05b-4309-9af9-9caa44b2b74a}
    Certificate Store Name       : MY

Now, if that required an app id in a core application then VS wouldn't be able to run ASP.NET Core apps, because, as you point out, there's not concept of an application ID any more. All kestrel cares about is the port number.
What errors are you getting on your app servers when you try to run your kestrel hosted apps?

Hi @blowdart.
Ok, maybe Its just me WHO is seeing ghosts.
I will be putting our new aspnetcore microservice on our dev and test server with https.
Can we leave the question open until the start of next week?
I still dont understand what the AppId is for in the netsh, If it isnt used for anything :-/

I think it was for manually mapping ports/configs to apps, if you wanted to keep your own records.
Sure, we'll leave it open, I'll pop it into the discussions milestone.  Please @ me once you've tried it out.

Hi @blowdart
Deployment day.

even though cert registered:

What is missind that the kestrel links the port to the cert?
I have tried with;
"Kestrel": {
    "EndPoints": {
      "Https": {
        "Url": "https://*:9091"
      }
    }
  }

and
"Kestrel": {
    "EndPoints": {
      "HttpsDefaultCert": {
        "Url": "https://localhost:5003"
    },
    }
  }

Any thoughts?
on https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-2.2#endpoint-configuration i don't see how to link to a certhash :-/

You can manually retrieve it via the X509Certificate2 class and set it with httpsOptions.ServerCertificate, or you pass in the store and subject name in UseHttps. We don't do thumbprints because that doesn't allow for certificate rollover, unlike subject names.
Or you set the host name in the bindings and it'll get it based on that.
Setting the host name is much safer than listening on *, we've had MSRC cases around wildcard configurations and I don't recommend them.

@blowdart This is our dev serv. just trying to get it to work right now. Hence "Url": "https://*:9091"
What do you mean by: "Or you set the host name in the bindings and it'll get it based on that."

@blowdart the netsh used to "just work" with net framework console/services. its a big shame that it doesn't for aspnetcore!

"Kestrel": {
"EndPoints": {
"HttpsDefaultCert": {
"Url": "https://localhost:9091"
},
}
}
This would look for a certificate that matches localhost.

netsh is of course rather windows specific, and is only usable with http.sys. You could go back down that route, if you wanted a slower host :)

@blowdart
Just to be clear. This is the appsettings that should be used:
"HttpsInlineCertStore": {
"Url": "https://localhost:5002",
"Certificate": {
"Subject": "<subject; required>",
"Store": "<certificate store; defaults to My>",
"Location": "<location; defaults to CurrentUser>",
}
}

That's what I'd go for. @halter73 do you have any better suggestions?

@blowdart
It works.
Dammit. Build hell..
Any thoughs to improving this?

You can bind to * but have your own middleware that rejects host names you don't expect. In config you'd load the cert before the binding and pass it in as an X509Certificate2 instance

Thanks @blowdart. Will close for now.
Will think about it all.
Please let me know if you guys have other ideas :-)


filterObj?

I have the following object:
let storage = {
  11: {continue: true},
  21: {continue: true},
  31: {continue: false},
  41: {continue: true}
}

The number if occurrences of truth values of continue are of interest.
I was thinking to use
return R.length(
    R.filter(function(v) {
        return v.continue === true;
    }, R.values(storage))
);

But what if I want to have all key/value pairs that equal the condition? So:
{
  11: {continue: true},
  21: {continue: true},
  41: {continue: true}
}

Would this be an option?
filterObj(function(val, key, obj) {
    return val.continue === true;
}, storage):

Or is there already a (efficient) function combination that does this?
edit: updated return val to return val.continue

filterObj seems reasonable to me. I don't see a simple solution for this, and key order is immaterial.

:horse:

I might write your first example differently.  I would definitely pass this to filter:
R.where({continue: true})

And I might go all out and use this:
var fn = R.pipe(R.values, R.filter(R.where({continue: true})), R.length);

For the more general problem (I assume you want return val.continue === true), I don't see any simple combination that generates what you're looking for.  Obviously something could be done involving a cycle of toPairs -> filter -> fromPairs, but that filter step would be a fairly ugly wrapper on the filter predicate supplied.
This does not fall prey to the issues described whenever we bring up a foldObj implementation.  Since the result is an object, it shouldn't matter in what order the keys are added.  I wouldn't mind seeing a PR for this, but I would also like to see some argument for its general usefulness.  Do you have a reasonably easy-to-describe real-world scenario?

I start typing a response, go away for a few minutes, come back to finish it up and find two others in ahead of me!  And as always, much more concise than me.  Especially the horse!

yes, i think :horse: is a "Godfather" reference, so we better include this function ....

Just trying to adapt to the current jargon =)

I'll make a PR. That's the easy part. The difficult part is to squash is into one commit :(

@donnut I am happy to teach. Mastering git rebase is a joy :)

If you are on the gitter chat you can write to me privately

"Joy", he calls it!

Squashing, amending and rebasing are the little bursts of happiness throughout my workday. After composing functions of course...

@donnut Sounds like a plan

Isn't pickBy basically equivalent to the proposed filterObj? (It should only lack having the object passed as third argument to the predicate)

@pscanf I think you are right. It is a sort of in between of filterObj (value) and filterObjIndexed (value, key, object). I overlooked that function completely.
Aside from that, what I noticed is that pickBy does not create an new object, the reference to the target object remains, see http://bit.ly/1O2tSE5.
That seems to be the case for zipObj too.

There a comment of @pscanf in this thread suggesting that pickBy does the same thing as filterObj. But the comment was removed. I think he is right. pickBy is a sort of in between of filterObj (value) and filterObjIndexed (value, key, object). I overlooked that function completely.

@donnut I think an hypothetical filterObj function should maintain the current behaviour of pickBy, that is, not cloning filtered values. That is consistent with what R.filter does for arrays (see http://bit.ly/1FxdFCG).

(In any case, I vote in favour of filterObj+filterObjIndexed, even if only as aliases of pickBy, as they certainly have a more intuitive name :smiley: )

note that the name pickBy would also enable easy integration/dispatch to highland streams. see #1037

#1004


Fix #234 auto_session_create_enabled take a func

Let auto_session_create_enabled take a function that lets a user customize when a session can be created automatically

Interesting, I guess fixing the README conflict locally (rather than on GH) dismissed your review. sorry about that.


Forced Color Mode Per Page Causes Unintended Behavior with nuxt-link in Nuxt3

Hi,
I am using Nuxt3 with the colorMode module and fetching page-specific color modes from a Sanity backend. I want to force a specific color mode on certain pages. While the forced color mode works initially, clicking on the active nuxt-link for the current page causes the color mode to change unexpectedly.
Version
@nuxtjs/color-mode: 3.4.1
nuxt: 3.11.2
Reproduction Link
https://stackblitz.com/edit/github-qvp2nk-wgy2hy?file=middleware%2Fcolor-mode.global.ts
Steps to reproduce

Navigate to a page with a forced color mode. (light or dark)
Click on the active link of the current page.

What is Expected?
When navigating to a page with a forced color mode, the page should stay in the forced color mode, and clicking on the active nuxt-link should not change the color mode.
What is actually happening?
On pages with a forced color mode, clicking on the active link causes the color mode to change unexpectedly.
Thanks.

Nice catch @lhoucinecherif
This is quite weird, I suspect the issue comes from to the fact that you add the meta from a Nuxt middleware which is not called on the same route, but we use router.afterEach which is called anyway: https://github.com/nuxt-modules/color-mode/blob/577d3bd3bff39f3f36f9a328962b3b9479230843/src/runtime/plugin.client.ts#L47
Could you try to use a Nuxt plugin instead an use useRouter().beforeEach() to update to.meta and see if this solves it?


OpEntryPoint could use cleanup of unused inputs

I didn't find any passes that remove dead inputs from entrypoints; when trying to use HLSL input to glslang, the resulting shaders have several cases where dead inputs arise:

Notably, most of our shaders have gl_FragCoord (translated from SV_Position) as an input even though we aren't actually reading it... (this is common for VS/PS that share one struct)
Some of our fragment shaders have unused inputs that are written by VS; I currently suspect that one such case causes a miscompilation of one of our shaders on Qualcomm drivers

Would it make sense to implement it and if so, where? I quickly hacked this together as a change to dead variable elimination pass but since this pass isn't currently active it's likely the wrong thing to do. I could write a separate pass for this?
Still need to figure out two other things:

Does pruning inputs in this fashion actually fix the issues with Qualcomm we have without introducing new ones?
Validation layers have an annoying warning that tells you that vertex shader writes to an output that isn't read by the fragment shader; does this warning get even more annoying if you do this?

I have a patch for something like this to be included in ADCE; however, it strikes me an unsafe optimization. Vulkan interface matching rules are rather strict, so this seem more appropriate as optimization on the whole pipeline. We debated this internally. I'm not sure which way we should cater here. We also discussed having a "workaround" pass (similar to #1209).

@alan-baker The pass I'm thinking of only removes entire variables if unused, it doesn't attempt to clean up interface struct fields; I believe this is safe because the matching is location-based?
Separately, cleaning up builtins should be safe and harmless - this can slightly reduce the shader size for HLSL inputs because of gl_FragCoord as mentioned above.

I don't think we can remove stage IO variables freely, even if they are unused. Vulkan spec 14.1.3 says:

A user-defined output variable is considered to match an input variable in the subsequent stage if the two variables are declared with the same Location and Component decoration and match in type and decoration, except that interpolation decorations are not required to match. ...

Variables or block members declared as structures are considered to match in type if and only if the structure members match in type, decoration, number, and declaration order. Variables or block members declared as arrays are considered to match in type only if both declarations specify the same element type and size.

At an interface between two non-fragment shader stages, the built-in interface block must match exactly, as described above. At an interface involving the fragment shader inputs, the presence or absence of any built-in output does not affect the interface matching.

At an interface between two shader stages, the user-defined variable interface must match exactly, as described above.

Please definitely correct me if I'm wrong. But my reading of it is that the only thing we can do maybe is just removing unused builtin variables in fragment shader. For others, they must match exactly.

@antiagainst This is surprising to me. OTOH in our current shader compilation pipeline (that doesn't use SPIRV-Tools and is based on HLSL->GLSL AST conversion and glsl-optimizer which aggressively prunes unused inputs) we have several pairs where VS output is a superset of FS input, and a few shaders where vertex input declaration on the C++ side is a superset of vertex shader inputs, and that works perfectly fine without issues on 3 mobile & 3 desktop vendors... The issue we're hitting with Qualcomm (I believe - I will update this thread when checking again) is with an unused fragment shader input that is still present in the entrypoint declaration.
Validation layers emit a performance warning for vertex shader outputs that don't have a corresponding fragment shader input here:
https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/layers/shader_validation.cpp#L1423-L1426
Which makes me think it's valid? :) Obviously the spec text must take precedence over what's mentioned above, and 14.1.3 does seem like it says "you have to have an input in a stage for any output in the previous stage", but this might be unclear wording? (or a spec bug)
This needs a followup from Khronos - this is definitively different from GLSL, HLSL and MSL rules so if you actually have to have a redundant input for any output, that can be a problem.

that works perfectly fine without issues on 3 mobile & 3 desktop vendors...

Sometimes drivers are more permissible than the spec. Using the same machine-level fundamentals to support multiple APIs will sometimes "leak" the behavior of one API into others, I think. They may also contain hotfixes for certain commonly seen confusions/errors.

Obviously the spec text must take precedence over what's mentioned above, and 14.1.3 does seem like it says "you have to have an input in a stage for any output in the previous stage", but this might be unclear wording? (or a spec bug)

+1
Yep. The Vulkan shader interface matching section could use some improvements for sure. It caused quite some confusion for me previously when translating HS/DS/GS builtins.
One nice thing about the spec is that we have an authoritative definition of a certain API, instead of trying to feed the source code into the driver and adjust according to the implementation's response. Implementations certainly influence the spec; but we may want to base SPIRV-Tools on the spec.

Yeah - I agree the spec comes first. However, we're in a very weird spot atm:

It's not clear what the spec says; different people seem to disagree on whether not using an input value is allowed
For shader portability reasons, it's important to support omitting input values since that is more or less how HLSL/GLSL/MSL work (HLSL rules for DX10-12 are somewhat more strict, mostly because compiler auto-assigns "register" indices, but they are still more relaxed than "all in/out variables must match one to one")
For driver simplicity, I could imagine it's important to require one-to-one matching since this can make separate shader compilation possible - if you compile final bytecode when creating the pipeline state this is irrelevant, but otherwise it helps.
Validation layers don't produce errors on mismatches between different stages.

I will file an issue on Vulkan-Docs; I believe this has to be resolved one way or the other, either by explicitly spelling out allowed omissions, or explicitly banning them (which will take a toll on the community because it's likely that most existing games do use partial interfaces in at least one shader...).

I've filed a Vulkan-Docs issue (uh... https://github.com/KhronosGroup/Vulkan-Docs/issues/666). Also it looks like pruning unused inputs doesn't resolve our issues with Qualcomm, I'll need to get more data on that.

FWIW the issues we had with Qualcomm drivers were unrelated to unused inputs per se. Their driver seems to use OpName and, in absence of OpName, generated names from SPIRV ids (yes, really) to match VS & FS signatures. So we had to implement a pass that remaps VS output & FS input variables to have a matching SPIRV id to fix issues we've encountered :-/ I'll keep this open for now since pruning unused inputs/outputs reduces the binary size a bit, so it might still be a good idea if the spec allows for it.

Closing this due to ambiguous spec status and this not being required to solve driver issues.

I have a patch for something like this to be included in ADCE; however, it strikes me an unsafe optimization. Vulkan interface matching rules are rather strict, so this seem more appropriate as optimization on the whole pipeline. We debated this internally. I'm not sure which way we should cater here. We also discussed having a "workaround" pass (similar to #1209).

Hi, alan. Since the specs has been updated, can you add this input cleanup patch to ADCE?


Markdown cells in edited notebook have invalid "outputs"

Snakemake version
5.26.1
Describe the bug
For notebooks that contain markdown cells, when loading a previously edited notebook nbformat.validate raises the error Notebook JSON is invalid: Additional properties are not allowed ('outputs' was unexpected)
Logs
[E 16:26:01.489 NotebookApp] Notebook JSON is invalid: Additional properties are not allowed ('outputs' was unexpected)

    Failed validating 'additionalProperties' in markdown_cell:

    On instance['cells'][5]:
    {'cell_type': 'markdown',
     'metadata': {},
     'outputs': ['...0 outputs...'],
     'source': '# Test markdown\n'
               '\n'}

Minimal example
Any markdown cell should do
Additional context
All cell outputs are set to an empty list when saving an edited notebook, which might be the source of the error:
https://github.com/snakemake/snakemake/blob/a16ed719fbee96f0119c663eaa13a46c24025d03/snakemake/notebook.py#L95

Same problem here :)

Failed validating 'additionalProperties' in code_cell:

On instance['cells'][0]:
{'cell_type': 'code',
 'execution_count': None,
 'id': 'waiting-sound',
 'metadata': {'tags': ['snakemake-job-properties']},
 'outputs': ['...0 outputs...'],
 'source': '\n'
           '######## snakemake preamble start (automatically inserted, do '
           'n...'}

Yeah, I'm also seeing it with id now also. It must be some weird environment mismatch or maybe a bug in the latest nbconvert (6.1.0)?


qt5.qtbase: build without GTK support on darwin

Motivation for this change
It's not likely that GTK theming support is useful on darwin. Homebrew ships their Qt without GTK<EMAIL_ADDRESS>even on linux.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg eval


Add usernames to tracker serializer

Fixes crasher where tracker would popup and expect usernames which will be empty, from sync-avatar-props, so the serializer would throw an error.
Didn't see it because I tested w/o making a tracker popup.
Testing
keybase verify -m "message" causes tracker to popup. Helps to use a development GUI and service (not admin).
Also, need to restart start-hot between branch switches

@chrisnojima

@jakob223 sure thing

Cherry picked.

@thebearjew I think this still needs to make it into master, right? Otherwise we'll have the same bug next release.


python 3 migration ?

M2Crypto is now in python3. Migration to python3 possible ?

This is fixed in version 1.0.6.


inputInfo in CustomArgument causes compile error on JDK 16.0.2

CommandAPI version: 6.3.0
What I did:
I made a CustomArgument. When compiling it spits an error.
Stuff that happened when I did it (post error logs here for example)

:18:24
java: cannot access java.lang.Record
class file for java.lang.Record not found
Note
I'm only a sophomore CS major so I don't know much about the nitty-gritty. From what I've searched online, it says Record cannot be extended and CustomArgumentInfo extends Record? ¯_(ツ)_/¯

Hi!
I wasn't able to find any issues with compiling using CustomArguments. Since you haven't posted any code that you tried, there's not much that I can really offer to help as I don't know the full state of your setup.
Have you tried following the documentation's example for using a CustomArgument? I can confirm that this works!
https://commandapi.jorel.dev/6.3.0/customarguments.html#example---world-argument

My bad, here's a screenshot of the setup. Even the example code throws this error. I'm using intellij at language level 16, if that helps at all.

It appears you're not compiling using Java 16. While you may have Java 16 installed on your computer, IntelliJ needs to know to use Java 16 for compilation. I'm not too familiar with IntelliJ (especially not from memory!), hopefully this helps?
https://blog.jetbrains.com/idea/2021/03/java-16-and-intellij-idea/#:~:text=IntelliJ IDEA Configuration&text=You can configure it to,16 directly from IntelliJ IDEA.

Hmm, I've tried compiling it with JDK 16.0.2 and 16.0.1 and I tried changing the language level to 16(Preview) like the intellij blog post instructed but with no change in the results :(. I also checked java -version, and it's using 16.0.2

How are you compiling your project? Are you using a package manager such as Maven or Gradle? If so, you may have to explicitly declare that you want to use Java 16 in the build script.
Another idea may be to add your JDK path to the JAVA_HOME environment variable (see the following link on how to do this if you are unsure: https://www.baeldung.com/java-home-on-windows-7-8-10-mac-os-x-linux )

I figured it out. I did have my language level for the PROJECT set to 16, but for the MODULE, it was set to 8. Changing the module language level to 16 made it work.
Thanks for the help JorelAli, probably wouldn't have figured this out if I didn't have to check whether I started this as a Gradle project or not. <3


    docs: distinguish plugins config used for workers in build and serve …

New updates on head repo.
https://github.com/vitejs/vite/commit/c120afc174d937edd7189cf945f4bdcc6f5f8aad

対応します


phoneticLookup("") returns

Challenge Using Objects for Lookups has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
// Setup
function phoneticLookup(val) {
  var result = "";
  // Only change code below this line
  var lookup = {
    "alpha": "Adams",
    "bravo": "Boston",
    "charlie":"Chicago",
    "delta":"Denver",
    "echo": "Easy",
    "foxtrot": "Frank"
  };
  result += lookup[val];
  // Only change code above this line
  return result;
}

// Change this value to test
phoneticLookup("");

Duplicate of #6660.

ThinkHuman you need to take out the += and just make is =

Closing as a duplicate. Thanks and happy coding!


PHP CS Fixer work fine when save, but don't show errors on IDE

Version: 0.30.3
When I save PHP files, work fine Beaturifier. The errors are fixed. I post a screenshot:

But my Atom never show errors. Any ideas?

Have you ever encountered an error trying to change the file? If so, Could you give some detail on how the error was encountered?

Is possible do something like this?

php-cs-fixer is only a fixer and do not support error reportings... if you want to display errors, you have to install for example a linter...

What are you trying to do with that code block?

any
Any linter plugin that reads the .php_cs.dist file? For example linter-phpcs
 reads codesniffer files.

Turn on notifications setting for your php-cs-fixer if you are using atom. That helps solve some issues.

@pablorsk I don't think so

What language are you trying to find a linter for (i.e. php, is, etc.)?
Sent from my Samsung SM-G930T using FastHub

@pjkaufman I try linter PHP but reading .php_cs.dist like eslint linter reads .eslintrc.json or sasslinter reads .sass-lint.yml

If you are using php and you find an error, assuming the php linter doesn't work; you can search for a php syntax checker online and paste your code there. Is the php linter not working? Also what is string2 in your image? It doesn't seem to follow php syntax for a param.
Sent from my Samsung SM-G930T using FastHub


Some typos

Thanks! Since there are some similar errors in the LaTeX documentation, I'll fix those and manually merge them both to master.

Thanks again, these fixes are now on master.

Sorry, I didn't even think of LaTeX. Thanks


Change in url.ParseQuery semantics while running 932150-2 test?

While running the latest rc, I've stumbled on this:
        running 932150-4: 12:18PM INF ftw/http: cannot encode data to: "932150-2=dont match commands that are not at start;tar -xzf /var/www/exfiltrate.tar.gz /etc"
12:18PM FTL ftw/http: fatal error building request: invalid semicolon separator in query

Looking at the test:
   - test_title: 932150-4
     stages:
       - stage:
           input:
             dest_addr: "<IP_ADDRESS>"
             method: "POST"
             port: 80
             headers:
               User-Agent: OWASP ModSecurity Core Rule Set
               Host: "localhost"
               Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;   q=0.5
             data: '932150-2=dont match commands that are not at start;tar -xzf /var/www/exfiltrate.tar.gz /etc'
             protocol: "http"
           output:
             no_log_contains: "id \"932150\""

Seems like this has changed semantics now? Need to dive a bit because previous 0.3 version (go 1.16 works).

Tests 942150-4 and 941190-1 also fail with teh same error.


Support for NetCore?

This looks like a very useful utility. However, as my stack is Linux bound, I have no access to the NetFramework. Is there any chance of this project getting future support for NetCore?

@TheDudeFromCI, what are the exact issues you are facing under .NET Core?
I don't plan to spend more time on this tool at the moment, but I'll happily merge contributions if it can help you or anyone else. 🙂

Oh, the project is currently compiled against the .NET Framework, so it can only be compiled and run on Windows-based machines. .NET Core is cross-platform.
I forked the project. Going to see how easy it would be to port over. I'll submit a PR if it works.

Sounds good, thanks a lot! 🙇♂  Let me know if I can help in any way!
Also, even if it doesn't work in the end, feel free to share what you tried, what failed, etc. in case I (or someone else) decides to have another go at it later 🙂

Actually, it was surprisingly simple. Just ran the try-convert tool. Compiles and runs on both my Linux and my Windows operating systems. Submitting a PR now.

Excellent! 👏  Thanks a lot! 🙇


Multi modules project not working with java folder

I have a Android app and a plain kotlin module. Since kotlin accepts files inside a src/main/java folder, I have files in this folder. However, when running ./gradlew ktlin, it returns NO SOURCE.
I just tried using ktlint directly (https://github.com/shyiko/ktlint#-with-gradle) and it worked.

Sorry about the delay. I'll try to look this weekend.
Is this a module within a multi-module build for an android app? If the module with kotlin source is an "android library" module, it should pick kotlin files under src/main/java: https://github.com/jeremymailen/kotlinter-gradle/blob/master/src/main/kotlin/org/jmailen/gradle/kotlinter/KotlinterPlugin.kt#L59
If it's just a module using kotlin-jvm it might only find the conventional kotlin sourceSets under src/main/kotlin since I'm using the plugin's interface to tell me.
If you bump gradle log level up to debug that output might help me troubleshoot.

Hey man, no worries. As I said, I am using ktlint and it is working.
It is a project with some modules (inspired by clean architecture). The main one is UI with Android plugin, other are simple kotlin modules with only apply plugin: 'kotlin', not kotlin-jvm (I didn't even know there was this plugin).

I created a single module project with kotlin source under both src/main/kotlin and src/main/java and the kotlin compiler and kotlinter see both.
Can you give a little more info about your project structure to help troubleshoot and the output of:
gradle -d lintKotlin | grep lintKotlin
For reference by build file is like:
buildscript {
    ext.kotlin_version = '1.1.60'
    repositories {
        jcenter()
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'org.jmailen.gradle:kotlinter-gradle:1.5.1'
    }
}
plugins {
    id 'java'
    id 'application'
    id 'idea'
}
apply plugin: 'kotlin'
apply plugin: 'org.jmailen.kotlinter'
...

And I get output like:
...
14:56:35.745 [DEBUG] [org.gradle.api.Task] lintKotlinMain linting: src/main/kotlin/jmailen/slakoverflow/stackoverflow/Client.kt
14:56:35.752 [DEBUG] [org.gradle.api.Task] lintKotlinMain linting: src/main/kotlin/jmailen/slakoverflow/slack/CommandResponse.kt
14:56:35.754 [DEBUG] [org.gradle.api.Task] lintKotlinMain linting: src/main/java/org/jmailen/ThingKotlin.kt
14:56:35.755 [DEBUG] [org.gradle.api.Task] lintKotlinMain linting: src/main/java/org/jmailen/Thing.java
14:56:35.755 [DEBUG] [org.gradle.api.Task] lintKotlinMain ignoring non Kotlin file: src/main/java/org/jmailen/Thing.java
...

Hmm, tried again with version 1.6.0 and it seems to work. Thanks!


[pip-audit] pytigergraph 1.5 PYSEC-2022-43064

Describe the bug
Scan with pip-audit reports unfixed vulnerability:
Found 1 known vulnerability in 1 package
Name         Version ID               Fix Versions
------------ ------- ---------------- ------------
pytigergraph 1.5     PYSEC-2022-43064

To Reproduce

Create a sample python project: poetry new my-package
Add pyTigerGraph to the project: poetry add pytigergraph==1.5
Add pip-audit to the project: poetry add pip-audit
Run audit: poetry run pip-audit
Verify results

Expected behavior
pyTigerGraph has no known vulnerabilities.

We have remedied the issues brought up by CVE-2022-30331, as described here: https://docs.tigergraph.com/home/alerts/cve-2022-30331. UDFs are not controlled by pyTigerGraph anyways. The pip-audit database appears to be out of date.

Ok, thank you @parkererickson-tg!
Ticket raised on https://github.com/pypa/advisory-database

Cool, thank you!


Augmented Hadoop classpath to allow s3a commands such as distcp to work

Hadoop has some libraries that must be manually added to the classpath before s3a commands, such as distcp, can work. Updates made to hadoop-env.sh and mapred-site.xml

Can one of the admins verify this patch?

@emhoa Sorry to get back so late. This is great! Could you also test this with Spark to make sure that we can still talk with s3 using the s3a protocol?

Hey @aouyang1 Sorry for the late reply but after testing this for Spark, I found some more bugs that I just fixed with the spark setup_single.sh script and committed to this branch. Let me know if you have any questions or concerns.

@emhoa Great! I'll test out hadoop and spark as well and see if things are good too. Does spark not make a lib directory by default or is that a spark 2.0 thing?

@emhoa I checked out the branch and it looks like Spark can't read using the s3a endpoint now. This change I assume is so that Hadoop can read from s3a?

I don't believe Spark has a lib directory, at least not at that top level but I'd have to look at it some more.
Sent from my Verizon Wireless 4G LTE smartphone
-------- Original message --------
From: Austin Ouyang
Date:10/25/2016 7:32 PM (GMT-05:00)
To: InsightDataScience/pegasus
Cc: Hoa Nguyen , Mention
Subject: Re: [InsightDataScience/pegasus] Augmented Hadoop classpath to allow s3a commands such as distcp to work (#108)
@emhoahttps://github.com/emhoa Great! I'll test out hadoop and spark as well and see if things are good too. Does spark not make a lib directory by default or is that a spark 2.0 thing?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/InsightDataScience/pegasus/pull/108#issuecomment-256209110, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG012pzp56zDKnughVVTBSHHWd6iv4UOks5q3pFxgaJpZM4J_egp.

Sorry, I'm not sure what you're asking. S3a is working with this branch...it wasn't before. I did point the Spark classpath to where the HDFS config files are stored in order to pick up the AWS credentials that you'll need to access the buckets. In thinking about it some more, where it might not work is when spark is installed but not hadoop. Can think about how to get around it some more.
Sent from my Verizon Wireless 4G LTE smartphone
-------- Original message --------
From: Austin Ouyang
Date:10/25/2016 8:20 PM (GMT-05:00)
To: InsightDataScience/pegasus
Cc: Hoa Nguyen , Mention
Subject: Re: [InsightDataScience/pegasus] Augmented Hadoop classpath to allow s3a commands such as distcp to work (#108)
@emhoahttps://github.com/emhoa I checked out the branch and it looks like Spark can't read using the s3a endpoint now. This change I assume is so that Hadoop can read from s3a?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/InsightDataScience/pegasus/pull/108#issuecomment-256216313, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AG012vboVMOcU8S2Gnf7d9soGoC3_Getks5q3pzigaJpZM4J_egp.

test this please


Can we add play and pause buttons to the video playback?

Can we add play and pause buttons to the video playback?
And mute and non-mute buttons.
just as Instagram playback.

I think the current version of VideoPlayer is very limited. There're number of features that are needed for:

play / pause
overlay for video rect

Hey. Yeah, I think it's a good idea. The initial version was designed to work/look like GIFs or their video replacements usually do in the browser. But it would be great to add some options like displaying play/pause buttons and allowing some UI customization too.

@kean please check my PR https://github.com/kean/NukeUI/pull/21. I started doing some work in this direction.


[Bug Report]

Describe the bug
Crooked home page
To Reproduce
Steps to reproduce the behaviour:

Don’t know what I did. Ive only had theme for 15 min. I turned off templates and templated and then turned them back on could that have broken it?

Expected behaviour
Nothing.
Screenshots
https://share.getcloudapp.com/xQuEAyD0
Operating System:

[ ] Linux
[ x] Windows 11
[ ] macOS

Additional context
Add any other context about the problem here.
Should the templates folders be different how about the settings for all the other community plugins?
https://share.getcloudapp.com/xQuEAyD0

https://share.getcloudapp.com/xQuEAyn8


Models + Relationships not behaving as expected

I've tried several variations of these 3 structs, but nothing is working.
I want to be able to get a Contact with all of it's Emails and PhoneNumbers.
Or, give me all Emails for this Contact.
type Contact struct {
	gorm.Model
	Emails       []Email
	PhoneNumbers []PhoneNumber
}

type PhoneNumber struct {
	gorm.Model
	ContactID uint
	Label     string
	Value     string
}

type Email struct {
	gorm.Model
	ContactID uint
	Label     string
	Value     string
}

Also, I followed along with this by @svett : http://blog.ralch.com/tutorial/golang-object-relation-mapping-with-gorm/ … but db.Create(&sampleCompany) only creates a row in companies tables, but nothing in employees or companies.
What am I doing wrong?

Could submit a executable script that could reproduce your issue by following https://github.com/jinzhu/gorm/blob/master/CONTRIBUTING.md#executable-script-template ?

The issues is: the tables being created by GORM are not correct -- for instance, contacts table corresponding to the Contact struct.
Surely I am doing something wrong.
package main

import (
    _ "github.com/go-sql-driver/mysql"
    "github.com/jinzhu/gorm"
)

var db *gorm.DB

type Contact struct {
	gorm.Model
	Emails       []Email
	PhoneNumbers []PhoneNumber
}

type PhoneNumber struct {
	gorm.Model
	ContactID uint
	Label     string
	Value     string
}

type Email struct {
	gorm.Model
	ContactID uint
	Label     string
	Value     string
}

func init() {
    var err error
    db, err = gorm.Open("mysql", "user:password@/dbname?charset=utf8&parseTime=True")
    if err != nil {
        panic(err)
    }
    db.LogMode(true)

    db.CreateTable(&Address{})
    db.CreateTable(&Company{})
    db.CreateTable(&Employee{})
}

func main() {
    init()

	// Phone
	phone1 := PhoneNumber{
		Label: "Home",
		Value: "505-555-1212",
	}
	db.Save(&phone1)

	// Phone
	phone2 := PhoneNumber{
		Label: "Work",
		Value: "515-444-9090",
	}
	db.Save(&phone2)

	// Email
	email1 := Email{
		Label: "Home",
		Value<EMAIL_ADDRESS>	}
	db.Save(&email1)

	// Email2
	email2 := Email{
		Label: "Work",
		Value<EMAIL_ADDRESS>	}
	db.Save(&email2)

	// Contact
	contact := Contact{
		Emails:       []Email{email1, email2},
		PhoneNumbers: []PhoneNumber{phone1, phone2},
	}
	db.Save(&contact)

	// Find Contacts
	contacts := []Contact{}

	// Results
	fmt.Println("\ncontacts:\n", db.Find(&contacts))
}

Data persisted to the DB looks correct.
Second is that db.Find(&contacts) returns *gorm.DB instance, not the records themselves.
So, you need to change this line
fmt.Println("\ncontacts:\n", db.Find(&contacts))

To
// Fetch all contacts together with their associated records
db.Preload("Emails").Preload("PhoneNumbers").Find(&contacts)
// Print contacts, not the database instance
fmt.Println("\ncontacts:\n", contacts)

Lastly, get a habit of checking for errors in Go and consider using stackoverflow for usage questions next time.

Why don't the tables show the relations? Also, what would happen if I didn't have ContactID in Email and PhoneNumber? In what way can I accomplish the same effect but without ContactID?
Re SO: will do next time! Thanks for taking the time to help me here though.


UX fixes

https://github.com/user-attachments/assets/134e2b6a-d8c0-4cea-9796-fc7b0f76e392

lgtm @mdmohsin7


[Bug] 'export' button does not work

Describe the bug
'export' button does not have any effect.
To Reproduce
Steps to reproduce the behavior:

Go to 'settings'
Click on 'export'

Expected behavior
It should prompt the user to choose a location to save the file.
Desktop (please complete the following information):

OS: [macOS Ventura]
Version [v2.9.7]
( ChatGPT.Next.Web_2.9.7_x64.dmg )

might this bug issue its because of filename
https://github.com/Yidadaa/ChatGPT-Next-Web/blob/23eb7732d7011ce9476ab6309c92509e094fca81/app/utils.ts#L34
this is wrong
export function downloadAs(text: string, filename: string) {
  const element = document.createElement("a");
  element.setAttribute(
    "href",
    "data:text/plain;charset=utf-8," + encodeURIComponent(text),
  );
  element.setAttribute("download", filename);

  element.style.display = "none";
  document.body.appendChild(element);

  element.click();

  document.body.removeChild(element);
}

should refactor downloadAs to https://tauri.app/v1/api/js/fs/#writebinaryfile

@Yidadaa what how its json btw you mean refactor by adding parameter ?
also object its already enought for json

is this issue opened ? Can i work on it? @Pear-sudo

@Yashh221
Sure, you can refactor downloadAs with tauri api, just like this:
https://github.com/Yidadaa/ChatGPT-Next-Web/blob/23eb7732d7011ce9476ab6309c92509e094fca81/app/utils.ts#L9-L17

this issue must be add package for tauri I think
because the default there is no package for tauri
only default window.__TAURI__

@Yidadaa not only that
this one aswell
https://github.com/Yidadaa/ChatGPT-Next-Web/blob/23eb7732d7011ce9476ab6309c92509e094fca81/app/global.d.ts#L13C1-L14C1
example :
declare module "*.jpg";
declare module "*.png";
declare module "*.woff2";
declare module "*.woff";
declare module "*.ttf";
declare module "*.scss" {
  const content: Record<string, string>;
  export default content;
}

declare module "*.svg";

declare interface Window {
  __TAURI__?: {
    [x: string]: any; // customize tauri-api
    writeText(text: string): Promise<void>;
  };
}

let's continue this issue
@Yidadaa
invoke / writebinary file not possible

Note
This issue has been fixed on my fork's

https://github.com/H0llyW00dzZ/ChatGPT-Next-Web/commit/2e948b4920833536394c3f2f4a6f67cbfc86524f


InvalidValueError: not an Array

Current behavior
The map works as expected and shows all markers and polylines but the following error is shown:
InvalidValueError: not an Array
_.qb @ maps.google.com/maps/api/js?callback=lazyLoadCallback:38

Expected/desired behavior
No error warnings
Extra info
Version: "ngmap": "^1.18.4",
Implementation example:

  <ng-map center="[51.210016, 4.389103]" zoom="11" zoom-to-include-markers="auto" map-type-control="false"  style="height:400px;">

    <marker ng-repeat="marker in map.positions"
            id="{{marker.id}}"
            position="{{marker.LatLng}}" icon="{{marker.icon}}" title="{{marker.title}}"
            on-click="showDetail(marker)">
    </marker>
    <info-window id="position-detail">

        Type: {{map.marker.id | uppercase}}

        Name: {{map.marker.title}}

        Timestamp: {{map.marker.modified * 1000 | date:"dd/MM/yyyy HH:mm"}}

    </info-window>

    <shape name="polyline" id="route"
           path="{{ map.route}}"
           geodesic="true"
           stroke-color="#00C477"
           stroke-opacity="1.0"
           stroke-weight="5"></shape>
  </ng-map>

Additional:
It's linked to the
<shape name="polyline" id="route"            path="{{ map.route}}"            geodesic="true"            stroke-color="#00C477"            stroke-opacity="1.0"            stroke-weight="5"></shape>
Because if I leave this empty, then the error is not present anymore

Please create a plunker example so that we can actually see the error

Closing for inactivity

Hi @allenhwkim
This error happens when the initial path is clean like vm.path = [];
Look:
https://plnkr.co/edit/jywN60PdsLegZNTbDTSd?p=preview
This plnkr is based on:
https://ngmap.github.io/#/!polyline-complex.html
Thank you, your job is very good!

please use ng-if to avoid errors
    <shape ng-if="vm.path.length"name="polyline" id="foo"
      path="{{vm.path}}"
      stroke-color="#FF0000"
      stroke-opacity="1.0"
      stroke-weight="3">
    </shape>

I am getting that error even after using ng-if.
 <shape ng-if="selected.runner && path.length >0"
   name="polyline"
   path="{{path}}"
   geodesic="true"
   stroke-color="#5B2C6F"
   stroke-opacity="1.0"
   stroke-weight="2">
</shape>


AzureDiagnostics has no data

[Enter feedback here]
Can you verify whether this page is out of date, I have tried 2 different subscription account, and there is no data at AzureDiagnostics table, even though there is data in SynapseSqlPoolExecRequests table. Thanks

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

ID: 763272bb-fbbc-f4b9-09b8-c0c086684a9e
Version Independent ID: 8ca11524-db18-3ede-4bef-2dafc9ef522e
Content: Monitor workload - Azure portal - Azure Synapse Analytics
Content Source: articles/synapse-analytics/sql-data-warehouse/sql-data-warehouse-monitor-workload-portal.md
Service: synapse-analytics
Sub-service: sql-dw
GitHub Login: @julieMSFT
Microsoft Alias: jrasnick

@BenoityipMSFT we'll review your feedback and get back to you shortly. Thanks.

I can close this ticket, This page is against the old synapse sql pool, not the new Synapse SQL pool


An alternative tracking mechanism

https://www.straitstimes.com/singapore/coronavirus-singapore-develops-smartphone-app-for-efficient-contact-tracing
The article describes an application used in Singapore.
"Dubbed TraceTogether, the app is able to identify people who have been in close proximity - within 2m for at least 30 minutes - to coronavirus patients using wireless Bluetooth technology"

Thank you @andreiyurkevich -- do you think we should create a /research folder where we can maintain a list of these apps?

Resources are tracked here
https://docs.google.com/document/d/1Hb-Kzv9tp03i70jxt9xxxVbC2ZYLA6_gZ5jR1C46_lg/edit?usp=sharing

@cankisagun I strongly advocate for keeping all resources on the same platform. Copy all the resources on that Google Doc and move it to a doc on this repo. The link above will get lost in a sea of issues...


Trying to use this with vue-chartjs

I am trying to use this package with vue-chartjs: 3.5.1, chartjs: 2.9.4, and vue: 2.6.12, but I am getting the the following error:
<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'chart.js/helpers' in 'D:-\src\webapp\vue_frontend\node_modules@sgratzl\chartjs-chart-boxplot\build'
My BoxPlot.js looks like this:
import { mixins } from "vue-chartjs";
import { BoxPlotChart } from '@sgratzl/chartjs-chart-boxplot';

export default {
  name: 'box-plot',
  extends: BoxPlotChart,
  mixins: [mixins.reactiveProp],
  props: {
    options: Object,
  },
  mounted() {
    this.renderChart(this.chartData, this.options);
  }
};

Other parts of the code is taken from the following example:
https://github.com/sgratzl/vue-chartjs-boxplot
The reason I am trying to use this package instead of chartjs-chart-box-and-violin-plot, is because with my versions of vue, chartjs and vue-chartjs it seems that the boxplot doesn't update properly. It sometimes works on refresh and sometimes not.
Is there something I can do to make this package work with vue?

the latest version of this plugin is just compatible with chart.js 3 that's why you cannot find the chart.js/helpers module