Tag 0.0.17?

Hello!
I was hoping there would be a tag for the latest npm release, but I don't see one in releases – the latest tag is v0.0.16, the latest npm release is 0.0.17.
Thanks!

@dandean make sure you are looking at the proper NPM package: https://www.npmjs.com/package/chartist-plugin-tooltips

Oh sorry for the confusion. I mean git tags here:
https://github.com/Globegitter/chartist-plugin-tooltip/tags
We audit changes to our dependencies, and until this latest release we've been able to do that by comparing your release tags. We had to dig up commit SHA's instead with the npm release of 0.0.17.
Also, thank you for open sourcing this – it's been a really useful tool.

@dandean done


Add the PDF button only to selected pages

Hi there,
I believe this plugin adds the PDF export button to all pages in the documentation, and I don't see any option to change that.
Would it be possible to have an option that allows to select the pages where the button should appear?
Thanks.

also very interested in this possibility!


Set up rra-datapipeline

Basic repo that will contain:

rra-tools
A base image that contains most of the dependencies.
rra-analysis
A container that can handle the osrm conversion, routing and generation of analysis

build rra-tools locally
build rra-analysis with rra-tools as base image
push rra-analysis to Docker Hub

cc @danielfdsilva

Done. Image being pushed to: https://hub.docker.com/r/wbtransport/rra-analysis/


sigpro.h

Hi,
Thanks for your work. I try to build the project in vs2015, but  I can't find 'sigpro.h', can you upload it?

I have found in chapro.pdf.

CHAPRO depends on ARSC and SIGPRO, which have separate repos at https://github.com/BoysTownorg. Please install ARSC and SIGPRO before installing CHAPRO.

From: kobecccccc<EMAIL_ADDRESS>Sent: Monday, May 25, 2020 5:24 AM
To: BoysTownorg/chapro<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [BoysTownorg/chapro] sigpro.h (#7)
Hi,
Thanks for your work. I try to build the project in vs2015, but I can't find 'sigpro.h', can you upload it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/BoysTownorg/chapro/issues/7__;!!CEjAKCqGPSl6!-NPzhFlDfoPgSpoot4hwbRztCL5ZG5Z6mGoJxEcsDgeH30hRNvOVvR2aZerFrr41BvmZJw$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ACOKKHIPPIS7HZ7X4WQUUP3RTJBPFANCNFSM4NJNCXKA__;!!CEjAKCqGPSl6!-NPzhFlDfoPgSpoot4hwbRztCL5ZG5Z6mGoJxEcsDgeH30hRNvOVvR2aZerFrr7MmAHxYw$.


Fix some warnings and update .gitignore

Thanks for your review, I have updated the branch now.

Thanks for updating.


different clipScore

Describe the bug
During the evaluation of Text-guided Image Generation, the ClipScore generated is not consistent with the results documented in the paper. I have compared 197 images; they are identical to the ones shown on Visualize ImagenHub_Text-Guided_IG (chromaica.github.io). However, the score generated by using ClipScore for these clones is different.
To Reproduce
my metrics code as below
from imagen_hub.metrics import MetricCLIPScore
from imagen_hub.utils import load_image

import pandas as pd
import json
import os

base_path = 'ImagenHub_Text-Guided_IG'
with open(f'{base_path}/dataset_lookup.json') as f:
    dataset = json.loads(f.read())

df = pd.DataFrame(columns=['model', 'avg_score', 'indicator'])

for indicator in ['MetricCLIPScore']:
    model = MetricCLIPScore()

    for model_name in os.listdir(base_path):

        list_real_images = []
        list_prompts = []
        for key, value in dataset.items():
            generated_image = load_image(f"{base_path}/{model_name}/{key}")
            list_real_images.append(generated_image)
            list_prompts.append(value['prompt'])

        all_score = [model.evaluate(x, y) for (x, y) in zip(list_real_images, list_prompts)]
        df = df.append({'model': model_name, 'avg_score': sum(all_score) / len(dataset), 'indicator': indicator}, ignore_index=True)
        print(model_name, " ====> avg Score : ", sum(all_score) / len(dataset))

Expected behavior
Same score as arxiv preset.

Hi, can you report your torchmetrics version?
pip list | grep torchmetrics

Hi, can you report your torchmetrics version?
pip list | grep torchmetrics

torchmetrics                  1.3.1

Here is my metric result.

Just realized the code implementation in dev branch (where we run the experiment) is different. Now it is aligned with our paper. Thanks for catching this bug!
Our result
dict_keys(['PixArtAlpha', 'SDXL', 'SDXLTurbo', 'DALLE3', 'SD', 'Wuerstchen', 'SDXLLightning', 'DeepFloydIF', 'OpenJourney', 'StableCascade', 'LCM', 'StableUnCLIP', 'UniDiffuser', 'DALLE2', 'Kandinsky', 'PlayGroundV2', 'SSD', 'Midjourney'])
DALLE2 | Inferencing
====> CLIPScore | Avg:  0.2712
DALLE3 | Inferencing
====> CLIPScore | Avg:  0.2697
DeepFloydIF | Inferencing
====> CLIPScore | Avg:  0.2814
Kandinsky | Inferencing
====> CLIPScore | Avg:  0.2838
LCM | Inferencing
====> CLIPScore | Avg:  0.2681
Midjourney | Inferencing
====> CLIPScore | Avg:  0.2839
OpenJourney | Inferencing
====> CLIPScore | Avg:  0.2791
PixArtAlpha | Inferencing
====> CLIPScore | Avg:  0.2822
PlayGroundV2 | Inferencing
====> CLIPScore | Avg:  0.2883
SD | Inferencing
====> CLIPScore | Avg:  0.2899
SDXL | Inferencing
====> CLIPScore | Avg:  0.2886
SDXLLightning | Inferencing
====> CLIPScore | Avg:  0.2863
SDXLTurbo | Inferencing
====> CLIPScore | Avg:  0.2889
SSD | Inferencing
====> CLIPScore | Avg:  0.2911
StableCascade | Inferencing
====> CLIPScore | Avg:  0.291
StableUnCLIP | Inferencing
====> CLIPScore | Avg:  0.2657
UniDiffuser | Inferencing
====> CLIPScore | Avg:  0.2674
Wuerstchen | Inferencing
====> CLIPScore | Avg:  0.2868

Just realized the code implementation in dev branch (where we run the experiment) is different. Now it is aligned with our paper. Thanks for catching this bug!
You can do
pip install -e .

To update the ImagenHub library.
Our result with the latest code with ImagenHub:
dict_keys(['PixArtAlpha', 'SDXL', 'SDXLTurbo', 'DALLE3', 'SD', 'Wuerstchen', 'SDXLLightning', 'DeepFloydIF', 'OpenJourney', 'StableCascade', 'LCM', 'StableUnCLIP', 'UniDiffuser', 'DALLE2', 'Kandinsky', 'PlayGroundV2', 'SSD', 'Midjourney'])
DALLE2 | Inferencing
====> CLIPScore | Avg:  0.2712
DALLE3 | Inferencing
====> CLIPScore | Avg:  0.2697
DeepFloydIF | Inferencing
====> CLIPScore | Avg:  0.2814
Kandinsky | Inferencing
====> CLIPScore | Avg:  0.2838
LCM | Inferencing
====> CLIPScore | Avg:  0.2681
Midjourney | Inferencing
====> CLIPScore | Avg:  0.2839
OpenJourney | Inferencing
====> CLIPScore | Avg:  0.2791
PixArtAlpha | Inferencing
====> CLIPScore | Avg:  0.2822
PlayGroundV2 | Inferencing
====> CLIPScore | Avg:  0.2883
SD | Inferencing
====> CLIPScore | Avg:  0.2899
SDXL | Inferencing
====> CLIPScore | Avg:  0.2886
SDXLLightning | Inferencing
====> CLIPScore | Avg:  0.2863
SDXLTurbo | Inferencing
====> CLIPScore | Avg:  0.2889
SSD | Inferencing
====> CLIPScore | Avg:  0.2911
StableCascade | Inferencing
====> CLIPScore | Avg:  0.291
StableUnCLIP | Inferencing
====> CLIPScore | Avg:  0.2657
UniDiffuser | Inferencing
====> CLIPScore | Avg:  0.2674
Wuerstchen | Inferencing
====> CLIPScore | Avg:  0.2868

Could you please also check the ImageReward indicator? It seems odd that UniDiffuser is negative number.

The Clipscore indicator is still a little different.

Just realized the code implementation in dev branch (where we run the experiment) is different. Now it is aligned with our paper. Thanks for catching this bug!
You can do
pip install -e .

To update the ImagenHub library.
Our result with the latest code with ImagenHub:
dict_keys(['PixArtAlpha', 'SDXL', 'SDXLTurbo', 'DALLE3', 'SD', 'Wuerstchen', 'SDXLLightning', 'DeepFloydIF', 'OpenJourney', 'StableCascade', 'LCM', 'StableUnCLIP', 'UniDiffuser', 'DALLE2', 'Kandinsky', 'PlayGroundV2', 'SSD', 'Midjourney'])
DALLE2 | Inferencing
====> CLIPScore | Avg:  0.2712
DALLE3 | Inferencing
====> CLIPScore | Avg:  0.2697
DeepFloydIF | Inferencing
====> CLIPScore | Avg:  0.2814
Kandinsky | Inferencing
====> CLIPScore | Avg:  0.2838
LCM | Inferencing
====> CLIPScore | Avg:  0.2681
Midjourney | Inferencing
====> CLIPScore | Avg:  0.2839
OpenJourney | Inferencing
====> CLIPScore | Avg:  0.2791
PixArtAlpha | Inferencing
====> CLIPScore | Avg:  0.2822
PlayGroundV2 | Inferencing
====> CLIPScore | Avg:  0.2883
SD | Inferencing
====> CLIPScore | Avg:  0.2899
SDXL | Inferencing
====> CLIPScore | Avg:  0.2886
SDXLLightning | Inferencing
====> CLIPScore | Avg:  0.2863
SDXLTurbo | Inferencing
====> CLIPScore | Avg:  0.2889
SSD | Inferencing
====> CLIPScore | Avg:  0.2911
StableCascade | Inferencing
====> CLIPScore | Avg:  0.291
StableUnCLIP | Inferencing
====> CLIPScore | Avg:  0.2657
UniDiffuser | Inferencing
====> CLIPScore | Avg:  0.2674
Wuerstchen | Inferencing
====> CLIPScore | Avg:  0.2868

maybe change the code to below?
# generated_image = (generated_image * 255).astype("uint8")
generated_image = generated_image.astype("uint8")

Just realized the code implementation in dev branch (where we run the experiment) is different. Now it is aligned with our paper. Thanks for catching this bug!
You can do
pip install -e .

To update the ImagenHub library.
Our result with the latest code with ImagenHub:
dict_keys(['PixArtAlpha', 'SDXL', 'SDXLTurbo', 'DALLE3', 'SD', 'Wuerstchen', 'SDXLLightning', 'DeepFloydIF', 'OpenJourney', 'StableCascade', 'LCM', 'StableUnCLIP', 'UniDiffuser', 'DALLE2', 'Kandinsky', 'PlayGroundV2', 'SSD', 'Midjourney'])
DALLE2 | Inferencing
====> CLIPScore | Avg:  0.2712
DALLE3 | Inferencing
====> CLIPScore | Avg:  0.2697
DeepFloydIF | Inferencing
====> CLIPScore | Avg:  0.2814
Kandinsky | Inferencing
====> CLIPScore | Avg:  0.2838
LCM | Inferencing
====> CLIPScore | Avg:  0.2681
Midjourney | Inferencing
====> CLIPScore | Avg:  0.2839
OpenJourney | Inferencing
====> CLIPScore | Avg:  0.2791
PixArtAlpha | Inferencing
====> CLIPScore | Avg:  0.2822
PlayGroundV2 | Inferencing
====> CLIPScore | Avg:  0.2883
SD | Inferencing
====> CLIPScore | Avg:  0.2899
SDXL | Inferencing
====> CLIPScore | Avg:  0.2886
SDXLLightning | Inferencing
====> CLIPScore | Avg:  0.2863
SDXLTurbo | Inferencing
====> CLIPScore | Avg:  0.2889
SSD | Inferencing
====> CLIPScore | Avg:  0.2911
StableCascade | Inferencing
====> CLIPScore | Avg:  0.291
StableUnCLIP | Inferencing
====> CLIPScore | Avg:  0.2657
UniDiffuser | Inferencing
====> CLIPScore | Avg:  0.2674
Wuerstchen | Inferencing
====> CLIPScore | Avg:  0.2868

 Could you please also check the ImageReward indicator? It seems odd that UniDiffuser is negative number.

Hi, can you open another issue to discuss the ImageReward issue?


feat: improvements

Use styles and useHead in app.vue for simplicity
Move store/user.ts to composables/user.ts, I don't think it's necessary to have a store/ directory in Nuxt 3, also simplify the nuxt.config.ts for autoImports
Remove layouts/404.vue to use pages/404.vue
Add color-mode to Readme

#24 this happens again.


setup-application-structure

General Checklist:

[ ] Tests added for this feature/bug

[ ] All tests are passed

[ ] No lint error

Review

[ ] Has been reviewed

[ ] Conform by the [merge request performance guides]

[ ] Conform by the [style guides]

[ ] Squashed related commits together

Tasks Checklist

[ ] Todo something 1
[ ] Todo something 2
[ ] Todo something 3

What are the relevant issue numbers?
Closes #2

Codecov Report

Merging #3 into master will decrease coverage by 1.47%.
The diff coverage is 98.52%.

@@            Coverage Diff             @@
##           master       #3      +/-   ##
==========================================
- Coverage     100%   98.52%   -1.48%
==========================================
  Files           1        2       +1
  Lines           1       68      +67
  Branches        1       17      +16
==========================================
+ Hits            1       67      +66
- Misses          0        1       +1

Impacted Files
Coverage Δ

src/utils/config-manager.js
100% <100%> (ø)

src/utils/dot-prop.js
98.24% <98.24%> (ø)

Continue to review full report at Codecov.

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

Coverage decreased (-1.8%) to 98.214% when pulling c89681f79b79789e443be3f864989b629b16d786 on setup-application-structure into bc4f6cbe21d5577e84ae60a286fd4e225af23589 on master.

Coverage decreased (-1.8%) to 98.214% when pulling c89681f79b79789e443be3f864989b629b16d786 on setup-application-structure into bc4f6cbe21d5577e84ae60a286fd4e225af23589 on master.


Comprehensive garbage collection

Currently, on tear-down, cluster external resources are not automatically destroyed. For example, when you create a service of type LoadBalancer and don't delete it before the cluster is destroyed, the LB will continue to run.
So, this issue is about adding comprehensive garbage collection for external resources such as IAM policies and role attached after creation, networking gear (ELB, ALB, NLB, ENIs), storage (EBS volumes), and more. Could be based on tags (of the CF stacks, not EKS) and resource groups or heuristics. See also the informal survey.

Will be done upstream in eksctl, see https://github.com/weaveworks/eksctl/issues/103 and https://github.com/weaveworks/eksctl/issues/1032


Add Klingon language

I was shocked to find that your library didn't support such an important language! So here you go. For the record I don't speak Klingon, I don't even know a single word of it, I just wanted to try that. To me, finding data basically meant finding gibberish of statistical significance. And it wasn't easy, I only found 3 major sources:

17k+ Tatoeba sentences: https://tatoeba.org/eng/downloads
nuq bop bom novel (Klingon novel): http://nuqbopbom.blogspot.com/
Qo'noS QonoS (Klingon articles): https://www.kli.org/QQ/

There exists a few other works in Klingon, but none were freely available online, I'm not even sure if they are available in electronic formats. So at the end I had around 750 kB of training data for a total of only 24k sentences. Not much variety and also pretty light if you compare with the one million for the other languages... Training data was sanitized to include only letters from the Latin transliteration of Klingon and remove some symbols. Here's a download link if anyone is interested: klingon-data.zip
Also since I used all sources I had for training, test data had to be taken from the same sources. So reports might indicate a slightly better accuracy than in reality. I took 1000 sentences randomly among the 2000 longest ones.
A few issues I encountered:

The Latin transliteration is case sensitive. For example q and Q aren't the same consonant. But the library lowercases input data and training data, so it wasn't possible to make the distinction without changing the API (which I didn't do). Klingon does have its own writing system, but Unicode has no official support for it (yet).
Klingon uses the modifier letter apostrophe ʼ but most sources used the normal apostrophe ' so I started with that. But the library strips the apostrophes because they're punctuation. So it tried the other apostrophe, and the results are slightly better.
Klingon doesn't have an ISO 639-1 code, only an ISO 639-2 and ISO 639-3 code tlh. I used tlh in the Iso639_1 enum anyway to avoid changing the API.
Klingon can be spoken, but so is Latin. I'm guessing the Language.allSpokenOnes() function is actually for languages with native speakers and not speakers in general? Apparently Latin has around 100-200 fluent speakers while Klingon has 20-30.

Adding Klingon had a few side effects. First, accuracy for single words was reduced by 0.5% or less for most languages, but I guess that's normal when adding any language. And that can always be countered by not using Klingon. There's virtually no incidence on word pairs and sentences. Overall accuracy is reduced by less than 0.3% for most if not all languages.
Also adding Klingon had the side effect that when you type gibberish, it's always identified as Klingon:

Here's what I think: Klingon was originally designed to look and sound like alien gibberish, having a lot of consonants and few vowels. When typing randomly on my keyboard I tend to type more consonants than vowels, so I always get Klingon, the Latin language that uses the most consonants.
Now you have another advantage over competitors. Merge if you want and enjoy?

First of all, you are awesome @maltaisn. :)
I‘m a Trekkie myself, so I‘m wondering why I haven‘t thought about adding Klingon. :D
I don‘t have access to a computer during the weekend, so I will give you detailed feedback next week. Obviously, my manual for adding new languages seems to be understandable. Great!
Thanks a lot!

I fixed both things. And the manual for adding new language was very well explained indeed!
I noticed that when I wrote the accuracy reports, all accuracy values had been rewritten with periods instead of the commas originally used. I think it might be better to specify a locale on this line to avoid changing all the files in the future.

I noticed that when I wrote the accuracy reports, all accuracy values had been rewritten with periods instead of the commas originally used. I think it might be better to specify a locale on this line to avoid changing all the files in the future.

Yep, I noticed that myself. I will fix it.
Thanks again for your contribution. Don't hesitate to add more languages if you like. Very much appreciated. :)


Missing support for SSO login

Your Rocket.Chat.Android version: 1.0.5
While the Cordoba application allows login using SSO methods configured on a deployed Rocket.Chat server,  the new Android application only supports password login

So far i see only Github, Google, Facebook, Twitter and Password based logins are implemented. By any chance, is there any work going on Gitlab SSO implementation?

We're going to handle all authentication methods soon.

Currently (Android 2+), we are supporting the authentication with:

username + password
email + password
CAS
LDAP
Gitlab

Refs: #833 #871 #855 #965
We are working hard to put others (Github, Twitter, etc).

I can confirm version 2.0.0-alpha1 is working with CAS Authentication. Thanks!!

Update: Github, Google and Linkedin OAuth become supported.
Refs: #966 #969 #973

Let's close this issue, every method now has it's own issue, many of them are already present in 2.0.0.


Implement new optional dependency semantics. Fixes #361.

Three kinds of dependencies now:

"required" - this is the default
"optional", use optional=true - These will only be used if explicitly added to "dub.selections.json"
"optional, default", use optional=true default=true - If no dub.selections.json exists, they will be selected if possible, otherwise behaves like "optional"

The local availability of a package doesn't play a role anymore.
In a later PR, a CLI functionality to manage optional dependencies should be added.

This pull is important and @s-ludwig knows what he's doing, he did write dub after all.
I say we just merge this already and let any potential issues work their way out in the beta process.

Yeah, to be honest I can't see any obvious bugs in it, but I just don't have the time to get the context necessary to work out how it really works.

Yea, I strongly suspect the holdup with this getting reviewers is a lack of people already familiar with this part of DUB. FWIW, I didn't notice any obvious issues when I browsed through it either, but like you, I'm also not that familiar with how this part of DUB works (and don't have time...and I didn't understand it when I did try some months back).
Kinda drawing on a recent discussion on D's NG here, I say: Sonke, the DUB guy himself, went to the trouble of making this PR. I think it's more reasonable to assume it's merge-worthy that not. If there are any glaring issues, they'll surface during beta, and then they can get fixed. So we can either continue waiting indefinitely for a more confident reviewer who may or may not show up, or we can just break the deadlock and get things rolling.

Okay, I think it should be pretty safe as the "critical" changes are only concerning optional dependencies, which have been more or less unusable anyway. I've read through it again, too, and didn't see any issues either. There is also the necessary documentation addition for the new "default" attribute: D-Programming-Language/dub-registry#134


Render trying to call string

So I have a strange edge case with the latest render function (included for posterity).
From ResponseFactory.php
public function render($component, $props = [])
    {
        $props = array_merge($this->sharedProps, $props);

        foreach ($this->sharedPropsCallbacks as $callback) {
            $props = array_merge($props, App::call($callback));
        }

        array_walk_recursive($props, function (&$prop) {
            if (is_callable($prop)) {
                $prop = App::call($prop);
            }
        });

        return new Response($component, $props, $this->rootView, $this->getVersion());
    }

I have an array of color options I'm passing through to the view. One of these colors is tan (saved as Tan). When it gets to checking the callable props, it assumes I mean tan() and gives me an error on the proper usage of the tan function. Anyway to escape out things like that? Works fine in the previous iteration.

Having same issue. As a test, try and update a user's name to "dump." It will try to invoke the dump().

Yeah, any string that is callable will error out. Obviously this is not going to work since we're dealing with user provided data.
I checked in the PingCRM app, and it errors out there too. Was thinking I was doing something wrong. I'm not sure why the props are being called recursively like that, but everything works smooth with that commented out.

@scottzirkel
Funny, I did the same thing, I checked PingCRM to see if the mistake was on my end.
What do you think about using a specific key name, for all user input, that skips the recursive calls? I'm just worried about removing it completely in case the creator has some purpose for it that I don't know about.

Oh I have no doubt it serves a purpose, I just haven't sorted out what that is yet. I've had it commented out locally and have yet to see an error from it.
I feel like it should be the opposite, specify a key name for what should be called? Not sure. Without knowing it's true purpose, I'm kind of at a loss.

I have the same issue. If I use ->with($data) instead, it seems to work properly.

Sure enough, I hadn't refactored that. Thanks @Resin01!

I think the purpose might be to have lazy props (props that are only resolved when they're actually needed)?
Either way this is a pretty big security concern, for example a user entering phpinfo as a value somewhere that'll be passed back to the Inertia component, will actually execute phpinfo()!

For example, given the right circumstances you can get phpinfo to execute:

Yeah sorry folks, I had fixed this serious security bug back in June. See d09e6b1284266212dac3db3704775309c170b999. Are you on the latest version of inertia-laravel?

My bad, composer dependencies were indeed locked on a certain commit 🙈 So sorry for the unnecessary commotion

All good. When it comes to security bugs, commotion is required.
Also, thanks @scottzirkel, you obviously found this in May already, thanks for reporting.


[Old Code] RL train with metadrive unsuccessfully

metadrive.envs.gym_wrapper need both gym and gymnasium requirements, but only the gymnasium is installed. And try-catch block in this file prevent the error.
metadrive.examples.train_generalization_experiment maybe a little old. Now the metadrive use the IO type of gymnasium, and ray>=2.3 need gymnasium too. But this example give the old gym style, and old ray version. Maybe a new example is needed.

The reset() in the gymnasium is reset(seed=None, options=None), but reset of MetaDriveEnv and BaseEnv is reset(seed: Union[None, int] = None).

There is a gym wrapper in MetaDrive.envs. After wrapping the environment, it should be compatible with gym-based training frameworks like ray< 1.2.0.
An example is like:
import os.path
from metadrive.envs.gym_wrapper import createGymWrapper
from metadrive.envs.scenario_env import ScenarioEnv
from scenarionet import SCENARIONET_REPO_PATH, SCENARIONET_DATASET_PATH
from scenarionet_training.train_utils.multi_worker_PPO import MultiWorkerPPO
from scenarionet_training.train_utils.utils import train, get_train_parser, get_exp_name

config = dict(
    env=createGymWrapper(ScenarioEnv),
    env_config=dict(
        # scenario
        start_scenario_index=0,
        num_scenarios=40000,
        data_directory=os.path.join(SCENARIONET_DATASET_PATH, "nuplan_train"),
        sequential_seed=True,

        # curriculum training
        curriculum_level=100,
        target_success_rate=0.7,
        # episodes_to_evaluate_curriculum=400,  # default=num_scenarios/curriculum_level

        # traffic & light
        reactive_traffic=True,
        no_static_vehicles=True,
        no_light=True,
        static_traffic_object=True,

        # training scheme
        horizon=None,
        driving_reward=4,
        steering_range_penalty=1.0,
        heading_penalty=2,
        lateral_penalty=2.0,
        no_negative_reward=True,
        on_lane_line_penalty=0,
        crash_vehicle_penalty=2,
        crash_human_penalty=2,
        crash_object_penalty=0.5,
        # out_of_road_penalty=2,
        max_lateral_dist=2,
        # crash_vehicle_done=True,

        vehicle_config=dict(side_detector=dict(num_lasers=0))

    ),

    # ===== Evaluation =====
    evaluation_interval=15,
    evaluation_num_episodes=1000,
    # TODO (LQY), this is a sample from testset do eval on all scenarios after training!
    evaluation_config=dict(env_config=dict(start_scenario_index=0,
                                           num_scenarios=1000,
                                           sequential_seed=True,
                                           curriculum_level=1,  # turn off
                                           data_directory=os.path.join(SCENARIONET_DATASET_PATH, "nuplan_test"))),
    evaluation_num_workers=10,
    metrics_smoothing_episodes=10,

    # ===== Training =====
    model=dict(fcnet_hiddens=[512, 256, 128]),
    horizon=600,
    num_sgd_iter=20,
    lr=1e-4,
    rollout_fragment_length=500,
    sgd_minibatch_size=200,
    train_batch_size=50000,
    num_gpus=0.5,
    num_cpus_per_worker=0.3,
    num_cpus_for_driver=1,
    num_workers=20,
    framework="tf"
)

if __name__ == '__main__':
    # PG data is generated with seeds 10,000 to 60,000
    args = get_train_parser().parse_args()
    exp_name = get_exp_name(args)
    stop = int(100_000_000)
    config["num_gpus"] = 0.5 if args.num_gpus != 0 else 0

    train(
        MultiWorkerPPO,
        exp_name=exp_name,
        save_dir=os.path.join(SCENARIONET_REPO_PATH, "experiment"),
        keep_checkpoints_num=5,
        stop=stop,
        config=config,
        num_gpus=args.num_gpus,
        # num_seeds=args.num_seeds,
        num_seeds=5,
        test_mode=args.test,
        # local_mode=True,
        # TODO remove this when we release our code
        # wandb_key_file="~/wandb_api_key_file.txt",
        wandb_project="scenarionet",
    )

And sorry for the late reply. I am planning to finish the documentation of MetaDrive: https://github.com/metadriverse/metadrive/issues/425
Could you provide some advice? Is there anything that you believe is valuable but not be included in this plan?

There is a gym wrapper in MetaDrive.envs. After wrapping the environment, it should be compatible with gym-based training frameworks like ray< 1.2.0.
An example is like:
import os.path
from metadrive.envs.gym_wrapper import createGymWrapper
from metadrive.envs.scenario_env import ScenarioEnv
from scenarionet import SCENARIONET_REPO_PATH, SCENARIONET_DATASET_PATH
from scenarionet_training.train_utils.multi_worker_PPO import MultiWorkerPPO
from scenarionet_training.train_utils.utils import train, get_train_parser, get_exp_name

config = dict(
    env=createGymWrapper(ScenarioEnv),
    env_config=dict(
        # scenario
        start_scenario_index=0,
        num_scenarios=40000,
        data_directory=os.path.join(SCENARIONET_DATASET_PATH, "nuplan_train"),
        sequential_seed=True,

        # curriculum training
        curriculum_level=100,
        target_success_rate=0.7,
        # episodes_to_evaluate_curriculum=400,  # default=num_scenarios/curriculum_level

        # traffic & light
        reactive_traffic=True,
        no_static_vehicles=True,
        no_light=True,
        static_traffic_object=True,

        # training scheme
        horizon=None,
        driving_reward=4,
        steering_range_penalty=1.0,
        heading_penalty=2,
        lateral_penalty=2.0,
        no_negative_reward=True,
        on_lane_line_penalty=0,
        crash_vehicle_penalty=2,
        crash_human_penalty=2,
        crash_object_penalty=0.5,
        # out_of_road_penalty=2,
        max_lateral_dist=2,
        # crash_vehicle_done=True,

        vehicle_config=dict(side_detector=dict(num_lasers=0))

    ),

    # ===== Evaluation =====
    evaluation_interval=15,
    evaluation_num_episodes=1000,
    # TODO (LQY), this is a sample from testset do eval on all scenarios after training!
    evaluation_config=dict(env_config=dict(start_scenario_index=0,
                                           num_scenarios=1000,
                                           sequential_seed=True,
                                           curriculum_level=1,  # turn off
                                           data_directory=os.path.join(SCENARIONET_DATASET_PATH, "nuplan_test"))),
    evaluation_num_workers=10,
    metrics_smoothing_episodes=10,

    # ===== Training =====
    model=dict(fcnet_hiddens=[512, 256, 128]),
    horizon=600,
    num_sgd_iter=20,
    lr=1e-4,
    rollout_fragment_length=500,
    sgd_minibatch_size=200,
    train_batch_size=50000,
    num_gpus=0.5,
    num_cpus_per_worker=0.3,
    num_cpus_for_driver=1,
    num_workers=20,
    framework="tf"
)

if __name__ == '__main__':
    # PG data is generated with seeds 10,000 to 60,000
    args = get_train_parser().parse_args()
    exp_name = get_exp_name(args)
    stop = int(100_000_000)
    config["num_gpus"] = 0.5 if args.num_gpus != 0 else 0

    train(
        MultiWorkerPPO,
        exp_name=exp_name,
        save_dir=os.path.join(SCENARIONET_REPO_PATH, "experiment"),
        keep_checkpoints_num=5,
        stop=stop,
        config=config,
        num_gpus=args.num_gpus,
        # num_seeds=args.num_seeds,
        num_seeds=5,
        test_mode=args.test,
        # local_mode=True,
        # TODO remove this when we release our code
        # wandb_key_file="~/wandb_api_key_file.txt",
        wandb_project="scenarionet",
    )

Thank you very much for the example! And I have already run training on the new version of new ray(2.8) with small change. Remove gymwrapper (use metadrive env cause it almost conforms to the API of gymnasium) and add [Options] parameter for reset function in order to pass environment check of ray.

And sorry for the late reply. I am planning to finish the documentation of MetaDrive: #425
Could you provide some advice? Is there anything that you believe is valuable but not be included in this plan?

Great! I happen to have some suggestions for improvement. I will leave some messages there.


Issue with 1.6.0 on maven central

When trying to upgrade to 1.6.0 i have this error Failed to resolve: com.chimerapps.niddler:niddler-base:1.6.0. And in fact - artifact does not exist there

After again struggling with maven release, this should be rectified. Url-connection is also releasing since I forgot that

Works perfectly, thanks!


There's no way to update state with updates that are different from the state type

Moving from Slack: https://langchainpart-saq4831.slack.com/archives/C06PTQF6MCK/p1714034843538009
Current types for the state:
export type BinaryOperator<Value> = (a: Value, b: Value) => Value;

export interface StateGraphArgs<Channels extends Record<string, any>> {
    channels: {
        [K in keyof Channels]: {
            value: BinaryOperator<Channels[K]> | null;
            default?: () => Channels[K];
        } | string;
    } | {
        value: BinaryOperator<unknown> | null;
        default?: () => unknown;
    };
}

What I want to do:
interface AgentState {
  messages: Messages[];
}

// this looks like how you suggest managing msgs in examples
const channels = {
  messages: (oldMsgs, newMsgs) => [...oldMsgs, ...newMsgs],
}

// to add a message, i'd return a state update like
return { messages: [newMessage] };

However, if I want to update messages in a different way than just appending (say e.g. clearing all msgs) I can't do that bc the BinaryOperator type requires a (curr value) and b (the update value, which could in theory have a different shape) to be the same

@functorism might have some good ideas on typing for this

Hey, we're a group of students from the University of Toronto and we can take a look at this to see if we can help.


Icon Theme Setting UI does not update when using Preferences: Icon Theme command

Testing #67283
When selecting from the dropdown in setting UI, the icon theme setting works fine:

However:

Run Preferences: Icon Theme to select another icon theme
Setting UI is not updated. You need to focus on the Setting UI to see the value updated. (Although the selected icon theme is already applied).

When I press enter, I expect both the File Explorer to update icons and the Setting UI update its value. But only the former happen.

Not a regression, this just happens when that setting is focused, then is changed somewhere else. We don't refresh the view when a setting is focused to not step on your ongoing edits. And it doesn't know whether the change event came from a user edit somewhere else, or if it's just a delayed change from the settings editor earlier.
So hopefully people don't do this exact thing too often. It should fix itself as soon as focus goes off that select box.


fires postinstall: gitbook install

Which causes an install error if gitbook binary is not available on the machine.

https://github.com/psastras/node-threadpool/blob/v1.5.5/package.json#L35 please publish master to npm

if not remove, gitbook install || true

this issue not fixed yet.


[FEATURE] Allow SVGs for diagrams

Describe the feature
Allow vector Graphics e.g. SVG files in diagrams.
Use Case
Instead of only allowing jpegs, pngs, etc,  also allow svg files. These are usually smaller and allow to scale text and information. And if the product changes and grows makes the very easy to edit since they are not static images.
Proposed Solution
change
accept='image/png, image/gif, image/jpeg'

to
accept='image/*'

in ImageEdit
Other Information
No response
Acknowledgements

[ ] I may be able to implement this feature request
[ ] This feature might incur a breaking change

Hi @Pesir , thanks for raising the feature request. Does the image need to be stored as svg format on the platform? As currently, there is an image compression step after the file is uploaded. The SVG file will be converted into png.

I would save it as an SVG, from what I saw the markdown rendering does support it for export. I would actually think compressing the svg to an png would increase image size. Svg is not pixel based so it only stores the actual shapes. It would also make delta changes so much nicer since svgs can be easily imported into draw.io or similar.


Error compiling with Ecto 2.1.1

I get an error in a new phoenix project when I try to do mix deps.compile that is using Ecto 2.1.1
== Compilation error on file web/controllers/admin_association_controller.ex ==
** (CompileError) web/controllers/admin_association_controller.ex:3: module Ecto.Model is not loaded and could not be found
    expanding macro: ExAdmin.Web.__using__/1
    web/controllers/admin_association_controller.ex:3: ExAdmin.AdminAssociationController (module)
    (elixir) expanding macro: Kernel.use/2
    web/controllers/admin_association_controller.ex:3: ExAdmin.AdminAssociationController (module)
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Ecto 2.1.1 has deprecated the use of Ecto.Model, need to import Ecto instead as in my fork: https://github.com/dy2k/ex_admin/commit/374cd3c7285a17b05d949944f11f29533d9caff0#diff-75c165bdf904a7a8b835dd36f41e6a93
Was thinking of creating a pull request

@dy2k I was too, I have it ready to go, why change to Ecto instead of Ecto.Schema ?


⚠ Bofrost.fr has degraded performance

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

HTTP code: 200
Response time: 1544 ms

Resolved: Bofrost.fr performance has improved in dd6a943.


feat: Manage keyboard shortcuts visibility of TextInput

Summary:

Changelog:

Test Plan:

This one is more correct - https://github.com/facebook/react-native/pull/47671.

This one is more correct - https://github.com/facebook/react-native/pull/47671.


releng docs

@rgreinho this is the rework of adam's wiki page and yes I think it makes more sense to keep it here rather than hidden in a private wiki. As for the '$', I rather agree but was merely being consistent with other blocks.


Tabs don't have an icon when in a library

Screenshots

System Information

App Version: <IP_ADDRESS>
OS Version: 10.0.19043.1110

This issue should be resolved with #5530.


More tests for type parameter bounds

We could use more tests for type inference (and strong mode generally) that take advantage of type parameter bounds.
Noticed by @leafpetersen reviewing https://codereview.chromium.org/2205993002/diff/1/pkg/analyzer/test/src/task/strong/inferred_type_test.dart#newcode737

I think we're in decent shape now


Support HTTPS

This avoids needing nginx/apache as a reverse-proxy in front of
octobot just to get HTTPS working.

test comment post-SSL.


nihaoma

Guidelines
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce?

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Preparing a pull request for review
Ensure your change is properly formatted by running:
$ ./gradlew spotlessApply

Please correct any failures before requesting a review.

您发给我的邮件已经收到~ Thanks！                                    -- gzw


No possibility to exclude some files from being compressed

Minify version: 2.1.1
PHP version: 5.2.6

What steps will reproduce the problem?
I have jQuery and TinyMCE which are already compressed but i want to reduce
number of request with minify and not compress those libraries again.

Expected functionality:
Config.php feature that excludes some files from compression

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 26 Nov 2008 at 12:58

To clarify, you want to include a script in the combined request, but not have
it
run through JSMin? FYI this can already be done in groupsConfig.php, and I will
document how today on the Wiki.

Original comment by<EMAIL_ADDRESS>on 16 Dec 2008 at 2:24

Changed state: NeedInfo

In the user Guide:
http://code.google.com/p/minify/wiki/UserGuide#Customized_Sources_/
_Options_for_Specific_Files

Original comment by<EMAIL_ADDRESS>on 27 Jan 2009 at 4:08

Changed state: Invalid


refactor: change 0.7.0 interfaceId to 0.10.2

What kind of change does this PR introduce (bug fix, feature, docs update, ...)?

refactor: change 0.7.0 interfaceId to 0.10.2

Other information:

Old interfaceId were removed

Again, this is a breaking change so don't forget to add it in your commit:


RFC: Add ghc-modi syntax plugin for haskell

ghc-modi is a version of ghc-mod which caches data between runs, improving the time to check for errors to under half a second, even for large projects.
This is still more of an RFC, because I am not sure if this should go as a new checker or if I should merge the code directly into ghc-mod plugin.  Also, is the change to SyntasticMake ok?  Lastly, I still need to add a command to kill the ghc-modi instance.

@wuzzeb having this as an external checker would be really nice. Would you do this? Otherwise, if you don't mind I'll provide (and maintain) this, especially since it also fixes #1576


release: v0.8.2

Description: 概要

Changes: 変更内容

Changes

fix: tag name (closes #100) (75428b22c6ac130ac1b69283a02372e6d9610c66)
fix: lint error (edd2e47384e472738d7461396cc81fba3f3f60a2)
chore: tweaks (07e520f058afba9890e19a185e25b592d8fd4235)
chore: add tags for testing (0aba780539530e3e012d404161d6d2222255199d)

Expected Impact: 影響範囲

Operating Requirements: 動作要件

Additional context: 補足

Codecov Report

Merging #102 (03d8ff8) into main (57cb76b) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #102      +/-   ##
==========================================
- Coverage   42.58%   42.52%   -0.07%
==========================================
  Files         150      150
  Lines        1228     1230       +2
  Branches      221      221
==========================================
  Hits          523      523
- Misses        683      685       +2
  Partials       22       22

Impacted Files
Coverage Δ

src/packages/infra/pages/tag/server.ts
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


chore: updated some snapshots

Changes
Updated some snapshots.

Testing
All tests have been passed.

Docs
No docs.

These should already be passing on main, although you're right that main has been failing for the last few days due to some difficult merge conflicts that had to be resolved manually (/cc @drwpow).
I just updated our Github CI jobs to run on every push to main (they were still set to our outdated 'master' branch) so that should confirm if snapshot updates are needed or not

Oh, I see the problem. It looks like Windows is creating these CSS module hashes differently, causing our snapshots to fail. adding a regex formatter to normalize.

Fixed in 6686efacd4f1d8444d556782b0b4158f0da54b4f

Oh, I see the problem. It looks like Windows is creating these CSS module hashes differently, causing our snapshots to fail. adding a regex formatter to normalize.

Well, In my MacOS system machine. I  have to update these snapshots to pass all tests.


Empty block is invalid

I've got an interesting one were I'm using Sir Trevor as a single block replacement for the text areas (considering pretty much all other text areas are Sir Trevor instance, why stop now?) with a block limit of one. So one heading block that's defaulted to 1 block, is set to automatically add the heading block and not allow any further blocks to be add.
With me so far?
Now when I come to save it, I get an error message that it can't blank. If I'd've set the text areas to required, I could understand but I didn't yet it's still coming up as not being allowed.
Have I missed some setting to allow blanks or doesn't Sir Trev allow blank blocks to be saved?
P.S.
As for the current code to call Sir trev it's;
<textarea class="sir-trevor1" name="Statement"></textarea>

window.editor = new SirTrevor.Editor({
    el: $('.sir-trevor1'),
    blockTypes: ["Heading"],
    defaultType: "Heading"
});

So it's not like I'm doing anything really weird with it.

Looks like the heading block is set to required by default https://github.com/madebymany/sir-trevor-js/blob/e9a7a9463b7d061a4837c03f75d9fd3f8b0e946b/src/blocks/heading.js#L16

Ahh that'd do it. I've pulled out the required and It's working fine.
Looks like the same behaviour on text blocks as well. Works fine once the st-required class is removed (I thought that was just supposed to be added to the textarea as a class for it to set the required error trigger?).


Heap corruption/access violation while using custom search monitor in routing

What version of OR-Tools and what language are you using?
Version: 9.0.9048
Language: Python (3.8)
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
Routing solver
What operating system (Linux, Windows, ...) and version?
Windows 10
What did you do?
I created quite complicated model. Due to one of requirements I had to be able to validate solutions on later stage (when all routes are known). The way I managed to do it is creating own SearchMonitor and returning True or False in AcceptSolution. The part of code that I added to my program is:
...
def make_search_monitor(routing_model, input_data, manager, veh_list):
    class MMonitor(pywrapcp.SearchMonitor):
        def __init__(self, solver, d, mod, man, veh_list):
            pywrapcp.SearchMonitor.__init__(self, solver)
            self.lastRes = True
        def AtSolution(self) -> bool:
            return super().AtSolution()
        def AcceptSolution(self) -> bool:
            if self.lastRes:
                self.lastRes = False
                return True
            return False

    return MMonitor(routing_model.solver(), input_data, routing_model, manager, veh_list)
...
sm = make_search_monitor(routing, data, manager, vehicles)
routing.AddSearchMonitor(sm)
solution = routing.SolveWithParameters(search_parameters)

This is modified version of my SearchMonitor, it accepts only the first solution and rejects all other (the "real" one does some calculations in AcceptSolution and returns True or False depending on solution, but issue occurs in both versions). Everything seems to work fine in most situations, but sometimes I get two errors interchangeably, sometimes it is exception 0xc0000005 at 0x00000000001afb5a (_pywrapcp.pyd), sometimes exception 0xc0000374 at 0x00000000000ff0b9 (ntdll.dll).
When disable the monitor by commenting out these lines
# sm = make_search_monitor(routing, data, manager, vehicles)
# routing.AddSearchMonitor(sm)

then I get no error, but also results are not filtered as I need.
What did you expect to see
No exceptions.
What did you see instead?
Exceptions.
Make sure you include information that can help us debug (full error message, model Proto).
Anything else we should know about your project / environment
I am not sure if that matters, I use portable Python.
I attached files (Python scipts + data) that demonstrate the issue, planowanie_v2.py is the main file to run.
rp.zip

Can you please tell me when approximately this issue will be resolved?

I think the python search monitored is GCed before the end of the search.
Please make sure you keep a reference that outlives the search.
Le jeu. 27 mai 2021 à 07:50, jzdfm @.***> a écrit :

Can you please tell me when approximately this issue will be resolved?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2559#issuecomment-849342539,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3MN4R74Q7QRVLGCUETTPXMSRANCNFSM45ENI5EA
.

 I think it is not the case, when I run the code:
`...
sm = make_search_monitor(routing)
routing.AddSearchMonitor(sm)
print(sys.getrefcount(sm)) # => prints '2'
print('Starting solver.')

# Solve the problem.
solution = routing.SolveWithParameters(search_parameters)

...`
then sys.getrefcount returns 2 for monitor reference, so as far as I understand Python GC mechanism it should not be released.


Feature Request: Group Customers

I was encouraged to post an issue here, though this isn't really an issue, just something I was planning on doing myself after vendoring pinax-stripe into my app.
The idea is to allow a Customer to be associated with an auth.Group instead of (or in addition to) an auth.User, so that purchases can impact (e.g. permissions of) the members of the group.
For example, a SaaS subscription where a member purchases the subscription on behalf of the group, and then invites collaborators who should also enjoy the permissions enabled by the purchase, by becoming members of the group.

@jsalva Thanks!
My immediate thought is to manage this at the site level.  In other words, create a model in your site to map and manage membership of teams and drive access to your application off of that.  We use pinax-teams for this sort of thing in other sites.
Given that a user is always going to be interacting with Stripe, I think there should always be a user object. I'm open to adding another GFK field if that makes sense but GFKs can be hard to work with, at least in providing some clean APIs.
Interested to see what others might think.

I need this feature terribly. I have a django backend and a custom user data model. I have to integrate teams and somehow stitch in pinax-stripe. Anyway we can expedite?

@otterprice best way to expedite is to send a pull request. :)   second best way is to hire someone to send a pull request.   we can certainly bump this as a priority but since all developers on this are doing dev in spare time, the amount of time can be unpredictable that goes into the project.


Update cache-how-to-monitor.md

Attempting to document Server Load better, and explain the impact of virus scanning on C1 caches' Server Load.

@flang-msft

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

emailed author


Assets file... not found.  Already ran Restore several times.

Would like more TSGs for when this "assets file" can't be found.  VS is telling me to run NuGet Restore, which I did several times.  The output looks like:
All packages are already installed and there is nothing to restore.
Time Elapsed: 00:00:00.1592831
========== Finished ==========
No idea what else to do; this was a brand new VM, new installation of VS, and I just cloned our repo.  For some reason, it tells me all NuGet packages are installed, yet when I build, it says to run NuGet restore.

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

ID: 906d0438-0338-0167-3a38-d213ee187ddb
Version Independent ID: b558fa0c-f549-1e6a-c2db-fd2e6a2351be
Content: Troubleshooting NuGet Package Restore in Visual Studio
Content Source: docs/consume-packages/Package-restore-troubleshooting.md
Product: nuget
GitHub Login: @JonDouglas
Microsoft Alias: jodou

Please note not all restore operation can be done with VS, some repositories include extra powershell(ps1) or bash script commands which brings extra packages. Also some cases npm/yarn used for front end package restore and nuget used for backend package restore. Please run them as instructed on repo readme guide.
I hope it helps, it you have more question then we need sample repo to investigate what is going on.
Thank you.


MemoryError when installing on low memory systems (Pi)

Received a report of pip returning "MemoryError" when installing this on a low memory Pi system. Adding this issue to document the eventual fix.

Seems this may be able to be fixed with --no-cache-dir added to the pip arguments in OctoPrint's Plugin Manager configuration. Awaiting feedback from tester.

Unable to fix. This is an issue with Pi Zero W and its memory constraints. Updated README.md with info on working around it.


get_updates timeout option doesn't appear to be working

I was expecting this command to not timeout for 120 seconds.
Nadia.get_updates([timeout: 120])
Unfortunately no matter what I set it to I get the following error after about 8 seconds.
{:error, %Nadia.Model.Error{reason: :timeout}}

Hi, @col
Thanks for pointing it out.
This issue relates to HTTPoison. The default timeout of HTTPoison is 8 seconds.
https://github.com/edgurgel/httpoison/blob/87aabe18be27bf25af2a4182b4754cd0a35aa1dd/lib/httpoison/base.ex#L126-L138
I'll fix this later.
For now, you can match this error as @mendab1e said.

@zhyu I've fixed it, but the problem was in default value of recv_timeout option which is set to 5 seconds. So that timeout greater than 4 seconds wasn't working for me.

@mendab1e you're right, it was related to recv_timeout. #6 has been merged. Thank you!

I'm currently using v0.3.3. Any timeout params more than 4 is still throwing a {:error, %Nadia.Model.Error{reason: :timeout}} error.

@holyxiaoxin you can use github version, or waiting for the next release.

{:nadia, git: "https://github.com/zhyu/nadia"}, which file should i point to?

It's working. Thanks. (:

For faster networks, it seems ok. But i get timeout often for slowly networks (higher latency). Would you like to add 5seconds instead of 1seconds instead? : +    timeout = ((options[:timeout] || @default_timeout) + 1) * 1000

@holyxiaoxin You can just use a new timeout value which is 4 seconds greater than the old value you used.
from this:
timeout = 10
Nadia.get_me([timeout: timeout])

to this:
timeout = 10 + 4
Nadia.get_me([timeout: timeout])

I think you've mistaken my concern.
recv_timeout that is set by timeout = ((options[:timeout] || @default_timeout) + 1) * 1000 in here, should be timeout = ((options[:timeout] || @default_timeout) + 5) * 1000 instead. This is to accommodate the latency for wireless connection.
recv_timeout >= latency from user to host(wired: <1ms, wireless 100-1000ms), local/oceanic RTT for request time (5-500ms), timeout option.

As far as I get, @holyxiaoxin means that currently recv_timeout is equal to telegram timeout + 1s. So he can't get response from telegram server after telegram timeout in 1 second because of recv_timeout. And even if he passes timeout value + 4, recv_timeout anyway will be timeout + 1s

Yes, that's because the latency from my wireless connection + request RTT is more than 1s.
Thanks @mendab1e for clarifying.

@holyxiaoxin, sorry for my misunderstanding.
@mendab1e, thanks!
Maybe changing the value from 1 to 5 can solve this issue, but I'm not sure what is the best value for it.
Anyway, pull requests are always welcome!

maybe we should have a configurable recv_timeout?

I think that it is a good idea to add optional recv_timeout argument, because 5 seconds may be not enough for someone.

i think it's good enough for 8s. that's the default for httppoison. i've sent a pr. please have a look.

I'd like to have a recv_timeout in config.exs, since I don't prefer to add argument which telegram bot api does not have.

I will update my pr to include config tech_timeout.


Fix emit of bundled schemas when has references and is used multiple times

The first time such schemas were emitted, emitSourceFile polluted its definition, so all subsequent references would include the pollution.

Fixes #2146


New File not automatically picked up.

Curious if I'm missing a setting or a configuration detail.
coc-tsserver works great for the most part, but when I create a new file I run into two issues: (1) auto import doesn't pick it up and (2) manually importing results in a tsserver error 6307 (the file I'm importing is not listed within the file list of my project, telling me to include it via an include pattern in my tsconfig).
The file definitely is included though, a CocRestart will resolve this issue. However, CocRestart for this project takes a good 10 seconds since it's reasonably large. Totally fine for a startup but really painful everytime I'm creating a lot of files or refactoring.
Is this something that's just expected from tsserver or am I messing something up?

File creation are observed by tsserver, there is tsserver.watchOptions option might helps.

You are correct. It seems that the correct fix is to properly specify glob patterns in the tsconfig for tsserver to pick up:
"include": ["./src/**/*", "next-env.d.ts"],

I originally had:
"include": ["./src", "next-env.d.ts"],

which compiles fine but creates problems for tsserver it seems.

Some features of tsserver only work with saved files, checkout https://github.com/neoclide/coc-tsserver/blob/master/Readme.md#troubleshooting if you still have issue with that.


libc-test's C program should not #include <linux/fs.h> on Linux

This is a fix for issue #113.
In libc-test/build.rs, the main function includes the directive #include <linux/fs.h> in the generated all.c file, but the correct header for system calls like mount is <sys/mount.h>; the <linux/fs.h> is just copied over from the kernel, and does not match the API offered by libc.
In particular:

If you happen to include <linux/fs.h> before <sys/mount.h>, you'll get compilation errors, because the former defines the same constants using preprocessor macros that the latter defines as enum values. The generated all.c file just happens to include them in the other order.
The <linux/fs.h> header includes a number of constants that are only meant to be used internal to the kernel, like MS_NOSEC and MS_BORN.
The <linux/fs.h> header defines MS_VERBOSE, which is 1) a perverse name, because it silences some printk messages, rather than enabling them, and 2) is superceded by MS_SILENT, according to both the man page for mount and comments in the <linux/fs.h> header itself.

This pull request removes the libc crate's definitions for MS_VERBOSE, MS_NOSEC, and MS_BORN, and then removes the directive to include <linux/fs.h>.
This fixes issue #113 because the libc crate no longer sees the inappropriate-for-userspace definition of MS_RMT_MASK.

Oh, this pull request builds on pull request #126.

The MIPS build failed; it seems like the libc we're using in the MIPS QEMU doesn't have some of the newer constants. The mount(2) man page says:

The  definitions of MS_DIRSYNC, MS_MOVE, MS_REC, MS_RELATIME, and MS_STRICTATIME were added to glibc headers in version 2.12.

Those are among the identifiers Travis reports missing.

@jimblandy #114 may fix that

@polachok: YAY

Could this be separated from https://github.com/rust-lang-nursery/libc/pull/126? (will help landing)
Also looks like there's a number of CI failures, not all of which are spurious

Could this be separated from #126? (will help landing)

Yes. (I had them on the same branch because I was trying to get a clean libc-test run, but in retrospect that's not the most helpful way to submit them.)

Also looks like there's a number of CI failures, not all of which are spurious

The ones I see are either caused by being built on #126, or are those I mentioned in comment 8, and should be fixed by #114.

I took a look at #114; this pull request will need revision if that one lands first, and vice versa.
In the process of updating libc for the MIPS image, #114 makes a bunch of changes to the libc crate itself, in order to get a clean libc-test run. But if we stop including <linux/fs.h> as I'm advocating in this PR, some of those changes will need to come back out.
If we want both PRs, I'm happy to revise this one after #114 is merged. I don't know how often the libc crate gets published to crates.io, but we should take care not to publish when only one has been merged, to avoid churn.

@jimblandy ah ok, I've merged #114 now (to fix all the mips build failures), and if you want to rebase this it should be all green and good to go.
Perhaps we should perform an audit and remove all inclusions of linux header files?

The commit 53bf018f646f03303d6784e764dbd66eb13c4545 died on MIPS because the definition of MS_RMT_MASK had become the same as all the others. I fixed that, and added a commit that commons up all the MS_RMT_MASK definitions to a single one common to all Linux-kernel based targets, which makes more sense.

That's a clean bill of health from Travis and Appveyor, and also on my Fedora laptop. A first!

Thanks!


Road Trip Map Locator Project

issue: #25
Road Trip Map Locator using MERN Stack

[x] Setup Server

[x] Install Dependencies
[x] Install / Setup Linter
[x] Setup Express App
[x] Setup Not Found and Error Middlewares

[x] Model DB

[x] Schema setup

[x]  Title - Text
[x] Description - Text
[x] Comments  - Text
[x] Ratings Scale from 1 to 10
[x] Image  - Text / URL
[x] Start Date - DateTime
[x] End Date - DateTime
[x] Latitude - Number
[x] Longitude - Number
[x] Created At - DateTime
[x] Updated At - DateTime

[x] Setup Mongoose Model(s)

[x] POST /logs

Create a new log entry

[x] GET / logs

[x] Listing all log entries

[x] Setting up react as a client
[x] Create Form to add a new entry
[x] Setup Map SDK on client
[x] List all log entries on map

Road Trip Map Locator using MERN Stack

[x] Setup Server

[x] Install Dependencies

[x] Install / Setup Linter

[x] Setup Express App

[x] Setup Not Found and Error Middlewares

[x] Model DB

[x] Schema setup

[x]  Title - Text

[x] Description - Text

[x] Comments  - Text

[x] Ratings Scale from 1 to 10

[x] Image  - Text / URL

[x] Latitude - Number

[x] Longitude - Number

[x] VisitDate- DateTime

[x] Setup Mongoose Model(s)

[x] POST /logs

Create a new log entry

[x] GET / logs

[x] Listing all log entries

[x] Setting up react as a client

[x] Create Form to add a new entry

[x] Setup Map SDK on client

[x] List all log entries on map


Inconsistent requirements files

Describe the bug
There are 3 requirments.txt files

. (root)

requirements.txt and dev-requirements.txt

app/web
gateway

It is not clear as to which packages are needed where. Either have common requirments.txt at root level and individual requirments.txt internally or have different. The current approach is not best and I believe is causing issues when one is trying to install from code following the instructions.
To Reproduce
Steps to reproduce the behavior:

Go to root folder.
Follow the steps to docker build the node.
Once the step 6 is underway, it throws the error

ERROR: Could not find a version that satisfies the requirement pysyft_proto (from grid==<IP_ADDRESS>a1.dev422->-r requirements.txt (line 7)) (from versions: none)
ERROR: No matching distribution found for pysyft_proto (from grid==<IP_ADDRESS>a1.dev422->-r requirements.txt (line 7))
on my local pip install . also gave same error, but install pysft and proto manually removed it.

Expected behavior
No error and successful build of node
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [macOS Mojave]
Version [10.14.6]

Additional context
Add any other context about the problem here.

Yeah! You're correct @gantir!
Nowadays, we're developing three different components in the same repository (PyGrid Library, Grid Node, Grid Gateway).
It's a little bit confusing to handle three different dependencies at the same repository. So, in the near future, we'll split it into different repositories.

[WIP] We intend to move our PyGrid lib to PySyft as a new module, you can follow the progress here
[TODO] Create a new repository to Grid Nodes.
[TODO] Keep this repository to develop our Grid Gateway. It'll connect every type of syft workers (Grid Nodes, syft.js, and AndroidWorkers)

@IonesioJunior ,
That makes sense. If you can create a new repo for Grid Nodes, I can take up moving the code there. For now it will have both PySyft and PyGrid as dependencies and later it can be moved to PySyft alone.
Once PyGrid move to PySyft is merged, this repo will be left with Grid Gateway alone.


Hide repositories while keeping them public ?

Feature Description
We at our company have a lot of organizations and the repositories are getting a bit cluttered due to the fact on how we use gitea.
We have for example a repository called firewall installation. Intended to make our installations easier. The organizations consists. of something like:
firewall-install
firewall-configfiles
and so on.
When a user goes into firewall-install and launches a script it either curls from firewall-configfiles or does a git clone as well does either curl or clone from other repos.
What the user does not need to see are the repositories that the firewall-install scripts uses it only confuses the user. He does not need to see the repo "firewall-configfiles" and what else there might be there. But the firewall-install script needs to be able to either curl or clone "firewall-configfiles" as was it a public repository "even though invisible" so that the firewall-install script can pull these things without using a password. So the repository is invisible but acting like a public repository.
Another example:
We have a lot of automated scripts for like installing Zabbix, Dokuwiki, Focalboard and so on all running on Nginx.
Therefor we have a nginx repository consisting of like
nginx-install
nginx-configuration-files
nginx-snippets
nginx-cloudlfare-ip
So when a user has to install i.e zabbix. He also can see alt the repositories that he does not net to know about. Al the user is interested in is dokuwiki-install whether that script pulls some configuration files or snippets the user does not need to see or be aware of as the end user will get confused on what or where to go.
This is not to hide obscure code as people are free to see the "Top Layer" script pulling the other repos or curling them the code is there as the clone it down they can just view whats happening. Its just to minimize clutter.
Basically we are looking for something like this (I tried to make a Mok Up) and attached it as a screenshot. Hmm which is not working.
So it goes something like this.
Visibility [ ] Make repository private
Visibility [ ] Make repository public
Visibility [ ] Make repository public but hidden from public view

If we make these "Additional files repositories private" the top layer script needs a password to download them this is what we are trying to prevent. the "Additional files and repos" are not secret but inconvenient when we wish to include simple tasks  as curling a "non-visible" repo or cloning a none-visible repo.
Thank you for your time.
Oh the screenshot got uploaded I must have had some latency :-)
Oh and yes we could go "Puppet" or "Ansible" or what else is out there, but our company is not there yet :-)
I hope all of this made sense.

Gonna bump this.
No answer does this mean it's a bad idea ? Asking for a friend who thinks it's a good idea 😊

I think it's a very special requirement maybe less people need it.

But is it really ?
I mean you probably also include other repos in your scripts ?
I've had a lot of my users getting confused on what repo to start in when there is like 10+ repos showing up and only one is needed as it pulls stuff from other repos not needed to be seen by a regular user.
If you have some input on how we could rearange this without modifying gitea I'm all ears thank you kindly.
/Allan

Maybe you mean a stack or a repository list function. Everyone could create his special repository list.

That would work yes

Just migrated from gogs, and this is a feature in gogs. Would love to see this implemented  in gitea too.

Maybe it should be searchable. It cannot be searched from explore repository or code or any future global/org search feature.


Reorder Handbook Menu

With the addition of Lexicon to Handbook, Lexicon option wen to the top of the menu list:

Taking into consideration the IA, I don't think it should at the top of the menu. My suggestion would be something like this:

Principles
Lexicon
Work
Tools
Collaborate
Advocate
Grow
Contribute
Resources

In my local repo I see it properly ordered

Could you clean you cache(cmd+shift+R) and try again @fapires ?

the sidebar order is determined by the order field in the frontmatter:

Both Lexicon and Principles have 10 set - in case of a conflict, it's a coin flip at build time which one will be first — in our case, when the site was built in Netlify, Lexicon is on top, in @victorvalle's case, when it was built on his local machine, Principles is on top.
To solve this —> change the order property. I realize this is not ideal, as its difficult to know the order of all of them in relation when its set in separate files...but on the other side, if you have a lot of pages then it can be annoying to manage the navigation order in a separate file.
All that to say

Does it make sense to have Lexicon at the top-level?
Would it make more sense in Tools?
It's already linked in Resources — would it make more sense to have it there?

Keep in mind, we do have Lexicon as the first card right below the fold...thoughts?

Thanks @plhnk! Just sent a PR to update that.

I think so once it's our primary resource for designing products.
It's more than a tool, because of that I think it needs more prominent on the AI

Thanks for sharing @fapires, I think there's an important distinction to make — just because something is important (I'm not questioning Lexicon's importance or significant) — does not mean it is relevant to all contexts.
Due to its importance and evergreen significance, Lexicon is included in a few different places (as mentioned previously). However, in the specific context of the sidebar, which reflects the overall IA of the handbook, it seem inconsistent to surface it at the highest level.
@drakonux if you have moment to weigh in? You are more of an expert on IA than I am, and you are closer to the project so will have more things to share.

Hot potato.
Well, the first thing working on IA is the intent. So what's the intent of the Handbook? That answer is very important to orientate the direction of the taxonomy.
A classic example in IA: the right section for tomatoes in the supermarket. They are placed in the vegetable section but they are not vegetables. Because formally they are fruits. But the way how people consume them has changed the classification they have in a certain context.
The second thing, the taxonomy of a menu could be or not related to the actual structure of the site. Good taxonomies detect items buried in a hierarchy and make interventions to stand up it.
The third thing, taxonomies need to be iterated. Test it, gather the data, propose changes based on the data, and repeat to see the new results.
Said this, I'm going to say some assumptions about Handbook:

It is the information reference for all the designers in the company (any type)
It declares:

our principles
how we work
how we would like to grow
how we collaborate

About Lexicon:

It's Liferay's design language.
It's probably the most valuable information resource for product designers.
Although, we are waiting for the research data. It's probably the most visited resource in liferay.design.
It should gather knowledge of every product and every designer in the company.
Currently, it's only oriented to products but IMHO we have to evolve it in more directions (branding, etc.) and take advantage of the naming.

So talking about the taxonomy in the menu, even if Lexicon is formally a tool or not. I think the department's intention should be to reinforce the impact it has on liferay.design and the Handbook. It was buried on the home page of liferay.design not a long time ago... and even now, it's complicated to reach it.
Summarizing
It's up to you. The people who lead the design of the company to reinforce or not a settled concept.
If a relevant place in the taxonomy is too much, I suggest trying using the Lexicon logo in the basement with a link to Lexicon Site.

So — you support putting it outside of the taxonomy, in the top level of the sidebar? For me, it's ok — just want to have another voice besides me and @fapires :)

I agree to have it as a first level of the hierarchy, yes :)
Placed first? maybe it is too much, so probably a place between "Contributes" and "Resources" section is a good place (test it). But IMO I don't see "Contributes" as a section [I am a pain in the neck sorry] for me all that content should be in a page reachable with a link that can be on the footer of each Handbook page.


@linux-aarch64

@linux-aarch64
Originally posted by @Macyoutuber in https://github.com/Macyoutuber/desktop-tutorial/issues/7

Looks like an accident!


Remove curl from integration tests by using Go's net/http module

General information
To make (integration) test steps platform independent, it is desirable to remove calls to curl when testing reachability. Maybe use Go's net/http module instead.
CRC version
OpenShift version: 4.1.11 (not embedded in binary)

Fixed by #577


Kwxm/ethereum contracts

Just adding some notes, so I'll merge it without review.

I'm abandoning this because there's of unexpected conflicts with a spurious file.


Seg Fault When Creating Sprite

Bevy version = 0.5
Commit Hash = 9d453530fac9202691c797184ad0b220b2ea37b3
Operating system & version
Windows 10 build 21390.co_release.210521-1658 , and Ubuntu 20.04 (on WSL2)
What you did
The following code:
use bevy::prelude::*;

const PLAYER_SPRITE: &str = "player_a_01.png";

// entity, component, system, resource

fn main() {
    App::build()
        .insert_resource(ClearColor(Color::rgb(0.04, 0.04, 0.04)))
        .insert_resource(WindowDescriptor {
            title: "Rust Invaders!".to_string(),
            width: 598.0,
            height: 676.0,
            ..Default::default()
        })
        .add_plugins(DefaultPlugins)
        .add_startup_system(setup.system())
        .run();
}

fn setup(
    mut commands: Commands,
    asset_server: Res<AssetServer>,
    mut materials: ResMut<Assets<ColorMaterial>>,
    mut windows: ResMut<Windows>,
) {
    // camera
    commands.spawn_bundle(OrthographicCameraBundle::new_2d());

    // position window
    let window = windows.get_primary_mut().unwrap();
    window.set_position(IVec2::new(1920, 1080));

    // spawn sprite
    commands.spawn_bundle(SpriteBundle {
        material: materials.add(asset_server.load(PLAYER_SPRITE).into()),
        ..Default::default()
    });
}

What you expected to happen
Create a sprite- display it on the screen in a window.
What actually happened
Segmentation fault immediately
Additional information
Bevy examples now work on windows Machine.

If you want to see what I was attempting to build- I was following the tutorial at the following link:
https://youtu.be/Yb3vInxzKGE

I don't think anything in that code should segfault... Do you have more details?
Could you retry without the position window block which is the only somewhat unusual code that I see?
    // position window
    let window = windows.get_primary_mut().unwrap();
    window.set_position(IVec2::new(1920, 1080));

Sure can, I'll give it a shot. Sorry for the delayed response I've been sick.

So it works on my windows machine, but still segfaults on WSL Ubuntu.

After further testing- it causes a segfault in the line:
.add_plugins(DefaultPlugins)

I don't know if this is a useful error, I commented out the .add_plugins... line from above:
thread 'main' panicked at 'Requested resource does not exist: bevy_asset::asset_server::AssetServer', /home/kacy/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/system/system_param.rs:244:17
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

This is actually because alsa can't find a sound device at the default '0' in WSL2. I'm not entirely sure how to fix this though, as wslg has pulseaudio setup and other apps have no issue playing audio.

This issue should probably be renamed to: Pulseaudio on WSL2 causes crash on startup due to fine finding audio device

Fixed by #2269


Merge Devel into Master

This PR:
close #4
close #3
I created a tag that points to the last commit before this PR.

With which yarp version is this compatible?

With which yarp version is this compatible?

This repo is compatible with master branch of YARP.

This repo is compatible with master branch of YARP.

Great!

This repo is compatible with master branch of YARP.

Great!

To be more precise, we are using CamCalibWithPose in windows machine which has dependencies to devel branch of yarp!

To be more precise, we are using CamCalibWithPose in windows machine which has dependencies to devel branch of yarp!

As long as it can be compiled with YARP master, I think it is ok.


Add way to select previous years quickly

I don't see anyway to quickly select a different year.
I know some date pickers are setup so that when you click the date above the calendar it shows the months. then if you click the top of the calendar again it shows the last 10 year, clicking it again then shows you the last ten decades. Here is an example: https://eonasdan.github.io/bootstrap-datetimepicker/
Except for that, this is a fantastic component!

+1 need this functionality.
Maybe it will be some free time and I implement it by myself.

+1

+1

+1
This component is amazing, good look and feel and very light. I needed something for date of birth date selection and the only reason I couldn't use this is because there's no way to go back years quickly!

👍
@burakcan This functionality is very needed, is there any way we can make that happen?
I don't mind making a PR but I'd appreciate some guidance on where to start and how do you see this being implemented.

Hi all. Thank you for your interest. Unfortunately, I left Adphorus 4 months ago to move to another country and I'm a bit busy because of that. Really sorry for that.
When i first built this library, I wasn't expecting this much interest (actually, it was my onboarding project at Adphorus) and I didn't know what features are required. I'm working on a new version of the library -by reusing the existing parts-. This time it will be more complete feature wise and have some tests. But this will take some time; my plan is to release it at the end of April.
@OriR if you need this feature immediately, and want to implement it; you should start from the src/Calendar.js file. I think calendar should have a "mode" state which switches between day/month/year modes. When you click on the title, it switches to one level higher level. For example: if the current active mode is "day", when you click it it should be switching to "month". And if you select a month, then it should switch back to day. I don't think the mode needs to be synced between calendars in a range.

Included in the new version


fix(TasksView): disable restart from tasksViews

Disable restart in TasksView when is SDK, this is part of #2343
Closes DCOS-16564
Checklist

[x] Did you add a JIRA issue in a commit message or as part of the branch name?
[ ] Did you add new unit tests?
[ ] Did you add new integration tests?
[ ] If this is a regression, did you write a test to catch this in the future?

Nice catch @bstavroulakis @weblancaster 👍


Add symlinks (links, relations, etc)

Also known as symbolic links, virtual relationships, etc.
A field on an object could be a path to another document (1-1 relationship) and that document is loaded in the property.
A field on an object could be an array for a collection of related documents (which can be a map or an array on the data property)
// options
let options = {
  symlink: { // or link, relation, relations, links, symlinks, related
    creator: { one: true /* options */ },     // 1-1
    author: { one: true, extends: 'author' },  // using defined to create a 1-1
    invoices: { /* options */ }                // 1-n
  }
}

// === adding/setting symlink ===
this.$fiery.link( data: FieryData, related: FieryData, saveNow: boolean = false )
record.$link( related: FieryData | string, saveNow: boolean = false )

// removing symlink from array
this.$fiery.unlink( data: FieryData, related: FieryData, saveNow: boolean = false )
record.$unlink( related: FieryData, saveNow: boolean = false )

// removing all
this.$fiery.clear( data: FieryData, prop: FieryFields, saveLinksNow: boolean = false )
record.$clear( prop: FieryFields, saveLinksNow: boolean = false )

This should be implemented via reference types.

❤ Yes please :)


fix #308

This fix addresses issue #308
Failed to compile.

./node_modules/apollo-link-state/lib/utils.js 21:51-56
  'graphql' does not contain an export named 'print'.

Until this is merged people can use my adoption at:
https://www.npmjs.com/package/@tgrx/apollo-link-state

Codecov Report

Merging #335 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #335   +/-   ##
=====================================
  Coverage      95%    95%
=====================================
  Files           2      2
  Lines          80     80
  Branches       22     22
=====================================
  Hits           76     76
  Misses          1      1
  Partials        3      3

Impacted Files
Coverage Δ

packages/apollo-link-state/src/utils.ts
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Hey, when can we expect this to be merged?


03/31/2018 14:47 : Create Pull Request for branch prTesting_2018033114 -> master

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Accessible colors for light palette

Description
The current light palette has several accent colors that do not pass accesibility standards. I've made a few slight
adjustments that in result lets the light color palette to acieve WCAG AA compliance, I didnt go any much further than
that since I feel it would change the essence of the colorscheme. This should make the light scheme a bit easier on the
eyes as well.
Screenshots
before:

after:

Definitely easier on the eyes in light mode 👍
The question now is whether we want to:

create a separate palette2 (fg, accents) for light mode
add an accessibility option that can be switched on/off
decide that this belongs in a fork, in case someone wants to maintain a variation of the original everforest

@sainnhe any thought on this? 🙂

@jssee by the way, could you briefly explain the nature of the adjustments that you did? (e.g. shift the contrast of each color by n%, etc.)

This will indeed look better in a scene that requires high contrast. But IMO this should be maintained in a fork or a new project instead of in this one, because:

The color palette has been finalized, and should not be changed in the future.
The contrast ratio is deliberately designed to be low.

When designing everforest, I defined this color scheme as soft and vibrant. That’s said, I need to make some trade-offs in other aspects, e.g. the contrast.
For example, let’s take a look at the green colors before and after change. The contrast is indeed higher, but it’s not as vivid and vibrant as before. I choose between contrast and vibrancy, and adjust the color many times to achieve the effect I want.
As for creating a high contrast variant, to be honest I have already thought about this for at least 3 times, but each time I try to modify the color palette to have a higher contrast, I immediately realized that this is not what everforest should be like.
People may have some different ideas on the color designing. No problem! But I just want to say that I can’t satisfy everyone’s needs. I’ve designed another two light color schemes, namely edge and gruvbox material, both have a higher contrast than everforest, but even so, some people still think the contrast is not high enough.
Maybe you can maintain your own fork or start a new project instead.

@sainnhe your explanation is understandable! i didnt mean to force these changes into the project, i had been using them locally for a while and just figured others might benefit.
I am a big fan of your work, i have used gruvbox-material for a long time and switched to my tweaked version of everforest recently and have been really enjoying it.
One suggestion for the future however is to design with aesthetics and usability in mind. the context in which we use these themes is important, reading low contrast text for extended periods of time will cause extra strain on the reader and can cause permanent eye damage after a while. I know light themes in general are less popular than dark ones for coders, but still its important to consider all our users equally whenever possible.
Anyways, ill maintain my own fork as suggested, and thanks for considering these changes. I look forward to your future projects! 😃


Make flag cnab-bunle-json experimental

- What I did
Once app is GA and no longer hidden experimental we will want to hide
the cnab-bundle-json flag if the user didn't activate experimental
features. docker/cli was updated to latest that had the fix for cli
plugins to be able to get the client configuration (https://github.com/docker/cli/pull/2095)
- How to verify it
Can't really verify it for now, nor can I write a test for this...
- A picture of a cute animal (not mandatory)

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "feat-bundle-json-experimental" git@github.com:rumpl/app.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

It's draft because the test fails and I'm waiting for #721 to be merged


Grafana Reporter command is not found

I have installed grafana reporter in clients prod cluster but i am facing the issue , after installing the grafana reporter i triggered grafana-reporter command its showing command not found.
Could you please provide me the solution on this issue ASAP.

As mentioned in the readme, after running go install to install, the reporter binary will be in $GOPATH/bin. You should have received some error from the go compiler if it is not there.

I don't think a missing reporter command is necessarily related to pdflatex. In that case you will get an error message like the one from #60.
Please comment on that issue of you manage to get pdflatex working on centos what steps you had to follow.

My problem with Centos was the version of "tex live" I update manually from 2013 to 2016 do the following (download size 4.5GB aprox)
yum erase texlive texlive*
Download the package from: https://www.systutorials.com/go/texlive-download/
Install with:
./install-tl
And set the path in "~/.bashrc"
export PATH=/usr/local/texlive/2018/bin/x86_64-linux:$PATH

@vanajavamsi If you still without see the application, you can do the next:
Run directly from:

/root/go/bin/grafana-reporter

Assign the permissions:

chmod 4755 /root/go/bin/grafana-reporter

I create a service on systemd (Im using Centos 7).

/usr/lib/systemd/system/grafana-reporter.service

[Unit]
Description=grafana-reporter
Wants=network-online.target
After=network-online.target
[Service]
User=root
Type=notify
Restart=on-failure
ExecStart=/root/go/bin/grafana-reporter
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target

Enable on startup:

systemctl enable grafana-reporter
systemctl start grafana-reporter

Thanks for the extra help, @4rCh3r .
No more feedback from original poster, closing issue.

very helpful.  Thank you.

Hi thanks for you solution @4rCh3r  ! but the file out.pdf generated was empty
So how can i mention which Server i want to display on my generated report ?

Trying to get this running on windows,  any idea how can I get pdflatex?
2021/04/21 14:12:59 Calling LaTeX - preprocessing
2021/04/21 14:12:59 Error generating report: error calling LaTeX preprocessing: "exec: "pdflatex": executable file not found in %PATH%". Latex preprocessing failed with output:


signal-desktop: 7.22.0 -> 7.22.2, -aarch64: 7.19.0 -> 7.20.0

Description of changes
Updates:

amd64:

https://github.com/signalapp/Signal-Desktop/releases/tag/v7.22.1
https://github.com/signalapp/Signal-Desktop/releases/tag/v7.22.2
https://github.com/signalapp/Signal-Desktop/releases/tag/v7.23.0

amd64-beta: https://github.com/signalapp/Signal-Desktop/releases/tag/v7.24.0-beta.1
aarch64:

https://github.com/0mniteck/Signal-Desktop-Mobian/releases/tag/7.20.0
https://github.com/0mniteck/Signal-Desktop-Mobian/releases/tag/7.23.0

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Not sure why ofborg didn’t ping me for this. The hash is wrong for AArch64 (unfortunately due to the emoji stripping you can’t just use nix-prefetch-url, it actually requires an AArch64 machine… we really need to build this from source already).

Not sure why ofborg didn’t ping me for this. The hash is wrong for AArch64 (unfortunately due to the emoji stripping you can’t just use nix-prefetch-url, it actually requires an AArch64 machine… we really need to build this from source already).
Thankfully ofborg has given the correct hash in the error.

Is there a way to try building it through some sort of emulation? I don't have any aarch64 machines. Side note, I just saw this and didn't notice when making a new PR, so I'll move those changes to here and close that one :sweat_smile: after we get the error again I'll fix the hash :grin:

If you’re on NixOS, you can just set boot.binfmt.emulatedSystems = [ "aarch64-linux" ];, or I think you could also do pkgsCross.aarch64-multiplatform.signal-desktop.src since it’s a FOD, but it might have to build a lot, not sure.

FWIW, the hash is sha256-fQb2nYE1+q6DNcMF0z5NadGlffYaCFNgcu8IIGVUtf8= :)

@equirosa Any update on this? (Looks like there’s been a new release again.)


Implement ScalarValue::TimestampNanosecond -> String Support

Is your feature request related to a problem or challenge?
Part of #9494 to complete support for Unparsing LogicalPlan to SQL String.
Converting LogicalPlans back to SQL is valuable for several usecases such as using DataFusion in federated databases (e.g. generate SQL to push down) or using DataFusion's expr APIs to programmatically create SQL.
Describe the solution you'd like
Support converting expression that are scalar timestamp values:
Here ts is a column with the schema: Timestamp(Millisecond, None)
> describe timestamp_test;
+----------------+------------------------------+-------------+
| column_name    | data_type                    | is_nullable |
+----------------+------------------------------+-------------+
...
| time           | Timestamp(Millisecond, None) | YES         |

sql> select * from timestamp_test where ts > '2024-01-01';
External error: This feature is not implemented: Unsupported DataType: conversion: Timestamp(Nanosecond, None)

The logical plan derived from parsing the above query should be able to be turned back into SQL.
Describe alternatives you've considered
The basic pattern is:
Implement the Expr --> AST reverse code in Unparser::expr_to_sql(source link)
Add a test to expr_to_sql_ok
Note you can run the tests like
cargo test -p datafusion-sql -- expr_to_sql_ok

Additional context
No response

take


[@ngtools/webpack] Webpack cannot distinguish on context and would fail to load the proper one.

Versions
node: v8.11.0
npm: 5.7.1
Windows 10

"@angular/animations": "5.2.9",
"@angular/cdk": "5.2.4",
"@angular/common": "5.2.9",
"@angular/compiler": "5.2.9",
"@angular/core": "5.2.9",
"@angular/forms": "5.2.9",
"@angular/http": "5.2.9",
"@angular/platform-browser": "5.2.9",
"@angular/platform-browser-dynamic": "5.2.9",
"@angular/router": "5.2.9",
"@angular/compiler-cli": "5.2.9",
"@ngtools/webpack": "1.10.2",
"typescript": "2.7.2",
"webpack": "3.11.0",

Repro steps
app-routing.module.ts
export const ROUTES: Routes = [
    {
        loadChildren: "./student/student.module#StudentModule",
        path: "student",
    },
];

student-routing.module.ts
export const ROUTES: Routes = [
     {
         loadChildren: "./question/question.module#QuestionModule",
         path: "question",
     },
     {
         loadChildren: "./settings/settings.module#SettingsModule",
         path: "settings",
     },
];

question-routing.module.ts
export const ROUTES: Routes = [
     {
         loadChildren: "./settings/settings.module#SettingsModule",
         path: "settings",
     },
];

Observed behavior
ERROR in NaNbut they point to different modules "(C:/Projects/Web/App/src/student/settings/settings.module.ts and "C:/Projects/Web/App/src/student/questions/settings/settings.module.ts"). Webpack cannot distinguish on context and would fail to load the proper one.

Desired behavior
We have a lot of modules with the same names (settings, instructions, etc.), but they are belong to different parents with different urls, they are not exported outside of the parent's scope. It works fine with awesome-typescript-loader, angular-router-loader and angular2-template-loader. We expected the same behavior with @ngtools/webpack.
Mention any other details that might be useful (optional)
I removed all other lazy modules from the project to check and this issue was still there.
Tried to use absolute paths as described here https://github.com/angular/angular-cli/issues/8722#issuecomment-366002955, but had another issue
ERROR in Could not resolve module App/src/student/student.module relative to C:/Projects/Web/App/src/app-routing.module.ts
tsconfig.json
{
  "compilerOptions": {
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [ "es2015", "dom" ],
    "module": "commonjs",
    "moduleResolution": "node",
    "removeComments": true,
    "skipLibCheck": true,
    "sourceMap": true,
    "target": "es5"
  },
  "exclude": [
    "node_modules"
  ]
}

webpack.config
const srcPath = path.resolve(__dirname, "App/src");

module.exports = {
    entry: {
        app: srcPath + "/main.ts",
        polyfills: srcPath + "/polyfills.ts",
        vendor: srcPath + "/vendor.ts",
    },
    resolve: {
        extensions: [".ts", ".js"],
    },
    module: {
        loaders: [
            {
                    test: /(?:\.ngfactory\.js|\.ngstyle\.js|\.ts)$/,
                    loader: "@ngtools/webpack",
            },
        ]
    },
    plugins: [
            new AngularCompilerPlugin({
                tsConfigPath: "./tsconfig.json",
                entryModule: "./App/src/app.module#AppModule",
            }),
            new webpack.optimize.ModuleConcatenationPlugin(),
            new HardSourceWebpackPlugin(),
    ]
};

I also had trouble with this. Didn't understand why absolute paths wouldn't work. The solution is that you have to be aware where your baseUrl is. See this comment on Stack Overflow: https://stackoverflow.com/questions/47601637/angular-4-could-not-resolve-submodule-for-for-routing#comment88223393_48028980
E.g., if you have "baseUrl": "./" in your root tsconfig.json, your absolute path probably begins with src/app/….
E.g., if you have "baseUrl": "./" in your src tsconfig.app.json, your absolute path probably beings with app/….
It all depends on how you set up your project structure and named your directories. In my case, I had to prepend a src/ to my absolute paths.

Are you still able to reproduce this issue with the latest version?

thx, so I understand the nature of the error

@mgechev 's work around solution will not work if you are using AOT. refer https://github.com/angular/angular/issues/23878
Rather another workaround I used in this instance would be to navigate back one directory level to distinguish the the path for loadchildren. This will only work if you have a folder structure that can accommodate this.
export const ROUTES: Routes = [
     {
         loadChildren: "../<whatever the folder name of parent module>/settings/settings.module#SettingsModule",
         path: "settings",
     },
];

I'm too lazy to rename my files for a temporary solution.

same issue here :(

Currently this is working as intended.

The undocumented, surprising behavior is working as intended?

This is bad DX, so I'd suggest to keep the issue open until we figure out how to improve.

What is DX?

Hello Everyone,
@farajfarook, thank you for your note, I resolve the issue in that way:
export const ROUTES: Routes = [
     {
         loadChildren: "../<whatever the folder name of parent module>/<some_prefix_1>settings/settings.module#SettingsModule",
         path: "settings",
     },
];
export const ROUTES: Routes = [
     {
         loadChildren: "../<whatever the folder name of parent module>/<some_prefix_2>settings/settings.module#SettingsModule",
         path: "settings",
     },
];

Thank you one more time!

@farajfarook  Thanks for save my day :)

Closing this since the string-based loadChildren has been deprecated.
Please see https://angular.io/api/router/LoadChildrenCallback


Update chip docker usage to 0.5.25

Problem
We have updated dockerhub images
Change overview
Update to use the latest dockerhub image
Testing
CI validates the ability to use the new images. Most images are unchanged.

Cirque failures seems real. Will see with @yunhanw-google what needs to be done. Very likely images 0.5.25 should not be used (I could do a partial update, however I do not believe we gain much - 0.5.24 was explictly for cirque and 0.5.25 is only a size/usage optimization for one of the docker files.

Closing: changing not viable due to cirque failing.

/rebase