[shapes] DrawPolyEx() not working in latest build

The following code draws a triangle in 2.0.0 but in 2.2-dev doesn't display anything at all for me. Though it doesn't give any errors either:
Vector2 vec[] = { { 0,0 }, { 0, 200 }, { 200, 200 } };
DrawPolyEx( vec, 3, BLUE);

Corrected in commit https://github.com/raysan5/raylib/commit/92f68ac6be5b85b85ebab64841c8322405e08d51

Thanks for looking into it Ray. Your commit does fix DrawPolyEx but it seems to interfere with texture drawing now.
I’ve put DrawPolyEx into the textures_logo_raylib.c example and the code below produces a garbled image for me:
#include "raylib.h"
int main() {
    int screenWidth = 800;
    int screenHeight = 450;
    InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture loading and drawing");
    Texture2D texture = LoadTexture("resources/raylib_logo.png");
    while (!WindowShouldClose())   {
        BeginDrawing();
            ClearBackground(RAYWHITE);

	    Vector2 vec[] = { { 0,0 }, { 0, 200 }, { 200, 200 } };
	    DrawPolyEx( vec, 3, BLUE);

            DrawTexture(texture, screenWidth/2 - texture.width/2, screenHeight/2 - texture.height/2, WHITE);
            DrawText("this IS a texture!", 360, 370, 10, GRAY);
        EndDrawing();
    }
    UnloadTexture(texture);
    CloseWindow();
    return 0;
}

Hopefully, corrected in commit https://github.com/raysan5/raylib/commit/af4a177af41064db5ebf9a28dcac9eb178cd7fa9.
Thanks for reporting this side case, it was a specific situation (draw just a triangle before a quad).

Sorry, but I’m still seeing some problems with this. It has to do with doing lots of DrawPolyEx combined with DrawTextures.
The following code uses DrawPolyEx and DrawTexture 129 times before displaying the result. What I get is a white square instead of the raylib logo texture on the last texture rendered:
#include "raylib.h"
int main() {
    int screenWidth = 800;
    int screenHeight = 450;
    InitWindow(screenWidth, screenHeight, "raylib [textures] example - texture loading and drawing");
    Texture2D texture = LoadTexture("resources/raylib_logo.png");

    while (!WindowShouldClose()) {
        BeginDrawing();
        ClearBackground(RAYWHITE);
	    Vector2 vec[] = { { 0,0 }, { 0, 200 }, { 200, 200 } };

		for( int i = 0; i < 129; i++ ) {
			DrawPolyEx( vec, 3, BLUE );
            DrawTexture(texture, screenWidth/2 - texture.width/2 + i , screenHeight/2 - texture.height/2 + i , WHITE);
	}
        EndDrawing();
    }
    UnloadTexture(texture);
    CloseWindow();
    return 0;
}

DrawTexture offsets slight using “i” every time so you can tell it’s just the last texture that doesn’t get displayed.
If you change it to only draw 128 times the problem disappears but above that some of the textures only displays a white square. It seems to be related to DrawPolyEx since if I replace that with DrawTriangle everything works.
I’m making a racing game where the road is drawn in segments using DrawPolyEx so I call it upwards of 1000 times every frame combined with lots of calls to DrawTexture for sprites. That’s how I found it.

Ouch! What a nightmare! :P
Ok, that's related to internal system of registering draw calls and also this:
#define MAX_DRAWCALL_REGISTERED 256

DrawPolyEx() uses TRIANGLES and DrawTexture() uses QUADS, when changing from one to the other, a new draw call is registered, that limit is not supposed to be hit... it's more common to fill the buffers first and everything is reseted accordingly at that point... but your specific configuration forces that limit, quite interesting you found it!
There is a specific check to avoid that overflow but it seems not to trigger properly... I'll check it.
In the meantime, just a recommendation, better use:
for (int i = 0; i < 200; i++) DrawPolyEx(vec, 3, BLUE);
for (int i = 0; i < 200; i++) DrawTexture(texture, screenWidth/2 - texture.width/2 + i , screenHeight/2 - texture.height/2 + i , WHITE);

It will reduce draw calls from 256+ to 2, it's a good optimization.

Does this have something to do with some architectural change since it worked in 2.0.0?

Yes, I replaced the 3 separate internal buffers (LINES, TRIANGLES, QUADS) by a single one to optimize and simplify lot of redundant code (and other related problems of dealing with 3 separate buffers), consequently and as expected, new issues were introduced. You could be lazy before because data was internally directed to different buffers but, for example LINES were always drawn in front of QUADS and QUADS in front of TRIANGLES, that was the buffers processing order... Also, dealing with 3 buffers implied several extra context changes that now are avoided with a single buffer.
Already corrected DrawPolyEx() issue on commit https://github.com/raysan5/raylib/commit/95d3f24c686c09c458bedeb6486ffc75dfda4170.

It seems like this is broken again. I'm on the latest git commit. Also, DrawPolyLines() is not drawing all the lines for a closed polygon, the last line connecting the end and the start is missing.

@MontyHimself please, could you provide a code example? thanks!

@raysan5 Sure, here you go:
#include "raylib.h"

int main(void) {
	InitWindow(400, 400, "example");

	Vector2 points[3] = {
		{100, 100},
		{200, 100},
		{100, 200}
	};

	while (!WindowShouldClose()) {
		BeginDrawing();
		ClearBackground(RAYWHITE);
		DrawPolyEx(points, 3, BLUE);
		DrawPolyExLines(points, 3, RED);
		EndDrawing();
	}

	CloseWindow();
	return 0;
}

I checked it and it's working as expected but probably function names are not descriptive enough...

About DrawPolyEx(), points are expected to be provided definning counter-clock-wise order triangles. flip second and third point and you will get the triangle drawn.

About DrawPolyExLines(), it just connects every point with the next one, and that's what it does.

As said probably the naming of those functions should be reviewed... another related issue was also introduced some days ago: https://github.com/raysan5/raylib/issues/797
Opening a related issue:


Potential follow up fix for #125

This is an attempt to fix our deployment over at https://github.com/leap-stc/leap-stc.github.io which broke after #125 (I foolishly used @main)
I think that the input names needed to be adjusted, but crucially I had to checkout the repo in the deploy workflow to get this to run.
I have confirmed that our main deployment and a test PR.
Overall I think this emphasizes the need for #6. Some sort of an end-to-end test would have presumably caught this?

I think this will fix the preview deployment problem #130. In the interest of moving things forward, I'm going to merge this now.
I don't understand why it should be necessary to checkout the repo during the deploy workflow, but I'll take a look at that separately. I will also work on removing the CNAME input.


Fix missing parents and commits

This is a follow-up to #25. Today I learned about git-replace which is a way to replace objects without rewriting the history. In particular, it has a special feature to replace a commit by an identical commit just with different parents. This allows to re-add all missing parents without breaking anything (i.e., no force pushes, broken branches etc.). As far as I understood, git also supports pushing and pulling these replacement references and while it seems they are cloned automatically, I am not sure they are pulled automatically when doing git pull. If we should decide to rewrite the history using git-filter-branch, this will persist the replacements.
Motivated by that, I got a correct mercurial import and wrote a script to get all missing parents. Doing that, I noticed that in fact not only parent pointers but actually 4 whole commits are missing. While I'm not sure yet how I'm sure it is possible to re-add them (directly with the correct parents) and then we can also reference them. Further, I would also like to check all remaining commits if they have got all parents they should have or if there are merge commits that have only one parent. To do list is thus:

[ ] Find a way to re-add the missing commits
[ ] Check not only commits without parents but all commits if any parents are missing
[ ] Check that this indeed fixes the history
[ ] Push changes to GitHub

Hi Michael, thanks for your work. What I do not completely understand from the documentation is how replace objects are pushed/pulled. According to some stackoverflow question, replace objects are not pulled automatically unless you change your local .git/config. If that is true, we have two options:

Document how to pull the replace objects so that contributers who want to bisect/blame can easily pull them while other people do not need to care. This would prevent us from cleaning up the history by removing large blobs.
Rewrite history to make the whole history accessible to everyone.

Maybe even a third option is interesting:

Make a history branch that contains the full history in a separate repository. Squash the Dev branch to a single commit that is "clean" (i.e. does not contain large blobs). Add a replacement object that replaces this commit by the last commit of the history branch. Pro: From now on the repository is clean while the history can still be accessed and does not need to be rewritten (SHA1s remain accurate). Con: Still requires a force push to Dev and without pulling history, the history is even more shallow.

I also did not fully understand how push/pull works but I also assume it is not automatic. However, I got the impression that on an initial clone the replace objects are fetched so this might only affect existing clones. We can test that once I have a first version of the replace objects. Concerning the different options:

I would prefer this option as a first step. It does not break anything but fixes the problem for those who care. Note that this does not prevent us from cleaning up the history because the moment you rewrite the history using git filter-branch to remove large objects, the history is rewritten using the replace objects, i.e., the history is automatically fixed and persisted. If you want to use a different tool like BFG Repo-Cleaner, you could still run git filter-branch to persist the fixed history first.
I would choose this option if we want to rewrite the history to remove large objects.
I do not really see the advantage of this option. I think the only advantage would be that we could keep the history of the big blobs while cleaning the history. However, this would still imply all disadvantages of the second option with the additional disadvantage that without having the history branch, anything forked before the Dev snapshot is much harder to rebase as the parent commit is missing from the new Dev branch.

I agree that the first variant is our best option for a first step. The advantage of the last option would be that existing commit identifiers remain correct. In other words, if there are references to commits (e.g. in commit messages or issues like ("Fix a bug introduced in 12ab34cd"), parent pointers from commits in out-of-tree branches), those would still be correct once the history branch is pulled.

A short update on this: I have a python script for fixing the history that seems to be working and able to restore not just the missing parent pointers but also the 99 missing commits. I will have a closer look at the created commits on Monday and, if everything looks okay, upload them to my personal fork so we can test them.
From some more reading, it seems that replace refs are neither cloned automatically nor displayed on GitHub (see e.g. [here] (https://wiki.mozilla.org/GitHub/Gecko_Repositories)).

Form a short check, the new commits look good. I have just pushed them to my fork. Note that they are not visible on GitHub. However, you should be able to fetch them by running
git fetch https://github.com/michitux/networkit.git 'refs/replace/*:refs/replace/*'

inside your clone of NetworKit. After this download of around 150 KiB, your (local) history should be fixed, you should now have only one commit without parents and all missing commits should be there. All git commands like blame, log or show will show the new version instead of the old commits. @avdgrinten If you want you can push them to the main repository by just pushing instead of fetching the references. Then the only missing part for solution "1" would be to add some documentation how to get the references.


Leetcode Question Number 103

Leetcode Question Number 103 soultion needs to be added in the repo .
The link for the question is this.
Accepted Languages C++ / JAVA .
You Only need to add the  class Solution in the file.
Make Sure you have read the contributions guidelines before creating an PR.

please assign me this question. I want to contribute


Migrate to @react-native-community/react-native-datetimepicker

This PR captures the work needed to migrate to the new @react-native-community/react-native-datetimepicker.
Setup:

[x] Added @react-native-community/react-native-datetimepicker
[x] Updated the dependencies
[x] Updated the example

IOS:

[x] Implemented @react-native-community/react-native-datetimepicker
[x] Simplified the API, removed a few style props (users can still supply their own version of the header/buttons)
[ ] Find a workaround to this RN issue, easily reproducible by touching the picker without changing the selected value
[x] Moved out of react-native-modal

Android:

[x] Implemented @react-native-community/react-native-datetimepicker
[x] Simplified the API

Docs:

[x] Update README.md

Deprecated props:
A few prop names are going to be changed (the old name will still work though).
- titleIOS → headerTextIOS
- customTitleContainerIOS → customHeaderIOS
- onHideAfterConfirm → onHide
- customDatePickerIOS → customPickerIOS
Breaking changes:
The following props are not supported anymore:

cancelTextStyle → Please use customCancelButtonIOS to override the component instead
confirmTextStyle → Please use customConfirmButtonIOS to override the component instead
datePickerModeAndroid → Please use the display prop of  @react-native-community/react-native-datetimepicker instead
dismissOnBackdropPressIOS → This is now the default behaviour on iOS
hideTitleContainerIOS → Please set customHeaderIOS to null instead
neverDisableConfirmIOS→ This behaviour was causing a few issues with the new picker
pickerRefCb→ Not supported by the new picker
reactNativeModalPropsIOS → react-native-modal is not being used anymore

Just an FYI - the new repo does not work with Expo. For now, I will continue using this existing repo until the new repo works on Expo.

Following #276:
@shahzore-qureshi thanks for reporting! Do you know if the issue is already being tracked in the react-native-datepicker repo?

Hey @mmazzarolo - I'm going to subscribe to this issue, and if you push an rc to npmjs.com with the @next tag I'll pull it down and test if you like, before release. I use this library and doing a quick build+test is simple enough, if that helps. Cheers

@mikehardy thank you sir!
I'll release a rc in the next few days.

@mikehardy since we're using semantic-release it's a bit complex publishing an rc.
I think you can test it with the following command:
npm i mmazzarolo/react-native-modal-datetime-picker#pull/262/head
or
yarn add mmazzarolo/react-native-modal-datetime-picker#262/head
More info here.
Let me know how it goes and thank you!

I am jealous of your semantic-release-ness then ;-), I can use a commit-ish thing like that to pull the code and check it yeah, I'll let you know

Ok - I made a note on the package.json dependency vs peerDependency and documentation on the actual datetimepicker dependency change - that's easy enough
I had to do a pretty deep-clean (react-native-clean-project's 'wipe iOS build' option) in order for the iOS build to be good but that's a toolchain issue not your module, maybe worth a mention though - I forget the error but it was a redbox in dev about some RNxxx symbol that looked related. I should have taken a screenshot, sorry
Finally, in iOS everything seems fine for my simple use case but Android had an issue where if I cancel the modal goes away but if I hit OK it goes away then pops back, and I have to hit OK a second time before it truly dismisses. Both times my handler is called. I moved the setState for isVisible on the date picker to the first chunk of state I changed in my handler and that seemed to work fine but wasn't important before :man_shrugging:
All in all, I'd say it looks good but my case is simple. Hopefully my feedback helps
my use case:

  _showDatePicker = () => this.setState({ datePickerVisible: true });
  _hideDatePicker = () => this.setState({ datePickerVisible: false });

  _handleDatePicked = (date: Date) => {
    console.log('a date was picked: ', date);
    console.log('date in milliseconds: ' + date.getTime());
    this._hideDatePicker(); // <--- had to move this here, was above the console.log before
    let updatedUser: User = this.state.user!;
    updatedUser.dateOfBirth = date.getTime();
    this.setState({ user: updatedUser });
    //console.log('user date in millis: ' + this.state.user!.dateOfBirth);
  };

                    <DateTimePicker
                      date={
                        this.state.user && this.state.user.dateOfBirth
                          ? new Date(this.state.user!.dateOfBirth!)
                          : new Date()
                      }
                      isVisible={this.state.datePickerVisible}
                      onConfirm={this._handleDatePicked}
                      onCancel={this._hideDatePicker}
                    />

I had to do a pretty deep-clean (react-native-clean-project's 'wipe iOS build' option) in order for the iOS build to be good but that's a toolchain issue not your module, maybe worth a mention though - I forget the error but it was a redbox in dev about some RNxxx symbol that looked related. I should have taken a screenshot, sorry

Gotcha, thanks for reporting.

Finally, in iOS everything seems fine for my simple use case but Android had an issue where if I cancel the modal goes away but if I hit OK it goes away then pops back, and I have to hit OK a second time before it truly dismisses. Both times my handler is called. I moved the setState for isVisible on the date picker to the first chunk of state I changed in my handler and that seemed to work fine but wasn't important before 🤷♂

This sounds like a bug on our side. I wasn't able to reproduce it yet but I'll work on it.

Hopefully my feedback helps

I does, thanks! 🙌

I really can't reproduce the issue 🤷♀
Anyone willing to test this PR a bit more?

I can't see how that show/hide state thing could be a problem with this library really. I might be having some other thing since my versions are all pretty bleeding - could be tough to reproduce and I don't have the time to try again, sorry - just can say that other than that it worked perfectly?
My tests were on node 12.10.0 with packages at yarn upgrade --latest

Moved to #299


[Workers] Add details on local data and how to interact with it

Addresses #13493

I think @penalosa was against the usage of the words "preview data", tagging for review

@admah could we remove "preview" from this? Workers don't really have preview data stores (even if we try and fake it in Wrangler with preview_id and the like)

closes #14079

closes #13493


Wait for desired state during cleanup

Coverage decreased (-0.2%) to 53.619% when pulling f67bbbb5feb1b54e30d4fc7b4d90774b5eab900f on improve_cleanup_robustness into 195f5846d07f4abb93db5dff3d34dd4bca2a1b95 on master.


PBR addon't wont work

Using 0.4 alpha. The only enhancement addon working - Water. Any other (Mirror, default PBR, for specific map) does not works

Thanks for the report! I'll see why the hash update to gmod.exe didn't replace the mirror, might have to manually tweak the mod.usda file. If that doesn't work I'll just make a new mod file from scratch for it, will report back.


Generate Auto instances with TH

Template haskell to generate Auto instances, closes #2
I've added doctest, it can be added elsewhere, but did not add it to travis yet.

@mstksg I actually thought that autoTC would somehow work without these instances, but it doesn't seem to - it still requires these instances. It's tested in the last commit. Maybe I am missing something - let me know.


Editable sections

Context
With continuous applications we’re going to allow candidates to edit most of their application form sections after submitting an application choice.
We’re doing this to enable candidates to action feedback that they may receive on rejected applications and also to alleviate support burden for tasks like updating an address (which candidates can’t currently do themselves).

I addressed all comments from the PR and from our discussion earlier. 🚀


Added station services

fixes #203
Description of Changes
This PR encourages the booking functionality of services at a specific station by fetching all the available services with count.
It has suggestions for stations in the database from which one  can select the desired station to proceed with the booking.
It has backend routes and controllers for fetching all stations , creating a station, fetching stations bookings,  fetching coolies , wheelchairs and cloakroom for a station by Id.
Also i migrated the bookings component from pages/booking.jsx to components/BookingForm.jsx and updated the routes for improving modularity of the code.
Type of Pull Request

[ ] Bug Fix
[X] New Feature
[ ] Performance Improvement
[ ] Documentation Update
[ ] Code Refactoring
[ ] Security Enhancement
[ ] Other (Specify): _______________

https://github.com/user-attachments/assets/ebf5930f-0171-4383-ad42-12997c599bfe
Screenshots / Demo (if applicable)
(https://github.com/user-attachments/assets/896372ca-424d-454e-9b59-2b2408cfa31c)
get all stations:

get all stations booking by id:

get station coolie booking:

get station wheelchair booking:

Checklist for Contributor
use'X' in [X] to check it .

[X] I have reviewed my code before submission.
[X] I have read and followed the project's Contribution Guidelines.
[X] I have tested the code thoroughly.
[X] I have attached related issue numbers, screenshots, or videos (if applicable).
[X] I have added comments to my code where necessary for clarity.
[X] I have checked the existing code base and my changes do not introduce any breaking changes.
[X] My PR addresses only one issue; I have created separate PRs for other issues.
[X] I have ensured that the PR does not include unrelated files.
[X] I am mindful of the project's coding standards and best practices.

Additional Information
[Include any additional context or relevant information that may help in reviewing this PR.]
Contribution Guidelines Reminder
Thank you for contributing to our project! Please ensure you follow the guidelines below:
Contribution Levels

Task Categories:

Basic Tasks: Primarily focused on small changes like minor bug fixes, documentation improvements, and unit testing. Labeled as Easy.
Intermediate Tasks: Moderate-level tasks that involve enhancing existing features, code refactoring, or performance improvements. Labeled as Medium.
Advanced Tasks: Complex tasks like building new features, significant refactoring, or critical bug fixes. Labeled as Hard.

Acknowledging Effort:

Exceptional contributions will be recognized with a higher contribution level if substantial effort and innovation are demonstrated.

Review Process

PRs will be reviewed by the maintainers, and feedback will be provided. Contributors should address feedback promptly and resubmit the PR if necessary.

Contributors are encouraged to participate in the review process of other PRs for community growth.

We appreciate your time and effort in improving this project and look forward to your valuable contributions!

@haseebzaki-07 good but add booking.jsx in pages folder only don't add it in component
also share video of working of backend i am unable to see in hosting

@dhairyagothi sure I will add the bookings back in pages and please explain me what you want to see in the backend as these are all the changes I have made.

@dhairyagothi You wont be able to see the backend functioning without a database.

@haseebzaki-07  i know that but there is problem in deployment in backend on vercel
i kust want to check how changes is working with backend

great work @haseebzaki-07 kudos to you thankyou so much

@dhairyagothi it's my pleasure


fix: Update express-session MemoryStore

#minor
Description
This PR replaces the express-session internal store with a custom one (MemoryStore) to reduce possible memory leaks.
Memory leak warning (more information):

Warning The default server-side session storage, MemoryStore, is purposely not designed for a production environment. It will leak memory under most conditions, does not scale past a single process, and is meant for debugging and developing.
For a list of stores, see compatible session stores.

Screenshots
The following image shows the before and after the implementation of the new store.

no longer required


Any plan to support SSO logins?

It would be great to have SSO login support for the OdooClient.

I almost sure it is not possible without dedicated custom module on Odoo side.
The purpose of this library is to perform rpc calls and get session from cookies.
This feature looks like task for separate dart library + Odoo module.

@lem8r Thanks for the reply, I totally agree. I think I will need a separate way(using http client) to fetch session then initialize OdooClient after that with the OdooSession.


devbox setting PS1 breaks shell themes like powerlevel10k

As per here: https://github.com/jetpack-io/devbox/blob/6f39e906cd5f58219618dcb1b3b50fb3520cd065/nix/nix.go#L59
Blindly setting PS1 can mess with custom themes for folks' shell prompts. I personally found it enough just to have the environment variable but I know others asked for it. Perhaps tweaking the shell can be optional?

Thanks for the feedback. Some ideas to address this:

Make it an option during installation ("Do you want Jetpack to add an indicator to your prompt?")

Provide users with a snippet that they can add to their shell profile

Add an Env variable that toggles off the default indicator (so developers can configure their own using the environment variable).

Personally, the third option seems best. If folks are running custom themes, chances are they're comfortable with environment tweaking (and perhaps the theme itself) to address toggling the behavior.
If you did the first option, would folks have to re-install to change the behavior? Across workstations? That could get tiring.
And the second option works but I think environment vars are more accessible and portable across shells and OS'es.
My 2 cents anyhow :) Thanks for considering this!

I agree that controlling the prompt customization with an env var is the best bet. We could...

Check if DEVBOX_NO_PROMPT is set. If it is, don't change PS1 in the post-init hook.
Introduce a DEVBOX_PROMPT env var.

If left unset, we default to the current behavior of updating the prompt.
If set to empty, we leave the prompt alone.
If set to anything else, we change the prompt to its value.

I'm not sure if DEVBOX_PROMPT would be more convenient than having users add if [ -n "$DEVBOX_SHELL_ENABLED" ]; then export PS1=foo; fi to their shell rc.

Just wanted to give an update here on how we're planning to fix this for the next release.
Now that devbox supports setting shell hooks in devbox.json, we're going to remove the builtin logic that sets the prompt entirely. Instead, devbox init will generate a devbox.json that sets a prompt by default with something like:
{
  "shell": {
    "init_hook": "export PS1='(devbox)$ '"
  }
}

That way the prompt can be disabled by simply removing or changing the hook.

Sounds reasonable to me! Are you still planning to export DEVBOX_SHELL_ENABLED?

Yep! DEVBOX_SHELL_ENABLED will still be there.


Android Kotlin: 09.30  How to use SearchView on ToolBar?

Description :scroll:

Give a step-by-step tutorial on How to use SearchView on ToolBar.
Required Documentation or Video or Audio.

Domain of Contribution :bar_chart:

[x] Android Dev (Kotlin)

References :
https://www.javatpoint.com/android-searchview-on-toolbar

Please Read it Carefully Before Contributing

Changes should be made in Android_Development_With_Kotlin/ directory under Android_Development_With_Kotlin branch.
Inside Android_Development_With_Kotlin/ directory creates a directory and names it according to the topic ( for this issue 09. Dynamic User Interface)
Inside 09. Dynamic User Interface/ directory add your task with subtopic number and name and make changes accordingly.
You have to push your PR to the Android_Development_With_Kotlin branch only.
You can take help to the references but don't simply try to copy it. Just explain in your own word.
This issue is for GWOC'21 contributors only.
You need to push in a single commit. If there exists more than one commit then you need to squash your commits into one commit.
Will assign you on a first come first serve basis.
Please try to complete your assigned task within 7 days. If you need some more time then, please inform mentors and supervisors.
If you have two previously assigned issues on Android-Kotlin pending then please first complete them.

Supervisor @rahulsain

Happy Contributing. Best of Luck.:sparkling_heart:

/assign


test: frontend jest ci/cd & minor fixes post-release

A re-do of #418 since I merged langchain before merging 418 into it. Also took the liberty to add some minor fixes I discovered, including updating tag in package files.


Shadow clone server crash

One of my players crashed the server while fighting a pirate from Chocolate Quest Repoured with the hammer from Nyx and using a shadow clone.
https://gist.github.com/Sereath/24a276a71697986497720a3d7bacbf68

I think I was able to fix it, took long enough right :S


Benchmarl automatically makes a video.

          > Benchmarl automatically makes a video.

In particular you might want to set these parameters
https://github.com/facebookresearch/BenchMARL/blob/a9309159d6d46d099bd3d395ef1c80a5227b007e/benchmarl/conf/experiment/base_experiment.yaml#L78-L80
and logges=[wandb]

Hello, good day.
I made the changes, but the video is not being created during execution. Please advise.
Thank you.
Originally posted by @armansouri9 in https://github.com/facebookresearch/BenchMARL/issues/104#issuecomment-2214131776

Hello,
Can you send more details about what environbment you are using?
Is the script running fine?
are other evaluation metrics reported?

hi.
the same issue.
when I run this script it doesn't make a video with wandb:
python benchmarl/run.py -m task=vmas/discovery algorithm=mappo experiment.max_n_iters=3 experiment.on_policy_collected_frames_per_batch=100 experiment.checkpoint_interval=100 "experiment.loggers=[wandb]" model.activation_class="torch.nn.ReLU"
and Something worse is that the mean return is nan.
thank u.

Could you send the full config printed by hydra when the script starts?
important things to note here is to fully read and understand all the evaluation parameters in the experiment config.
also i think the value is nan because your number of collected frames is less than the max_steps or the episode length

Note that the default evaluation interval is 120_000 frames, so if you collect 100 frames per batch you will be served a video after 120 iterations

these are my configs:

Note that the default evaluation interval is 120_000 frames, so if you collect 100 frames per batch you will be served a video after 120 iterations

I can confirm that that this is the reason why you are not having any evaluation ran
als the resaon for NaNs is that you are collecting 100 frames per batch with 10 workers which means that you are getting 10 frames per worker at each iteration. Since max_steps is 100 you should see non-NaN rewards after 10 iterations more or less

thank you how to use .json file for plotting the result?
when I want to run eval_results.py it doesn't work.

This is my config>>

-base_experiment.yaml :
defaults:

experiment_config
self

The device for collection (e.g. cuda)
sampling_device: "cpu"
The device for training (e.g. cuda)
train_device: "cpu"
The device for the replay buffer of off-policy algorithms (e.g. cuda)
buffer_device: "cpu"
Whether to share the parameters of the policy within agent groups
share_policy_params: True
If an algorithm and an env support both continuous and discrete actions, what should be preferred
prefer_continuous_actions: True
If False collection is done using a collector (under no grad). If True, collection is done with gradients.
collect_with_grad: False
Discount factor
gamma: 0.9
Learning rate
lr: 0.00005
The epsilon parameter of the adam optimizer
adam_eps: 0.000001
Clips grad norm if true and clips grad value if false
clip_grad_norm: True
The value for the clipping, if null no clipping
clip_grad_val: 5
Whether to use soft or hard target updates
soft_target_update: True
If soft_target_update is True, this is its polyak_tau
polyak_tau: 0.005
If soft_target_update is False, this is the frequency of the hard trarget updates in terms of n_optimizer_steps
hard_target_update_frequency: 5
When an exploration wrapper is used. This is its initial epsilon for annealing
exploration_eps_init: 0.8
When an exploration wrapper is used. This is its final epsilon after annealing
exploration_eps_end: 0.01
Number of frames for annealing of exploration strategy in deterministic policy algorithms
If null it will default to max_n_frames / 3
exploration_anneal_frames: null
The maximum number of experiment iterations before the experiment terminates, exclusive with max_n_frames
max_n_iters: 10
Number of collected frames before ending, exclusive with max_n_iters
max_n_frames: 3_000_000
Number of frames collected and each experiment iteration
on_policy_collected_frames_per_batch: 6000
Number of environments used for collection
If the environment is vectorized, this will be the number of batched environments.
Otherwise batching will be simulated and each env will be run sequentially.
on_policy_n_envs_per_worker: 10
This is the number of times collected_frames_per_batch will be split into minibatches and trained
on_policy_n_minibatch_iters: 45
In on-policy algorithms the train_batch_size will be equal to the on_policy_collected_frames_per_batch
and it will be split into minibatches with this number of frames for training
on_policy_minibatch_size: 400
Number of frames collected and each experiment iteration
off_policy_collected_frames_per_batch: 6000
Number of environments used for collection
If the environment is vectorized, this will be the number of batched environments.
Otherwise batching will be simulated and each env will be run sequentially.
off_policy_n_envs_per_worker: 10
This is the number of times off_policy_train_batch_size will be sampled from the buffer and trained over.
off_policy_n_optimizer_steps: 1000
Number of frames used for each off_policy_n_optimizer_steps when training off-policy algorithms
off_policy_train_batch_size: 128
Maximum number of frames to keep in replay buffer memory for off-policy algorithms
off_policy_memory_size: 1_000_000
Number of random action frames to prefill the replay buffer with
off_policy_init_random_frames: 0
evaluation: True
Whether to render the evaluation (if rendering is available)
render: True
Frequency of evaluation in terms of collected frames (this should be a multiple of on/off_policy_collected_frames_per_batch)
evaluation_interval: 120_000
Number of episodes that evaluation is run on
evaluation_episodes: 2
If True, when stochastic policies are evaluated, their mode is taken, otherwise, if False, they are sampled
evaluation_deterministic_actions: True
List of loggers to use, options are: wandb, csv, tensorboard, mflow
loggers: [wandb]
Create a json folder as part of the output in the format of marl-eval
create_json: True
Absolute path to the folder where the experiment will log.
If null, this will default to the hydra output dir (if using hydra) or to the current folder when the script is run (if not).
save_folder: null
Absolute path to a checkpoint file where the experiment was saved. If null the experiment is started fresh.
restore_file: null
Interval for experiment saving in terms of collected frames (this should be a multiple of on/off_policy_collected_frames_per_batch).
Set it to 0 to disable checkpointing
checkpoint_interval: 0
Wether to checkpoint when the experiment is done
checkpoint_at_end: True
How many checkpoints to keep. As new checkpoints are taken, temporally older checkpoints are deleted to keep this number of
checkpoints. The checkpoint at the end is included in this number. Set to null to keep all checkpoints.
keep_checkpoints_num: 3

my command>>
python benchmarl/run.py algorithm=mappo task=vmas/balance "experiment.loggers=[wandb]"

But it is not built.

In your case, after 3 iterations you should se pannels named eval on wandb. One of them is eval/video
Do you see them?

I run the simple script to test making a video on balance with this script by default configuration:
python run.py -m task=vmas/balance algorithm=mappo
but after 19 iterations, got this error:

In your case, after 3 iterations you should se pannels named eval on wandb. One of them is eval/video
Do you see them?

No, such a folder is not visible.

In your case, after 3 iterations you should se pannels named eval on wandb. One of them is eval/video
Do you see them?

No, such a folder is not visible.

It is not a folder, it is a panel on the wanb interface https://wandb.ai/home
If you want a local video you shoud use experiment.loggers=[csv]

I run the simple script to test making a video on balance with this script by default configuration: python run.py -m task=vmas/balance algorithm=mappo but after 19 iterations, got this error:

it seems wandb does not have the privileges to symlink the json files

Thank you for your follow up
After 10 episodes, it didn't work.
command:
python run.py algorithm=mappo task=vmas/balance
result:

config:
defaults:

experiment_config
self

.# The device for collection (e.g. cuda)
sampling_device: "cpu"
.# The device for training (e.g. cuda)
train_device: "cpu"
.# The device for the replay buffer of off-policy algorithms (e.g. cuda)
buffer_device: "cpu"
.# Whether to share the parameters of the policy within agent groups
share_policy_params: True
.# If an algorithm and an env support both continuous and discrete actions, what should be preferred
prefer_continuous_actions: True
.# If False collection is done using a collector (under no grad). If True, collection is done with gradients.
collect_with_grad: False
.# Discount factor
gamma: 0.9
.# Learning rate
lr: 0.00005
.# The epsilon parameter of the adam optimizer
adam_eps: 0.000001
.# Clips grad norm if true and clips grad value if false
clip_grad_norm: True
.# The value for the clipping, if null no clipping
clip_grad_val: 5
.# Whether to use soft or hard target updates
soft_target_update: True
.# If soft_target_update is True, this is its polyak_tau
polyak_tau: 0.005
.# If soft_target_update is False, this is the frequency of the hard trarget updates in terms of n_optimizer_steps
hard_target_update_frequency: 5
.# When an exploration wrapper is used. This is its initial epsilon for annealing
exploration_eps_init: 0.8
.# When an exploration wrapper is used. This is its final epsilon after annealing
exploration_eps_end: 0.01
.# Number of frames for annealing of exploration strategy in deterministic policy algorithms
.# If null it will default to max_n_frames / 3
exploration_anneal_frames: null
.# The maximum number of experiment iterations before the experiment terminates, exclusive with max_n_frames
max_n_iters: 10
.# Number of collected frames before ending, exclusive with max_n_iters
max_n_frames: 3_000_000
.# Number of frames collected and each experiment iteration
on_policy_collected_frames_per_batch: 6000
.# Number of environments used for collection
.# If the environment is vectorized, this will be the number of batched environments.
.# Otherwise batching will be simulated and each env will be run sequentially.
on_policy_n_envs_per_worker: 10
.# This is the number of times collected_frames_per_batch will be split into minibatches and trained
on_policy_n_minibatch_iters: 45
.# In on-policy algorithms the train_batch_size will be equal to the on_policy_collected_frames_per_batch
.# and it will be split into minibatches with this number of frames for training
on_policy_minibatch_size: 400
.# Number of frames collected and each experiment iteration
off_policy_collected_frames_per_batch: 6000
.# Number of environments used for collection
.# If the environment is vectorized, this will be the number of batched environments.
.# Otherwise batching will be simulated and each env will be run sequentially.
off_policy_n_envs_per_worker: 10
.# This is the number of times off_policy_train_batch_size will be sampled from the buffer and trained over.
off_policy_n_optimizer_steps: 1000
.# Number of frames used for each off_policy_n_optimizer_steps when training off-policy algorithms
off_policy_train_batch_size: 128
.# Maximum number of frames to keep in replay buffer memory for off-policy algorithms
off_policy_memory_size: 1_000_000
.# Number of random action frames to prefill the replay buffer with
off_policy_init_random_frames: 0
evaluation: True
.# Whether to render the evaluation (if rendering is available)
render: True
.# Frequency of evaluation in terms of collected frames (this should be a multiple of on/off_policy_collected_frames_per_batch)
evaluation_interval: 120_000
.# Number of episodes that evaluation is run on
evaluation_episodes: 2
.# If True, when stochastic policies are evaluated, their mode is taken, otherwise, if False, they are sampled
evaluation_deterministic_actions: True
.# List of loggers to use, options are: wandb, csv, tensorboard, mflow
loggers: [csv]
.# Create a json folder as part of the output in the format of marl-eval
create_json: True
.# Absolute path to the folder where the experiment will log.
.# If null, this will default to the hydra output dir (if using hydra) or to the current folder when the script is run (if not).
save_folder: null
.# Absolute path to a checkpoint file where the experiment was saved. If null the experiment is started fresh.
restore_file: null
.# Interval for experiment saving in terms of collected frames (this should be a multiple of on/off_policy_collected_frames_per_batch).
.# Set it to 0 to disable checkpointing
checkpoint_interval: 0
.# Wether to checkpoint when the experiment is done
checkpoint_at_end: True
.# How many checkpoints to keep. As new checkpoints are taken, temporally older checkpoints are deleted to keep this number of
.# checkpoints. The checkpoint at the end is included in this number. Set to null to keep all checkpoints.
keep_checkpoints_num: 3

Change evaluation_interval to 6000

Done, thanks for your tips.


Slash commands doesn't work when entered in the comments box.

The extension does not trigger the action for the slash commands when entered in the comments section like it would do in the PR web link.  the extension treats it as contributor leaving a comment instead of triggering the action.

Extension version: 0.86.1 ( any version)
VSCode Version: 1.88.0
OS: Windows
Repository Clone Configuration (single repository/fork of an upstream repository): Enterprise repo
Github Product (Github.com/Github Enterprise version x.x.x): Github.com

Steps to Reproduce:

Create a PR
Enter a slash command ( in my case its custom slash command ) and click comment.

it basically takes a reviewer/contributor leaving review instead of actions

Yes. it goes through organization's auth page for sign in

@hnaganur do you have a button to "authorize" VS Code for your organization on that sign in page? If so, is it possible you skipped clicking on this "authorize" button and just signed in without authorizing?

Closing because no further info was provided.


FYI only: AVG Internet Security reports phishing - false alarm I assume

Describe the bug
AVG Internet Security reports phishing
To Reproduce
Steps to reproduce the behavior:

Make sure AVG is on
Goto the site e.g.:
--  https://factoriolab.github.io/list?z=eJwrcDLQMjMxMNDScjJQKyrQ0tIyi8.X0vKqA0IwFe-UCxZ0ygFSQHUgIX8tLc86zzq3Ord4l0CwrDGYzIOozAZTLq5QY-IzoAy1NA-QhCfQHLViLaAWJ6BC53S1MmMAZ6gjhQ__
See error from AVG popping up

Expected behavior
I'm sure this is an AVG false alarm. Or hope. I cannot get more information out of AVG beyond the screenshots, sorry.
Screenshots

Desktop (please complete the following information):

OS: Win10 latest patch level (Home, 20H2)
Browser: Chrome latest (Version 91.0.4472.106 (Official Build) (64-bit))

Additional context
Using AVG for a long also used Factoriolab recently for many weeks.
I don't say AVG is the best, but today was the first time I see this so I've added an exception as shown on the screenshot.
After checking the history I've found the same alert some days ago, but nothing before:

Thanks for the report! The site doesn't even have a login form, so it's definitely not phishing. Best guess it's that avg thinks the url is suspicious because of the state information zipped into it, but there may not be any way for me to flag to avg that it's safe. I'll look into it though.

I am getting an almost identical error with Avast Free Antivirus. I've been using the website for a while now, but Avast only started blocking it a couple days ago, also for "url:phishing". I am using Windows 10 with the Firefox browser. Whitelisting the site with Avast fixed it for me, but others might have the same issue.

It is probable that they are using the same threat database or algorithm. I hope I can find a way to address the root cause.

I submitted a false positive report to both AVG and Avast, fingers crossed.

@B3lt3r @Liath0524 Could you please verify whether these warnings/errors still occur with AVG and Avast? I submitted false positive reports and as of this morning both companies have now said that they removed the false positive.

@B3lt3r @Liath0524 Could you please verify whether these warnings/errors still occur with AVG and Avast? I submitted false positive reports and as of this morning both companies have now said that they removed the false positive.

Confirmed! I've removed the exception from AVG and no alarms. Cool!

@B3lt3r @Liath0524 Could you please verify whether these warnings/errors still occur with AVG and Avast? I submitted false positive reports and as of this morning both companies have now said that they removed the false positive.

All working again without the exception here too. Thanks!

Thanks for following up! I will close this then.


Add dns_only tag for updating dns components

Fixes: https://github.com/samsung-cnct/kraken-lib/issues/869
This PR adds a "dns_only" tag to be used with up.sh. Users can modify images, image version or other DNS components in k2/ansible/roles/kraken.services/defaults/main.yaml and run up.sh --tags dns_only to apply the changes.

Please rebase.

@joejulian rebased - thanks!

E2E is being super flakey, but they are different tests failing each run, I think this is ready to go.


Auto-zoom to extent of loaded data

How to re-zoom when data is added?

If it's in initialViewState, subsequent changes don't seem to make a difference.
If it's in viewState, then the view is locked and can't be adjusted by user.

... Or maybe this doesn't matter, if my model is wrong and it will be set once at startup.

Fixed by #54: We assume the data provided is centered on the origin, and ranges +/- 1000.


.button.expand is broken by visibility classes

I get setting all buttons to display: inline except that should not be the case for .expand since on the largest size screen, you want it to be full-width, so why would you want it to be any less on a smaller screen where you pretty much blow up buttons?

I just realized this is being caused by the visibility classes setting display: inherit !important;

Honestly why do these classes not just define display: none; instead of setting the display value to something arbitrary?

It looks like the issue you mentioned is working fine with hide-for-large-up, please see this quick example: http://codepen.io/jnemeth/pen/eNrWbZ
Can you give us an example of your specific issue?

@jnemeth I think some links got crossed there. That seems to be unrelated, unless I'm missing something pre comment edits.
I don't know if the !important is the problem here, but I noted in another issue/pull request that it's likelt possible to ditch the dance of importants here if the specificity is matched on all the elements, like tables parts, which don't work correctly right now anyway.

@vita10gy A revert is not currently possible in CSS, but it's sorely needed. I imagine it would be really hard to implement, though. The initial keyword might help with some of it, but I'm also not fully sure what it does.
I'm not sure why inherit was originally used, but using an explicit value block would be just as problematic, because it would modify the behavior any non-block element when it comes back into view.
There's not an easy way around this implementation. The main way to get around it is to use containers for visibility, instead of applying the class directly to the element itself.
In Foundation 6 we'll add a set of mixins that recreate visibility classes, but also allow you to define a custom display property. It's more flexible and more semantic.
.element {
  @include show-for(medium, flex);
}

In fact, they're simple enough mixins that we could probably just add them to Foundation 5.

What I meant was, is there a way to do this where we don't need a revert of any form? We don't need to override a display:none with a display:"some" if we never set display:none where we don't mean it in the first place.

@vita10gy Ack, your correct, I wrote over the previous example in the same pen :(

@vita10gy You could invert the media queries by using max-width instead of min-width. That would prevent a reset from being necessary. For example, the CSS for .show-for-large would be:
@media screen and (max-width: 1023px) {
  .show-for-large {
    display: none !important;
  }
}

Now a reset value isn't necessary, because the display: none goes away at the large breakpoint. The problem with this is that it's not mobile first, which is very important to us at a team. Of course, the class itself is still essentially mobile first, but not the CSS. Mobile-first CSS, among other benefits, gives you an effective non-media-query-browser fallback, so inconsistent use of media queries could prove problematic.

I see where that might be an issue. I wonder if it wouldn't make sense to make an exception here however, because it can actually potentially cause issues.
Say you had <something class='list show-for-medium-only'>and .list had a display:list-item in it. Now you have dancing none/inherit/table-header-group/list-item where something is getting trounced.
Also, !important's are flying everywhere. even though in so many places foundation does a really really good job of not throwing around willy nilly so everything you override has to have them. (unlike what little bootstrap I've worked with and read complaints about) This, I think, can be fixed as-is by specificity matching though.
I blame css itself for combining two ideas into one property. It really should have been display:none and display:show, along the lines of visibility except not holding the space,  and then something like display-as for display-as:list-item display-as:inline-block etc. At the very least it doesn't seem like it should have been that hard to see a need for display:whatever-makes-sense-as-unnone

@vita10gy Finally got a chance to review this with the team, and we're definitely going to do it for Foundation 6. As for v5, hard to say if we can cleanly implement it without breaking things. (We've made that mistake before!)
Basically, the only reason not to do it is if we care about browsers that don't support media queries. In that case, your wires get crossed slightly, because those browsers will see the mobile styles of every component, expect elements that have .show-for* classes, which would be in desktop mode.
But we dropped IE8 ages ago, and we're willing to break the mobile-first rule for this one thing. Everything else in the framework should use min-width media queries though.

Sounds like a good plan.

@ProLoser, to your issue, I'd recommend wrapping problematic elements in a visibility class, rather than applying the class directly to the element. It's extra markup, yes, but if that concerns you, it's also fairly easy to recreate a visibility class in Sass:
.element {
  display: none;

  @media #{$medium-up} {
    display: block;
  }
}

For archival purposes: I ended up wrapping it in another element with the visibility class.

@ProLoser @gakimball Wrapping doesn't solve everything especially if you're trying to use some inline-block features. Consider you have this:

Whatever

.element {
  > p {
    display: inline-block;
  }
}

The goal is to center the two inline-block elements inside the parent container, but you want to hide the paragraph for larger screens. Adding hide-for-large-up won't solve it since display: inherit !important will kick in. And wrapping the paragraph won't work either since the wrapped div will also be display: inherit !important
I guess you would be able to reverse wrap it where you actually add a  inside of the
 tag but that won't necessarily hide the paragraph tag itself and may cause issues.

  Whatever

That was the first thing I tried too, but  is an inline element not an inline-block element.


Doc not available.

The Sweet Alert 2 API featured in the description returns 404.

Thank you for your contribution!
I'm closing this issue because the library is no longer under development/maintenance at SocialBase.


release: 0.8.0

Prepare 0.8.0 release PRs.
Test integration on many examples before merging and pushing images:

[x] Kubernetes (tested all demos)

Test HTCondor/Slurm compute backends again:

[ ] HTCondor (tested helloworld)
[ ] Slurm (tested roofit demo)

Shared components:

[x] pytest-reana (https://github.com/reanahub/pytest-reana/pull/92)
[x] reana-commons (https://github.com/reanahub/reana-commons/pull/317)
[x] reana-db (https://github.com/reanahub/reana-db/pull/154)

Cluster components:

[x] reana-job-controller (https://github.com/reanahub/reana-job-controller/pull/346)

[x] :whale: reanahub/reana-job-controller
[x] :whale: reanahub/reana-job-controller-htcondorcern-slurmcern

[x] reana-message-broker (https://github.com/reanahub/reana-message-broker/pull/44)

[x] :whale: reanahub/reana-message-broker

[x] reana-server (https://github.com/reanahub/reana-server/pull/420)

[x] :whale: reanahub/reana-server:0.8.0
[x] :whale: reanahub/reana-server:0.8.1

[x] reana-ui (https://github.com/reanahub/reana-ui/pull/207)

[x] :whale: reanahub/reana-ui

[x] reana-workflow-controller (https://github.com/reanahub/reana-workflow-controller/pull/422)

[x] :whale: reanahub/reana-workflow-controller

[x] reana-workflow-engine-cwl (https://github.com/reanahub/reana-workflow-engine-cwl/pull/212)

[x] :whale: reanahub/reana-workflow-engine-cwl

[x] reana-workflow-engine-serial (https://github.com/reanahub/reana-workflow-engine-serial/pull/156)

[x] :whale: reanahub/reana-workflow-engine-serial

[x] reana-workflow-engine-snakemake (https://github.com/reanahub/reana-workflow-engine-snakemake/pull/30)

[x] :whale: reanahub/reana-workflow-engine-snakemake

[x] reana-workflow-engine-yadage (https://github.com/reanahub/reana-workflow-engine-yadage/pull/215)

[x] :whale: reanahub/reana-workflow-engine-yadage

Client components:

[x] reana-client (https://github.com/reanahub/reana-client/pull/580)

Helm chart:

[x] reana (https://github.com/reanahub/reana/pull/595)
[x] test researcher-oriented helm installation method.

Docs:

[x] www.reana.io update (next branch) https://github.com/reanahub/www.reana.io/pull/68
[x] docs.reana.io update (next branch)

[x] "Migrating database" section https://github.com/reanahub/docs.reana.io/pull/97

[x] Blog posts:

[x] Release 0.8.0 https://github.com/reanahub/blog.reana.io/pull/19
[x] Snakemake https://github.com/reanahub/blog.reana.io/pull/16

Everything was released and published.


mispelling - extra quote in instructions. for "Escaping Literal Quotes in Strings"

Challenge Name
https://www.freecodecamp.com/challenges/escaping-literal-quotes-in-strings#?solution=var myStr%3B %2F%2F Change this line

myStr %3D "I am a \"double quoted\" string inside \"double quotes\""%3B

Issue Description

Mispelling
there is just an extra quote in the at the very bottom of the instructions
it says:
Variable myStr should equal to ("I am a "double quoted" string inside "double quotes"").
it should read:
Variable myStr should equal to ("I am a "double quoted" string inside "double quotes").
Browser Information

any browser

Browser Name, Version: any
Operating System: any
Mobile, Desktop, or Tablet: any

Your Code
not relevent
Screenshot

@spencer1573 the second quotation matches the beginning quote before the I so there is no typo. Happy coding!

totally didn't see that! oops!

grammatically there is a typo.   no punctuation to end the sentence.


Most zplug commands don't work properly in a script

I'm trying to setup zplug in a bootstrap script. But after I clone it and source it, when the script gets to zplug update --self I keep getting a __job_control:set:4: can't change option: monitor error.
If I run zplug update --self manually (in Terminal) it works. I'm guessing this has something to do with interactive vs non-interactive shell, but obviously the point of a bootstrap script is the latter…
What can I do?

Actually, running update, clean or clear from a script give the same error. So I'm guessing all of these commands don't work from scripts… Is there any way to do this?

What does your bootstrap script look like? Could you show us a set of minimal reproducible configs?

Ok, I'll try to explain my setup…
So the relevant part of the bootstrap script is
#curl -sfLo $ZPLUG_HOME/zplug --create-dirs https://git.io/zplug
git clone https://github.com/b4b4r07/zplug $ZPLUG_HOME

source $ZPLUG_HOME/zplug && zplug update --self # FIXME only works in Terminal
# Workaround hack
zplug="source $ZPLUG_HOME/zplug && zplug update --self && zplug load && killall Terminal"
osascript -l JavaScript -e "Application('Terminal').doScript('$zplug')"

to get zplug installed and setup to handle it's own updates.

Then I have a 'maintenance' script which runs periodically that, amongst other things, updates Homebrew/global npm packages/Ruby gems etc… So the relevant part of that is
zplug install
zplug update
zplug load
zplug clean #--force
zplug clear --force

Most of those commands result in the job_control error  unless run manually in a Terminal, except
zplug clear works from a script only with the --force option.
zplug clean works from a script even without --force.

My .zshenv then contains
source $ZPLUG_HOME/zplug
source $ZPLUG_HOME/plugins # List of plugins in this separate file
`zplug load` # FIXME causes consiquent scripts to exit unless ran in subshell like this

Basically I have a library of functions/aliases etc organised across different files which I want to be available from scripts as well as in Terminal, hence why I have everything in .zshenv, except stuff that's only relevant to Terminal, which I keep in .zshrc.
zplug seems like a nice way to modularise everything, but running into some problems… seemingly because it was written with only interactive shell in mind?

I think the main problem here is that zplug load results in an error if used in a script, so no plugins get sourced since I can't put zplug load into .zshenv, only into .zshrc, for interactive use.
If I hard code $ZPLUG_HOME/bin into $PATH, I can then access commands, but obviously this doesn't work for plugins which need to be sourced.
@NigoroJr Was this a design decision?

Thanks for elaborating. I see the problem. However, I can't seem to constantly reproduce it in my environment. That is, I had that problem on my Gentoo box but not on Mac. I've written a shell script that simply sources, checks, installs, loads, and updates the packages (all done in a vanilla environment independent of my current configs) and fed that into my crontab. The outputs from load and update are redirected into a file to see if they are working, and they both seem to have the right outputs. Yes, I do get the job_control error (which makes sense because it's for interactive shells) but at the end update seems to be working fine. I might be missing something in either of the environments though.
As for whether this is by design, I'm not quite sure; @b4b4r07 should be able to answer that question. However, I can certainly see the usefulness in updating from a non-interactive shell.

Thanks @NigoroJr. So I can get everything installed and updated with a little hackery, but as pointed out above…

the main problem here is that zplug load results in an error if used in a script, so no plugins get sourced since I can't put zplug load into .zshenv, only into .zshrc, for interactive use.

I did some more testing in a completely fresh environment on a virtual machine (I'm on Mac OS X), and it does boil down to the fact that zplug load doesn't work unless it's in an interactive shell, so that is definitely the real issue here.
@b4b4r07 I'd be happy to help out with a fix (already submitted PR #120), but I can't quite put my finger on why this fails from a script…

Hi, thank you for your issue.Do you publish your zsh configuration file? I want check your zshrc.

I want check your zshrc.

I tested on a completely fresh OS X with no .zshrc (just the following in .zshenv…) and and get the same behaviour.
source $ZPLUG_HOME/zplug
source $ZPLUG_HOME/plugins.zsh
if (! zplug check) zplug install
zplug load

I tried it again on a fresh Debian 8 VM but couldn't reproduce this issue. Could you describe the steps you took?
As for me:
Files
$HOME/test/test.zsh
#!/bin/zsh
test_func() {
    echo 'test'
}

$HOME/cronjob.zsh
#!/bin/zsh

export ZPLUG_HOME=$HOME/.zplug
source $ZPLUG_HOME/zplug

zplug clear --force
zplug "$HOME/test", from:local

zplug list

zplug check || zplug install

zplug load --verbose

if (( $+functions[test_func] )); then
    echo 'ok'
else
    echo 'nope'
fi

crontab
* * * * * $HOME/crontab.zsh > $HOME/zplug.log

Steps to reproduce

Wait for ~/zplug.log to be written
cat ~/zplug.log

Result (content of ~/zplug.log)
Remove cache file? [y/N]:
Removed
  =>  dir:/home/naoki/.zplug/repos/
/home/naoki/test  =>  from:local, dir:/home/naoki/test
  Loaded /home/naoki/test/test.zsh
ok

ping @danielbayley

Same here - im trying to build a updater-script for performing different updates (brew, cask and zsh plugins). But it says "zplug command not found"

@manuelbachl Do you have a reproducible zshrc and the steps you took?

I could show u the whole code, in there, there's a section where i call zplug update
#!/bin/bash

# helpers
function echo_task { echo -e '\033[1mTASK: '"$1"'\033[0m'; }
function echo_ok { echo -e '\033[33m'"$1"'\033[0m'; }
function echo_warn  { echo -e '\033[31mWARNING: '"$1"'\033[0m'; }

function runUpdates {
    case "$1" in
        'homebrew')
            echo "/// Homebrew"
            echo_task "Updating formulae"
            brew update
            echo_ok "Formulae updated"
            echo_task "Removing temporary files"
            brew cleanup
            echo_ok "Cleanup done"
            ;;
        'caskapps')
            echo "/// Cask"
            echo_task "Updating apps"
            brew cask update
            echo_ok "Cask apps updated"
            echo_task "Removing temporary files"
            brew cask cleanup
            echo_ok "Cleanup done"
            ;;
        'zshplugins')
            echo "/// oh-my-zsh "
            echo_task "Updating plugins"
            source $HOME/.zplug/zplug
            zplug update
            echo_ok "Zsh plugins updated"
            echo_task "Remove repositories which are no longer managed"
            zplug clean
            echo_ok "Cleanup done"
            echo_task "Remove the cache file"
            zplug clear
            echo_ok "Cleanup done"
            ;;
    esac
    echo
}

function cronmode {
    echo
    echo_warn "Running in cronmode!"
    echo
    if hash brew &> /dev/null;
    then
        runUpdates homebrew
    fi

    # Update cask apps
    if brew info brew-cask &> /dev/null;
    then
        runUpdates caskapps
    fi

    # Update oh-my-zsh plugins
    #if [ $SHELL == "/bin/zsh" ]
    #then
    #   runUpdates zshplugins
    #fi
}

function regularmode {
    # Update homebrew formulae
    if hash brew &> /dev/null;
    then
        read -p "Update homebrew formulae? <y/n> " prompt
        if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
            then
                runUpdates homebrew
        fi
    fi

    # Update cask apps
    if brew info brew-cask &> /dev/null;
    then
        read -p "Update cask apps? <y/n> " prompt
        if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
            then
                runUpdates caskapps
        fi
    fi

    # Update oh-my-zsh plugins
    if [ $SHELL == "/bin/zsh" ]
    then
       read -p "Update oh-my-zsh plugins? <y/n> " prompt
       if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
           then
               runUpdates zshplugins
       fi
    fi
}

if [ $# -eq 0 ]
    then
        regularmode
    else
        while getopts ":c" opt; do
            case $opt in
                c)
                    cronmode
                    ;;
                \?)
                    regularmode
                    ;;
            esac
        done
fi

it exits with this error:
/Users/admin/.zplug/zplug: line 65: syntax error near unexpected token `('
/Users/admin/.zplug/zplug: line 65: `function() {'
Updater.sh: line 32: zplug: command not found

That's probably because you have #!/bin/bash when zplug is meant to be used with zsh.

Ok, that would probably mean to wrewrite the script or split it into pieces? I'll give it a try in about an hour or so - ill give feedback

So, I now tryed to run this script:
#!/bin/zsh

# helpers
function echo_task { echo -e '\033[1mTASK: '"$1"'\033[0m'; }
function echo_ok { echo -e '\033[33m'"$1"'\033[0m'; }
function echo_warn  { echo -e '\033[31mWARNING: '"$1"'\033[0m'; }

echo "/// oh-my-zsh "
echo_task "Updating plugins"
source $HOME/.zplug/zplug
zplug update
echo_ok "Zsh plugins updated"
echo_task "Remove repositories which are no longer managed"
zplug clean
echo_ok "Cleanup done"
echo_task "Remove the cache file"
zplug clear
echo_ok "Cleanup done"

Still gettin the same error

And the steps that you took?

I dont understand what you mean? When i call this script just standalone, it doesnt work. When calling zplug  updateit fails instantly because zplug seems not defined...

Hmm.. it works under my environment (OS X 10.9.5, zsh 5.2). I noticed you're sourcing $HOME/.zplug/zplug. Try changing that to init.zsh.

hmmm.... using this command im getting this error:
Oh-my-zsh.sh: line 15: init.zsh: command not found

should i put sourcein front of it? i think so :-D

hmm now i'm using source $HOME/.zplug/init.zsh and getting this:
/// oh-my-zsh
TASK: Updating plugins
/Users/admin/.zplug/init.zsh: line 8: ${${(%):-%N}:A:h}: bad substitution
/Users/admin/.zplug/init.zsh: line 11: typeset: -g: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
/Users/admin/.zplug/init.zsh: line 12: typeset: -g: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
/Users/admin/.zplug/init.zsh: line 22: syntax error near unexpected token `('
/Users/admin/.zplug/init.zsh: line 22: `"$ZPLUG_ROOT"/autoload(N-/)'
/Users/admin/.zplug/init.zsh: line 23: syntax error near unexpected token `N-/'
/Users/admin/.zplug/init.zsh: line 23: `"$ZPLUG_ROOT"/misc/completions(N-/)'
Oh-my-zsh.sh: line 16: zplug: command not found
Zsh plugins updated
TASK: Remove repositories which are no longer managed
Oh-my-zsh.sh: line 19: zplug: command not found
Cleanup done
TASK: Remove the cache file
Oh-my-zsh.sh: line 22: zplug: command not found
Cleanup done

I think you're still using bash...

#!/bin/zsh

# helpers
# task
function echo_task { echo -e '\033[1mTASK: '"$1"'\033[0m'; }
# bold
function echo_bold { echo -e '\033[1m'"$1"'\033[0m'; }
# yellow
function echo_ok { echo -e '\033[33m'"$1"'\033[0m'; }
# warning
function echo_warn  { echo -e '\033[31mWARNING: '"$1"'\033[0m'; }

echo "/// oh-my-zsh "
echo_task "Updating plugins"
source $HOME/.zplug/init.zsh
zplug update
echo_ok "Zsh plugins updated"
echo_task "Remove repositories which are no longer managed"
zplug clean
echo_ok "Cleanup done"
echo_task "Remove the cache file"
zplug clear
echo_ok "Cleanup done"

doesn't my first line change this? This is the one i found on google

Doing echo $SHELL tells me I'm using /bin/zsh

Some things off the top of my head:

zshrc is loaded after zshenv, and zshenv is loaded in both interactive and non-interactive shells. Maybe you're setting SHELL=bash in zshenv.
Try invoking the script with zsh script_name.zsh.

Other than that there's not much else we can do with only the provided information. Closing since no response from @danielbayley, and @manuelbachl's problem isn't due to zplug.

Sorry @NigoroJr, I'll re-look into this with the latest version when I get chance.

@NigoroJr Just tidying up my dotfiles/zsh/zplug setup, and just to confirm things seem to be working much more smoothly now 👍


Add initial REST API specs

This PR adds initial openapi spec doc for the Grid REST API.
It defines endpoint to submit batches, get batch status, and get schema from the reporting database.
To visualize the document Swagger is a good tool.

Please add a note in the commit messages which describe the documents these are derived from, for reference purposes.


Xdebug support

Hi! I'm evaluating Workerman for a mid-size HTTP web server project for short requests (CRUD application).
I read all documentation on the Chinese docs translated to english. It works quite well and it's easy to understand.
One question I have is, can we use Xdebug to debug workers? I read #361  but I'm not sure.
I tried using XDebug on Windows 10 with Workerman and it works but only outside worker code:
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Workerman\Worker;
$http_worker = new Worker('http://<IP_ADDRESS>:2345');
$http_worker->count = 1; // breakpoint here works
$http_worker->onMessage = function ($connection, $request) {
    $connection->send("Hello World"); // breakpoint here doesn't work
};
Worker::runAll();

Is it supposed to work?
Is there some architecture change I can make to have Xdebug work inside worker code?
Some kind of HTTP redirection?
Thank you for Workerman! It looks amazing, elegant and simple!

Hi ww9.
According to my opinion, Workerman not support Xdebug.
If anyone succeeds, please share it.

Thank you. I'm still going to use Workerman.
I willl focus on unit tests in my project so I need to debug less.
Thank you for creating and sharing Workerman.
I hope to donate if the project is successful.

@walkor : Hi, Thank you for creating this project.
I tried using Xdebug with Workerman and it worked as expected without any issue.
Ie, I put a break-point in the beginning of onMessage function and every new request was hitting that break point in the Vscode IDE.
May I know why you said that Workerman may not support Xdebug?

@harish2704 Thank you for your post.
I see there are some posts here about workerman/webman and xdebug, although they are in Chinese, they might be helpful to everyone.
https://www.workerman.net/a/1653
https://www.workerman.net/a/1376
https://www.workerman.net/a/1484
https://www.workerman.net/a/1404


Update go images to 1.18.7 and 1.19.2

What this PR does / why we need it:
New go versions 1.18.7 and 1.19.2 are released and include 3 security fixes: ref

/kind enhancement


next-css update

Hello
Can you please update next-css config & dependencies? A new version of extract-css-chunks-webpack-plugin package is available, which introduces ignoreOrder option and it would be great if this option was available in this plugin.

Last update was 9 months ago :[

@michu2k if you are just using css and don't need less/sass, how about trying experimental: { css: true }? See https://github.com/zeit/next.js/issues/8626 and https://github.com/zeit/next.js/pull/8710.
That said, I think it would be valuable to release new versions of next-css, next-less and next-sass plugins. Despite that the built-in support is coming in future, certain scenarios are getting pretty painful today. So a simple dependency update in plugins would be a huge relief to many of us 🙏

Thanks @kachkaev for the answer. I really appreciate your help, but I'm using sass in my project.

extract-css-chunks-webpack-plugin the latest version is 4.7.1，but in this repos use 3.7.1，this version has some issue likes #174, I fork the project, and fix it in local, but I wish it can be updated

I ended up forking next-css and installing the package from github directly.
:\

Ugh... doesn't look like this is ever going to get an update.
They're fixated on zeit/next.js#8626 :(

Hi, thanks for creating an issue. We currently recommend using https://nextjs.org/docs/basic-features/built-in-css-support as the plugins have been deprecated in favor of the built-in support.

@timneutkens unfortunately we still need plugins for projects using less. It’d be great to get some attention to these, which would involve upgrades to the plugins. I know that using CSS modules or styled-components is better, but it’s not always possible.
An example of a hard dependency on less is ant design. That library is very popular (55K github stars) and the integration between it and Next is quite painful at the moment. Deprecation of next-css and next-less makes things worse in the long run as they are currently needed for the setup.


What is the difference between New-ProtectionAlert and New-ActivityAlert?

What is the difference between:
New-ProtectionAlert

This cmdlet is available only in Security & Compliance Center PowerShell. For more information, see Security & Compliance Center PowerShell (https://docs.microsoft.com/powershell/exchange/scc-powershell).
Use the New-ProtectionAlert cmdlet to create alert policies in the Security & Compliance Center. Alert policies contain conditions that define the user activities to monitor, and the notification options for email alerts and entries in the Security & Compliance Center.

and:
New-ActivityAlert

This cmdlet is available only in Security & Compliance Center PowerShell. For more information, see Security & Compliance Center PowerShell (https://docs.microsoft.com/powershell/exchange/scc-powershell).
Use the New-ActivityAlert cmdlet to create activity alerts in the Security & Compliance Center. Activity alerts send you email notifications when users perform specific activities in Microsoft 365.

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

ID: 02fa4960-2504-de2d-c2b1-873afff9f800
Version Independent ID: e4ff3e18-d1f9-8d87-f70d-6996ca0f9c35
Content: New-ProtectionAlert (exchange)
Content Source: exchange/exchange-ps/exchange/New-ProtectionAlert.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

Hi @oshihirii, thank you for your feedback and help us to improve docs.microsoft.com.
For more information about alert policies and activity alerts please see:
https://docs.microsoft.com/microsoft-365/compliance/alert-policies
https://docs.microsoft.com/microsoft-365/compliance/create-activity-alerts
In the first article you can see:
"Alert policies build on and expand the functionality of activity alerts by letting you categorize the alert policy, apply the policy to all users in your organization, set a threshold level for when an alert is triggered, and decide whether to receive email notifications."

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


Changing publishers to target es5 to support older versions of node

This is needed because AI targets node all the way back to 0.10.X which doesn't allow const, and if we target es2015 then the generated js includes consts.

@MSLaguana,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


CLOUD-423 ambari reinstall support

@keyki
This pull request contains some important change in the backend regarding the cluster creation failure handling.
If the cluster creation failed then the user can reinstall the cluster with a new blueprint.
The cluster reset contains two phase, first when we reset the separated postgres container and second when we restarting the ambari-server, after this phases everything works as always.
new images

CloudPlatform
Images

amazon
eu-west-1:ami-f3670284,us-east-1:ami-f8477690,ap-northeast-1:ami-34cd3134,sa-east-1:ami-29e45e34,ap-southeast-1:ami-8a2c1fd8,ap-southeast-2:ami-6132405b,us-west-2:ami-57c7ee67,us-west-1:ami-8d42a2c9

azure

gcp

openstack

Please wait for all the new images.

Jenkins build failed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1016/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1017/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1018/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1019/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1020/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1021/


feat: add coverage threshold and fail build on low coverage

[ ] Tests written and linted ℹ
[ ] Documentation written ℹ
[x] Commit history is tidy ℹ

What this does
Add coverage threshold and failed CircleCI build on low coverage.
Notes for the reviewer
Currently coverage_threshold is not updated with new coverage.

@SteveShani I didn't actually.


"Error: No such file or directory (os error 2)" when running the server

Describe the bug
When running the server after a fresh clone and build
Latest commit
commit 092deeec5ed9c45b36df280d6eba2b0632d4f415
How to reproduce
git clone https://github.com/EricLBuehler/mistral.rs.git
cd mistral.rs
cargo run -- -i plain -m microsoft/Phi-3-mini-128k-instruct -a phi3

hint: I think the problem might be with huggingface integration because when i run the server in the model dir with local as mistralrs-server --port 1234 plain -m . -a phi3 it works fine.

@ditod, was this fixed by #225?

Please feel free to re-open!


In swarm I can create empty project - then it errors

Version : v1.0.0-rc3
Steps to Reproduce:

Setup swarm
Click on Add Project
Give name and click Create
Click on Name

Results: Error page.  You actually should not be able to create a project without some sort of info in the docker-compose.yml.
Expected: Make docker-compose.yml a required field.

Not applicable as of 1.2..


Differing behavior between iOS and Android without supplying date prop

As of v4.0.0, the iOS and Android pickers behave the same when providing the date prop. Great!
However, they behave differently when not providing date as a prop. The iOS picker stores the selected date internally as state and thus remembers your previous selection. On Android, it defaults to new Date() every time the picker is re-opened.
One option includes making date a required prop and eliminating state within the iOS component. This matches the React philosophy of lifting state up and avoids potential sync issues while also simplifying the iOS picker code.
Thoughts?

@jkdf2
thanks for starting the discussion.

One option includes making date a required prop and eliminating state within the iOS component. This matches the React philosophy of lifting state up and avoids potential sync issues while also simplifying the iOS picker code.

Yes, I absolutely agree with this.
I thought about making this change in the past but I never had a chance to do it.
Anyone available for submitting this PR?

how to change datepicker header color on android?

i want to make it blue or something not green? thanks :)

Fixed by #179 , will be released on npm soon


Sonoff S60 generally works but it loses overall energy consumption

On/Off control works ok, Daily and Month energy meters are correct.
Volts, Amps, Watts I did not exactly check but looks that this is correct as well.
Only thing malfunctioning is overall energy used. It keeps resetting, no idea why. I have 3 of them and on all 3 overall consumption regularly disappears (1st picture in batch of 3).  For example S60TPF is desk LED lamp using 9W, and in Energy dashboard daily energy consumption shows 0,88kWh, while the true one is 0,04. All other readings are ok (3rd picture in batch of 3) and they match ewelink readings (last picture). Let me know if I can assist somehow by sending some more logs or sharing device to Your account.

Energy should have history for last 30 days. Check attributes of your sensor
https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#sonoff-pow

I don't think this is matter of history settings. I don't set them at all and I have 20+ sonoff devices (mostly POW) and they all work well. Definitely something is wrong on HA side with calculating actual power to energy usage. I bought another S60 and added it to HA to double check it.
Daily/monthly usage from app is correct (I verified that with independent power meter):

Those 2 attrubites are passed to HA correctly and visible there:

However actual power usage readings are somehow incorrect, and when I link it with power meter entity by this:
- platform: integration
  name: energy_spent_S60chlod
  source: sensor.sonoff_100223XXXX_power
  unit_prefix: k
  round: 2

This is what I see in Energy dashboard after adding sensor.energy_spent_S60chlod there:

The component just requests data from the cloud. I've never seen this data. I don't have any of these devices.

Hi!
I am also having problems in Energy dashboard when adding S60 devices.
Data in Individual devices usage is not shown correctly  as seen on next two screenshots.
I shows negative Energy when it should be positive. I think there is problem with data timestamp.
Any ideas?

I'm having the same issue, maybe it's because Energy dashboard treats them as incremental not daily?

In my case, in the db data looks ok:

But when put in the energy tab:

I can confirm the issue, I have 2xS60TPF and they both do the same.
Another problem I found is that I cannot add the power consumption to the "Energy Tab", despite both devices working correctly.
I guess there's some configuration error on the addon side, both plugs are working perfectly.

Problem with wrong metering I solved with adding method: left to the configuration:
- platform: integration
  name: energy_spent_jacuzzi
  source: sensor.sonoff_XYZ_power
  unit_prefix: k
  round: 2
  method: left

as per:
https://www.home-assistant.io/integrations/integration/#integration-method
Devices I use S60TPF with are not having constant usage. so this metering method is better suited and now readings in HA match readings in Ewelink. They are being also correctly transformed into daily usage in Energy tab once I registered energy_spent_jacuzzi there.
If someone doesn't need current usage and simply want to have daily readings from device transfered to Energy tab, then the easiest thing is to modify S60TPF's _energy_month entity in customize.yaml. You need to set it as total_increasing:
sensor.sonoff_ABC_energy_month:
  device_class: energy
  unit_of_measurement: kWh
  friendly_name: "Device"
  state_class: total_increasing

Where exactly did you find customize.yaml? I'm having the same problems and I really only need the energy consumption te be correct for my use case, so i'd like to implement the fix you found.
Thanks in advance!

Where exactly did you find customize.yaml? I'm having the same problems and I really only need the energy consumption te be correct for my use case, so i'd like to implement the fix you found.
Thanks in advance!

I have it in root directory, next to config.yaml. It is included in that config like this:
homeassistant:
  customize: !include customize.yaml

I think You can also put that code directly to config.yaml but not sure.

I have the same issue with the S60 plugs and large negative consumption in the 0:00 time bucket.  Any ideas what's causing this or how to resolve or work around it?  Was considering creating an Integral on the current power value and seeing if that does the same, I suspect it won't from looking at the data.

Problem with wrong metering I solved with adding method: left to the configuration:
- platform: integration
  name: energy_spent_jacuzzi
  source: sensor.sonoff_XYZ_power
  unit_prefix: k
  round: 2
  method: left

as per: https://www.home-assistant.io/integrations/integration/#integration-method
Devices I use S60TPF with are not having constant usage, so this metering method is better suited. Now readings in HA match readings in Ewelink. They are being also correctly transformed into daily usage in Energy tab once I registered energy_spent_jacuzzi there.
If someone doesn't need current usage and simply want to have daily readings from device transfered to Energy tab, then the easiest thing to achieve that is to modify S60TPF's _energy_month entity in customize.yaml. You need to set it as total_increasing:
sensor.sonoff_ABC_energy_month:
  device_class: energy
  unit_of_measurement: kWh
  friendly_name: "Device"
  state_class: total_increasing

@guciopl Thanks for these work arounds, boht seem to work great.
For others that have not got this working yet, I would just add that you can now do the 1st work around  direct in the UI without having to use config files. Just add a  new Helper, select "Integral" give it a name, use the original power sensor as the input. Set Metric prefix to "k", Time unit "Hours", Method "left", Precision "2" and submit. Then add the newly created sensor to the energy dashboard. Simples! :-)


Camel Case- HackerRank

Description
Added code for Camel Case problem in C++
Fixes #2247
Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings

@ravikr126 @sameeksharl please review the pr


Is it possible the tiles don't get removed after uninstall?

I've just noticed it.
I think it's a bug on the OS...
I've reported about it here:
https://code.google.com/p/android/issues/detail?id=225234

Thanks for filing but as you point out, this sounds like an OS bug so closing this issue.

Can you please check it out though? Maybe fix on Android 7.1 ?


Error Console firefox 50+

Error: WebGL: texImage2D: Incurred CPU-side conversion, which is very slow.  marzipano.js:22:10625
Error: WebGL: texImage2D: Incurred CPU pixel conversion, which is very slow.  marzipano.js:22:10625
Error: WebGL: texImage2D: Chosen format/type incurred an expensive reformat: 0x1908/0x1401  marzipano.js:22:10625

Thanks for reporting.
This seems related to this Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1246410.
Three.js has the same problem and there's some interesting discussion on their tracker: https://github.com/mrdoob/three.js/issues/9109.
From the discussion, it's unclear to me that there's anything we can do to fix this. Let's wait and see.

Ok thanks.


Option to change background and cartoon character

Hello. Are there any options to change cartoon character or a background?

Kalidotkit is a calculator, you should set background in Three.js or Pixi.js

If you are a newcomer with JS, I would recommend taking a look at how to set up a basic scene in Three.js or Pixi.js. They have pretty good documentation and examples on their websites.
I would also suggest not using Github repo in your projects, and instead rely on a CDN script tag or an NPM module. There will prob be less system compatibility issues if you develop using KalidoKit as a library. In the README, I also have 2 barebones examples for both Live2D and VRM on Glitch. That can also be a good starting point.

Thank you. I will start learning it.
Also, I noticed that you have different cartoon characters in your demo. I wonder how to activate the other characters? Are there any option to choose them?

Characters in the demo are loaded by URL. Please refer to the glitch templates for specific implementations.
KalidoKit only provides calculations and does not handle rendering. Please reach out to other libraries for additional questions.

Thank you for your reply.
Could you please provide the source of your current character? I may download other characters and try it myself

You can download model from VRoid Hub

Furthermore, I've listed all the links to the models I use from Vroid Hub on Kalidoface. It's the last info card.

Furthermore, I've listed all the links to the models I use from Vroid Hub on Kalidoface. It's the last info card.

@yeemachine @xys20071111 Thanks for your kind reply. I successfully in changing the characters

Kalidotkit is a calculator, you should set background in Three.js or Pixi.js

Another problem. Where can I find the "Three.js" or "Pixi.js"? I cannot find it in the project files

They are included by


Setting to toggle line wrap

Currently the editor automatically wraps long lines.
I sometimes use it as a code editor. In those cases I would like to toggle wrap off.
Could you add this as an extra setting? Nothing fancy, just on/off.

I suspect this is actually going to be a bigger change than one might anticipate. UITextView, which is what is being used, doesn't have a way to turn off word wrapping built-in. You'd likely have to drop down into the Core Text functionality that underlies it and need to manually manage the layout. Or we'd have to find a dependency that offers us this functionality.

Too bad, but I understand your reasoning.


GH2268: Updated octo aliases to use dotnet-octo

https://octopus.com/blog/packaging-netcore#cake-script current work around
as mentioned in the blog post make sure you have the Octopus.DotNet.Cli global tool installed by running dotnet tool install Octopus.DotNet.Cli -g
OctoPack(project, new OctopusPackSettings {
    BasePath = projectArtifactDir,
    Format = OctopusPackFormat.Zip,
    Version = buildNumber,
    OutFolder = artifactsNuPkgDir
});

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: gertjvr sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

I did have a base class, was easy to make the changes you suggested.

@gertjvr your changes have been merged, thanks for your contribution 👍

Relates to #2268


Support helmfile / publish helm chart in this repo

Currently kube-openmpi use helm --template feature.   helmfile integration would be great for improving ease of Use.
I plan:

publish kube-openmpi as an chart on this repo
and provide helmfile.

closed in favor of #21


setup a github pages website

If you go into Settings -> Pages there should be an option to set up a github pages site. You can see this https://pages.github.com/#project-site for a tutorial

nevermind i didn't see that lol. add the link in the about section on the side tho


Drop Luna Streaming 2.7.x support

Removed all the matrix projects combination (-luna, -pulsar). now there is only

agent
commons
connector
...
and they all use LunaStreaming/Pulsar 2.8.x

@eolivelli I pushed a fix for the docker-compose part.
Now if you follow the doc, you are able to create a local docker cluster with

C* and the agent (Apache Pulsar client)
Luna Streaming 2.8.0.x
ElasticSearch
Grafana

And you can see data flowing to ElasticSearch without issues.

@mendonk we should follow up and remove all the references to the "luna" artifacts in docs.
@nicoloboschi can you please guide @mendonk  ?

sure. https://github.com/datastax/cdc-apache-cassandra/issues/56


Feature Request: Open Page in New Tab

Feature Request: Open Page in New Tab
I often want to open a bookmark or other page in a new tab from the Omni command palette but there currently is no option to do that. I would love it if we could open the currently selected option in a new tab using Shift+Enter or something.

+1 for this. It would be awesome to make the behavior configurable. I'm basically trying to emulate Arc's command bar in Firefox, and I've set cmd + t to launch omni.

You can now use command/ctrl + enter to open the page in new tab, more advanced features can be found in https://github.com/buttercannfly/AIpex

+1 for this. It would be awesome to make the behavior configurable. I'm basically trying to emulate Arc's command bar in Firefox, and I've set cmd + t to launch omni.

Yeah command + t is the best shorcut for omni. However, chrome doesn't allow extension to override it, now I build a new verison in https://github.com/buttercannfly/AIpex , you can modify the shortcut after installed, hope you like it


Enhance version tag functionality in VS Code plugin

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details
When creating tags in ESC via VS Code, I am able to create a tag for a specific version, but I do not see a way to delete the tag or move the tag to a different version.
Deleting a tag is helpful in cases where the tag creation was an accident or the tag is no longer applicable.  I don't see any UX for this ability in VS Code.
Moving a tag between versions is helpful in cases where the tag's purpose is to mark which version config should use, e.g., a "stable" tag.  Currently in VS Code when trying to create a new tag when the tag name already exists, an error occurs.  Since there is no way to delete the tag, moving isn't possible by removing then adding either.
The current workaround is to do these actions in Pulumi Cloud where this functionality exists, but it would be nice to be able to fully utilize tagging in the ESC plugin within VC Code.
Affected area/feature
VS Code -> Pulumi Plugin -> ESC -> Tagging

This is a suggestion we really want to handle.  Delete is straightforward, but moving tags with the UX constraints is a little more difficult. We do not have an ETA but this is on our radar.


Typescript error: cannot find module 'graphql-tag/printer'

I am building an angular2 app and I am getting the following errors when I build:
TypeScript error: /Users/scott/Documents/showcase/client/node_modules/apollo-client/index.d.ts(3,23): Error TS2307: Cannot find module 'graphql-tag/printer'.
TypeScript error: /Users/scott/Documents/showcase/client/node_modules/apollo-client/middleware.d.ts(4,14): Error TS2304: Cannot find name 'RequestInit'.
TypeScript error: /Users/scott/Documents/showcase/client/node_modules/apollo-client/networkInterface.d.ts(25,12): Error TS2304: Cannot find name 'RequestInit'.
TypeScript error: /Users/scott/Documents/showcase/client/node_modules/apollo-client/networkInterface.d.ts(31,14): Error TS2304: Cannot find name 'RequestInit'.
TypeScript error: /Users/scott/Documents/showcase/client/node_modules/apollo-client/networkInterface.d.ts(35,68): Error TS2304: Cannot find name 'RequestInit'.

Does anyone have any suggestions? Should I just downgrade graphql-tag until typescript support is better?

I tried doing import { print } from 'graphql-tag/printer'; before I imported from apollo-client, but typescript wouldn't recognize the package

@swarthout As I mention before, to fix RequestInit you should install typings for whatwg-fetch or isomorphic-fetch or fetch polyfill you use :)

@kamilkisiela This is what I am getting when I try to install whatwg-fetch typings:
➜  client git:(master) ✗ typings search whatwg
Viewing 1 of 1
NAME         SOURCE HOMEPAGE                        DESCRIPTION VERSIONS UPDATED
whatwg-fetch dt     https://github.com/github/fetch             1        2016-05-24T14:20:46.000Z
➜  client git:(master) ✗ typings install whatwg-fetch
typings ERR! message Unable to find "whatwg-fetch" ("npm") in the registry. Did you want to try searching another source?Also, if you want contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/whatwg-fetch/versions/latest responded with 404, expected it to equal 200
typings ERR! cwd /Users/scott/Documents/showcase/client
typings ERR! system Darwin 15.2.0
typings ERR! command "/Users/scott/.nvm/versions/node/v6.0.0/bin/node" "/usr/local/bin/typings" "install" "whatwg-fetch"
typings ERR! node -v v6.0.0
typings ERR! typings -v 0.8.1
typings ERR! If you need help, you may report this error at:
typings ERR!   https://github.com/typings/typings/issues

@swarthout You can use isomorphic-fetch