HACS Support

I started over and am submitting the repository in a cleaner form. The only files I touched are: README.md, hacs.json, and info.md. None of the other files ended up needing to move.

Looking forward to getting this merged

This seems great overall! TBH I don't entirely understand the difference between info.md and our README we already have… can anyone who uses HACS clarify? In any case, it seems like the actual metadata is ready to go.

@sampsyo regarding info.md

If you want to add a richer experience for your users you can add an info.md file to the root of your repository (this is optional, if you do not have this you need to set render_readme in the hacs.json file), this file will be rendered under the repository description, it does not support the full styling options as Github so use with care

Taken from https://hacs.xyz/docs/publish/start

OK, merged! That's all we need to do, right? We don't need to enter something into some database somewhere?

@sampsyo
It could be added to HACS manually (I believe there's an option to import a repo.
But it also could be added to default HACS repository, so it could be available in HACS by default. More info here:  https://hacs.xyz/docs/publish/include

@sampsyo To be clear, you'd need to submit a PR against https://github.com/hacs/default/blob/master/integration adding this repo to the list in order for it to be included. They seem to like maintainers to be the ones to open the PR - is that something you'd have time to do?

Thanks for clarifying, @javawizard—that seems easy enough! I'll give it a try right now.

@javawizard I opened a PR but it looks like there's more subtlety to it. If you have time to help shepherd the PR through, we'd be grateful.

@sampsyo Happy to help. What needs to be done? If this is re https://github.com/hacs/default/pull/550#issuecomment-662952965, then per https://github.com/hacs/default/pull/550#issuecomment-662956327 it sounds like that's no longer an issue.

Indeed! Sounds like that thing's OK. I think the only thing I'm asking for your help with (awesome, thanks for volunteering, by the way) is monitoring the thread to see if there's anything else we need to do. 🙏✨✨

Sure, happy to keep an eye on it 👍

As for brands, you can just duplicate custom_integrations/smartthinq_sensors to custom_integrations/smartthinq.


Add missing content descriptions to layouts

Question for reviewers: Do we want to have a content description for the logo image if it isn't a navigation element? It feels a little like a decoration, not a navigation button.


Support for ARM64

Hi,
I am trying to pip install your package inside the latest Python docker container running on ARM64  running on Apple Silicone M1.
And I am getting the following error:
root@5eca8d321db9:/# pip install lazrs ERROR: Could not find a version that satisfies the requirement lazrs (from versions: none) ERROR: No matching distribution found for lazrs
Probably just need to specify one more target when building the package? Or is it not that simple? Would you be able to help?
Best, Nejc

That's because the Pypi repo does not have wheels for arm64.
I pushed arm64 wheels for python 3.9 & 3.10 on macos but for linux I can't provide them yet (and github CI does not have narive arm64 linux/macos so I cant use it to create the wheels like I do for x86).
So you'll need to build them yourself if you want to use laz-rs on linux arm64.
It should be easy tho,

Install rust
git clone https://github.com/laz-rs/laz-rs-python
cd laz-rs-python
pip install maturin
maturin build --release
pip install target/{name-of-the-wheel}

or maturin develop --release directly

pypi can have arm64 wheels! See my project: https://pypi.org/project/startinpy/#files
I build it with this: https://github.com/hugoledoux/startinpy/blob/master/.github/workflows/build.yml#L36

Ah yes since we don't have any weird dependencies, cross compiling with rust is easy.
Thanks for the examples


Add support for an "open in" construct

This evaluates the expression within the scope of a module. Some examples:
module X = begin
  let a = 1
  and b = 2
end ;;

let main = begin
  X.a; (* As before, just a module index *)
  X.(a, b) (* Constructs a tuple of (X.a, X.b) *)
  X.(a + b) (* Evaluates X.a + X.b *)
  X.{ a = a } (* Evaluates { a = X.a } *)
end

This also changes the syntax for "import as" from open X as Y to module Y = X.

Looks great, thanks!


Typescript 2 documentation.

Hello,
Could you include a better example on your WIKI page on how to configure one NG2 project using AlaSQL.
I have added a comment on (issue: https://github.com/agershun/alasql/issues/738) on how to do that.
Thanks regards
Bernard.

Hi @bendraaisma
Thank you so much for sharing your insight.
I was of the impression that #738 was about Angular 2 so I placed the content on https://github.com/agershun/alasql/wiki/Angular.js
But the wiki page you link to and and the title on this issue states "typescript". Is it because typescript is used for angular 2 always?
I would love to undertand this so we can get the documentation to where it can help the most people

How to write multiline statement in typescript with angular4?
in jsfiddle itworks but in typescript it didn't.
any help appreciated.
public testAlaSQLExcelExport(): void {
var result = alasql('SELECT [2],[3],[6], COUNT(*) FROM ?
WHERE [11] = "Z21D" AND [15] = "8439204" AND [12] = "3449853" AND [1] = "RPP"
GROUP BY [2],[3],[6]', [this.dataSet]);
console.log(result)
}

Please make a new issue with the question


python38Packages.blinkpy: 0.17.1 -> 0.18.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.blinkpy is: "Python library for the Blink Camera system"
meta.homepage for python38Packages.blinkpy is: "https://github.com/fronzbot/blinkpy"
meta.changelog for python38Packages.blinkpy is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.18.0 with grep in /nix/store/yz4z2vl8zg5yyqz1hajwa13h7lv2n7dc-python3.8-blinkpy-0.18.0

found 0.18.0 in filename of file in /nix/store/yz4z2vl8zg5yyqz1hajwa13h7lv2n7dc-python3.8-blinkpy-0.18.0

Rebuild report (if merged into master) (click to expand)

7 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
3 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
docbookrx
home-assistant
python38Packages.blinkpy
python39Packages.blinkpy

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/yz4z2vl8zg5yyqz1hajwa13h7lv2n7dc-python3.8-blinkpy-0.18.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.blinkpy https://github.com/r-ryantm/nixpkgs/archive/d9a43148d52d14672d3c7af5f67aaa7ce8171a39.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/yz4z2vl8zg5yyqz1hajwa13h7lv2n7dc-python3.8-blinkpy-0.18.0
ls -la /nix/store/yz4z2vl8zg5yyqz1hajwa13h7lv2n7dc-python3.8-blinkpy-0.18.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @dotlambda for testing.

Result of nixpkgs-review pr 150394 run on x86_64-linux 1

1 package failed to build:

home-assistant

2 packages built:

python38Packages.blinkpy
python39Packages.blinkpy

Updated in #152740


Can we make this the official conda repo for DataFusion?

Comment:
The Arrow community would like to help maintain this feedstock so that we can release DataFusion to crates.io, pypi, and conda every time we have a new release.
The ASF release process requires the PMC to vote on the release artifacts before they are published, but it looks like releases are currently automated here based on PRs being merged? There was a 0.6.0 release earlier today, for example.
@cpcloud Are you open to us making this the official conda repo for DataFusion and complying with the ASF release process?

Sounds good to me!

What would this mean for this PR ( https://github.com/conda-forge/datafusion-feedstock/pull/19 )?
More generally should the source of this recipe still be pointing at PyPI? Or should it be pointing at a different source?
Finally would it make sense to add other maintainers here based on who would be checked off on release artifacts generally?

@jdye64 is helping with conda support in the repo (see https://github.com/apache/arrow-datafusion-python/pull/124, for example) and would probably be best placed to answer the questions here.
I am happy to add other Arrow PMC members to the repo here if they are interested. When I offered to do this for PyPi, nobody was interested, and I expect the same will be true here.
I am hoping to get more people interested in helping with this project, and getting more frequent releases is a step towards that.

I started a thread on the Arrow dev@ mailing list asking if anyone wants to be added.
https://lists.apache.org/thread/hfrobrdojohl8kg6y4d1y0jn9pqc5v8p

@jakirkham the pypi source in the recipe is still fine. Thanks for checking!

The artifacts published to pypi are official releases that have already been voted on. If this repo is just redistributing those artifacts then I don't think that anything additional is needed in terms of votes after all.

FWIW, for the apache/arrow monorepo packages that are on conda-forge (cpp, python, r), we don't consider those packages as "official" binaries under the ASF release process (i.e. those artifacts are not voted upon, not uploaded to an apache.org archive).
Personally I think that is a fine situation, as it is similar to other (system) package managers or distributions that can distribute packages without directly being under control of the package maintainers (eg debian (if they would have an arrow package), hombrew, ...). See the "Other installers" section at https://arrow.apache.org/install/
In practice, this repo already is kind of the official conda package for DataFusion, because on conda-forge there can only be one such repo, and that is this one.

If this repo is just redistributing those artifacts

Strictly speaking, it's not just redistributing, it's building new artifacts AFAIK (starting from the source release)
(that said, it's certainly good if there is involvement from the package authors here and get added as recipe maintainers)

Thanks for the extra info @jorisvandenbossche, this is very helpful.
I will go ahead and close this issues since it seems everything is fine as is. Sorry for taking up all of your time on this. I will definitely encourage others to get involved in helping maintain this feedstock.


Handbook Chinese

mdbook type file;
new "chn" fold under docs with the same structure of english version.
except the chapter of “sat hunting” since its（out of date）
#2128

Same lint error

This is a great start but I need #2385 implemented first.

This is a great start but I need #2385 implemented first.

Cool try to work it out. #2385


when field is category, axis grid alternateColor filling has gaps

G2 Version: 3.x and below
Platform: all
Mini Showcase(like screenshots):

CodePen Link:

  chart.axis('country', {
    label: {
      offset: 12
    },
    grid: {
      align: 'center',
      alternateColor: [ '#f80', '#ccc' ],
    }
  });

Solution from designer:


Extended filtering of pattern matches

In the current version, the "filtering" contains only one input for selection of the used pattern. Extend the filtering options to this:

Selected pattern - active only when there are more than 1 pattern (in case of 1 pattern disable this input), rename it to "Pattern name"
Filtering by selection of pattern matches to apply (issue #71) - options "all", "selected", "rejected", "new"
Fulltext search in URIs and labels

The first part is done, you can see in my branch. About the second, I asked for clarification in the other issue


JSONDecodeError

Bug description

Project Manager transforms Architect's WriteDesign, but not as JSON then it tries to parse it as JSON
run command
metagpt.exe 'create flappy bird as a web app using only vanilla js, html, and css'

Environment information

LLM type and model name: ollama llama3
System version: Windows 10
Python version:  3.10.6
MetaGPT version or branch:  main branch probably, likely commit 38cea1daf2b87ebc31a56c995d7857d07289fa70

packages version: pip 22.3.1
installation method:  pip install --upgrade git+https://github.com/geekan/MetaGPT.git

Screenshots or logs

WriteDesign from Architect
{
    "Implementation approach": "We will implement Flappy Bird as a web app using vanilla JavaScript, HTML, and CSS. We will analyze the difficult points of the requirements, select the appropriate open-source framework for responsive design, and use keyboard or touch even
ts to control the bird's movement.",
    "File list": [
        "index.html",
        "style.css",
        "script.js"
    ],
    "Data structures and interfaces": "
classDiagram
    class FlappyBirdGame {
        -birdMovementAlgorithm
        +startGame()
        +updateGame()
        +renderGame()
    }
    class BirdMovementAlgorithm {
        -pipeMovementAlgorithm
        +calculateBirdPosition()
        +checkCollision()
    }
    class PipeMovementAlgorithm {
        +generatePipes()
        +movePipes()
    }
    FlappyBirdGame --> BirdMovementAlgorithm
    BirdMovementAlgorithm --> PipeMovementAlgorithm
",
    "Program call flow": "
sequenceDiagram
    participant FBG as FlappyBirdGame
    participant BMA as BirdMovementAlgorithm
    participant PMA as PipeMovementAlgorithm
    FBG->>BMA: startGame()
    BMA->>PMA: generatePipes()
    PMA-->>BMA: return pipes
    BMA->>FBG: updateGame()
    FBG->>BMA: renderGame()
",
    "Anything UNCLEAR": "Clarification needed on scoring system and game over logic."
}

WriteTasks from Project Manager
{
    "Implementation approach": "We will implement Flappy Bird as a web app using vanilla JavaScript, HTML, and CSS. We will analyze the difficult points of the requirements, select the appropriate open-ource framework for responsive design, and use keyboard or touch event
s to control the bird's movement.",
    "File list": ["index.html", "style.css", "script.js"],
    "Data structures and interfaces":
        classDiagram
        class FlappyBirdGame {
            -birdMovementAlgorithm
            +startGame()
            +updateGame()
            +renderGame()
        }
        class BirdMovementAlgorithm {
            -pipeMovementAlgorithm
            +calculateBirdPosition()
            +checkCollision()
        }
        class PipeMovementAlgorithm {
            +generatePipes()
            +movePipes()
        }
        FlappyBirdGame --> BirdMovementAlgorithm
        BirdMovementAlgorithm --> PipeMovementAlgorithm,
    "Program call flow":
        sequenceDiagram
        participant FBG as FlappyBirdGame
        participant BMA as BirdMovementAlgorithm
        participant PMA as PipeMovementAlgorithm
        FBG->>BMA: startGame()
        BMA->>PMA: generatePipes()
        PMA-->>BMA: return pipes
        BMA->>FBG: updateGame()
        FBG->>BMA: renderGame(),
    "Anything UNCLEAR": "Clarification needed on scoring system and game over logic."
}

actual error from stderr
json.decoder.JSONDecodeError: Expecting value: line 5 column 9 (char 415)

Ollama is not as effective as OpenAI. Try to set repair_llm_output: true in config2.yaml to get a better output.

Still getting the same error with that config option.
~/.metagpt/config2.yaml
llm:
  api_type: 'ollama'
  base_url: 'http://<IP_ADDRESS>:11434/api'
  model: 'llama3'
  repair_llm_output: true

I'm getting a similar error with Ollama: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) running metagpt from the commandline. I have an issue: https://github.com/geekan/MetaGPT/issues/1383. I added repair_llm_output: true to  ~/.metagpt/config2.yaml, but I still get the same error.
$ metagpt "Create a 2048 game"
2024-07-07 14:37:19.995 | INFO     | metagpt.const:get_metagpt_package_root:29 - Package root set to /Users/ken/devel/ai/agents/metagpt_novel
2024-07-07 14:37:27.413 | INFO     | metagpt.team:invest:90 - Investment: $3.0.
2024-07-07 14:37:27.414 | INFO     | metagpt.roles.role:_act:391 - Alice(Product Manager): to do PrepareDocuments(PrepareDocuments)
2024-07-07 14:37:27.535 | INFO     | metagpt.utils.file_repository:save:57 - save to: /Users/ken/devel/ai/agents/metagpt_novel/workspace/20240707143727/docs/requirement.txt
2024-07-07 14:37:27.538 | INFO     | metagpt.roles.role:_act:391 - Alice(Product Manager): to do WritePRD(WritePRD)
2024-07-07 14:37:27.540 | INFO     | metagpt.actions.write_prd:run:86 - New requirement detected: Create a 2048 game

Ollama is definitely being used. The CPU usage is at 700% and my laptop is humming.

The problem is at
    def _decode_and_load(self, chunk: bytes, encoding: str = "utf-8") -> dict:
        chunk = chunk.decode(encoding)
        return json.loads(chunk)

The error info is
chunk
'data: {"id":"chatcmpl-471","object":"chat.completion.chunk","created":1720838591,"model":"llama3","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"I"},"finish_reason":null}]}\n'
json.loads(chunk)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File<EMAIL_ADDRESS>line 346, in loads
    return _default_decoder.decode(s)
  File<EMAIL_ADDRESS>line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File<EMAIL_ADDRESS>line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

maybe you can modify as follows:
    def _decode_and_load(self, chunk: bytes, encoding: str = "utf-8") -> dict:
        chunk = chunk.decode(encoding)
        json_data = chunk.removeprefix('data: ').strip()
        # print("json_data: ", json_data, "/n")
        if len(json_data) == 0:
            return {}
        elif json_data.lower().find("done"):
            return {"done": True}
        else:
            ret = json.loads(json_data)
            delta = ret.get('choices', [{}])[0].get('delta', {})
            ret["message"] = delta
        return ret

        async for raw_chunk in stream_resp:
            chunk = self._decode_and_load(raw_chunk)
            if chunk == {}:
                continue
            if not chunk.get("done", False):
                ...

Due to the lack of updates or replies by the user for a long time, we will close it. Please reopen it if necessary.

This is still an issue. How many people use ollama or a local LLM?


Enable clang-tidy checks and fix warnings in code

Brief feature description
At the moment a lot of clang-tidy checks in our root .clang-tidy file are disabled to ensure that our codebase is at least warning free with a minimal subset of clang-tidy checks.
We should enable the disabled checks one by one and solve the generated warnings in the same step. Some of the warnings require a larger refactoring. If this happens please create another issue and add a todo link in this issue.
ToDo

Remove the compiler warning suppression from all tests, see CMakeLists.txt and the entry set(TEST_CXX_FLAGS PRIVATE ${ICEORYX_WARNINGS} ${ICEORYX_SANITIZER_FLAGS} -Wno-pedantic -Wno-conversion) and fix all warnings.
Create a .clang-tidy file in every test disables warning which originate from the googletest fixtures itself. For instance TEST_F and TYPED_TEST have a rule of 5 warning.

Hints
The .clang-tidy file may have warnings which do not fit for us. If this is the case then please disable the warning and write a justification why this is rule is not appropriate. Example:
* rule: readability-identifier-length
  justification: In some functions single letter variables make sense, this is covered by the review process
  example:
     bad:
       int sum(int summand1, int summand2); // here we would like to have single letter variable arguments
     good:
       int sum(int a, int b); // failure since a and b have less than three letters

Files
When a file is stated, it means the header, inline file, cpp file and also the tests are refined.
iceoryx_hoofs/cxx

[x] algorithm @elfenpiff
[x] attributes.hpp @elfenpiff  (muahahha there were no warnings but it still counts!)
[x] convert @elfenpiff
[x] deadline_timer @elfenpiff
[x] expected @elfenpiff
[x] filesystem @elfenpiff
[x] forward_list @FerdinandSpitzschnueffler
[ ] function_ref @mossmaurice
[x] function @elfenpiff
[x] functional_interface @elfenpiff
[ ] generic_raii @elfenpiff
[ ] helplets @elfenpiff
[ ] list @elfenpiff
[x] newtype @elBoberido
[x] optional @FerdinandSpitzschnueffler
[x] poor_mans_heap @elBoberido
[ ] requires @elfenpiff
[ ] scoped_static @elfenpiff
[x] serialization @elBoberido
[x] stack @elBoberido
[x] string @FerdinandSpitzschnueffler
[x] types @elBoberido
[ ] type_traits @elfenpiff
[x] unique_ptr @mossmaurice
[ ] variant @mossmaurice
[x] variant_queue @FerdinandSpitzschnueffler
[ ] vector @mossmaurice

iceoryx_hoofs/units

[x] duration @elBoberido

iceoryx_hoofs/concurrent

[ ] lockfree_queue complete folder + header @MatthiasKillat
[ ] fifo @FerdinandSpitzschnueffler
[ ] periodic_task @FerdinandSpitzschnueffler
[ ] smart_lock @FerdinandSpitzschnueffler

TODOs after merge of the integration branch

[ ] improve readability of brance initialization by adding spaces between variable name, braces and values;// old
int foo{42};
// new
int foo { 42 };

[ ] remove operator std::string() from cxx::string and implement toStdString method
[ ] remove EXPECT_DEATH
[ ] implement uninitialized array
[ ] replace requires.hpp with error handler

@elfenpiff convert is not done yet. clang-tidy does not report warnings because the hpp is not included in the inl. I uncheck the checkbox

@elfenpiff I would exclude log and error handler from clang-tidy checks. These will be refactored anyway and there is no need to waste time on it right now.


Pure css alternative of js sticky sidebar

https://stackoverflow.com/a/71129668/6398044
<div class="flex">
    <aside class="h-screen sticky top-0">
        // Fixed Sidebar
    </aside>

    <main>
        // Content
    </main>
</div>

What do you think about mentioning about it in README?

This doesnt handle all the cases. In fact, i came looking for this library because that method above does not work for me.


download preview/csv sometimes have meaningless name

I suspect it is the fingerprints?

no longer relevant, as preview datasets now point directly to cscs


Reformat src and text using php-cs-fixer and phpstorm

I've just run 'php-cs-fixer fix --level=psr2' on the src and test
folders and then also used PHPStorms built in reformatting tool to get
all the code into PSR 2 format with ordered includes and shortened line
lengths.

Thank you!


CMake compile issue

When I installed the required dependencies (including nvshmem) and ran cmake I encountered the problem in the picture below, have you encountered it?

Make sure you installed NVSHMEM with cmake support and it's in somewhere cmake can find. The package on spack is a bit behind, so if you used that to install dependencies you can either manually compile NVSHMEM and copy NVSHMEM_HOME/lib/cmake to the spack dir or use this branch.

Thanks for the reply, I'll try to manually compile NVSHMEM.


ocr-numbers: estimate difficulty and move to appropriate position within track

By default, new exercises are scored with difficulty 1 and located at the end of the track. We should use this issue to discuss and determine an estimated difficulty for ocr-numbers, then submit an associated PR that moves it to the appropriate position within the track based on that difficulty.

This still hasn't been estimated, so the issue should probably stay open.

@stkent You'd probably know best since you implemented it, but maybe 8 or 9?


Disabling a part in the mixer causes individual part audio output to loop over the last audio buffer generated

I haven't noticed this when running ZynAddSubFX on my laptop, where I feed the combined stereo output to the sound card. However, on the Zynthian, the individual part outputs are used, and if a part is muted in the mixer screen while it is still playing audio, it seems that the last audio buffer generated is looped until the part is re-enabled. This happens sometimes in Zynthian supposedly when it mutes a part during reconfiguration, but is easily reproduceable in that environment by connecting a remote Zest using OSC, and muting a part in the mixer screen while audio is being generated for that part.

Well that's a new one. Seems like it should be easy enough to hone in on the bug if the replication process is as straight forward as it sounds.


Due to the unbalanced distribution of segments, query will cost more time.

We have a datasource with many segments and use CostBalancerStrategy  in our cluster, but we find this datasource's segments has follows distribution:

Then the query request to druid04 will has a long tail.

Please add more info -

Version of Druid
Were there new nodes that were added ? Did you waited enough time for the coordinator to rebalance the segments ?
Coordinator balancing related configs, if using non-default
provide distribution snapshot over time, e.g at t, t+6, t+12, t+24 hrs
Coordinator logs after masking any sensitive info.


Collect an anonymous telemetry on created models ?

It would be nice to get an idea of what kind of models users are trying to create

The https://github.com/JuliaPackaging/Preferences.jl could be used to control the behavior since it allows for compile time user preferences


Temporarily disable rancher-cloud-controller-manager

When Rancher is deployed as an external cloud controller manager (CCM) along with kuberners controller manager (KCM), there were cases when the labels populated by CCM weren't set on the node. Those labels are:

instancetype
failure domain
region

It was caused by CCM node initializing code not being called sometimes. As a result, in the same cluster there were hosts with failureDomain/region present, and some hosts where those parameters were missing. That in turn could cause k8s scheduler to prioritize hosts with no labels over the hosts with the labels, and some hosts never got pods deployed.
There might be more consequences of CCM init not being called, but scheduling was one that was caught.
https://github.com/kubernetes/kubernetes/issues/50107
For rancher 1.6.x and k8s 1.7, we temporarily disable the CCM and go back to using forked version of k8s so the users don't get affected.

Kubernetes on Rancher v1.6.8-rc3 installed without rancher-cloud-controller and i can see validation passing on this kubernetes release.


[1574] Anonymise usernames for system admins in the timeline

Context
https://trello.com/c/l9SrTiPZ/1574-s-anonymise-admin-names-from-the-timeline
Changes proposed in this pull request
Before: If a system admin (like a dev) made a change to a trainee on behalf of a user, their full name would be visible on the timeline.
Now: We just show 'Administrator' rather than the dev's name. Names of other users are still visible.

Guidance to review

Log in as the system admin 'Adam Baker'
Choose a non-draft trainee
Make a change to the trainee e.g. change their name
Visit the timeline
See that "Administrator" is visible rather than "Adam Baker" for the related timeline entry

 [S] Anonymise admin names from the timeline

Look fine from a content perspective @AbigailMcP

I'm getting a nationality error :-(

I wonder if this should be DFE administrator - @gregknight1 what do you think?

I'm getting a nationality error :-(

Rebasing to master - I think this is an unrelated bug that's been fixed elsewhere.

I wonder if this should be DFE administrator - @gregknight1 what do you think?

Yeah I was wondering this - in case they also call themselves administrators?

All good now :-)

I wonder if this should be DFE administrator - @gregknight1 what do you think?

Yeah I was wondering this - in case provider users also call themselves administrators?

Yeah, think that's a sensible thing to do in this case.


I have improved the translation in various parts of the text

I have add word "anclaje" and I have improved the translation in various parts of the text

[x ] I have read freeCodeCamp's contribution guidelines.
[x ] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x ] None of my changes are plagiarized from another source without proper attribution.
[x ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thanks! Please mind the capitalization next time.


Encryption is now default

The latest storageAccountPropertiesCreateParameters object now shows as :
Not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled. -

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

ID: 76e8399a-44d0-f8d6-fc55-29e89674faac
Version Independent ID: 8299d108-b008-1bf8-b6e6-b50a952f5dd8
Content: Utilize the Azure Resource Manager template reference
Content Source: articles/azure-resource-manager/resource-manager-tutorial-create-encrypted-storage-accounts.md
Service: azure-resource-manager
GitHub Login: @mumian
Microsoft Alias: jgao

@andyturn31 Thank you for your feedback . We will investigate and update this thread further.

@andyturn31 May I know what exactly are you trying to accomplish? Can you elaborate more on your query?

Just pointing out that this article states "If you don't know which version to choose, use the latest version."
But using the 'latest version' shows different encryption information to what is shown in this article. :-)

@andyturn31 Thanks for bringing this to our attention. Your feedback has been shared with the content owner for further review.

@andyturn31 - thanks for the comment.  I have created a PR to address the issue - https://github.com/MicrosoftDocs/azure-docs-pr/pull/96451.
#please-close


Microsoft.App/containerApps@2023-05-02-preview

Resource Type
Microsoft.App/containerApps
Api Version
2023-05-02-preview
Issue Type
Inaccurate property type(s)
Other Notes
The warning:
Warning BCP036: The property "cpu" expected a value of type "int | null" but the provided value is of type "'0.25'".

When the code is :
 template: {
      containers: [
        {
          image: 'cirrusconnect.azurecr.io/${containerName}:14648'
          name: containerName
          resources: {
            cpu: '0.25'
            memory: '0.5Gi'
          }
        }
      ]

The validation expects int when a string works (0.25 did not)
There are also warning i discovered that references the excepted values for cpu and memory
Bicep Repro
No response
Confirm

[X] I have read the troubleshooting guide and looked for duplicates.

this is a duplicate of #1930


Parse from Jamfiles

[ ] Parse from a file input
[ ] Preprocessing step for comments
[ ] Preprocessing step for include

Ham v2 has been moved; closing issues not relevant for v1.


⬆ use node 8+

Closes #5, instead of forcing using the latest we just match the version shopify-node-app is ok with (8.1+)

Can you bump .nvmrc please?


Add rule go_enrichment for mm10

Currently only run for hg38 and hg19

we could add a parameter to control the genome and pass it to the Rmd


Feature request: background color detection

There's no guaranteed way to do this, just some simple things that can be tried (an xterm escape code, defaults for various terminals, and an environment variable). See this answer on SO. If background is dark, foreground colors will need to be lighter.
A better idea might be to just make the background configurable (--theme light|dark).

Please see https://github.com/Aloso/to-html/issues/8#issuecomment-991980126.

I've been thinking, maybe it would be better to use a template, e.g.
<!DOCTYPE html>

    <title>My title</title>

Title

    {{terminal "cargo run"}}

And use it with to-html --template my-template.html --output my-output.html


Trying to run up in Visual Studio

Hi, having truble getting the project running.
Visual Studio

Set as Startup -> Nostrid.Web
Debug, Run
I get an "An unhandled error has occurred. Reload" in the UI

EventDatabase.cs line 26
if (db.Database.SqlQuery($"SELECT 1 AS [Value] FROM sqlite_master WHERE type='table' AND name='__EFMigrationsHistory'").FirstOrDefault())
Any ideas, seems to have trouble setup of database?

Either, I do not mind, just trying to get any of it running at this stage. Ta

To run the desktop app you need to start the Nostrid project (not Nostrid.Web or Nostrid.Core). Let me know if it works.

Ok just making some notes.
Set the startup project to "Nostrid"
Solution didn't build, told me to run "dotnet workload restore"
Run dotnet workload restore

Successfully installed workload(s) maui-android maui-ios maui-maccatalyst maui-tizen.

Build solution = still failed
Severity	Code	Description	Project	File	Line	Suppression State
Error	NETSDK1147	To build this project, the following workloads must be installed: maui-mobile
To install these workloads, run the following command: dotnet workload restore	Nostrid	C:\Program Files\dotnet\sdk\7.0.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.targets	38
Already done the above, doesn't build.

Are you using Visual Studio 2022? Did you enable .NET Multi-platform App UI development during installation? If not then you can run the installer again and then choose Modify.

Installed that now. Thanks
Build Solution =
Severity	Code	Description	Project	File	Line	Suppression State
Error	NETSDK1005	Assets file 'C:_MyData\Nostrid\Nostrid\obj\project.assets.json' doesn't have a target for 'net7.0-windows10.0.19041.0'. Ensure that restore has run and that you have included 'net7.0-windows10.0.19041.0' in the TargetFrameworks for your project.	Nostrid	C:\Program Files\dotnet\sdk\7.0.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets	267
Severity	Code	Description	Project	File	Line	Suppression State
Error	NETSDK1005	Assets file 'C:_MyData\Nostrid\Nostrid\obj\project.assets.json' doesn't have a target for 'net7.0-android'. Ensure that restore has run and that you have included 'net7.0-android' in the TargetFrameworks for your project.	Nostrid	C:\Program Files\dotnet\sdk\7.0.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets	267
Severity	Code	Description	Project	File	Line	Suppression State
Error	NETSDK1005	Assets file 'C:_MyData\Nostrid\Nostrid\obj\project.assets.json' doesn't have a target for 'net7.0-maccatalyst'. Ensure that restore has run and that you have included 'net7.0-maccatalyst' in the TargetFrameworks for your project.	Nostrid	C:\Program Files\dotnet\sdk\7.0.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets	267
Severity	Code	Description	Project	File	Line	Suppression State
Error	NETSDK1005	Assets file 'C:_MyData\Nostrid\Nostrid\obj\project.assets.json' doesn't have a target for 'net7.0-ios'. Ensure that restore has run and that you have included 'net7.0-ios' in the TargetFrameworks for your project.	Nostrid	C:\Program Files\dotnet\sdk\7.0.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets	267
Ran dotnet restore.
Still same error above, won't build

Got it running. Had to turn on developer mode in windows. The nostrid ui is up and working now.

Were is the sqllite db created on disk ?

Glad to hear it works.
The database should be in a directory similar to this one: C:\Users\{username}\AppData\Local\Packages\54CE2B71...\LocalState


Bug with interactive.accepts()

I believe there is a bug with the accepts() method when using interactive.
I set up a repo here demonstrating the issue.
This is the error:

I believe what is happening is that accepts is attempting to iterate with an of statement here, but it gets back an object from choices() which cannot be iterated over with of (it could be iterated over with in, which would return the object's keys).

Just to provide a solution, rewriting the accepts() method to be:
  accepts() {
    let new_cursor;
    let accepts = new Set();
    const choices = this.choices();
    for (const key in choices) {
      const t = choices[key];

Seems to resolve the bug for me.
I see this method defined here and would be happy to push a PR modifying but I'm not familiar with how this library works, so lmk if you'd like help how best to help you.

If you submit a PR with a validating test, I will merge it in.
If your offer of help extends beyond this PR, there plenty of other tasks that need doing :)

If you submit a PR with a validating test, I will merge it in.

Added here.
Tests pass, but I don't see any tests around InteractiveParser. I can look into adding those, though I'd probably just focus on this specific use case if so (since I'm not very familiar with the existing functionality set).

If your offer of help extends beyond this PR, there are plenty of other tasks that need doing :)

Maybe! Let's start here and see how it goes :D

Sure, if you can, just add a test for this specific case. Thanks!

Test added.


Form won't submit when validators are included on custom component

https://esnextb.in/?gist=f0752a3ce1d089a66c80b9304b2e2b24
Remove the "component={Custom}" and it works.

Ah, that's because you're rendering a simple <input> element with no handlers! Make sure to explicitly pass the mapped props onto your custom element:
-const Custom = () => <input type="text" />;
+const Custom = (props) => <input type="text" {...props} />;

And then it will work. 👍


nimble test : nim-ranges/tests/tstackarrays.nim(21, 14) Error: type mismatch: got <UncheckedArray[int], int literal(0), int>

/cc @arnetheduck
using latest nim devel:
nim --version
Nim Compiler Version 0.19.9 [MacOSX: amd64]
Compiled at 2018-11-06
Copyright (c) 2006-2018 by Andreas Rumpf
git hash: b9cdad74979b6581e0100440a1e565fa48d27d3c
nimble test
Executing task test in /Users/timothee/git_clone/nim/nim-ranges/ranges.nimble
Hint: used config file '/Users/timothee/git_clone/nim/Nim/config/nim.cfg' [Conf]
Hint: used config file '/Users/timothee/.config/nim/nim.cfg' [Conf]
Verifying dependencies for<EMAIL_ADDRESS>Warning: No nimblemeta.json file found in /Users/timothee/.nimble/pkgs/choosenim-0.3.2
Compiling tests/all.nim (from package ranges) using c backend
/Users/timothee/.config/nim/config.nims [config.nims used]
/Users/timothee/git_clone/nim/nim-ranges/tests/all.nim(1, 1) template/generic instantiation from here
/Users/timothee/git_clone/nim/nim-ranges/tests/tstackarrays.nim(5, 7) template/generic instantiation from here
/Users/timothee/git_clone/nim/nim-ranges/tests/tstackarrays.nim(6, 8) template/generic instantiation of test from here
/Users/timothee/git_clone/nim/nim-ranges/tests/tstackarrays.nim(20, 5) template/generic instantiation of check from here
/Users/timothee/git_clone/nim/nim-ranges/tests/tstackarrays.nim(21, 14) Error: type mismatch: got <UncheckedArray[int], int literal(0), int>

ah, thanks. we generally have stopped following devel and do a full round of fixing breakage whenever an "official" release is made. happy to take patches as long as it remains compatible with 0.19

/cc @araq I'm not seeing a relevant entry in nim changelog ; only
- The `unchecked` pragma was removed, instead use `system.UncheckedArray`.`

but that doesn't apply here
I have a PR to fix this (https://github.com/timotheecour/nim-ranges/commit/740478c2b0785686fbfd3ab93b5cdff188c0fa57) but it's not backward compat with 0.19 (yes, I could add a when defined on nim version to address backward compat)


Support for JAVA_TOOL_OPTIONS env variable for Nexus-proxy

Nexus-proxy was running low on java heap and based on the documentation, we wanted to add the JAVA_TOOL_OPTIONS to resolve the issue but this value is not supported when we added in the env section. Can this env variable be supported?

Hello @pradheba-rangarajan ,
The change should be in place already:
https://github.com/Oteemo/charts/issues/186


Improve Sign Up Flow: Create Account > Edit Profile

A feature suggested by Megs: After creating a new account, bring the user to an edit profile screen where they can optionally fill in profile details (name, cabin number, photo, etc) - may increase usage of the profile features.

IMO I'd rather see this go into the documentation or guides rather than making it feel like a required step in the flow. The 2023 guide mentioned the profile in a blob of text around the home screen but without any screenshot queues which I think are quite helpful. Dumping to the "home" screen feels right to me.

That's reasonable, though I wonder if a large "skip for now" button would resolve the concern of it feeling mandatory at signup.


zkSync API fetching is broken

ZkSync explorer is not the same api to grab ABI compared to etherscan like explorers
context:

waiting for ZkSync team to expose API so we can download ABI

@saihaj The zkSync Explorer API is Etherscan compatible since July 2023 (more info in our docs and it was integrated in the graph cli tool in this PR so I think we can close this issue.


Statistics and plotting for measures and dimensions

Provide statistical analysis on members and measures,

simple: min, max, avg etc.
complex: outliers, various test etc. lets see
Various plots for easy analysis using Jupyter or IDEs.

Planned for version 3


Update PluginPolygon.java

Removed unnecessary code setting the visibility of the polygon hardcoded to true/false.
This is not needed, since the visibility is managed by the PolygonOptions.

path.size() > 0 is necessary, because if you create a polyline without points , app would be crashed.

Okay then I will revert it and set the polygon options visibility as parameter?

Shit, you sent a pull request to the master branch.
But please create a pull request to the multiple_maps branch next time, as far as written in https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/pull_request_template.md

@webalchemist I'm 100% sure that I did it...strange. Sorry will watch better next time! Thanks for merging.


Change the default for approximation

Codecov Report

Merging #78 (fc1b32d) into main (a504f5d) will decrease coverage by 1.25%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
- Coverage   85.86%   84.61%   -1.26%
==========================================
  Files           8        8
  Lines         276      286      +10
==========================================
+ Hits          237      242       +5
- Misses         39       44       +5

Impacted Files
Coverage Δ

src/parafields/field.py
96.18% <ø> (+0.90%)
:arrow_up:

src/parafields/interactive.py
56.41% <0.00%> (-4.71%)
:arrow_down:

src/parafields/_parafields.cpp
94.44% <0.00%> (ø)

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


ad-connect-passthrough

Hello Teams,
Working with customer for sync multiple forests users, in order to continue to use the PassThrough authentication the environment need to have a two-way trust in place.
I have added this information with a simple string in plan-connect-topologies file.
Thanks for all your work and support

Checking with engineering

This has been open for awhile and I have not been able to get confirmation from engineering on the change.  I will continue to follow-up with them.  In the meantime, we can close this and re-open it once I get confirmation or I will add the addition on my end.  Thanks.
#please-close


Hue power-on behavior

PR as discussed here: https://github.com/Koenkk/zigbee2mqtt/issues/746
Hue Bulb Firmware from Nov/Dev '18 is required.

{
  "hue_power_on_behavior": "on", //default, on, off, recover, default = on
  "hue_power_on_brightness": 125, //default, same values as brightness converter, default = 255
  "hue_power_on_color_temperature": 280 //default, same values as colo-temperature converter, default = 366
}

Hello,
I;m trying to set my<PHONE_NUMBER> - Philips Hue white A60 bulb E27 (Router) bulb to recover to the same state after power outage by sending mqtt message to zigbee2mqtt/living_room_lamp2/set
{
"hue_power_on_behavior": "recover",
"hue_power_on_brightness": 125,
"hue_power_on_color_temperature": 280
}
But nothing get changed, here is the debug log output https://pastebin.com/Vv1khHvk
Please suggest.

Try to send the commands a few times in a row


Refactor into a separate database class (and some more cleaning up)

maybe even a singleton?

@slideclimb forgot to mention this in a commit again... ;)

Hihihihihi


Automatic valid SSL Creation with https://letsencrypt.org/

Since "Let's Encrypt" is now in public beta, nginx-proxy would be a really nice place to automatically fetch valid SSL certs.
Domain Validation is done by providing a special file at the related domain.

see this issue; https://github.com/jwilder/nginx-proxy/issues/274

Ah, ok, thanks! I'm closing this one :)


feat(indexer): add vectors

hi, @kashyapvad Installing faiss needs not only pip install but also compilation the c++ codes. For more details, please refer to faiss INSTALLATION. We are working on building a docker image for faiss. Anyway, thanks for your contribution.

Hi @nan-wang. Thank you for your reply and clarification. I've also implemented annoy and nmslib images. Should I remove faiss and commit just the two of them for now?

Made the changes requested


Running initLlama with lora / lora_scaled set, fails to load context and crashes app.

I'm successfully managing to initLlama and inference on it, without lora:
    await initLlama({
        model: 'file://' + file.uri,
        n_ctx: 1024, // Adjust based on model requirements
        n_batch: 1, // Adjust based on device capabilities
        n_threads: 4, // Adjust based on device capabilities
        n_gpu_layers: 1, // Enable if device supports GPU acceleration
        use_mmap: true,
        use_mlock: true,
      })

But if I add lora / lora_scaled, it fails to load and crashes without erroring.
      lora: 'file://' + file.lora,
      lora_scaled: 0,

Any help would be greatly appreciated - running on Android. I'm loading the files in from assets/models then moving them to DocumentDirectoryPath and calling them from there. 🥸

The file:// prefix is unnecessary.
For model it will remove the prefix, but there is no removal of lora. This can be added later.
https://github.com/mybigday/llama.rn/blob/c1d15a30d6e8cc26dd9af144026c652008516d00/src/index.ts#L201

Thanks for incredibly quick help, really appreciate it!
I've tried different ways of running initLlama e.g with/without the 'file://' extension on both model and lora. But I can't find a configuration of it that will work without closing the app, sorry if I'm missing anything obvious here.
In this example file.uri and file.lora are:
/data/user/0/com.rnllamaexample/files/my-lora.gguf
/data/user/0/com.rnllamaexample/files/my-model.gguf

This is my current setup for initLlama().
await initLlama({
    model: file.uri,
    lora: file.lora,
    lora_scaled: 1,
    n_ctx: 1024
    n_batch: 1,
    n_threads: 4,
    n_gpu_layers: 1,
    use_mmap: true,
    use_mlock: true,
  })

Thanks again!

Tested with bartowski/Meta-Llama-3.1-8B-Instruct-GGUF as the base model and grimjim/Llama-3-Instruct-abliteration-LoRA-8B as the lora adapter, no issue on my Android device (Pixel 6).
Could you share what model & lora you are using? Also, Android hardware info that may be helpful.


Github download issue

Hi,
I'm a new user of pyleecan still learning to use it. I'm trying to download the tutorials available on github in Eomys/pyleecan.
When downloading as Zip, some files and folders (Tests, tutorials) are missing in the download.
I'm new to github, Let me know how can I download the whole thing.
Thanks in advance for the help!

Hello,
Thank you for your interest in pyleecan.
In fact I'm currently updating all the tutorial notebook, I will try to finish by Friday. You can already have a look, most of them are up to date but you may have some surprises (if it is the case please post a message here, I will correct it).
There are two methods to get the notebook :

Fork/Clone the repository https://pyleecan.org/fork.pyleecan.html (that's the best way to get "the whole thing" and being able to modify it)
Direct download from github https://raw.githubusercontent.com/Eomys/pyleecan/master/Tutorials/tuto_Machine.ipynb (cf https://www.wikihow.com/Download-a-File-from-GitHub)

If you have any question about how pyleecan works don't hesitate to ask questions here.
Best regards,
Pierre

Hello Pierre,
Thanks for the reply and encouragement to ask for help.
The first method suggested by you (Fork/Clone) worked fine.
I believe the Pyleecan is designed to be operated with jupyter notebook.
Just to confirm my understanding, When simulating a motor following are the steps to be followed:

Open Pyleecan GUI through command window and enter the geometrical details of the motor.
Run the tutorials by changing relevant values (File name, Current, time step etc.) to get the required results.

Kindly suggest if the understanding is in the right direction.
Thanks in advance,
Mandar Kulkarni.

Hello,
I realize that I didn't answer your last question, sorry for that. I just released pyleecan 1.4.0 and I have updated the website. Now there is a windows installer to run single speed current driven FEMM simulation: https://pyleecan.org/get.pyleecan.html
I have also updated the tutorials and now the page contains a zip with the latest version of the tutorials: https://pyleecan.org/tutorials.html
Yes your 2 steps are correct.
Do you need any further help on the subject or can we close the issue ?
Best regards,
Pierre

Hi Pierre,
Thanks for your reply.
Yes. We can close this issue. I have been able to open and run some basic simulations through the windows app and through python as well.
Although, I have some other queries related to loss calculation. I will open another issue for that.
Thanks Again,
Mandar.

Great to know :)
For your information, we have an opened PR that rework the losses models and introduce a tutorial #558. It should be the next one I merge but I don't know when I will have time to do that.
Best regards,
Pierre


error when trying to use the link to create a session

Error when using the link to create a session in case this test link: https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=22942C&redirect_uri=https%3A%2F%2Fexample.com%2Ffitbit_auth&scope=activity% 20nutrition% 20heartrate% 20location% 20nutrition% 20profile% 20settings% 20sleep% 20social% 20weight
This error happened when using the library to direct this link, the library is: oauth2-popup-flow version: ^ 1.1.0.
Doing the following process:
a file is created that will be imported in the future to perform the function in this case the file is called: auth.js with the following description:
import { OAuth2PopupFlow } from 'oauth2-popup-flow';

export default new OAuth2PopupFlow({
  authorizationUri: 'https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=22942C&redirect_uri=https%3A%2F%2Fexample.com%2Ffitbit_auth&scope=activity%20nutrition%20heartrate%20location%20nutrition%20profile%20settings%20sleep%20social%20weight',
  clientId: '50c71b28db301de7ee0c57fdce9d433f',
  redirectUri: 'http://localhost:8080/redirect',
  scope: 'openid profile',
  responseType: 'id_token',
  accessTokenResponseKey: 'id_token',
  additionalAuthorizationParameters: {
    nonce: Math.random().toString(),
  },
});

After that we have to import it into the App.js file that works as follows:
import React from 'react';
import auth from './auth';

function App() {
  async function test() {
    await auth.tryLoginPopup();
  }

  return (
    <div>
      <button type="button" onClick={() => {
        test();
      }}>test</button>
    </div>
  );
}

export default App;

Result after clicking the button is the image below:

After that I could not perform any other step, with this we have this error.

I think you'll need to post this question on the community forum for the Web API. https://community.fitbit.com/t5/Web-API-Development/bd-p/dev
This project is a sample app for the Device SDK.


now docker with --local-config is broken?

now version is v11.4.1
.now/.preprod.json
{
  "type": "docker",
  "public": true,
  "files": ["dist/", "src/client/nginx.conf", "src/client/mime.types"],
  "name": "preprod",
  "alias": "preprod.enterprise-starter.app"
}

when I run node_modules\.bin\now  --team enterprise-starter --local-config .now\now.preprod.json
I get
Deploying ~\Documents\Code\enterprise-starter under enterprise-starter
> Error! An unexpected error occurred!
  TypeError: Cannot read property 'length' of undefined
    at readMetaData (C:\snapshot\repo\dist\now.js:18564:30)
    at <anonymous> TypeError: Cannot read property 'length' of undefined
    at readMetaData (C:\snapshot\repo\dist\now.js:18564:30)
    at <anonymous>

Was working with previous version.. not sure what's going on..

I have two Dockerfiles in my repo:

Turns out that I need to leave a Dockerfile in the root... the CLI should be tell us what to do?

In the root? What do you mean exactly?

Root of the project

Thank you so much for the effort you have put into this issue! 😊
However, since we completely re-worked the entire codebase of Now CLI and this issue does not apply to the new code anymore, I'm closing it now.
You can read more about our biggest release yet here: https://zeit.co/blog/now-2


[FR] Product helm chart for easy deployment

Is your feature request related to a problem? Please describe.
Nope, just simplicity of deployment
Describe the solution you'd like
a simple helm chart to deploy this with
Describe alternatives you've considered
none
Additional context
none

This has been addressed by #245.
Pre-req: Helm CLI
$ helm repo add appvia https://appvia.github.io/krane
$ helm repo update
$ helm install krane appvia/krane --namespace krane --create-namespace


How to prepare datasets for UVAM

Sorry to bother you, I would like to download the dataset from the VGG Sound official website, but it no longer provides download services. Do you have any good suggestions? I want to use my own dataset to train UAVM, but I don't know what format and organized to set for the dataset.

hi there,
These are two different questions:

I would like to download the dataset from the VGG Sound official website, but it no longer provides download services.

See the readme file:

VGGSound Pretrained Audio and Video Features
Audio Features (~20GB)
Video Features (~10GB)

We do provide processed VGGSound data, you can use these to train the model. We cannot release raw data, but the extracted feature should be good enough. Meanwhile, the feature extractors are also released.

I want to use my own dataset to train UAVM, but I don't know what format and organized to set for the dataset.

I recommend to run the "1-click" recipe (in the readme file, there is a detailed instruction). And check the intermediate files, so you know how to organize the training data.
Having said that, this model is a very special model that can take both audio and video data, but one thing at a time. Please make sure it fits your application, most audio-visual model aims to take audio and video data jointly.
-Yuan

Thank you very much for your reply.

Thank you very much for your reply.

Thank you very much for your reply.


Expires header "max" on JS and CSS files in Nginx configuration; resulting in unhappy front-end developers

We recently converted all our projects from our old VM-based development solution to ddev and we are very happy with the improved developer experience. However, our front-end developers do have an issue with the JS and CSS files getting an expires header that results in the browsers caching JS and CSS files and not seeing changes when JS or CSS is changed.
The expires header is set in the Nginx configuration:
# Media: images, icons, video, audio, HTC
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
    try_files $uri @rewrite;
    expires max;
    log_not_found off;
}

Is there a reason to set this header to max for JS and CSS files? I cannot believe other developers don't have this issue so maybe we are overlooking something obvious...
Describe the solution you'd like
I would like to have a separate location directive for just JS and CSS files that sets expires -1;
# JS and CSS
location ~* \.(js|css)$ {
    try_files $uri @rewrite;
    expires -1;
    log_not_found off;
}

PS: In know you can change the genereated nginx-site.conf, but I do not want to loose the ability to easily update ddev and get updates on that configuration later down the line.

We sure want your front-end developers to be happy!
I assume you're already working with a project-level nginx-site.conf - could you please share it? A PR would be great.
Also, could you review the other CMS project-type settings in https://github.com/drud/ddev/tree/master/pkg/ddevapp/webserver_config_packr_assets and recommend changes to those (or include that in a PR)?
Thanks!

Asked for feedback about this in https://twitter.com/randyfay/status/1285572996459986944

Thanks for the reply and asking for feedback from more people. We do have a project-level nginx-site.conf, but the changes are limited to the separate location directive for JS and CSS files (for most projects). I will see if I can create a PR soon.

Would appreciate your review of #2413

@martijnv just one question as I get ready to test and pull #2413: Why don't your devs have cache turned off in their browser? Isn't that the easiest way to solve this?

@rfay that is a very good question and I feel a bit silly not thinking about that.
It does the trick, but in Chrome the "disable cache" option in Devtools only works while the Devtools are open. There does not seem to be an easy way to permanently disable the browser cache in Chrome other than setting the disk cache size to 1 byte with some command line options or a registry hack.
There might be Chrome plugins to disable the cache to work around this issue. There are also a lot of OS and browser (and maybe even device) combinations where you would need to disable the caches which feels like a lot of effort while changing the expires header is a small change in one place?

The only thing that worries me a little is that lots of people use ddev for other things, back-end development, reviewing websites, etc. And if we change this as in #2413 it may affect them, perhaps slightly. But it does seem worth taking a step back before changing the default configuration to suit front-end devs only.
I never met a front-end developer that didn't have the developer tools pane open though.

Chrome Incognito windows/tabs do not cache files or use cached files but you still have bookmarks and other features.


Problem with H1 pytabula heading duplication on gh page

See: https://github.com/benbalter/jekyll-titles-from-headings#stripping-titles

Did not worked

Still not working


Add width prop

I've added width to dialog and bunch of other new stuff

Thanks @benyaminbeyzaie !

is there a way to change the border radius of the dialog?


Add: customise headings used for index outline

Add support to customise the headings used to create the index outline.

This feels like too much complexity because most other systems only support headers h1-h4, and we'd need to support shadow parts for all the possible entries for this attribute. This also encourages bad practices, for example, setting headings="h1,h2,h4" discourages users from setting h3 before h4, breaking the document outline standard.


✨ AppleScript Keys + Definition File

Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
Allowing the CodeEdit app to be "scriptable", by adding AppleScript keys, and a definition file so Script Editor can see them.
Describe alternatives you've considered
Creating an external app that interfaces with CodeEdit via CodeEditKit
Additional context

ima give this a try

Totally forgot about this! I made a definition file that I never finished.

now i gotta resolve these dependencies

kay indexing package files now

@blockarchitech could i have your side please?

why can't i create a draft pr?

@libewa You can always do that.

@blockarchitech could i have your side please?

@libewa What do you mean?

You said you made one

Oh the script definition? I didn't add any keys yet.


fxload does not support USB3 devices using the -fx3 flag

Package fxload does not support USB3 devices using the -fx3 flag

I found the implementation of fxload under libusb here: https://github.com/libusb/libusb/blob/master/examples/fxload.c
not sure if this is something that should be added to libusb by compiling also the examples or
Something like:
hardware.libusb = {
  enable = true;
  examples = true;
};

or as exist today
environment.systemPackages = [
  libusb
  fxload # current old one
];


Fixed #27862 -- Exists() feature generates invalid SQL query on postgres backend

Exists() feature generates invalid SQL query on postgres backend

Okay, I figured out a way to reproduce that bug using the existing models.
I think this is ready to go now (after squashing).


evolution: 3.36.3 -> 3.36.4

Motivation for this change
Version bump for evolution.
Evolution 3.36.4 2020-07-03
---------------------------

Bug Fixes:
	I#963 - Composer: New message can incorrectly keep selected default account (Milan Crha)
	I#969 - Workaround freeze on drag of message over composer body (Milan Crha)
	I#979 - Undeletable empty item in folder list (Milan Crha)
	I#982 - 'Message contains'-search broken in 3.36.3 (Milan Crha)
	I#985 - Ensure 16px online/offline icon height in the status bar (Milan Crha)

Translations:
	Matej Urbančič (sl)
	Baurzhan Muftakhidinov (kk)
	Yuri Chornoivan (uk)
	Charles Monzat (fr)

Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Thanks.


windows_x86_vs2015: h2_census_test.exe disappearing_server

https://grpc-testing.appspot.com/job/gRPC_portability_master/1003/language=c,scenario=windows_x86_vs2015/testReport/junit/(root)/tests/vsprojects_Debug_h2_census_test_exe_disappearing_server/
D0319 16:05:40.911000000  8956 test_config.c:276] test slowdown: machine=1.000000 build=1.000000 total=1.000000
I0319 16:05:40.916000000  8956 disappearing_server.c:194] disappearing_server_test/chttp2/fullstack
D0319 16:05:40.926000000  8956 chttp2_transport.c:698] got goaway [0]: 53 65 72 76 65 72 20 73 68 75 74 64 6f 77 6e 'Server shutdown'
E0319 16:05:40.926000000  8956 tcp_windows.c:152] ReadFile overlapped error: An established connection was aborted by the software in your host machine.

E0319 16:05:40.926000000  8956 disappearing_server.c:174] assertion failed: status == GRPC_STATUS_UNIMPLEMENTED

Also seen on windows_x86_vs2013: https://grpc-testing.appspot.com/job/gRPC_portability_master/1024/language=c,scenario=windows_x86_vs2013/testReport/junit/(root)/tests/vsprojects_Debug_h2_census_test_exe_disappearing_server/


travis: update kcov

I accidentally delete my fork of kcov, so let's switch to the official release now.

LGTM


Use NetworkMonitor in zedrouter

NetworkMonitor provides all features needed by zedrouter to watch for changes in the network stack (used mostly for policy based routing purposes). This way we can remove some code from the zedrouter and avoid duplication. Moreover, NetworkMonitor is an interface and there will be multiple implementations for different network stacks (currently there is only one for Linux).
This is just a small step in the process of zedrouter refactoring. My goal is to avoid creating large PRs and overwhelming myself and reviewers. Instead, I would like to refactor in small steps (while keeping zedrouter functional in-between). But the value of some of these smaller steps will only be apparent once everything is completed.
Signed-off-by: Milan Lenco<EMAIL_ADDRESS>

That's cool. Sorry to stick my nose into not my area, I was just curious how you implemented the NetworkMonitor and found this comment:
	// XXX is AF_UNSPEC ok?
	nlRoutes, err := netlink.RouteListFiltered(syscall.AF_UNSPEC, &filter, fflags)

This seems to be correct. I followed the following path:
func (h *Handle) RouteListFiltered(family int, filter *Route, filterMask uint64) ([]Route, error) {
	req := h.newNetlinkRequest(unix.RTM_GETROUTE, unix.NLM_F_DUMP)
	infmsg := nl.NewIfInfomsg(family)
	req.AddData(infmsg)

Creates a netlink request, which gets routes and dumps them.
The following is the callback for RTM_GETROUTE messages and PF_UNSPEC family registered in the kernel:
*** net/core/rtnetlink.c:
rtnetlink_init[6198]           rtnl_register(PF_UNSPEC, RTM_GETROUTE, NULL, rtnl_dump_all, 0);

Which registers router netlink 'rtnl_dump_allcallback for UNSPEC family and RTM_GETROUTE requests. Thertnl_dump_alldumps all the routes (thus name: rtnl_dump_all) for all the other families iterating over all other protocols and callsdumpit` callback if registered.
The dumpit callback passed to the rtbl_resiter call in the system init, for example here is the FIB for the ipv4:
*** net/ipv4/fib_frontend.c:
ip_fib_init[1630]              rtnl_register(PF_INET, RTM_GETROUTE, NULL, inet_dump_fib, 0);

and here is the ipv6:
*** net/ipv6/ip6_fib.c:
fib6_init[2456]                ret = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETROUTE, NULL,

So '// XXX is AF_UNSPEC ok?' comment is not needed :)  (if you did not mean something different of course)
LGTM (at least to my shallow understanding of what you are doing in this patchset).

@rouming Nice, thanks for sticking your nose into the networking area, that was educational :)
Added comment removal into this PR.

dev_local_info test seems to be reliably failing, will investigate... (please do not merge for now)

Eden tests should be fixed, @eriknordmark please rerun when you can.


Update to Babel 6 (replaces #778)

Rebases changes of PR #778

Oh boy.. here goes nothing..

getting the ReferenceError: _ApiClient is not defined error on fresh installation, node 4.2.4

Everything seems ok on node 5.6.0, all tests are green. Going to create a pull request to upgrade the node version in package.json

see PR https://github.com/erikras/react-redux-universal-hot-example/pull/936

Well it depends on what your deployment procedure looks like. For me it's a master checkout followed by npm install --production (which will run the postinstall hook, which in turn requires babel-loader). That package is however not the only one that needs to moved to dependencies for that, at least it wasn't last time I checked. Maybe we should open an issue to have a discussion on that.


HW 05.10.2016 Layout

Alexey Khanko
https://github.com/chelsenok/layout
https://github.com/chelsenok/layout/blob/master/Screenshot_1475845693.png

TableLayout deprecated. Try to use another containers.
you use mipmap folder wrong way. Read documentation and move images to correct folder

sorry, TableLayout not deprecated, it is just old widget.
But whatever, try use another containers for parts of your views

https://github.com/chelsenok/layout/commit/fc4c45129abc1e1fbc8b66755861040c3e3097f1
ok, i just now change it to Linear containers

good


Can this method be used for older amplifiers not supported by the MULTEQ Editor app by using config.dat?

I have an older Denon amplifier, bought recently, not supported by the MULTEQ Editor App and I’m wondering if the necessary measurement data and determined correction curves can be transferred using config.dat.
I’ve analyzed config.dat a bit and gathered my results and Python scripts in this place.
https://github.com/Maaciej/Audyssey-From-config_dat

No!


Npc Height issue

Pretty much if you go +1 height u see all the npcs from height 0
http://puu.sh/m3K2r/8a4905ab79.jpg
MORE:
When a player walks on height 1 it seems like it is setting the players height to 0 which is why this is happening

Steps to reproduce
http://webm.host/d1b8e/vid.webm

thx @garyttierney for posting a better reproduce

@WizardJesse1 please stop closing issues until they are officially fixed upstream

@WizardJesse1 what @garyttierney said - this makes it incredibly difficult to work out what is still an issue and what isn't.


Pregnancy fields in refactored test card needs unique ids

Background
In the refactored test card, the pregnancy radio buttons across all cards are treated as one fieldset, so selecting one will unselect it in the UI on other cards. Selecting the button will still update the AOE of the test order, and submitting will still send the correct AOE, so there is no data corruption, but it makes the UI difficult to use.
Action requested

generate unique ids for the pregnancy fieldsets in our test cards

Acceptance criteria

selecting a response to the pregnancy AOE question on one test card should not impact any other test cards in the queue

#6892 will address this


Fix #22 - armv5tel platform build support

Adds support for the armv5tel 32-bit ARM platform as it is used in many Kirkwood-based NAS appliances.

Thanks!


Model comment as a Ballerina node

Purpose
$subject
Here we have modeled the comment as a Ballerina node, and it does not a part of AST

Approach looks good tome. Can we add a few test cases?

Approach looks good tome. Can we add a few test cases?

Added few tests


DI extension methods for configuring HTTPS in Builder namespace

The AddHttpsRedirection and AddHsts extension methods live in the Microsoft.AspNetCore.Builder namespace rather than in usual Microsoft.Extensions.DependencyInjection namespace. Is this intentional?
See:
https://github.com/aspnet/BasicMiddleware/blob/f263e72389fe4468c1c353d2b97ea82704001c31/src/Microsoft.AspNetCore.HttpsPolicy/HstsServicesExtensions.cs#L8-L13
https://github.com/aspnet/BasicMiddleware/blob/f263e72389fe4468c1c353d2b97ea82704001c31/src/Microsoft.AspNetCore.HttpsPolicy/HttpsRedirectionServicesExtensions.cs#L8-L13

No, it's likely a copy-paste error. However, since you're likely to have both namespaces in Startup.cs the confusion should be limited. Unfortunately it's too late to fix this for 2.1.

I agree it's no big deal. I stumbled upon it when refactoring some DI configuration to my own extension method and it required me to import the builders namespace. Thanks anyways.

All other projects use Microsoft.AspNetCore.Builder. See: https://github.com/aspnet/BasicMiddleware/blob/dev/src/Microsoft.AspNetCore.HostFiltering/HostFilteringServicesExtensions.cs#L8 and https://github.com/aspnet/BasicMiddleware/blob/dev/src/Microsoft.AspNetCore.ResponseCompression/ResponseCompressionServicesExtensions.cs

No, it's inconsistant: https://github.com/aspnet/StaticFiles/blob/cc675047ac81dd8a50e8a77620b4c5ff5a794b8b/src/Microsoft.AspNetCore.StaticFiles/DirectoryBrowserServiceExtensions.cs#L6
https://github.com/aspnet/Mvc/blob/d9f035ad7c4693c314e293f21bfef7ed002dc8e2/src/Microsoft.AspNetCore.Mvc/MvcServiceCollectionExtensions.cs#L13

Alright, then we should consider switching the namespace on these in the 3.x timeline?


Intermittent socket time out error on nfl-player-update

Loading games for PRE 2017 week 1
Finding (profile id -> gsis id) mapping for players...
96/422 complete. (22.75%)Traceback (most recent call last):
File "/usr/local/bin/nflgame-update-players", line 4, in
nflgame.update_players.run()
File "/usr/local/lib/python2.7/dist-packages/nflgame/update_players.py", line 386, in run
for i, t in enumerate(pool.imap(fetch, players.items()), 1):
File "/usr/lib/python2.7/multiprocessing/pool.py", line 668, in next
raise value
socket.timeout: timed out
Exception in thread Thread-3 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 754, in run
File "/usr/lib/python2.7/multiprocessing/pool.py", line 113, in worker
File "/usr/local/lib/python2.7/dist-packages/nflgame/update_players.py", line 385, in fetch
File "/usr/local/lib/python2.7/dist-packages/nflgame/update_players.py", line 107, in profile_url
File "/usr/local/lib/python2.7/dist-packages/httplib2/init.py", line 1659, in request
File "/usr/local/lib/python2.7/dist-packages/httplib2/init.py", line 1399, in _request
File "/usr/local/lib/python2.7/dist-packages/httplib2/init.py", line 1356, in _conn_request
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'BadStatusLine'
ramon_rahman@fantisserie-0a1:/usr/local/lib/python2.7/dist-packages/nflgame$ sudo nflgame-update-players
Loading games for PRE 2017 week 1
Finding (profile id -> gsis id) mapping for players...
108/422 complete. (25.59%)Traceback (most recent call last):
File "/usr/local/bin/nflgame-update-players", line 4, in
nflgame.update_players.run()
File "/usr/local/lib/python2.7/dist-packages/nflgame/update_players.py", line 386, in run
for i, t in enumerate(pool.imap(fetch, players.items()), 1):
File "/usr/lib/python2.7/multiprocessing/pool.py", line 668, in next
raise value
socket.timeout: timed out

This issue isn't actionable. Looks like a connectivity problem.

Just a note that I witnessed this as well.  Agree that it's not nflgame responsibility, though catching the exception might make for a more friendly interaction with the user.
D:\Python27\Scripts>python nfldb-update
-------------------------------------------------------------------------------
STARTING NFLDB UPDATE AT 2017-08-18 09:00:06.833000
Connecting to nfldb... done.
Setting timezone to UTC... done.
Updating player JSON database... (last update was 2017-08-15 07:30:12.952000+00:00)
Loading games for PRE 2017 week 2
Finding (profile id -> gsis id) mapping for players...
22/22 complete. (100.00%)
Done!
Downloading team rosters...
32/32 complete. (100.00%)
Done!
Fetching GSIS identifiers for players not in nflgame...
154/225 complete. (68.44%)Traceback (most recent call last):
  File "D:\Python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "D:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "D:\Python27\lib\site-packages\nflgame\update_players.py", line 501, in <module>
    run()
  File "D:\Python27\lib\site-packages\nflgame\update_players.py", line 436, in run
    for i, (purl, gid) in enumerate(pool.imap(fetch, purls), 1):
  File "D:\Python27\lib\multiprocessing\pool.py", line 659, in next
    raise value
socket.timeout: timed out
`D:\Python27\python.exe -m nflgame.update_players --no-block` failed (exit status 1)
done.
Locking player table...
Updating 7666 players... done.
Locking write access to tables... done.
Updating season phase, year and week... done.
Bulk inserting data for 20 games...
        Sending batch of data to database.
        Sending batch of data to database.
        Sending batch of data to database.
        Sending batch of data to database.
...


As the number of training rounds increases, the values of cost and reward change irregularly.

In my env,as the number of training rounds increases, the values of cost and reward change irregularly,The training results are shown below,it doesn't look normal.

However,When I choose other env(like OfflinePointCircle2Gymnasium-v0), the cost gradually declines as the number of training rounds increases, the ret rises as the number of training rounds increases,it look normal.
Here's the parameters in my cdt_config.py
@dataclass
class CDTTrainConfig:
    # wandb params
    project: str = "OSRL-baselines"
    group: str = None
    name: Optional[str] = None
    prefix: Optional[str] = "CDT"
    suffix: Optional[str] = ""
    logdir: Optional[str] = "logs"
    verbose: bool = True
    # dataset params
    outliers_percent: float = None
    noise_scale: float = None
    inpaint_ranges: Tuple[Tuple[float, float], ...] = None
    epsilon: float = None
    density: float = 1.0
    # model params
    embedding_dim: int = 128
    num_layers: int = 3
    num_heads: int = 8
    action_head_layers: int = 1
    seq_len: int = 10
    episode_len: int = 300
    attention_dropout: float = 0.1
    residual_dropout: float = 0.1
    embedding_dropout: float = 0.1
    time_emb: bool = True
    # training params
    #task: str = "OfflinePointCircle2Gymnasium-v0"
    task: str = "Autobidding-v0"
    dataset: str = None
    learning_rate: float = 1e-4
    betas: Tuple[float, float] = (0.9, 0.999)
    weight_decay: float = 1e-4
    clip_grad: Optional[float] = 0.25
    batch_size: int = 8
    update_steps: int = 5000
    lr_warmup_steps: int = 200
    reward_scale: float = 0.1
    cost_scale: float = 1
    num_workers: int = 0
    # evaluation params
    target_returns: Tuple[Tuple[float, ...],
                          ...] = ((450.0, 10), (500.0, 20), (550.0, 50))  # reward, cost
    #The cost limit corresponds to the cost threshold for your problem, it should be the same as your target cost return for CDT.
    cost_limit: int = 100
    eval_episodes: int = 10
    eval_every: int = 100
    # general params
    seed: int = 0
    device: str = "cuda:0"
    threads: int = 6
    # augmentation param
    deg: int = 4
    pf_sample: bool = False
    beta: float = 1.0
    augment_percent: float = 0.2
    # maximum absolute value of reward for the augmented trajs
    max_reward: float = 1.0
    # minimum reward above the PF curve
    min_reward: float = 0.2
    # the max drecrease of ret between the associated traj
    # w.r.t the nearest pf traj
    max_rew_decrease: float = 0.5
    # model mode params
    use_rew: bool = True
    use_cost: bool = True
    cost_transform: bool = True
    cost_prefix: bool = False
    add_cost_feat: bool = False
    mul_cost_feat: bool = False
    cat_cost_feat: bool = False
    loss_cost_weight: float = 0.02
    loss_state_weight: float = 0
    cost_reverse: bool = False
    # pf only mode param
    pf_only: bool = False
    rmin: float = 300
    cost_bins: int = 60
    npb: int = 5
    cost_sample: bool = True
    linear: bool = True  # linear or inverse
    start_sampling: bool = False
    prob: float = 0.2
    stochastic: bool = True
    init_temperature: float = 0.1
    no_entropy: bool = False
    # random augmentation
    random_aug: float = 0
    aug_rmin: float = 400
    aug_rmax: float = 500
    aug_cmin: float = -2
    aug_cmax: float = 25
    cgap: float = 5
    rstd: float = 1
    cstd: float = 0.2

@dataclass
class CDTCarCircleConfig(CDTTrainConfig):
    pass

@dataclass
class AutobiddingConfig(CDTTrainConfig):
    # model params
    seq_len: int = 10
    episode_len: int = 1000
    # training params
    task: str = "Autobidding-v0"
    target_returns: Tuple[Tuple[float, ...],
                          ...] = ((15.0, 20), (15.0, 40), (15.0, 80))# reward, cost
    # augmentation param
    deg: int = 1
    max_reward: float = 2
    min_reward: float = 1
    max_rew_decrease: float = 0.3
    device: str = "cuda:0"

The format of my data is shown below:

May you help me?What do you think is the problem?

I guess it is because the target reward and cost returns are not set properly. You should set
# evaluation params
target_returns: Tuple[Tuple[float, ...], ...] = ((450.0, 10), (500.0, 20), (550.0, 50))  # reward, cost

to be your datasets' corresponding reward return and cost return ranges.

Hi @623637719, I would suggest that you can (1) plot your dataset on the cost-reward return space as shown in Figures 10–14 in the paper to determine the augmentation parameters such as deg, max_reward, min_reward, max_rew_decrease etc; (2) set augment_percent and loss_cost_weight to 0 and a smaller learning rate like 1e-4 to see if CDT works without data augmentation; (3) try larger update_steps and eval_every, I am not sure if CDT can converge in 5000 steps in your environment.

Hi @623637719, I would suggest that you can (1) plot your dataset on the cost-reward return space as shown in Figures 10–14 in the paper to determine the augmentation parameters such as deg, max_reward, min_reward, max_rew_decrease etc; (2) set augment_percent and loss_cost_weight to 0 and a smaller learning rate like 1e-4 to see if CDT works without data augmentation; (3) try larger update_steps and eval_every, I am not sure if CDT can converge in 5000 steps in your environment.

Thank you for your answer！I have successfully drawn this image. After I adjust the augmentation parameters, how can I know the augmentation parameters I adjust are appropriate according to this image

We can find an example here (Figure 3 and left plot in Figure 9). The augmentation parameters depend on the data. Generally, the fitted pareto frontier, let's say f, (by changing deg) shoud be monotonic. In our dataset, we set f(cmax)≤ max_reward, min_reward ≤f(cmin), where cmin,cmax are the maximum and minimum cost return in the dataset, so the augmented data are associated to diverse reward-cost pair in the original data. Besides, can you try (2) and (3) as I mentioned?

I'm sorry for my slow reply due to my recent internship。
I have set the "deg" parameter to 1, and looking at the figure below, it should be a good number to set.But that vertical dotted line seems a little too far to the right

I have tried (2)and(3),but as measured by the training results, nothing has changed.
Then I checked the trainer.evaluate() part of the code and realized that I might have written the env.step() function wrong.
I modified my env.step() function and noticed that the training results had changed. cost decreased with training, but ret did not increase significantly with training.


Incorrectly placed table header when scrolling

The table header for each of the states is incorrectly placed when scrolling such that the header is not visible at the top of the table. Either, the top line of the header (the one that says the state's name as well as the current total vote count for each candidate) does not come down with the column labels, or the column labels are positioned so that part of the table is visible above the header.
See image below for demonstration of problem. I am using the latest version of Google Chrome, 1920x1080 resolution.

Please let me know if you need any more information. Thanks so much for this awesome resource!

Quick update, since it seems like the website's behavior has changed since I posted the initial issue.

Seems to be an issue where the top line of the table header (listing state name, EV's, total votes) is being set to the same position as the next line of the table header (the one with column labels) on scroll.

Seems to have been fixed.


Add full window title to login window

Not an important change, but I noticed that the window title wasn't "Battle.net Login," as it is in the browser. This PR would just set the window title to "Battle.net Login."

thanks :)


TST: speed up full test suite by less eval points in mpmath tests.

This will address the TravisCI timeouts we're experiencing.
Closes gh-6989.

LGTM, +1 for merge assuming Travis shows good improvement.

Indentation error on line 146

Probably too annoying to do, but in an ideal world we would have differing numbers of default points for functions of 1, 2, etc. variables. The issue being that 5000 points is probably overkill for a function of one real variable, but when you get to e.g. hypergeometric functions of 3 real variables and one complex variable it's not very many.

Time of test('full') down to 40 min now. Just 2 failing tests, so have changed those to always use n=5000:
======================================================================
FAIL: test_mpmath.TestSystematic.test_hyp0f1
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/scipy/scipy/venv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/scipy/scipy/venv/lib/python2.7/site-packages/numpy/testing/decorators.py", line 147, in skipper_func
    return f(*args, **kwargs)
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/tests/test_mpmath.py", line 1341, in test_hyp0f1
    [Arg(-1e7, 1e7), Arg(0, 1e5)])
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_mptestutils.py", line 239, in assert_mpmath_equal
    d.check()
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_mptestutils.py", line 226, in check
    reraise(*sys.exc_info())
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_mptestutils.py", line 222, in check
    param_filter=self.param_filter)
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_testutils.py", line 119, in assert_func_equal
    fdata.check()
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_testutils.py", line 338, in check
    assert_(False, "\n".join(msg))
  File "/home/travis/build/scipy/scipy/venv/lib/python2.7/site-packages/numpy/testing/utils.py", line 92, in assert_
    raise AssertionError(smsg)
AssertionError:
Max |adiff|: 1.34485e+292
Max |rdiff|: 0.0440728
Bad results (1 out of 378) for the following points (in output 0):
       -3.1622776601683793e-16                             1.0 =>            -4808347426889712.0 !=            -5030035390860123.0  (rdiff            0.04407284377625481)

======================================================================
FAIL: test_mpmath.TestSystematic.test_rgamma
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/scipy/scipy/venv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/scipy/scipy/venv/lib/python2.7/site-packages/numpy/testing/decorators.py", line 147, in skipper_func
    return f(*args, **kwargs)
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/tests/test_mpmath.py", line 1739, in test_rgamma
    ignore_inf_sign=True)
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_mptestutils.py", line 239, in assert_mpmath_equal
    d.check()
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_mptestutils.py", line 226, in check
    reraise(*sys.exc_info())
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_mptestutils.py", line 222, in check
    param_filter=self.param_filter)
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_testutils.py", line 119, in assert_func_equal
    fdata.check()
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.7/site-packages/scipy/special/_testutils.py", line 338, in check
    assert_(False, "\n".join(msg))
  File "/home/travis/build/scipy/scipy/venv/lib/python2.7/site-packages/numpy/testing/utils.py", line 92, in assert_
    raise AssertionError(smsg)
AssertionError:
Max |adiff|: 2.28215e+289
Max |rdiff|: 6.08258e-13
Bad results (1 out of 502) for the following points (in output 0):
                       -1000.0 =>                            inf !=                            0.0  (rdiff                            0.0)

This looked good, however still timed out (on build caching, tests were all finished). Restarting, will probably pass next time.

TravisCI is having a bad day. https://travis-ci.org/scipy/scipy/jobs/244830974 is the only failure, and the tests have again completed but it's timed out on the final ccache step.
I suggest to just merge this PR. If it remains problematic we can try to speed up by tackling some other tests.

Good progress despite the timeout. Are you going to keep looking into speed gains?

Good progress despite the timeout. Are you going to keep looking into speed gains?

Depends on whether the timeouts go away soon. Otherwise we have little choice:(  Don't think that tweaking individual tests is the way to go then; best to split a test run in half in the build matrix.


net/http/httptest: Using NewTLSServer is not intuitive

What version of Go are you using (go version)?
go1.7.4
What operating system and processor architecture are you using (go env)?
Linux/amd64
What did you do?
I tried to figure out how to use httptest.NewTLSServer and found it cumbersome. I submitted an example of the boilerplate required in my CL to improve documentation, https://go-review.googlesource.com/#/c/34639/, but the consensus is that this API should be improved for 1.9 instead of patching poor API with an example in documentation.
Here's an example of a working NewTLSServer in use:
func ExampleNewTLSServer() {
	ts := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		fmt.Fprintln(w, "Hello, client")
	}))
	defer ts.Close()

	cert, err := x509.ParseCertificate(ts.TLS.Certificates[0].Certificate[0])
	if err != nil {
		log.Fatal(err)
	}

	certpool := x509.NewCertPool()
	certpool.AddCert(cert)

	client := http.Client{
		Transport: &http.Transport{
			TLSClientConfig: &tls.Config{
				RootCAs: certpool,
			},
		},
	}

	res, err := client.Get(ts.URL)
	if err != nil {
		log.Fatal(err)
	}
	defer res.Body.Close()

	greeting, err := ioutil.ReadAll(res.Body)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Printf("%s", greeting)
	// Output: Hello, client
}

What did you expect to see?
An easy to use TLS server for HTTPS testing.
What did you see instead?
A server that requires accessing and parsing TLS config internals for proper TLS authentication to work.

I will look at this as an expansion to my CL https://go-review.googlesource.com/#/c/34639/

This needs to be added to the official httptest docs on the Go site. It's amazingly helpful!

@LeonineKing1199 in Go 1.9 it will be much easier to use the httptest.NewTLSServer, so the docs will not be updated for the old behaviour.
See https://tip.golang.org/pkg/net/http/httptest/#example_NewTLSServer for an example of the new testing API coming in 1.9.


refactor(interpreter): reflect a review from yamacir-kit for ParameterValueDistribution

Types of PR

[ ] New Features
[ ] Upgrade of existing features
[ ] Bugfix

Link to the issue
Description
How to review this PR.
Others

No regression!


Tetra and triangle elements

I left some comment in the code. Please fix it.
And also please work on this:

bring back original CMakeLists.txt, or adopt it to link with MKL on linux in general way
why we have TETRA0 and TETRA1? Is it possible to combine them together or just delete one of them?
delete main_tetra.cpp, main_triangle.cpp, tetra.dat, tetra2.dat, triangle.cdb (we will add comprehensive tests later).


Fix win32 build

Recently, I had to use onnxruntime crate on Windows 32bit but it doesn't seem to work  because there are some mismatched types & function calling conventions between onnxruntime-sys and onnxruntime. So I fixed the binding generation config to use usize instead of u64,  and added macros for choosing appropriate function calling conventions according to the target architecture, and also re-enabled CI for i686.

I was just considering doing the same fix to support arm 32bits target. Hope this PR will be accepted!

Sorry for late, you merged this!
It seems to be already working for downloading a pre-built i686 windows version without any changes.
Thank you!

Yeah I had a couple of cycles today so went on and merge this. Thanks for the clarifications, and the contribution!
Version 0.0.12 is released with this.


change lenght to length

Just fixing a silly typo that was very slowly making me question my spelling abilities.
s/lenght/length/g

Thank you


User accessible playtime

About the PR
I have made a Stats window in the character selection menu so people can check how much play time they have in total and per role.
Why / Balance
Because 10 people asked me to check their play time which is only available via admin command and that was enough for me to say this is bullshit and make it.
It is also generating 5-10 aHelps a day mainly with people wanting to apply to Salamander.
Technical details
All client side changes, reusing some existing methods that relate to the role selection and time quota to retrieve the time data. Pretty sure that is only loading up once on connection based on some testing with the new window so it shouldn't be making a bunch of db calls.
Media
Accessed via the customization menu:

Simple window with a table.

Even sorts the table!

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes
None, all new UI and functions.
Changelog
:cl: Repo

add: Stats menu on Character setup for total and role playtime.

i think in Role Type should be job-name string
and question: Hrs and Min in playtime can be localised?

and why overall shows twice?

@metalgearsloth is this kinda what you wanted out of #20517?

i think in Role Type should be job-name string and question: Hrs and Min in playtime can be localised?

I tried not to touch the serverside to keep it simple so its only bringing back those Job names, ill have a look if maybe i can map them back to the jobname string
The Hrs and Min is localized:

and why overall shows twice?

The overview one and the one in the table?
Mainly ease of viewing for the overview up the top as that was the core issue i was trying to solve. I guess its not really necessary to have it in the table too.

@lzk228 Updated it to be a bit cleaner now, its using the localized job names now too.

Great idea, love the stats button. Only issue is the UI page, it feels really clunky and unorganised. Firstly i feel the role type and role time should be seperated or highlighted some, along with the [XX]Hrs:[XX]Min to be “[XX] Hrs      [XX] Min” or something along those lines. The start of “[XX] Min” in that case would be consistent down the board of all jobs in the y-axis. Man i love UI design lol.

Great idea, love the stats button. Only issue is the UI page, it feels really clunky and unorganised. Firstly i feel the role type and role time should be seperated or highlighted some, along with the [XX]Hrs:[XX]Min to be “[XX] Hrs [XX] Min” or something along those lines. The start of “[XX] Min” in that case would be consistent down the board of all jobs in the y-axis. Man i love UI design lol.

Like this?

Yeah UI stuff has been struggle every time I make a small change even this one, its like 30min to test its working right and rendering correctly...

Add some margins / thickness to it and it'll look a lot better.

Add some margins / thickness to it and it'll look a lot better.

I have a 10 all round margin on the main window, its a bit clearer on that last screen cap.
Did you mean thicker for that, or margins on the table bit?

Mainly between each label and its parent container, I'm mainly looking at the left edge here.

Agree with the UI comments above. I'd separate the table's headers (Role Type (also why can't it just be Role and Time?) and Role Time). Also I'm pretty sure there is a method (assume in (Content)LocalizationManager) that localizes and generates a pretty time string as the way it is currently displayed is meh

Mainly between each label and its parent container, I'm mainly looking at the left edge here.

Ok more margins on the child labels in the table:

Agree with the UI comments above. I'd separate the table's headers (Role Type (also why can't it just be Role and Time?) and Role Time). Also I'm pretty sure there is a method (assume in (Content)LocalizationManager) that localizes and generates a pretty time string because the way it is currently displayed is meh

I've Simplified the headers names, this is all localized so can be set to whatever makes sense on that side.
The sperate the table's headers you mentioned was the Horizontal separator between the header and the table rows I think, that's in there now.
I specifically used just Hours and minutes because the output from the server/db it is some timespan that is just pain to read. days:hours:minutes:seconds DD:HH:MM:SS.
No one wants to do some 24x calculation every time they want to know hours in a game. Generally speaking stats for games I've only ever seen in hours, Eg steam tracker is in hours not days and seconds.

But if you know the particular time localization i'm happy to check it out to see if it does a better job, I put the RU style hrs and min in this screen cap as a ref with just changing the loc string.

Ok more margins on the child labels in the table:

tgat one is great, and good readable

delicious :trollface:
no more having to annoy admins in ahelp for them to tell me my time hasn't changed since i last played

Question, is this overall playtime or playtime for that specific character? If the former, i would be interested in being able to see how many hours or what i have played more with those characters :)

I might be wrong but I don’t think per-character playtime is actually tracked at all

Question, is this overall playtime or playtime for that specific character? If the former, i would be interested in being able to see how many hours or what i have played more with those characters :)

Total user playtime, all stats are user based.

@metalgearsloth I maybe should have put all those change requests in separate commits but they are all done now. Thank you for taking some time to review 😊

I might be wrong but I don’t think per-character playtime is actually tracked at all

I'm going to explicitly mention it is for the user in the window title in the UI, players will probably have the same question for is it user vs character if we are asking it already.