(LibreOffice) Implement Proxy Authentication based on Install-ChocolateyPackage

Internal function GetLibOExactVersion from the LibreOffice streams helpers I wrote is not supporting proxies.
Expected Behavior
Handle proxy.
Current Behavior
Fails with a 407 error.
Possible Solution
Reuse the code from Install-ChocolateyPackage
Steps to Reproduce (for bugs)

Use a HTTP proxy
Try to install LibreOffice
Fails because the internal helper function is not supporting proxy

Context
Reported via a comment on the Chocolatey Store:
https://chocolatey.org/packages/libreoffice-still#comment-5012607851
Your Environment
N/A

@wget @ferventcoder
I will make the suggestion that the proxy detection used by Install-ChocolateyPackage script should be made into it's own helper script. This would make usage in other packages easier in the future.
Right now the proxy detection lines of code are used in three chocolatey functions.

@RedBaron2 Could you please be more meaningful about this and point me to the aforementioned 3 files already using the proxy detection code?

I will fill this in later with the actual lines for the proxy detection code


traceconv use : to separate path from PERFETTO_BINARY_PATH

I Built traceconv from source code on windows and I found it can not find the library path even I  set
set PERFETTO_BINARY_PATH enviroment.
e.g
PERFETTO_BINARY_PATH=E:\orange_sdk\temp\build\android\build\intermediates\cmake\release\obj\arm64-v8a\
after debuging, I find this issue:
//https://github.com/google/perfetto/blob/master/src/profiling/symbolizer/symbolize_database.cc
std::vector<std::string> GetPerfettoBinaryPath() {
  const char* root = getenv("PERFETTO_BINARY_PATH");
  if (root != nullptr)
    return base::SplitString(root, ":");
  return {};
}

then the one path will be sperated into two as follow:
mbolize_database.cc:159 GetPerfettoBinaryPath E
mbolize_database.cc:159 GetPerfettoBinaryPath \orange_sdk\temp\build\android\build\intermediates\cmake\release\obj\arm64-v8a\

is it possible to separate paths with ;  instead of :  ?

Patches for this welcome: I would only change the separator on Windows given we have a bunch of tooling in place which uses this already which we don't want to brea.

I had the same issue on my Widows desktop and tracked to that source.  Submitting patch https://android-review.googlesource.com/c/platform/external/perfetto/+/2780895/1


local ip resolution using wifi ip not working

I have:

Expectations:
I'm expecting the ip of my domain to be updated to <IP_ADDRESS>
Got:
The Ethernet ip value is used for the new ip.

I disabled VirtualBox Host-Only Ethernet Adapter in device manager, and now it uses the wifi ip.


Fixes #199 Make set of wired camel components configurable

If a META-INF/jboss-camel-components.properties file is defined in the deployment, then it will only add those the modules listed as keys as dependencies to the deployment unit.

Can one of the admins verify this patch?

ok to test

ok to test

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/wildfly-camel-pullreq/208/
Test PASSed.


Maintain original scripts tag attributes and position when inlining scripts.

Hey, thanks for making this tool!  This is really handy!
I was using this on a project and I needed to maintain the attributes on my script tags, e.g. the id and type attributes. So these changes will cause the api/cli to only modify the inner content of script tags but maintain all the existing attributes except src.
Also, I wanted to keep the ordering and positions of my scripts, so instead of appending to the body, I just replaced the existing script tag with the new script. If you don't want to make that change, let me know and I can put it back the way it was.

hi dgendill, I am very glad that this tool is useful to you.
And you are totally right, keep the ordering and positions of the scripts make more sense and avoid errors. I was lazy to add all to the body, but that corresponded to my needs at that time!
I merge it. Thank you!


Considering automatic dependency resolution with Apache Ivy?

Hi team,
It seems the project so far manages jar dependencies in manual way. That is, adding any new deps requires you to download, unpack and git commit from scratch. Would you consider introducing automatic dep resolution? For existing ant solution, I would suggest Apache Ivy.
Loading Ivy is as easy as copying the snippet from this site. Then, we can define ivy.xml along side with build.xml, and run ant resolve to download all jars you need.
<ivy-module version="2.0">
  <info organisation="com.appinventor.mit" module="appinventor" />
  <dependencies>
    <!--

I personally like the idea of not having to clone hundreds of MBs of jar files, although the are certain things that would have to stay as jars if they are not published in any public repos.
At the same time, the real deal here would be to move to gradle instead of patching up ant. Don't know what others think.

I would second a move to Gradle over Ivy, especially because I would like to see the components library grow into a proper Android Archive. However, we also like to follow the airplane test, which to paraphrase @jisqyv, means that you should be able to build the system after checking out the sources without needing an Internet connection.

@jerry73204 @ewpatton Not only do I not want to require an internet connection, but I also want it to be the case that you can checkout a old version of the source and build it. One of the issues I have seen with other projects is that over time you loose the ability to build older versions because the maintainers of the dependencies remove old versions, so you cannot reliably download them. That is one of the reasons why we have the dependencies checked into the source tree.

When I was at RPI I ran a maven cache so that any dependencies were cached "locally". We could run a similar service at MIT to cache any dependencies and do backups to GitHub, AWS, etc. to make sure we always have a copy around. This would give us the benefit of being able to automatically resolve dependencies while making sure we can keep a copy around for historical reasons.

My point is that dependencies are not managed. We would run the risk of duplicated and conflicting dependencies by manual means. For example, A depends on B == 2.0, while C depends on B == 3.0. Including both breaks the satisfiability. That may not be easily discovered.
Besides @ewpatton points out, we can further cache jars in repo and commit them. That would solve the internet connection problem.


Copy tasks when iterating

In this PR we fix a small issue in the base ProtocConfigurationPlugin which caused an error in downstream (mc-java in particular) due to concurrent modifications.
Also, some minor issues found by Detekt are addressed.

@armiol, @alexander-yevsyukov, PTAL.

@alexander-yevsyukov, PTAL again.


Compact/packed format

Hi, it'd be nice to use (have an option to use) a compact/packed serialization format (like bincode and rmp) that serializes structs like lists (thus relying on the order of the fields). This allows faster (de)serialization and more compact output.
rmp (msgpack)
[
<PHONE_NUMBER>597,
  123456,
  [
    1,
    []
  ],
  [
    [
      2,
      []
    ],
    200,
    503,
    520,
    [
      1,
      []
    ],
    "text/html",
    "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36",
    "https://www.cloudflare.com/",
    "/cdn-cgi/trace"
  ],
  [
    "<IP_ADDRESS>",
    8000,
    "www.example.com",
    [
      2,
      []
    ]
  ],
  [
    238,
    []
  ],
  [
    3,
    []
  ],
  "<IP_ADDRESS>",
  "metal.cloudflare.com",
  "<IP_ADDRESS>",
  123456,
  "10c73629cce30078-LAX"
]

cbor
{
    "timestamp":<PHONE_NUMBER>597,
    "zone_id": 123456,
    "zone_plan": null,
    "http": {
        "protocol": null,
        "status": 200,
        "host_status": 503,
        "up_status": 520,
        "method": null,
        "content_type": "text/html",
        "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36",
        "referer": "https://www.cloudflare.com/",
        "request_uri": "/cdn-cgi/trace"
    },
    "origin": {
        "ip": "<IP_ADDRESS>",
        "port": 8000,
        "hostname": "www.example.com",
        "protocol": null
    },
    "country": null,
    "cache_status": null,
    "server_ip": "<IP_ADDRESS>",
    "server_name": "metal.cloudflare.com",
    "remote_ip": "<IP_ADDRESS>",
    "bytes_dlv": 123456,
    "ray_id": "10c73629cce30078-LAX"
}

I am open to add this option. But the CBOR spec mentions in the last paragraph of Section 3.7 that constrained devices should use integer keys for maps. The first 24 keys of a struct would only take one byte each. I prefer this solution because it preserves more semantics and is easier to extend. Would you be okay with using integer keys if an option is used?

I think it's a worthy addition.

@arthurprs It has been a long time but finally packed encoding and decoding has landed in version 0.5.1. It would be great if you'd test the new encoding and tell me if it fits your needs or needs more improvement.


Remove explicit golang.org/x/net replace

go.mod has:
require golang.org/x/net v0.9.0
replace golang.org/x/net v0.7.0

IMO replace is not needed, x/net can be freely updated to any future compatible version.
As a consequence, golang.org/x/term gets updated to satisfy requirements of golang.org/x/net v0.9.0.

coverage: 83.302%. remained the same when pulling b0fff6b284703e6ee6ad886f6a1353be91a789d1 on jsafrane:remove-explicit-net into cceee5b206ea194676e0d2410f22c8651c66a2a6 on kubernetes-sigs:master.

@jsafrane this was recently fixed in https://github.com/kubernetes-sigs/ibm-vpc-block-csi-driver/pull/173

This has been fixed by another PR.


Optimize spec

There are a number of optimizations we will want to consider for a "fast" phase0 spec.

https://github.com/ralexstokes/ethereum-consensus/issues/126


Initialize multiple language and start translations

Issue
https://github.com/mrvautin/expressCart/issues/87
Todo

linting
review

Looks ok so far. There is a heap of linting. Are you using the eslint file in the project?

yes, i'm using, i'll fix linting errors later

I think that i've complete the translation (en and it), about linting, it seems that are the same master repository results (i've not edit lots of js files).
If you agree, i'll set the pr for the review.

Look good mate. Seems there is still some whitespace linting happening in the getStatusColor function of the app.js file.
Maybe switch to review and I can highlight anything I see.

It seems that there're some conflict, i'll wait your input to know how you would proceed :)

Could you try rebasing back onto master? Most should not be conflicts.

I've merged upstream into my fork and solved conflict, could it be good for you?

i think that i've solved errors

Thanks. I cannot merge as there are more conflicts. Can you do one last rebase onto master and I will merge.

it seems that i can fetch nothing from upstream, and here github doesn't show conflicts, are you sure that you don't refer to a specific branch?

It seems Github has changed. I've merged your changes now. Thanks.


persistent datacenter parameter

Keep the datacenter filtering across navigation between pages
This is an improvement/suggestion.
Expected Behavior
the datacenter value from the datacenter dropdown filter should be kept across navigation between different pages
Current Behavior
If you click on a detailed view and go back to event view. the datacenter filter has been reset to default (all)
same if you switch between view in the left pane
Possible Solution
pass the GET parameter "?dc=" in each url ..?
Steps to Reproduce (for bugs)

Go to events view
choose a datacenter in dropdown list
click on left pane on clients view

Context
We have a unique Uchiwa for different teams.
each team has its own sensu infrastructure. all these sensu infra are gathered in Uchiwa.
but they should be able to browse uchiwa while keeping their scope of work.
This idea could be applied to the other filters maybe ?
Your Environment
Linux Fedora 27
Google Chrome Version 64.0.3282.167 (Build officiel) (64 bits)
Sensu 1.1.2
Uchiwa 0.26.3

Hi @exeral,
We already have an issue open for that feature request: https://github.com/sensu/uchiwa/issues/156, so I'll close this one in order to avoid duplication.
As you might be aware, with the development of Sensu 2.0 in full swing, Uchiwa 1.x development efforts are now focused on minor features, bug fixes, and security patches. Therefore, this is not something I will personally work on but if anyone is interested in implementing that functionality, I'll gladly provide some assistance.
Thanks


Enable different broadcast domains for MemoryPeerDiscoveryTransport

Prevents interference between tests when run at the same time

does it mean we can now run the network tests in parallel

We were doing that already - it means that we can now do it without them failing sporadically 😄


Completed Q&A, but move2kube API thinks there are more questions and transformation fails

Describe the bug
After completing the Q&A by answering all the questions, the Q&A window closes and a "transformation completed" notification pop up appears in the Move2kube UI. However, the move2kube api thinks there are more questions but at that stage the QA engine is not running anymore, and the transformation fails. The following error appears in the move2kube pod logs:

time="2024-08-22T08:16:09Z" level=info msg="Project: 52e0fb85-6c3b-48af-b97c-df41e9bbd9a3; Output:673b3418-e77b-42db-9c37-8c938b59323c; level=info msg="Transformation done""
time="2024-08-22T08:16:09Z" level=info msg="Project: 52e0fb85-6c3b-48af-b97c-df41e9bbd9a3; Output:673b3418-e77b-42db-9c37-8c938b59323c; level=info msg="Transformed target artifacts can be found at [/move2kube-api/data/projects/52e0fb85-6c3b-48af-b97c-df41e9bbd9a3/outputs/673b3418-e77b-42db-9c37-8c938b59323c/output/3].""
time="2024-08-22T08:16:09Z" level=debug msg="Project: 52e0fb85-6c3b-48af-b97c-df41e9bbd9a3; Output:673b3418-e77b-42db-9c37-8c938b59323c; level=debug msg="Cleaning up!""
time="2024-08-22T08:16:09Z" level=debug msg="failed to fetch the stdout of move2kube transform. Error: "EOF""
time="2024-08-22T08:16:09Z" level=info msg="failed to fetch the stderr of move2kube transform. Error: "EOF""
time="2024-08-22T08:16:09Z" level=debug msg="Closing transformCh: false"
time="2024-08-22T08:16:09Z" level=debug msg="ctx not closed"
time="2024-08-22T08:16:09Z" level=trace msg="checkErr start"
time="2024-08-22T08:16:09Z" level=debug msg="net.Error: "Get "[http://localhost:41895/problems/current\\\](http://localhost:41895/problems/current\\\)": dial tcp [::1]:41895: connect: connection refused""
time="2024-08-22T08:16:09Z" level=debug msg="default *url.Error Get "[http://localhost:41895/problems/current](http://localhost:41895/problems/current\)": dial tcp [::1]:41895: connect: connection refused"
time="2024-08-22T08:16:09Z" level=trace msg="checkErr end"
time="2024-08-22T08:16:09Z" level=error msg="failed to get the next question. Error: "failed to send a GET request to the URL http://localhost:41895/problems/current . Error: "Get \"[http://localhost:41895/problems/current\\\\\\\](http://localhost:41895/problems/current\\\\\\\)": dial tcp [::1]:41895: connect: connection refused""" request-id=6befb2d7-27d9-4f43-b570-aa6bc5dfb354
time="2024-08-22T08:16:09Z" level=trace msg="HandleGetQuestion end" request-id=6befb2d7-27d9-4f43-b570-aa6bc5dfb354

Steps to reproduce the behavior:

Deploy move2kube
Click on Q&A and answer questions
After answering final question, Q&A window closes itself and "transformation finished" pop up appears
See above error in move2kube pod logs

Expected behavior
Expected transformation to complete normally.
Desktop (please complete the following information):
Using OCP version 4.15.0-0.nightly-2024-08-19-025745
Version: using move2kube image quay.io/konveyor/move2kube-ui:v0.3.14-rc.0
Additional context
The completed files appear and are downloadable in the "output" section.
See logs for move2kube pod attached
move2kube-6f86678956-jj5gr-move2kube.log

Is the following the error you want to avoid?
time="2024-08-22T08:16:09Z" level=error msg="failed to get the next question. Error: "failed to send a GET request to the URL http://localhost:41895/problems/current . Error: "Get \"[http://localhost:41895/problems/current\\\](http://localhost:41895/problems/current%5C%5C%5C%5C%5C%5C%5C)": dial tcp [::1]:41895: connect: connection refused""" request-id=6befb2d7-27d9-4f43-b570-aa6bc5dfb354

Could it be possible that this is a regression in error handling bug in the move2kube-api, possibly caused by https://github.com/konveyor/move2kube-api/commit/273206c6fa8f09d9c4b92b75af77adee01b8519a ?

@HarikrishnanBalagopal please correct me if I am wrong. But I think it is because the url is served by the cli, whose QA server gets terminated when the last question is done, and I think we are just logging it even though it is the natural flow.


On a fresh install, group by function error is obtained

I installed analytics componen via composer and executed the steps indicated in installation github guide and when I go to analytics page I'm obtaining this error:
SQLSTATE[42000]: Syntax error or access violation: 1055 'page_views.id' isn't in GROUP BY (SQL: select * from page_views where date(created_at) = 2021-02-20 group by session)

sorry, the solution was change strict mode in database.php config file to strict => false

No worries, I'm happy you sorted it.
Take care.

Reopening to apply a fix so the need to disable strict isn't required.

@nachete1987 I have tagged a new release, v1.3.3, which should now allow you to keep strict enabled.


Initial deploy script

Description

Add a single script that deploys all components for L2 Flexible Voting in a configurable manner.

Closes #34

Current dependencies on/for this PR:

main

PR #37

PR #57
PR #42

PR #53

PR #61

PR #66

PR #68   👈

PR #39

This comment was auto-generated by Graphite.

The line numbers reflect more changes in broadcast files


Make it easier to navigate between days on the website

Currently https://gradben.ch provides a date picker to choose which nightly run to get data from, but it's a bit unwieldy to quickly navigate between days. It'd be nice to have back/forward buttons to go to the previous or next day.

It would also be nice if it showed the table for the last successful nightly run. Sometimes it looks like the website is just broken, whereas it is actually the DiffSharp website (or whatever) that was flaky that day.

@athas agreed, that's already covered in #122.


Display securityDefinitions/security

[x] securityDefinitions
[x] add security definitions to the side menu
[ ] security

:+1:

+1

+1

securityDefinitions are now rendered in the docs

placement of security definitions can be configured. Check out details in the docs or check example in the demo spec

There are also security information per operation, e.g. you can specify the roles or claims. Would be awesome to support this:
 "security": [
      {
        "roles": []
      }
    ]

Any news on this? This is kind of a big deal, most APIs use some kind of authorization. I know this will be important during API console implementation, but maybe until then we could get a placeholder link pointing to the appropriate securityDefinition section?

Implemented in 2.0-alpha.x

@RomanGotsiy is there an npm package for the 2.0-rc* version? We'd like to use this feature but would need to completely change our redoc deployment (which is based on npm install currently).
Regards and many thanks for your work on redoc,
Thomas


Add global ratelimiter for frontend API

What changed?
Calculate average quota for current number of nodes in the ring. And use it for frontend rate limiter per domain.

Why?
Cadence is almost always Cassandra-bound, since we can scale up Cadence nodes on demand much faster than adding nodes to our CaaS cluster. It was also observed that Cassandra’s performance breaks down if Cadence is pushing more load than the CaaS can handle.

How did you test it?
unit tests
ran test workflows locally.

Potential risks
Rate limiting to the frontend API will be under(over)limited.

Coverage increased (+0.2%) to 69.183% when pulling 45ea7daa89af937b1e83a8ba5255b5f03332c8a5 on ratelimiter into c23cd657e0e10ffd5b53c5f84bee6d57bf0ee525 on master.

We have also talked about having a similar global rate limiter for cassandra in history. Will it be in a separate PR?

Yes, the cassandra part will be in a separate PR for safety sake.


Reduce heading level of 01_example-CCMP-notebook

As you can see from the built version of the notebook, 01_example-CCMP-notebook.ipynb has some weird heading issues going on.
I think the problem is that you have too many H1-level headings, e.g.
# Title
# Another Top Level Header

Instead, reduce the header level of the subtitles / headers elsewhere in the notebook, such that you have only on H1-level title. This will become the notebook title in Pangeo Gallery. E.g.
# Title
## Header

Fixed! https://github.com/cgentemann/pangeo_ccmp/commit/b39937f191c855027d9ffed83e80a3c37a3e1e8a


Move to idp download

Use same method that QE uses to capture kubeconfig in prow

Testing in a dag...

Codecov Report

Merging #327 (cb4a14e) into master (c6f0738) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##           master     #327   +/-   ##
=======================================
  Coverage   95.06%   95.06%
=======================================
  Files          20       20
  Lines         912      912
=======================================
  Hits          867      867
  Misses         45       45

Flag
Coverage Δ

gha
95.06% <ø> (ø)

python-3.9
95.06% <ø> (ø)

unit
95.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Exclude directory from rules via settings config?

My team has two JS projects in the same repo. One was written long before the other and each has its own eslintrc.json. We noticed that a number of the rules in project 1 were quite slow (those in the import/ family) and were dragging down our continuous deployment speeds, so we moved them into VSCode directly so they only run in the editor now. We achieved this with
"eslint.workingDirectories": [{ "mode": "auto" }], <--added to fix plugin resolution prior to this problem surfacing
"eslint.options": {
    "rules": {
      "import/no-unresolved": "error",
      ...
    },

in settings.json. However, these rules did not apply to and were not defined for project 2, and so VSCode now reports Definition for rule 'import/no-unresolved' was not found. for each of the rules when a file in that project is opened. I have spent quite a bit of time perusing the CLI Engine docs the extension repo points to, and it seems like there should be some combination of rules, overrides, files, and/or excludedFiles that will provide the desired behavior (that is, merge the rules in settings.json into the eslint config of project 1 but not project 2). Can you help me make my dream a reality? Thank you very much!

Actually I am not an expert with this either. May be someone from the community can help.

And may be a better place to ask these questions would be Stack Overflow


Unlock issues while working with them so Upptime+GITHUB_TOKEN can close issues it creates

When using Upptime with a GITHUB_TOKEN (because a PAT is scary - see https://github.com/upptime/upptime/discussions/231), Upptime logs errors and fails when trying to automatically close an issue. This is because github actions are not allowed to work with locked issues.
Oddly though, they Github Actions can lock/unlock issues, so this change enables that workaround. See https://github.com/orgs/community/discussions/25230#discussioncomment-3246970
Here's the problem I hit -- my company's website had a false positive - Upptime opened an issue on Cycle 1, then went to close it 5m later on Cycle 2, but failed.

Thanks!


Issue/13

Populate list on TheMovieDB.org for importing into other software (radarr/couch/etc)

@JasonHHouse Ready for another review/merge


[Feature Request] STT (Whisper)

Hi, I have a couple of feature requests that can help working with STT easier.

I like to change my chatting language quickly to talk to someone with different languages.
Right now, in order to change the language, I have to restart STT (click on "Speech to Text to Speech").
This has a couple of problems.  Click on "Speech to Text to Speech" quickly can cause crashes, and restarting STT can take bit of time to load ggml and it's a bit unstable when it starts.
Therefore, it would be nice to change "language" without restarting STT. Ggml should be loaded only once, or only when it's changed, I think.

I would like to temporarily "pause" capturing voice without stopping STT.  Restarting STT can be problematic as I mentioned above. Is it possible to add a Toggle Button right next to "Speech to Text to Speech" to temporarily stop capturing voice? This way, I can control STT not to go crazy and STT can have time to clear up the buffer when not capturing.

Please let me know if you have a better idea.
Cheers!

I'll have to look into if you can change the Whisper parameters while it's running

Added (sort of). There does not seem to be an easy way to actually pause Whisper and mute audio capture. Although the text output can be stopped. So your audio is still being captured and processed just the results are not output.

https://github.com/VRCWizard/TTS-Voice-Wizard/releases/tag/v1.5.1

#1. Yup, that will be super. Theoretically, ggml should be loaded once unless it's changed. Hope that can help make the app super snappy. ^^
#2 Is this a limitation on the Whisher lib itself? I hope we don't have to touch Whisper lib itself to temporarily stop capturing.
BTW, there seem to be two versions of Whisper libs, one, Cpp, and the other, Net.
I suppose Cpp is faster but Net is easier to work with.
I did a quick test on the Net version and it seems to be quite fast for short sentences.
Unless you are transcribing a movie, the perf difference will not matter much in my opinion.
It might be worthwhile to consider the Net version if the Cpp version gives us headaches.
My two cents. ^^

Update:
#1: I did a quick implementation for changing STT language on the fly.
The trick is to recreate the CaptureThread.
I'm not certain if this is the right way to change the language.
But hey, it works and I can change the language without restarting STT and it's quite nice.
Please take a look at what I did and I hope it makes it to the next patch with better implementation.
Find "chrisk" and it's where I made the changes.  I only made changes for Whisper as I don't know how it works on others.
from VoiceWizardWindows.cs
`  private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBoxTranslationLanguage.SelectedItem != null && comboBoxSpokenLanguage.SelectedItem != null)
{
// Get the language code from the selected spoken language
string spokenLanguageCode = comboBoxSpokenLanguage.SelectedItem.ToString().Substring(0, comboBoxSpokenLanguage.SelectedItem.ToString().IndexOf(' '));
      // Get the language code from the selected translation language
      string translationLanguageCode = comboBoxTranslationLanguage.SelectedItem.ToString().Substring(0, comboBoxTranslationLanguage.SelectedItem.ToString().IndexOf(' '));

      // Check if the selected spoken language is the same as the selected translation language
      if (spokenLanguageCode == translationLanguageCode)
      {
          // Set the translation language to position 0 (no translation)
          comboBoxTranslationLanguage.SelectedIndex = 0;
      }

      // added: change language -chrisk
      switch (comboBoxSTT.Text.ToString())
      {
          case "Whisper":
              WhisperRecognition.setLanguage(comboBoxSpokenLanguage.SelectedItem.ToString());
              break;
      }
  }

}`
from WhisperRecognition.cs
`
// changed to static here -chrisk
static CommandLineArgs cla;
static Whisper.Context context;
static iAudioCapture captureDev;
static CaptureThread thread;
    // added: set language -chrisk
    public static void setLanguage(string language)
    {
        fromLanguageID(language);
        eLanguage? elang = Library.languageFromCode(langcode);
        if (elang != null)
        {
            CaptureThread.stopWhisper();
            context.parameters.language = (eLanguage)elang;

            new CaptureThread(cla, context, captureDev);
            thread.join();
        }
    }

    public static int doWhisper(string[] args)
    {
        try
        {
            try
            {
                cla = new CommandLineArgs(args); // modified -chrisk

            }
            catch (OperationCanceledException)
            {
                return 1;
            }

            using iMediaFoundation mf = Library.initMediaFoundation();
            CaptureDeviceId[] devices = mf.listCaptureDevices() ??
                throw new ApplicationException("This computer has no audio capture devices");

            if (cla.captureDeviceIndex < 0 || cla.captureDeviceIndex >= devices.Length)
                throw new ApplicationException($"Capture device index is out of range; the valid range is [ 0 .. {devices.Length - 1} ]");

            sCaptureParams cp = new sCaptureParams();
            try
            {

                cp.minDuration = (float)Convert.ToDouble(VoiceWizardWindow.MainFormGlobal.textBoxWhisperMinDuration.Text.ToString(), CultureInfo.InvariantCulture); //1
                cp.maxDuration = (float)Convert.ToDouble(VoiceWizardWindow.MainFormGlobal.textBoxWhisperMaxDuration.Text.ToString(), CultureInfo.InvariantCulture); //8
                cp.dropStartSilence = (float)Convert.ToDouble(VoiceWizardWindow.MainFormGlobal.textBoxWhisperDropSilence.Text.ToString(), CultureInfo.InvariantCulture);   // 250 ms
                cp.pauseDuration = (float)Convert.ToDouble(VoiceWizardWindow.MainFormGlobal.textBoxWhisperPauseDuration.Text.ToString(), CultureInfo.InvariantCulture);  //1
                                                                                //we need culture invariant or for some languages like german 8.0 will be converted to 80 because they use "," instead of "."
            }
            catch (Exception ex)
            {
                cp.minDuration = 1.0f;
                cp.maxDuration = 8.0f;
                cp.dropStartSilence = 0.25f;
                cp.pauseDuration = 1.0f;
                if (WhisperError == false)
                {
                    OutputText.outputLog("[WARNING: Error Occured loading Whisper custom values. Forcing defaults]", System.Drawing.Color.DarkOrange);
                }
                WhisperError = true;
                VoiceWizardWindow.MainFormGlobal.Invoke((MethodInvoker)delegate ()
                {
                    VoiceWizardWindow.MainFormGlobal.textBoxWhisperMinDuration.Text = "1.0";
                    VoiceWizardWindow.MainFormGlobal.textBoxWhisperMaxDuration.Text = "8.0";
                    VoiceWizardWindow.MainFormGlobal.textBoxWhisperDropSilence.Text = "0.25";
                    VoiceWizardWindow.MainFormGlobal.textBoxWhisperPauseDuration.Text = "1.0";
                });

            }

            if (cla.diarize)
                cp.flags |= eCaptureFlags.Stereo;
            captureDev = mf.openCaptureDevice(devices[cla.captureDeviceIndex], cp); // modified -chrisk

            using iModel model = Library.loadModel(cla.model);
            context = model.createContext();  // modified -chrisk

            cla.apply(ref context.parameters);
            thread = new CaptureThread(cla, context, captureDev);
            thread.join();

            //context.timingsPrint();
            Debug.WriteLine("Whisper finished");
            return 0;
        }
        catch (Exception ex)
        {
            OutputText.outputLog("[Whisper Error: " + ex.Message.ToString() + "]", System.Drawing.Color.Red);
            OutputText.outputLog("[Whisper Setup Guide: https://github.com/VRCWizard/TTS-Voice-Wizard/wiki/Whisper ", System.Drawing.Color.DarkOrange);

            WhisperEnabled = false;

            if (VoiceWizardWindow.MainFormGlobal.rjToggleButtonOSC.Checked == true || VoiceWizardWindow.MainFormGlobal.rjToggleButtonChatBox.Checked == true)
            {
                var sttListening = new OscMessage("/avatar/parameters/stt_listening", false);
                OSC.OSCSender.Send(sttListening);
            }
            DoSpeech.speechToTextOffSound();

            return ex.HResult;
        }
    }`

Hi, how's it going?
I was wondering if this is something that you are looking into.
I would appreciate it if we can change STT parameters without reloading the model.
Reloading the model can quite a while depending on the machines but I think it's should be loaded only once when starting up, (or changing the model itself).
I would appreciate if it makes into the office tree so that I don't have to patch it every time I download new code.
Many thanks.
-chris

The implementation is essentially the same as stopping and starting whisper. Majority of the start up time is in creating a new CaptureThread, this implementation does not circumvent that. I've done timed tests and the difference in start up times are marginal (less than a second).
With that being said, the benefit of this feature would be you wouldn't need to manually restart whisper after switching languages (it would be restarted automatically). I'll likely add it in the next update.

Sure, it will definitely help make the experience better until we find what makes it so long to change seemingly simple parameters.
Many thanks.


Inserting SpannerParameter.CommitTimestamp into Timestamp column with allow_commit_timestamp fails with exception

Environment details

OS: Windows 8.1
.NET version: 4.6.2
Package name and version: Google.Cloud.Spanner.Data v2.0.0 beta 8

Steps to reproduce
I have the following table: (this is all test code, hence the lame names)
CREATE TABLE TypesTab (
        ID INT64 NOT NULL,
        NAME STRING(40),
        DESCRIPTION STRING(MAX),
        FLOATCOL FLOAT64,
        IS_ACTIVE BOOL,
        BYTESCOL BYTES(40),
        IMAGECOL BYTES(MAX),
        TIMESTAMPCOL_AUTO TIMESTAMP OPTIONS (allow_commit_timestamp = true),
        TIMESTAMPCOL TIMESTAMP,
        DATECOL DATE,
) PRIMARY KEY(ID)

I'm trying to insert the commit timestamp into the TIMESTAMPCOL_AUTO column. For this repro I use this code:

private static void InsertTest()
{
	using(var con = new SpannerConnection(CreateConnectionString()))
	{
		Console.WriteLine("Opening connection");
		con.Open();
		Console.WriteLine("Connection opened");

		var cmd = con.CreateCommand();
		cmd.CommandText = @"INSERT INTO `TypesTab` (`ID`, `TIMESTAMPCOL_AUTO`) VALUES (@p1, @p2)";
		cmd.Parameters.Add(new SpannerParameter("@p1", SpannerDbType.Int64, 1));
		cmd.Parameters.Add(new SpannerParameter("@p2", SpannerDbType.Timestamp, SpannerParameter.CommitTimestamp));
		var result = cmd.ExecuteNonQuery();
		Console.WriteLine("Number of rows affected: {0}", result);
	}
}

private static string CreateConnectionString()
{
	return $"Data Source=projects/{ProjectID}/instances/{InstanceID}/databases/{DatabaseID}";
}

This results in the following output/ exception:
Opening connection
Connection opened

Unhandled Exception: Google.Cloud.Spanner.Data.SpannerException: An invalid argument was sent to Spanner. ---> Grpc.Core.RpcException: Status(StatusCode=InvalidArgument, Detail="Value has type INT64 which cannot be inserted into column TIMESTAMPCOL_AUTO, which
has type TIMESTAMP [at 1:65]\nINSERT INTO `TypesTab` (`ID`, `TIMESTAMPCOL_AUTO`) VALUES (@p1, @p2)\n                                                                ^")
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Grpc.Core.Internal.ClientResponseStream`2.<MoveNext>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Grpc.Gcp.GcpClientResponseStream`2.<MoveNext>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.V1.Internal.ExecuteHelper.<WithSessionExpiryChecking>d__0`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.V1.SqlResultStream.<ComputeNextAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.V1.SqlResultStream.<MoveNext>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.V1.ReliableStreamReader.<MoveNextAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.V1.ReliableStreamReader.<EnsureInitializedAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.V1.ReliableStreamReader.<NextAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.Data.SpannerTransaction.<>c__DisplayClass36_0.<<Google-Cloud-Spanner-Data-ISpannerTransaction-ExecuteDmlAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.Data.ExecuteHelper.<WithErrorTranslationAndProfiling>d__2`1.MoveNext()
   --- End of inner exception stack trace ---
   at Google.Cloud.Spanner.Data.ExecuteHelper.<WithErrorTranslationAndProfiling>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.Data.EphemeralTransaction.<>c__DisplayClass3_0.<<ExecuteDmlAsync>g__Impl|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.Data.ExecuteHelper.<WithErrorTranslationAndProfiling>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Spanner.Data.SpannerCommand.ExecutableCommand.<ExecuteDmlAsync>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Google.Api.Gax.TaskExtensions.WaitWithUnwrappedExceptions(Task task)
   at Google.Cloud.Spanner.Data.SpannerCommand.ExecuteNonQuery()
   at SpannerTest.Program.InsertTest() in ************\SpannerTest\Program.cs:line 64
   at SpannerTest.Program.Main(String[] args) in ************\SpannerTest\Program.cs:line 17

Process finished with exit code -532.462.766.

I think I followed everything in the docs. The INT64 remark is weird, I don't see what's wrong here.
TIA.

Thanks for raising this with such a clear repro. I'll look into it now. (Your code looks very similar to the integration test which passes, so I'll be fascinated to find out what's wrong...)

The good news is that I can reproduce it. Now to try to work out why it's failing...

Okay, some progress. It looks like this may be a matter of it not being supported in "regular DML" but only using direct row modifications.
Here's code that does work against the same table:
var cmd = con.CreateInsertCommand("TypesTab");
cmd.Parameters.Add(new SpannerParameter("ID", SpannerDbType.Int64, 2));
cmd.Parameters.Add(new SpannerParameter("TIMESTAMPCOL_AUTO", SpannerDbType.Timestamp, SpannerParameter.CommitTimestamp));
var result = cmd.ExecuteNonQuery();
Console.WriteLine("Number of rows affected: {0}", result);

Assuming I'm right about this, it's something we'd be unable to fix within the C# code. Instead we'd need to document it as a limitation - and file a feature request with the Spanner team to allow it in general DML.

It looks like for regular DML, you need to call the PENDING_COMMIT_TIMESTAMP function instead of specifying a parameter value. That's a pity :(
See https://cloud.google.com/spanner/docs/commit-timestamp#dml

Thanks for looking into this! I missed that piece of documentation as it was right below what I looked at (the example of inserting a row with allow_commit_timestamp). Sorry for that. Well, that function is actually beneficial for us over the SpannerParameter.CommitTimestamp, as our code is a generic ORM library and doesn't have a reference to the ADO.NET provider so we had to pull that CommitTimestamp value through reflection and generating that function call is easy as the whole query is generated :)
I'll test this out tomorrow but it looks like this is what we're looking for. Thanks for the info/time, as always :) I'll close this for now.

I'll reopen for now, as we need to document this more clearly for C# - in particular, I wasn't aware of it myself, which is embarrassing :)
Glad to have unblocked your code though!

:) Yeah the documentation is a bit confusing. It starts with 'you need to do 2 things...' https://cloud.google.com/spanner/docs/commit-timestamp and basically doesn't mention that the second thing shown there is non-DML, while a reader could simply think (as did I) that the example shown is illustrating a concept that is equal for non-DML and DML, as the documentation section doesn't mention it's not. Scrolling down you'll run into the remark to do it differently in DML, but as there's no need to read that far if you already found the way to do it (according to the docs), it's unlikely you'd read that.
One could argue why there's a discrepancy between the two at all, but I guess that's something that would otherwise require a change in spanner which might be harder to get through than a documentation change ;) (E.g. I first had the code insert a NULL into this column as I wrongly assumed it would act like any other DB would: a default clause would be handled when a NULL is inserted and a default clause is present, which isn't the case here, you have to explicitly state something.)

Right. I can raise the general Cloud Spanner docs internally - but I can change the .NET documentation more directly, so I'll do that to start with :)


php_curl.dll requires libssh2.dll to be present in apache/bin folder

In order to enable PHP's cURL extension, you have to copy libssh2.dll from scoop's PHP installation from
$env:USERPROFILE\scoop\apps\php\current

to
$env:USERPROFILE\scoop\apps\apache\current\bin

Otherwise the cURL extension won't load, as far as I can tell. Can this be automated in the installation process or simply be included in https://github.com/lukesampson/scoop/wiki/Apache-with-PHP?

maybe the solution is included on the wiki or a note on manifest. but i can confirm using nginx or caddy works well

Just trying apache using php7.1 on php bucket  the cURL extension loaded properly without having to copy the libssh2.dll
Added to httpd.conf
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php .html
LoadModule php7_module "D:/Applications/Scoop/apps/php7.1/current/php7apache2_4.dll"
PHPIniDir "D:/Applications/Scoop/apps/php7.1/current"

This issue belongs in the Main bucket. Unfortunately, we cannot move this issue on this end, so it is being closed.
If this is still an issue, please create a new issue in the Main bucket via https://github.com/ScoopInstaller/Main/issues/new?body=Moved+from+https%3A%2F%2Fgithub.com%2Flukesampson%2Fscoop%2Fissues%2F1535


flag spark as provided, include sonatype plugin

flag spark as provided, include sonatype plugin

#3

:+1:

👍

👍

:+1:

:+1:

👍


kernel commit query: debian: install python3 requests

Install python3-request package and redirect kernel package source extraction stdout and stderr to /dev/null to reduce serial streaming.

/hold

/lgtm

/unhold

/lgtm


Downloading ultradefrag from sourceforge will sometimes not work if curl or powershell is used as a downloader

Occasionally when building a template, the download for ultradefrag fails. This is actually because sourceforge.net sucks and changes the contents of the download redirect depending on the user-agent that a downloader passes in the http request headers.
This affects both the Powershell and curl downloaders, and likely any other platforms where the sanity-check on executing wget.exe fails...  So yeah...I really really hate sourceforge.net....

Should we update ultradefrag while we're at it? Latest stable-release is 7.1.4, and apparently 7.1.0 has significant performance improvements (kind-of-a-changelog is here: https://sourceforge.net/p/ultradefrag/news/)
I'd rather not as I'd prefer being consistent over anything else, and we've been using 7.0.2 forev..but if someone wants me to bump the version, feel free chime in on that and I'll do it.

This issue is fixed by PR #254.


ES6 How to use ?

I can't find how this is supposed to work...
import ScrollPosStyler from "scrollpos-styler";

ScrollPosStyler.init(); // Uncaught TypeError: init is not a function

I used :
import ScrollPosStyler from 'scrollpos-styler/scrollPosStyler.js';
The init() is called on DOMContentLoaded event.

You must have added the lib to the node_modules and setup the assets accordingly or setup the from based on your files/folders structure.

Hi @monkeymonk, does the answer above help?
Just to clarify - in a typical usage scenario there's no need to call the init() function manually. The script is initialized automatically once your DOM is loaded (Immediately-invoked function expression). Refer to the demo for a full working example.
You will, however, need to call the init() function manually in case you're modifying the DOM after it is initially loaded. In that case, ScrollPosStyler.init() needs to be called for the script to parse your DOM (again) in order to find the new element(s). Refer to demo2 for a full working example.
In case you're still stuck please let me know which of the above resembles your use case.

Dear @acch, thanks for the project! (Danke)
I also don't know how to use this in my NodeJs/React/Typescript/ES6/Meteor application, since it's not uses to global variables.
import ScrollPosStyler from '../../node_modules/scrollpos-styler/scrollPosStyler.js';
console.log(ScrollPosStyler); // undefined

Do you have a quick idea how to solve this?

Sorry for the late response - personal matters kept me busy.
To be honest I'm not sure how to answer this. So far, the script is implemented as an IIFE. This means that one can simply include scrollPosStyler.js in his/her HTML an the script will initialize itself automatically. No need to wrap it inside custom JS - I personally consider this the primary use case.
The original way of wrapping the script inside custom JS is by including it first, which will define the global ScrollPosStyler (as shown here). Now I do understand that there's downsides in using global vars, and I do understand that ES6 introduced modules (along with export/import syntax) to circumvent such global vars. But my understanding is that ES6 modules (export/import syntax) is meant to be useful for JS libraries exporting functions and objects to be used by other programs. Hence, I'm not sure that this properly addresses the primary use case "include script in HTML without writing any JS"...
I'm happy to accept proposals on how to make the script work with ES6 export/import syntax, as long as the primary use case mentioned above (automatic initialization without need for custom JS) remains intact. I'd greatly appreciate someone pointing me to examples.

You can use it like this, as mentioned before:
import ScrollPosStyler from 'scrollpos-styler';

But I've found it not to be initialized always correctly. I needed to force a few scrolls to force it to be initialized, like this:
window.scrollTo(0, 0);
window.scrollTo(0, 300);
window.scrollTo(0, 0);

With this 'trick' works, at least, for me. But, I agree with others, this should be recoded as a module, which exposes a method that allows anyone to call it to do the initialization. That would be a great improvement.
Anyway, thanks for coding such a great script ;-)


question about "limitations in cargo-make's workspace support"

always open for feedback and curious what the limitation is and how its solved here.

Closing in favor of discussion on that repo. Will post there


Inaccurate "unused variable" warnings

We appear to be emitting incorrect warnings for unused variables.
While most are accurate, the script isn't set up to understand an object can be a value so treats everything within it as a nested variable.
For example in:
source: {
      coolSource: {
        type: 'vector',
        tiles: [
          'https://url.mvt',
        ],
        maxzoom: 10,
      },
    }

everything under cool-source is in fact the variable, but the script sees the path to source.coolSource.maxzoom as a separate variable as well.
There are additional inaccuracies I have yet to get to the bottom of, so this ticket will require further investigation.

It would be awesome if you fixed this! I'm currently working around it by creating a whole unused stylesheet that contains all the "variables" like this. That suppresses the errors but is rather hacky.


[Feature Request] Add Types

Describe the solution you'd like
I would like the package to have type declarations.
Expected Behaviour
Provide intellisense.
Screenshots
If applicable, add screenshots which explains the idea.
Additional context
Add any other context or screenshots about the feature request here.

Check out #16


KeepAlive not available if SSL is used?

Just a question, why aren't the KeepAlive options available when an SSL certificate is used (client)?
Thanks

Why wouldn't they be?  I don't see a reason why that would be the case in the code.  Do you have a snippet that helps reproduce this?  Cheers

Because the method EnableKeepalives() is called only when _Mode == Mode.Tcp and not when _Mode == Mode.Ssl (line 355 of WatsonTcpClient.cs ).
With a X509Certificate2 object, the constructor set the _Mode field to Mode.Ssl (line 271 of WatsonTcpClient.cs)
I do a sample tomorrow with a Wireshark screenshot.
Thanks Joel.

I see it now!  Thanks for letting me know.  I'll get this patched right now!

Fixed, please re-open if any issues.  Again I really appreciate you letting me know!
NuGet: https://www.nuget.org/packages/WatsonTcp/5.1.3
Commit: https://github.com/jchristn/WatsonTcp/commit/dda310124c721ae2afbae5d496477ac583df5de3


Rename JsonValue.Type to JsonValue.EntityType, and JsonValue#is... to JsonValue#isJson...

It clarifies the context of JsonValue.(Entity)Type by adding and updating Javadocs, where EntityType should be 1:1 corresponding to the implementation classes of JsonValue.
Just Type was not very understandable, then wanted to clarify its purpose and context. We define that (Entity)Type should be 1:1 corresponding to each implementation class, to be "implementation-specific", not by JSON's value type. A number could be integer, or decimal. The word "entity" comes from that purpose.
In contrast, javax.json (https://docs.oracle.com/javaee/7/api/javax/json/JsonValue.html) has had JsonValue#ValueType which is JSON's value type. A number is number there.
Embulk's JsonValue classes are designed to be mostly compatible with javax.json, so that they can "implement" javax.json or jakarta.json classes in the future. In that case, javax(jakarta).json.JsonValue.ValueType would play the role of JSON's value type.
It is a follow-up to #1462.
Its corresponding EEP is draft at #1538.

Thanks!


Timeline and dashes :P

Can you format each date so it shows 11–12 Apr instead of Apr-11 - Apr-12? Note that to denote a range like 11–12 you should use an en-dash :P
Can you change the name of each contest so that in between the "2020-01" and the "Beginner" part there's a em-dash "―"?

Wow, thanks
Should there be a space between "–" and the next word?

Oh yeah, so the final thing should look like this:
"2020-01 — Beginner"

Done (8658914). I didn't even know there are two dashes 😇

Yay, looks great now! :D
There are actually a lot more than two dashes though :P there's the en-dash, em-dash, horizontal bar, figure dash, swung dash, not to mention other similar characters like hyphen, tilde, minus sign, hyphen-minus, etc. You can check this Wikipedia article hahaha https://en.wikipedia.org/wiki/Dash

Awww😵
– This is interesting and helpful, thanks ^^


PSI can't be started.

Version
23.10.1
Explain the issue and what happens
psi
ld-elf.so.1: /usr/local/lib/qt5/libQt5Xml.so.5: Undefined symbol "_ZTVNSt3__13pmr25monotonic_buffer_resourceE"
Explain how to reproduce the bug?
Start psi from the terminal
What is the Expected behavior (if applicable)
No response
Additional context (if applicable)
It seems any software using qt5 is broken, it gives the same errors

I moved the issue to ghostbsd/issues.

Closed from the conclusion at https://github.com/ghostbsd/issues/issues/39#issuecomment-1807237199

Closed from the conclusion at https://github.com/ghostbsd/issues/issues/39#issuecomment-1807237199


Docker Installation failed on RHEL7 Workstations using  Docker Installation Script

Installation of Docker failing on some RHEL Workstations.
Instructions followed from https://docs.docker.com/engine/installation/linux/rhel/
Received the following error message message
Script Execution : curl -fsSL https://get.docker.com/ | sh
Error Message:
Either your platform is not easily detectable, is not supported by this
installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have
a package for Docker.  Please visit the following URL for more detailed
installation instructions:
Root Cause:
Linux Standard Base distribution variable in script ( https://get.docker.com/ ) is evaluated to "RedHatEnterpriseWorkstation" in some RHEL workstations.
lsb_dist="$(lsb_release -si)"
RedHatEnterpriseWorkstation condition is not properly handled in platform detection check

Thanks for reporting! Note that, in general, the manual installation procedure is the recommended approach; the install script is on a "best effort" base and, in case of the devicemapper storage driver, does not configure the driver for "production" use (which is a manual procedure: https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#configure-direct-lvm-mode-for-production)
Perhaps we can improve the detection for this case though

Hi @thaJeztah ,
I have a similar query, however, I am installing through YUM.
OS: RHEL 7.2
DockerEngine:Docker version 1.11.2-cs3, build c81a77d
Once installed, I configured docker to use device mapper.
I have created couple PVs. Created a VG and two LVs as specified at
https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#configure-direct-lvm-mode-for-production
However, after setting up UCP and DTR on two specific nodes( docker cs engine on both nodes configured as above ) , worked fine until first reboot.
After reboot, LVMs created above using the mentioned procedures were not available.
They were not available because they were not mounted.
However, if I mount a give a mount directory in docker.service --storage-opt option, the error saying "Error initializing graphriver Open:  is a directory."
FOR OS:
mounting is required to identify storage upon reboots
FOR DOCKER:
docker is not accepting mounted location. If used devicemapper approach as mentioned above, storage is not persistent across reboots.
NOTE: Storage is from SAN. All drives ( including OS ) are from SAN.
NOTE: Please find attached the log file which has all the steps executed. Tried hard to remove typos.
Kindly help here as it's a production box.
docker.txt

@rkgade could you contact<EMAIL_ADDRESS>that's the proper channel to get support for Docker DataCenter; the GitHub issue tracker is not really intended for that. If you think there's a bug, please open a new issue, because your issue does not look related to the issue that's discussed here

Hi @thaJeztah ,
Sure. Thank you.

Confirming this is still a valid issue. It looks like there is a specific workaround for RedhatEnterpriseServer as the lsb_release string, but not RedhatEnterpriseWorkstation. I'd suggest that both strings be tested, or maybe just check that the string starts with redhat.

@cnmcavoy looks like an easy fix; are you interested in opening a pull request to accept both RedhatEnterpriseWorkstation and RedhatEnterpriseServer ?

Let me close this ticket for now, as it looks like it went stale.


Unbound: overrides: fixup UI and validation due to model change

Addresses the change in https://github.com/opnsense/core/commit/308b31dfa84943c0d3487f23c53e8bb10a819222

It seems I missed something in the review as well, the rr field needs to link it's dependancies to prevent changes to that field leading to inconsistencies. like for example:
https://github.com/opnsense/core/blob/ce656d076bdebb2d53688f877472b1c0e915c5db/src/opnsense/mvc/app/models/OPNsense/Firewall/Alias.xml#L42-L46

Good one, I don't think this is mentioned in the documentation though. Can I add multiple references inside a single check as a catch-all solution? As it stands I require 4 in total.


Remove duplicated warnings

sprt_gain-1  | Warning; No info line found in the last line which includes the score from princhess
sprt_gain-1  | Warning; No info string found in the last line from princhess which includes the score

Just remove the No info string, No info line found is anyway always printed first.

fixed https://github.com/Disservin/fast-chess/commit/08e5fb5e0e493cd93fa35ac0ace6e846115095df


[Firewall] Uprgade API version to 2020-07-01 and update code owners

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

Firewall


ReAct breaks response after \n

Hey everyone!
Been using dspy for a few basic tasks, and while building a larger tool, I noticed dspy (default react module) breaks the final answer after it sees a \n. Is that normal, as I want it to generate full-style content containing new lines? Or am I configuring something incorrectly 😓 ?

The ReAct module has been redesigned :D


Large file transfer/download

The transmission/radio side of this is done. I'd like to do the following things though:

[ ] Write the file to some certain spot by default. Perhaps /sd/download
[ ] Write the file in parts to the SD card by using append mode
[ ] Add a message type that reads from SD chunk by chunk
[ ] Add a command for move/delete SD operations
[ ] Add a command to request hash from certain file on SD card
[ ] Add a command to request a listdir from a certain directory


The configuration build.html.minify does not work

Versions

nuxt: v2.15.8
node: v12.18.4

Reproduction
The configuration build.html.minify does not work.
Steps to reproduce

Add build.html.minify to nuxt.config.js:

    html: {
        minify: {
            collapseBooleanAttributes: true,
            decodeEntities: true,
            minifyCSS: true,
            minifyJS: true,
            processConditionalComments: true,
            removeEmptyAttributes: true,
            removeRedundantAttributes: true,
            trimCustomFragments: true,
            useShortDoctype: true,
            removeOptionalTags: false,
            keepClosingSlash: true,
        },
    },

Run npm run build & npm run start
View source of page: The meta tags don't keep closing slash:

# result:
<meta data-n-head="ssr" data-hid="og:title" property="og:title" content="Untitled">

# expect:
<meta data-n-head="ssr" data-hid="og:title" property="og:title" content="Untitled" />

What is Expected?
# expect:
<meta data-n-head="ssr" data-hid="og:title" property="og:title" content="Untitled" />

What is actually happening?
The configuration build.html.minify does not work.

Off the top of my head, I don't think the html source has closing slashes, so it can't keep them. It's not going to insert them where they don't already exist.


Add new rules

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


AttributeError: 'MemoryTempfile' object has no attribute 'tempdir'

originally reported in https://github.com/OpenVoiceOS/ovos-messagebus/issues/12

I've created a mac-os-x runner and a testcase that exercises the issue in the branch (mac-os) See job 73

Awesome! 👍


global deprecated error

Attempting to debug this but stack traces are so weird.
Getting:
DeprecationWarning: 'root' is deprecated, use 'global'

Seems to be coming from an emitter inside process, which I assume is polyfilled by pundle.

Unfortunately it doesn't give me much more than that.

Fixed in master


When running just the AIChat() function, when the user deletes the whole prompt in their input, the "You: " disappears

This is a visual bug only: it does not affect what the model receives.
I may need to investigate more with rich, but when moving to a textualize app it might no longer be relevant.

Oh, ok.


Support workspace-level terminal.integrated.cwd in multi-root workspaces

@vrachels workspace settings become folder settings when you're in a multi-root environment, this screenshot illustrates this best:

Do you "save your workspace as" and have the terminal.integrated.cwd setting defined in the .code-workspace? You want the cwd to be relative to the .code-workspace? I don't think we do that for anything currently, I believe ${workspaceFolder} refers to the current active folder concept (last opened file) elsewhere.

The reason we don't use the folder that .code-workspace is in is because it's nearly always hidden away in some hidden folder:

Launching a terminal relative to that folder isn't particularly useful.

As, I see and understand some of the discrepencies now.
I think as multi-root becomes more common, that use case will change.  We took advantage of it as soon as it was available in insiders.  In order to share the multi-root environment, it is my understanding that the code-workspace file also needs to be shared (much like a msdev .sln file is usually checked in), and thus lives in the repository.  I wasn't actually aware that the non-multiroot used the same file in a hidden location.   Is there is a different intention for setting up a shared multi-root environment?
I think I was also getting workspaceRoot and workspaceFolder confused.  I saw references to workspaceRoot being deprecated, and wrongly assumed general equivalence.  I see now that this the continually modifying value based on the current file that has been getting discussed as the 'calculated root'
Back to the title issue:  yes, we 'save workspace as,' and define the terminal.integrated.cwd setting there.  The expected behavior was that I could then share that file, and other developers who sync and open the project will get their default terminal to a consistent relative location to run various commands.
Not all developers are created equal (most have way more artistic talent than I), and ensuring the consistency of instructions is important.
I could see a use case for the feature request as specified in the title.  (ie, a different relative cwd based on the ${workspaceFolder} that was calculated), but I am definitely asking for cwd to be able to be specified relative to the .code-workspace file (via workspace settings, not necessarily folder settings)

I wasn't actually aware that the non-multiroot used the same file in a hidden location.

To clarify, non-multiroot don't have a .code-workspace file. multiroot by default have a .code-workspace hidden away in some folder, it's only when you explicitly save the (multiroot) workspace somewhere that it goes to a reasonable location chosen by the user.

it is my understanding that the code-workspace file also needs to be shared (much like a msdev .sln file is usually checked in), and thus lives in the repository.

This is good, it's the intent behind being able to save a .code-workspace and allowing the roots to be relative.

The expected behavior was that I could then share that file, and other developers who sync and open the project will get their default terminal to a consistent relative location to run various commands.

I think this was the missing piece in my understanding of your problem, it's only an issue for you because you're sharing the .code-workspace.
@bpasero are you aware of anyone coming across this issue in any other components? Specifically, because the .code-workspace is checked in and shared with the team, an absolute terminal.integrated.cwd value will not work as developers have different file system layouts, once shared everything needs to be relative. So I see 3 solutions here, none of them are particularly nice imo:

Make terminal.integrated.cwd work relative to the .code-workspace, not the "active workspace root". This is inconsistent with how everything else works AFAIK
Provide a setting to toggle the above behavior. This is extremely specific and would likely seldom be used/discovered.
Make terminal.integrated.cwd work in folder setting scope, and define it for every single root to go to the correct single location relative to root.

another option similar to #1, but probably more palatable: un-deprecate workspaceRoot or create another variable that means the code-workspace location (see below).  Then unblock/implement/fix #31677
another feature that could be used instead, to avoid the usage of workspaceRoot and in possibly other situations, is to be able to specify via a variable a specific workspaceFolder.  (ie, workspace contains foo/folder1 and bar/folder2.  in some kind of setting, give them names, or just identify them as their array entries).  Then with 31677, you could specify via the variable expansion ie "${workspaceFolders[0]}

@Tyriar you should maybe connect with debug team who introduced debug launch configuration within the code-workspace file and with that variables that resolve against a specific root. For that a new variables syntax is used that allows to scope to a specific root folder. Maybe something like that could be used for the CWD setting as well? E.g. ${workspaceFolder:<name of folder>}

So, is this going to be fixed? I tried out the multi-root workspace feature on our project and have to go back because of terminal.integrated.cwd not working anymore. In a team setting, the .code-workspace files are in the source control.
Supporting ${workspaceFolder:<name of folder>}  is consistent with the launch settings, which are also shared across the team via the workspace file.

Variable resolution now works in the cwd setting, however that only applies when this command is triggered:

The normal picker when in a multi-root workspace (ctrl+shift+`) will always open in the selected root. If the cwd is set for the user or workspace it should be used here:
https://github.com/microsoft/vscode/blob/65f5f14ff7596f4fa32a05038f9c922dd63dbc64/src/vs/workbench/contrib/terminal/browser/terminalActions.ts#L368

For my two cents, just cause this cost me my morning trying to figure out what was going on...
Intuitively when opening a multi-root workspace with no open editors, I would expect the terminal to launch to the root of the top-level folder (I could've sworn I read that as the default behaviour somewhere).
Certainly I know now what the expected behaviour is, but figuring it out caused me a small amount of extra grief in part because at the time I was using a custom shell prompt that does not show the current working directory.
At a minimum it would be nice to know where the "last used file" information is cached just for the trivia of  it (or for debugging). I did not see anything immediately helpful in ~/.vscode, /Applications/Visual Studio Code.app/, or ~/Library/Application Support/Code/Workspaces 😕

I would expect the terminal to launch to the root of the top-level folder

There isn't really a concept of "top-level folder" as all folders are on the same level. There is the active workspace command mentioned in https://github.com/Microsoft/vscode/issues/42661#issuecomment-539590372 which you can set a custom keybinding to if you prefer that, this will open it in the workspace of the last file you opened. This used to be the default behavior but it changes to the quick pick as I got a lot of complaints about it.
I think it's cached in sqlite as part of the workbench state so you wouldn't be able to view it.

I think it's cached in sqlite as part of the workbench state so you wouldn't be able to view it.

Almost, but perhaps not quite. You can access and query the sqlite db directly (in my case at ~/Library/Application Support/Code/User/workspaceStorage/*/state.vscdb. It looks like the relevant key may be workbench.explorer.treeViewState, but I'll need to play with it a bit for funsies before making too many assumptions
ty! 😄


fix: backslash value not escaped properly (#202)

fix issue of #202 ,  and fix the broken unit-test that had a broken csv file.

Changes Unknown when pulling 168071b6fe794b3b93f218a3f632bbf285b8d631 on nahzz:master into ** on zemirco:master**.

Thanks! Appreciate your contribution!


Transitions aren't being triggered before asyncData of the next route is finished

I am trying to trigger the leave transition right when the nuxt-link is clicked but the transition gets triggered only after the asyncData of the next route has finished. Is there anyway I can trigger the transitions before that ?

Never mind I guess I can just apply transitions to whatever elements I want duh

@Andrei997 looking into this same issue, and I'm not sure if I'm missing something obvious or if this is really tricky to do in Nuxt.
Can you explain how you solved this?


Convenience method "sdk flush all"

flush all -> flush broadcast, flush archives and flush temp

To raise a new Pull Request, the following prerequisites need to be met. Please tick before proceeding:

[ ] a conversation was held in the appropriate SDKMAN Slack channel.
[ ] a Github Issue was opened for this feature / bug.
[ ] test coverage was added (Cucumber or Spock as appropriate).

This addresses Issue #XXX

To raise a new Pull Request, the following prerequisites need to be met.

Sorry, but won't merge until this requirement is met. For one, I don't see the point of flushing the broadcast as this should only be used in extreme situations. Happy to discuss it on slack.

Any updates on this?
After yet another sdk flush archives && sdk flush temp, I came here looking to see whether flush all has been proposed and stumbled upon this PR.

Hi @vpavic
thb I don't know about the status. I implemented everything as requested, changed it accordingly to the discussion we had with @marc0der but the pull request never got merged. I can rebase it on the current development if wanted.
Cheers,
Kosta

@delight apologies, this must have slipped under the radar. I'll try resolve the conflicts locally and merge it today.

Merge conflicts are now resolved and I'll release later today.

Thanks for the quick turnaround @marc0der! :+1:

No worries, it was my oversight. This has now been released:
https://github.com/sdkman/sdkman-cli/releases/tag/5.9.1


SVG cursor of tools doesn't scale when display is set to a high DPI

Description
I'm using X.org and I have set up my DPI to 131. The cursors in Pinta.Resources/icons/hicolor/scalable/actions provided by Pinta aren't scaling, hence making the tool cursors hard to see.
To Reproduce

Set DPI to 131 (or anything high)
Equip any tool

Additional Info
https://github.com/PintaProject/Pinta/assets/121102787/410b5a5f-dd7c-4925-9a77-3677b740b4fb
Version
Arch Linux
Pinta Version: 2.1.2-2

Hmm, yeah it may be that Gdk.Cursor isn't doing any scaling, so they're just being loaded as a fixed pixel size.

Hmm, yeah it may be that Gdk.Cursor isn't doing any scaling, so they're just being loaded as a fixed pixel size.

I don't know how to write GTK applications so correct me if I'm wrong. According this line, the cursor image is assigned to a png file instead  of svg.


Rolling quantile, Incremental Entropy, categorical count, sorted_window

Codecov Report

Merging #39 into master will increase coverage by 0.2%.
The diff coverage is 91.83%.

@@            Coverage Diff            @@
##           master      #39     +/-   ##
=========================================
+ Coverage   89.87%   90.08%   +0.2%
=========================================
  Files          82       86      +4
  Lines        1561     1654     +93
=========================================
+ Hits         1403     1490     +87
- Misses        158      164      +6

Impacted Files
Coverage Δ

creme/stats/__init__.py
100% <100%> (ø)
:arrow_up:

creme/stats/quantile.py
92.75% <60%> (ø)
:arrow_up:

creme/stats/rolling_quantile.py
91.3% <91.3%> (ø)

creme/stats/categorical_count.py
91.66% <91.66%> (ø)

creme/stats/entropy.py
92.85% <92.85%> (ø)

creme/stats/sorted_window.py
96% <96%> (ø)

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 c1e776b...9369371. Read the comment docs.


Replace Google search with Baidu search in China

This is a...

[ ] Feature Request
[ X] Bug Report

Problem:
Google site search doesn't work in China. For users connecting from China, we should add JavaScript that replaces the Google Site Search with Baidu Site Search.
Proposed Solution:
We're using the following JavaScript to replace the YouTube video on https://events.linuxfoundation.cn/events/kubecon-cloudnativecon-china-2018/ with a Youku video for Chinese users, since YouTube is blocked in China:

If you agree this is reasonable, we'll propose equivalent JavaScript to replace Google Site Search with Baidu Site Search. Default will remain Google.
Page to Update:
https://kubernetes.io/...
Cc @zacharysarah @kbarnard10 @chenopis

@donaldliu Could you please paste in search code that enables Baidu site search for kubernetes.cn. See https://www.webnots.com/get-baidu-search-box-code/
It may take Baidu a little time to index kubernetes.cn.

Taking option "Without registering for webmaster tools account" and taking option1 is for Simple Baidu search box with an image, box and a search button.  Basically we are at:

https://zn.baidu.com/cse/wiki/index?category_id=25

Putting kubernetes.io as the domain to search, search code looks like:
`

`
Testing with "rbac" returns a link like:
- http://zhannei.baidu.com/cse/site?q=rbac&cc=kubernetes.io
- result is available
For kubernetes.cn, putting it as the domain to search look like:
`

`
Testing with "rbac" returns a link like:
- http://zhannei.baidu.com/cse/site?q=rbac&cc=kubernetes.cn
- no result is available yet.  (can take time as the domain is just up, with CDN behind)
Note: HTTPS doesn't seem to be available.

Other search engine available, e.g.: with HTTPS, like SOGOU.COM:

https://help.sogou.com/code.html?v=1

Putting kubernetes.io in generate the below search code:

<form action="http://www.sogou.com/web" target="_blank" onsubmit='javascript:verifyquery(this)' >

<input type="text" name="query" size=14 style='BORDER-RIGHT: #999 1px solid; BORDER-TOP: #999 1px solid; BORDER-LEFT: #999	1px	solid; BORDER-BOTTOM: #999 1px solid; HEIGHT: 19px; BACKGROUND-COLOR: #fff'>
<input type="hidden" name="insite" value="kubernetes.io">
<input type="hidden" name="insite2" value="kubernetes.io">
<input type="submit" name="sogou_submit" value="搜索">

<input type="radio" name="range" value="1" checked="checked"/>互联网<input type="radio" name="range" value="2" />www.kubernetes.io

</form>

(http://www.sogou.com/web can be replaced with https://www.sogou.com/web)
Testing with "rbac" returns a link like:

https://www.sogou.com/web?query=rbac&insite=kubernetes.io&insite2=kubernetes.io&sogou_submit=搜索&range=2
result is available

Putting kubernetes.cn looks like:

<form action="http://www.sogou.com/web" target="_blank" onsubmit='javascript:verifyquery(this)' >

<input type="text" name="query" size=14 style='BORDER-RIGHT: #999 1px solid; BORDER-TOP: #999 1px solid; BORDER-LEFT: #999	1px	solid; BORDER-BOTTOM: #999 1px solid; HEIGHT: 19px; BACKGROUND-COLOR: #fff'>
<input type="hidden" name="insite" value="kubernetes.cn">
<input type="hidden" name="insite2" value="kubernetes.cn">
<input type="submit" name="sogou_submit" value="搜索">

<input type="radio" name="range" value="1" checked="checked"/>互联网<input type="radio" name="range" value="2" />www.kubernetes.cn

</form>

(http://www.sogou.com/web can be replaced with https://www.sogou.com/web)
Testing with "rbac" returns a link like:

https://www.sogou.com/web?query=rbac&insite=kubernetes.cn&insite2=kubernetes.cn&sogou_submit=搜索&range=2
no result is available yet. (can take time as the domain is just up, with CDN behind)
Note: HTTPS is supported here.

bing is an alternative.
Baidu is also good.

Bing is a nice alternative because they have a UIs in many languages
besides Chinese.
https://blogs.bing.com/2017-05/build-your-own-web-search-service-with-bing-custom-search
--
Dan Kohn<EMAIL_ADDRESS>Executive Director, Cloud Native Computing Foundation https://www.cncf.io
+1-415-233-1000 https://www.dankohn.com
On Mon, Jul 30, 2018 at 9:08 AM, CaoShuFeng<EMAIL_ADDRESS>wrote:

bing https://www.bing.com is an alternative.
Baidu is also good.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/website/issues/9635#issuecomment-408856920,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC8MBpqFVZMFSsJIEaz2KJRAq-n1D9h9ks5uLwVHgaJpZM4VfcSE
.

Fixed by https://github.com/kubernetes/website/pull/9845


Update BREAKING - Add sync reminder

I spent 20m trying to make this work, only to realize I didn't run sync 🤦
Maybe this will help others.

Ah yes, good note! Sorry for the trouble yaron. 😅


Steps for Configuring Simulation Mode are Incomplete

To have an AutoSenstivityLabelPolicy in simulation mode start running the simulation you must first run this cmdlet:
set-autosensitivitylabelpolicy -identity MyPolicy -startsimulation $true
This step is not included in the document.

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

ID: 6564bdaa-d66b-42ba-85bd-7c8f9989093d
Version Independent ID: 33be52f1-d233-9c5d-abb3-140a9c6a0d74
Content: Automatically apply a sensitivity label to content in Microsoft 365 - Microsoft 365 Compliance
Content Source: microsoft-365/compliance/apply-sensitivity-label-automatically.md
Service: o365-seccomp
GitHub Login: @cabailey
Microsoft Alias: cabailey

@AveryBaker  If you are following the instructions on this page (use the UI to create auto-labeling policies), you should not have to run this PowerShell cmdlet.  Were you told otherwise?

@AveryBaker Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


feat: add group 2 information

Adds the necessary information for group 2 on homework 3.
This pull request is ready for merging.

merged group


Unable to introspect token on Windows

Created by: @yetizer Aug 17 2021 at 20:53 CET
Last updated: Jul 08 2022 at 23:26 CET
ClickUp ID: IK-1378
On windows machines people have issues introspecting tokens. Most of the time (for some people always) the following error is returned from the backend/SDK
Failed with error: Error: 16 UNAUTHENTICATED: invalid or expired access_token
Same error occur right after application with SDK is restarted, i.e. not related to the expired token as a new one is created when application starts

Commented by: @bayegan Sep 02 2021 at 03:00 CET
@ Mateusz Grzywa : can you please add steps to reproduce (according to IK bug format), so that we have some more information to go by. we will get back to you with ETA, once we know a bit more about the issue. thank you. cc @ Stein Myrseth

Commented by: @bayegan Sep 09 2021 at 04:15 CET
Added internal tracking: 1g3baxd


Upload progress

Is it possible to show some kind of upload progress?

Would be nice. The upload does seem to sometimes take much longer than excepted. Maybe a simple time indication between steps so we get a better idea of how long each step can take?

I would like to add:
sbt-deploy-test(master)> deployHeroku
[info] ---> Packaging application...
[info]      - app: protected-river-****
[info]      - including: target/universal/stage/
[info]      - installing: OpenJDK 1.7
[info] ---> Creating slug...
[info]      - file: target/heroku/slug.tgz
[info]      - size: 102MB
[info] ---> Uploading slug...
[info]      - stack: cedar-14
[info]      - process types: [web]
[info] ---> Releasing...
[info]      - version: 4
[success] Total time: 1277 s, completed 20-apr-2015 15:38:07
21 minutes for a deploy of an empty play project.
Just to be clean I think this is a great project and I would really like to using this for my production heroku apps.

Are you deploying from the EU? I think the S3 repo that the slug is uploaded to is in the US -- even if your app is in the EU. I'm going to investigate how we can fix that.

My test app was in the US. I created another app in the EU. The upload time was just as long (about 20 minutes).
It seems to be a problem with windows or intellij's terminal because if I deploy from an ubuntu vm (running in virtualbox) both US and EU takes only 3 minutes.
This seems to be a problem on my side and not really something of this project.
So to not go off-topic: +1 the original feature request.

@jjstaats thanks for the info. I have seen this same problem on Windows (both from the Terminal and from Eclipse). So I don't think it is Intellij. What version of the JDK are you using locally?
I've already started some work on this feature, so should be available in the near future.

@jkutner the project is linked to 1.7.0_51 (64bit) but the system default is 1.8.0_31 (64bit), not sure what parts of intellij (including the buildin terminal) is native and what runs on java.

progress https://github.com/heroku/heroku-maven-plugin/commit/e3a454bbb5569555af02be06877ec34d0e8eb070

fixed in 0.3.7


refactor: move some deperacted compilation methods into deperacted.go

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

[ ] N
[x] Y

re #https://github.com/kcl-lang/kpm/pull/478

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[x] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

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

103 of 231 (44.59%)  changed or added relevant lines in 3 files are covered.
34 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.5%) to 41.589%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/client/run.go
7
9
77.78%

pkg/api/deperated.go
18
25
72.0%

pkg/client/deperated.go
78
197
39.59%

Files with Coverage Reduction
New Missed Lines
%

pkg/client/client.go
34
56.21%

Totals

Change from base Build<PHONE_NUMBER>3:
-0.5%

Covered Lines:
3476

Relevant Lines:
8358

💛  - Coveralls


Adding variant attributes to an existing product type

What I'm trying to achieve
Adding variant attributes to an existing product type
Steps to reproduce the problem

using the sample data, add a variant attribute to a product type (i.e. Color to "Top (clothing) type")
The variant attribute is added (without values) to all existing products assigned with this product type

What I expected to happen
New variant attribute should not be available on existing products.
Screenshots

System information
Operating system:
Browser:

By design, editing existing product type will modify all products using such type. If you do not wish to modify existing products, you have to create new product type.

Yes, that seems like expected behavior to me. Though, showing an attribute with no options to select does not.


batch together points waiting in queue, add async parameters

and improve testing

@jjb @wam FYI this pull includes some of the stuff you've fixed also as this project looked abandoned when I started it


dowgrading CPM to 0.40.0 + including full version

Downgrading CPM might help with some CI issues.
Also, this includes the full CPM code, which avoids network access when building.

Ah, now I see. Thanks @lemire
I think this requires a git pull --rebase origin main for the linting error to be gone, but let's merge it as it is since its already fixed in main.


Recursive Pydantic objects are not supported for basic patterns

Recursive Pydantic definitions seem unsupported for lists, unions, and optionals. My understanding is these are the basic use cases.
A reproducible example is provided below:
import json

from typing import List, Optional, Union
from pydantic import BaseModel

from outlines.text.json_schema import build_regex_from_schema

class TaskOptional(BaseModel):
    subtask: Optional['TaskOptional']

class TaskWrapperOptional(BaseModel):
    task: TaskOptional

class TaskUnion(BaseModel):
    subtask: Union['TaskUnion', None]

class TaskWrapperUnion(BaseModel):
    task: TaskUnion

class TaskList(BaseModel):
    subtask: List['TaskList']

class TaskWrapperList(BaseModel):
    task: TaskList

TaskWrapperOptional.model_rebuild()
TaskWrapperUnion.model_rebuild()
TaskWrapperList.model_rebuild()

regex = build_regex_from_schema(json.dumps(TaskWrapperOptional.model_json_schema()))
# NotImplementedError:
# @ outlines/text/json_schema.py:308

regex = build_regex_from_schema(json.dumps(TaskWrapperUnion.model_json_schema()))
# NotImplementedError:
# @ outlines/text/json_schema.py:308

regex = build_regex_from_schema(json.dumps(TaskWrapperList.model_json_schema()))
# RecursionError: maximum recursion depth exceeded while calling a Python object
# @ outlines/text/json_schema.py:174

I'd be interested in adding this functionality but I'm unsure as to what an "unrolled" recursive definition would look like in terms of the generated regex.

Thank you for opening an issue! It looks like something we should be able to support. Do you mind pasting the JSON schema for these 3 models here?

In all cases, the schema is available through TaskWrapperxxx.model_json_schema(). I'll post an example of each here as well.
TaskWrapperOptional
{
    "$defs": {
        "Task": {
            "properties": {
                "name": {
                    "title": "Name",
                    "type": "string"
                },
                "subtasks": {
                    "default": [],
                    "items": {
                        "$ref": "#/$defs/Task"
                    },
                    "title": "Subtasks",
                    "type": "array"
                }
            },
            "required": [
                "name"
            ],
            "title": "Task",
            "type": "object"
        },
        "TaskOptional": {
            "properties": {
                "subtask": {
                    "anyOf": [
                        {
                            "$ref": "#/$defs/Task"
                        },
                        {
                            "type": "null"
                        }
                    ]
                }
            },
            "required": [
                "subtask"
            ],
            "title": "TaskOptional",
            "type": "object"
        }
    },
    "properties": {
        "task": {
            "$ref": "#/$defs/TaskOptional"
        }
    },
    "required": [
        "task"
    ],
    "title": "TaskWrapperOptional",
    "type": "object"
}

TaskWrapperUnion
{
    "$defs": {
        "TaskUnion": {
            "properties": {
                "subtask": {
                    "anyOf": [
                        {
                            "$ref": "#/$defs/TaskUnion"
                        },
                        {
                            "type": "null"
                        }
                    ]
                }
            },
            "required": [
                "subtask"
            ],
            "title": "TaskUnion",
            "type": "object"
        }
    },
    "properties": {
        "task": {
            "$ref": "#/$defs/TaskUnion"
        }
    },
    "required": [
        "task"
    ],
    "title": "TaskWrapperUnion",
    "type": "object"
}

TaskWrapperList
{
    "$defs": {
        "TaskList": {
            "properties": {
                "subtask": {
                    "items": {
                        "$ref": "#/$defs/TaskList"
                    },
                    "title": "Subtask",
                    "type": "array"
                }
            },
            "required": [
                "subtask"
            ],
            "title": "TaskList",
            "type": "object"
        }
    },
    "properties": {
        "task": {
            "$ref": "#/$defs/TaskList"
        }
    },
    "required": [
        "task"
    ],
    "title": "TaskWrapperList",
    "type": "object"
}

Anyone who's interested in this feature should know that CFG-structured generation is required to truly support it.

I saw there is a pull request that implement a beta version of CFG guided generation, which is amazing. But the request failed, is that everything thats necessary to get this functionality available?
The PR failed due to a regression in a performance benchmark, i believe in a measurement that didnt really exist before, so is there anything that i can do to test/help get this recursive field functionaility over the line?
I really need this recursive functionality, and am considering switching to a different structured generation library (https://github.com/noamgat/lm-format-enforcer), however that one seems like it is much less mature and i do intend to use this for production usecases.
Anyway, if there is anything i can do to help please let me know.

@hugocool To have stable CFG-based JSON generation we need

Tooling like https://github.com/dottxt-ai/outlines/blob/main/outlines/fsm/json_schema.py which, instead of converting to regex, constructs an appropriate Lark grammar.

Completion of https://github.com/dottxt-ai/outlines/issues/1151

There may be other paths forward, but this is the approach immediately obvious to me.
This isn't an area of focus of mine at the moment, but if you're interested in tackling either issue, please let me know what questions you have!

Okay, i am willing to pick this up.
So i have some questions, what is the current state of the Lark grammer generation? Which elements of the PR (https://github.com/lapp0/outlines/pull/85) can i build upon? or any attempt for that matter?
Are you aware of lm-format-enforcer and their approach to solving this problem? What elements of their learnings should we incorporate?
I think i would start with generating a Lark grammer for my specific usecase, which is recursive JSON. Then if that works we can see how to generalize it so it can work for any arbitrary JSON schema.
I am assuming i should build of of these examples:

https://dottxt-ai.github.io/outlines/latest/reference/generation/cfg/
https://lark-parser.readthedocs.io/en/stable/json_tutorial.html
https://github.com/dottxt-ai/outlines?tab=readme-ov-file#using-context-free-grammars-to-guide-generation
https://github.com/dottxt-ai/outlines/blob/main/outlines/grammars/json.lark

Are there any more resources i should be aware off?
Lastly, i am assuming that the second issue you mentioned, would come into play once we would like to generalize the solution to JSON more broadly, right?


Dell drivers stopped downloading

This is now happening in my Production environment and lab so it cant be the automation tool.
Anyone else having this issue? Has Dell done something on their catalogues?
this is the error i get:
Get-Item : Cannot find path '\xxxxxxxxxxxxxxxxxxxxx' because it does not exist.
At line:18529 char:81

... e size:  $((Get-Item -Path $($DownloadRoot + $Model + '\Driver Cab'  ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (\cm1\MDM_Temp...0-A13-VGY73.CAB:String) [Get-Item], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Microsoft drivers are dowloading fine - Dell BIOS is also downloading ok

same here

Same Here.

I tried downloading a CAB for a Latitude 5490 that failed out; it even fails out from the link directly on their site: https://www.dell.com/support/kbdoc/en-us/000122499/latitude-5490-windows-10-driver-pack.
Clearly a Dell problem, not sure who exactly to notify of the issue. Does anyone know Twitter handles or anything of anyone from the Dell side that maintains these?

Hello,
Any news regarding this issue ?
Still the same problem .

Hi all - seems to be a dell catalogue issue
https://twitter.com/modaly_it/status/1517492046285656066

Still broken. I'm getting the same error. Tried multiple models. Running 7.1
Get-Item : Cannot find path '\XXX\Drivers-Source\Dell\Latitude 7420\Driver Cab\7420-win10-A08-Y56C2.CAB' because it does not exist.
At line:18617 char:81

... e size:  $((Get-Item -Path $($DownloadRoot + $Model + '\Driver Cab'  ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (\files.cornell...0-A08-Y56C2.CAB:String) [Get-Item], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand