Bring Your Own Kubernetes: EKS support MVP

Description
Allow deploying a k8s service with Opta using the default ~/.kube/config or the KUBECONFIG env var.
This was implemented by adding a Opta registry for Helm. Which means if the user defines a k8s-service and doesn't set a provider or an environment file - we would use their local Kubeconfig to deploy that service with Opta.
Limitations:

only support k8s-service
use terraform local backend

We can address these limitations in the future, we have tickets for them in our backlog under the epic BYOK Extra Features.
See the documentation page for more information - included with this PR.
Safety checklist

[X] This change is backwards compatible and safe to apply by existing users
[X] This change will NOT lead to data loss
[X] This change will NOT lead to downtime who already has an env/service setup

How has this change been tested, beside unit tests?
Tested on a EKS cluster created with k8s-cluster but NOT with k8s-base - instead I ran the terraform files provided with the example and then I ran opta apply on this file.
https://www.loom.com/share/ef29c8ca7b26441e8b300f87dd900009?sharedAppSource=personal_library

@juandiegopalomino I added a warning for the user to save their terraform state files.
For the limitation about which modules are supported, Opta already throws a clear error message to the user such as ERROR: s3 is not a valid module type


Allow to autologin into nested interpreter

I have an idea for a new feature for jQuery Terminal
When you have a nested interpreter that has login there is no way to autologic and no way to get the token and username for the interpreter that waits for authentication.
term.push(function(command) {

}, {
    login(user, password) {
         // ...
    }
});

There should be a way to skip the login when there are token and username is localstorage. But there should be a way to validate if token is valid first.
Possible solution:
term.push(function(command) {

}, {
    autologin(user, token) {
         // verify that the token is valid
         // and return a boolean or promise that resolves to boolean
    },
    login(user, password) {
         // ...
    }
});

This is actually not needed, you can use:
 $('body').terminal(function(command, term) {

 }, {
     onBeforeLogin(user, token) {
         if (this.get_token() === token) {
             return false;
         }
     },
     login(user, password, cb) {
         return Promise.resolve('__TOKEN__');
     }
 });

onBeforeLogin execute after the user type user and password or before autologin.
But there was one problem that onBeforeLogin was supporting async call, so you were not able to return a promise and call the server to verify that the token was valid.

Also, note that autologin happens automagically when refreshing the page and the interpreter has a token in localStorage.


dns failing inside the container

We're using local consul agents to provide dns for all our nodes in the cluster. This is setup via resolv.conf and works without any problems both on the host and inside all other running containers.
mesos-consul however cannot seem to resolve hosts (namely zookeeper). I can ping zookeeper on the host and it resolves, I can start an ubuntu container and ping zookeeper from inside it. I've tried changing the entrypoint of mesos-consul to /bin/sh and pinging our zookeeper hosts fail inside the container. Any ideas?

It seems that search domains are not respected within the container. If I give the FQDN for zookeeper it works.

/ # ping zookeeper
ping: bad address 'zookeeper'
/ # ping zookeeper.service.test
PING zookeeper.service.test (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: seq=0 ttl=63 time=0.535 ms
^C
--- zookeeper.service.test ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.535/0.535/0.535 ms
/ # cat /etc/resolv.conf
nameserver <IP_ADDRESS>
search service.test node.test test

Apparently this is not supported in alpine linux's resolver: https://bugs.alpinelinux.org/issues/469

call me crazy but it would seem the space savings of alpine is > than the pain of supplying a FQDN ?

In some of the environments we're building we can't provide a FQDN
programatically so it's essential for us.
On Fri, Oct 30, 2015 at 1:22 AM, Alan<EMAIL_ADDRESS>wrote:

call me crazy but it would seem the space savings of alpine is > than the
pain of supplying a FQDN ?
—
Reply to this email directly or view it on GitHub
https://github.com/CiscoCloud/mesos-consul/issues/10#issuecomment-152373763
.

fair enough!

Closing as there is now an ubuntu image provided :) thanks!


Implement alpha premultiplication

I’ll do a benchmark later

Added a benchmark.
Scaling a 2000x2000 to 1500x1500 using Lanczos

w/o premulti: 604.71ms
w/ premulti: 711.94ms (+18%)

So yes, of course a negative performance impact, but a bearable one.
And we now allow users to create clean edges on transparent images:

H/T @kornelski, thanks for your help :)

I'm happy for us to allow premultiplying with lanczos etc. It's what Safari seems to do by default with it's "high quality" resizer.
I've noticed a weird bug though:
With this:

Resized to 201 width with premultiplying and lanczos:

Notice the unexpected red & yellow pixel in the top-right of the icon. That seems to be caused by the premultiplying.

My TODOs are TODONE.

I think those stray pixels might be “technically correct”. The image has some surprising transparency.

Hah! Caused by palette reduction no doubt. Fwiw, Safari's high quality resizer (which seems to be doing Lanczos3 with premultiplying) doesn't produce those pixels, but I'm not particularly bothered.


Pause and play doesn't work

With the last version, has worked one time, but no more. Play and pause doesn't work.

Also on Example project, once connected to Spotify, doesn't receive Title, Artist, Album.
Previous and Skip buttons are working ok.
Spotify version <IP_ADDRESS>7.gOf8531bd

I can confirm that with the latest Spotify release and the latest API release, Play does not work anymore.

I am also having problems with play or PlayUrl function

I'm having the same issue

same here
play, pause etc. doesn't work
yesterday i was able to fix it with the solution provided in #253
[Spotify version <IP_ADDRESS>7.gOf8531bd]

LocalAPI Seems to broken. GetStatus() reuturns always Null. It hast been down since yesterday evening.

The OAuth key request to "http://open.spotify.com/token" is always returning an invalid token.

Yeah same issue here. Can we get an updated version again? :)

Uhhhh, gimme some minutes here, seems like they disabled the OAuth Token, which maybe means local API is dead. Will report back once I found out more...

Well, it seems like they either disabled the Token generation, or sending a User-Agent with the spotify version is not enough anymore. Independently, there is nothing we can do atm because it's an unofficial API and they can just introduce some secret header field which we could not find in ages.
Also, with their changes to the WebAPI which now also allows managing devices & streaming, it's reasonable that they disabled the local API. It was mainly used for the old web-player which is now completely based on the new WebAPI.
There is not much we can do at the current state...

No... just no. I have this (well had actually) working solution and we're going live tomorrow morning and then I need to be able to control Spotify from a tablet (among other things).
Well, guess I'll have to rebuild it to use the web-api and control the playback that way. Guess I should see it from the bright side. Now atleast I have the entire night to fix it. Had it happened tomorrow I'd be ******.
Thank you for the quick update! (I was hoping someone at Spotify accidentally uploaded a test version of their token generator and would fix it shortly)

Why skip and previous still working?

@StepIg Because they emulate media keys, no spotify api involved

So by using the web api, we can control and play songs on the spotify instance running on a windows machine?  (So basically the same thing that the LocalAPI did when we called the play method?)

So my jaw just dropped after spending about 5 hours finding this solution to the problem and actually hearing music go through my headphones when I clicked my program's play button.
Assuming we can no longer use the local API (I hope this is temporary), I've made a new class that implements the same interface as my class that used the SpotifyLocalAPI. This new class uses SpotifyWebAPI.
On initialisation we need to request authentication from the Spotify API. Normally this would be hard or tedious to do, except @JohnnyCrazy has already implemented a way in his SpotifyWebAPI example inside the 'Example' folder in this repository.
This is a small adaptation of his example into an async function that you can basically just copy and paste into your project for initialisation of your new web API class.
async void ResolveAuth()
{
    WebAPIFactory webApiFactory = new WebAPIFactory(
        "http://localhost",
        8000,
        "26d287105e31491889f3cd293d85bfea",
        Scope.UserReadPrivate | Scope.UserReadEmail | Scope.PlaylistReadPrivate | Scope.UserLibraryRead |
        Scope.UserReadPrivate | Scope.UserFollowRead | Scope.UserReadBirthdate | Scope.UserTopRead | Scope.PlaylistReadCollaborative |
        Scope.UserReadRecentlyPlayed | Scope.UserReadPlaybackState | Scope.UserModifyPlaybackState,
        new SpotifyAPI.ProxyConfig());

    try
    {
        spotify = await webApiFactory.GetWebApi();
    }
    catch (Exception ex)
    {
        throw;
    }

    if (spotify == null)
        return;
}

Now for when we want to play a song, we have to use the functions in SpotifyWebAPI. Intellisense will be able to show you a good amount of information, but for playing a specific URI, here is an example.
        public void Play()
        {
            // Spotify ResumePlayback has a huge amount of parameters.

            // By using "uris: " and defining a new list of strings, we are specifying that we want to give only the
            // parameter "uris" input, and nothing else (because all parameters here are optional.)

            // the parameter uris is simple, it is a list of song uri's you want to play.

            // Offset has to be passed in here (although I pass in its default optional parameter value) as
            // the compiler won't be able to differentiate between the two different overloads for the method ResumePlayback.

            // For many functions in the web API, they will want 'contexts' and 'device ids'. These are basically all optional
            // so adapting these functions to replace your local API is probably doable.
            spotify.ResumePlayback(uris: new List<string> { "spotify:track:0cWPe8mPRyLMxxe94eRVzs" }, offset: "");
        }

If you read the comments you'll understand that I tried to explain some of the web API's jargon that you may have not read up on because you've relied on the local API for a while, so to follow up on my comments, here is an example of how to PAUSE playback, just to show how easy it is.
        public void Pause()
        {
            spotify.PausePlayback();
        }

But intellisense shows you can also pass in a device ID string. Completely optional, as shown in the method's summary.
So what if I want to just resume playback instead of play a new song?

        public void Play()
        {
            // Again, we have to state offset's parameter value so it differentiates between the two overloads of the method.
            // Just pass in an empty string, as that is its default optional parameter value.
            spotify.ResumePlayback(offset: "");
        }

Nice writeup @rollersteaam 👍
2 notes:

spotify = await webApiFactory.GetWebApi(); will get you a ready-to-use OAuth token, but sadly it's only valid for 30 minutes, and you cant refresh it. There are some alternatives here
I don't think it's temporary, this would be weird for spotify since they, most of the time, are good at deploying stuff. But let's see 😅

Then, local API is dead like we know it yesterday?

@rollersteaam I tried PausePlayback() and ResumePlayback() but both gave me error "403 - Not available for the current user"
I have Scope.UserReadPlaybackState and Scope.UserModifyPlaybackState.
And shouldn't the offset for:
spotify.ResumePlayback(offset: "");
be an int and not string?

@Gruhlum It's probably more coherent to state offset as 0 instead of as an empty string, but because both work I'm assuming it treats an empty string as having no offset anyway. I'm not sure how a string could define some form of offset but who knows
As for your problem, I didn't have the issue and I have Spotify premium, so it's possible, although it wouldn't make much sense since web players for Spotify should allow free users to still interact and play specific tracks. However, IIRC from the free version of Spotify on mobile, you cannot play specific tracks and are forced to play through "shuffle play," meaning if your device ID links to a mobile I suppose it's not going to let you. Again, why would it cause that issue on PausePlayback() though?

@Gruhlum
https://developer.spotify.com/documentation/web-api/reference/player/start-a-users-playback/ and https://developer.spotify.com/documentation/web-api/reference/player/pause-a-users-playback/

If the user making the request is non-premium, a 403 FORBIDDEN response code will be returned.

With permium all continues working?

@Gruhlum While @h-philip has showed the reason why it won't work for you, I recently just had an issue with resuming playback and it was because offset was set to 0 instead of an empty string. When I changed it back to an empty string it allowed me to resume playback. @JohnnyCrazy This is a potential bug I think?
If that doc is definitely correct and isn't out of date, then forcing users to be premium is really, REALLY annoying. That's actually terrible. Do you think they disabled the local API just to force users to pay up?

@rollersteaam Do you mean this #249?

@h-philip
Yes I have just found it myself. That's a real bummer looks like I am screwed now :(

@Gruhlum While @h-philip has showed the reason why it won't work for you, I recently just had an issue with resuming playback and it was because offset was set to 0 instead of an empty string. When I changed it back to an empty string it allowed me to resume playback. @JohnnyCrazy This is a potential bug I think?

Please have a look at the docs before bug hunting: Resume Playback

Optional. Indicates from where in the context playback should start. Only available when context_uri corresponds to an album or playlist object, or when the uris parameter is used.“position” is zero based and can’t be negative. Example: "offset": {"position": 5}“uri” is a string representing the uri of the item to start at. Example: "offset": {"uri": "spotify:track:1301WleyT98MSxVHPZCA6M"}

@rollersteaam
// It should be noted, "http://localhost:8000" must be whitelisted in your dashboard after getting your own client key
i cant find the place to do that. Can you give some help?

@rollersteaam
public void Pause()
      {
          spotify.PausePlayback();
      }

doesn't work for me on no-premium account.
and after call spotify = await webApiFactory.GetWebApi();
visual studio becomes practically frozen

@StepIg Yeah unfortunately if the user making the request is no-premium, they won't fulfill it. I guess that's Spotify's own right, although I find it particularly scummy. Hopefully someone can discover a workaround.
For your frozen issue, calling that function will cause your app to hang until authentication is received or the request times out.
On call, your browser should open up and request for you to authenticate the app's access to your account. You will get an "Invalid URI redirect" message if you did not specify "http://localhost:8000" in your whitelisted addresses in your client dashboard, although if you did not supply your own client ID then you won't have this problem (because it will use JohnnyCrazy's client ID).
Alternatively, you can create a new Task like this:
void ResolveAuth() {
/// bla bla bla enter all the previous constructor code here
/// ...
            Task task = Task.Factory.StartNew(() =>
            {
                try
                {
                    // Since GetWebApi() is async, it returns a Task of return type WebAPIFactory, so we have to use ".Result" to access what the task has returned
                    spotify = webApiFactory.GetWebApi().Result;
                }
                catch (Exception ex)
                {
                    UpdateStatus($"Spotify service failed to load, Spotify music is unavailable. Exception: {ex.Message}");
                    throw;
                }
            });
}

If you didn't know, tasks create a new thread to handle a task so you can still do other things in your application without it freezing, but of course, you will have null references until you successfully get authentication, so it may not be worth using the Task system if you're expecting a reference to it no matter what.
Despite all that it's still possible because you're non-premium that it fails the authentication request immediately, but I think it would fail loudly and throw an exception if that were the case anyway. You would have to do a lot of null checks throughout your code as well, so I opted not to do this.

@rollersteaam thanks for your help
but don't understand about

if you did not supply your own client ID then you won't have this problem (because it will use JohnnyCrazy's client ID).
How to do this?

@rollersteaam Ok, working on premium account.
How to get time, track and artist for current track? Do you know?

@Steplg On my phone atm so can't give large examples, but I posted the example of getting authentication further up, and with that spotifywebapi class you can find everything you'll need
Some basic things: GetPlayingTrack returns an object with variable ProgressMs, which is current track time in ms and inside is variable Item with durationms variable which is total track time in ms, as well as info for artist and album

@rollersteaam
ok, i will work on this. Thanks for your help
another question: is there any way to give spotify user and password without open the web page from spofity? that is without user intervention?

https://developer.spotify.com/community/news/2018/07/19/new-updates-to-spotify-play-button/
Now we know, why they disabled it.

Anyone can tell how to play a list from spotifyWebAPI?

Someone can tell how to play a playlist with spotifyWebAPI, please?

Hm - so it looks like there are only two options left, if you need to know what's currently playing, and can't use the WebAPI (for whatever reasons):

Use open.spotify.com instead, and write a plugin for your favourite browser. This plugin could parse the DOM of the page. In fact, this would add some missing features the local API had. For instance, it always returned only one artist per song, even if there where multiple of them. The plugin could, e.g. via Websockets, connect to another client.

, and this is the more "awesome" approach: tinker around with the Spotify client itself. The client is, in fact, only Chromium + React, and the "spa"-files in the "Apps" folder are zipped files, which can be extracted and modified. There is a project for Rainmeter, which does exactly this: https://github.com/khanhas/Spicetify

So one could implement the "SpotifyWebHelper" as a pure WebSocket service (the aforementioned project has sth. like this). Although it requires tons and tons of tinkering (and a lot of time). BUT - it would be awesome. 😃

@DanielGilbert Done all regarding what playing, elapsed time, etc...
Continue looking for play a list and also for make auth without show the browser

Okay, seems like it's official.
I will think about the future of the project. Probably it will focus on the web API. But I also like the idea of modifying the Spotify client is files to make a custom websocket helper. I will keep you updated

Any idea about how to start play on spotify just after lunch spotify without user intevention?
after launch spotify, it starts stopped.
can connect using webAPI, but do not accept commands until play is pressed on spotify. After this, commands are accepted by spotify

im working with the desktop client. but after your comment, is there a way to do not show destop or web spotify?

Okay, small plan for the future:

Remove the local API from this project and make sure we're getting the Web API .NET Standard ready. This was a highly requested feature and without the local API it should be done quite quick.

Remove the current Authentication stuff I build around spotify flows and extract it into a new project SpotifyAPI.Butler with a better API, and maybe even cross platform support.
I already had a look at a cross platform webserver which looks promising. For the API, I thought of the following:

var butler = new SpotifyAPIButler(clientID, clientSecret, 3000);
// or for short lived tokens
var butler = new SpotifyAPIButler(clientID, 3000);

butler.OnAuthorizationCode+= OnAuthorizationCode; // (token, refreshToken)
butler.OnImplicitGrant += OnImplicitGrant; // (token)

butler.Start() // open users browser
var newToken = butler.RefreshToken(refreshToken) // maybe not even necessary

The API maybe will stay close to the old one, but definitely with better error handling and cross platform support.
And generally speaking: There is no secure way of using the Spotify Web API with long lasting tokens on the client side without a backend. The only option is: Every user has to create a developer application themselves and add the necessary clientId and clientSecret into the Desktop App. That's the only secure way.

You're building an abstraction and my gut feeling is that someone should be able to gauge what it's for at a first glance of its name.  Unless I'm missing something the word butler doesn't relate to authorization in any way.  It's your library though - I only came here for discussion of the locally-hosted Spotify API which I used in one of my own Python-based projects ;)

Now  SpotifyLocalAPI.RunSpotify() doesn't run on Windows 10.

Dat is jetzt natürlich nicht so geil 😆

Hope this can get fixed. I am using the events from the local player. Any ideas for a workaround?

@mmartain
I've moved my code from events to timers taking needed info about tracks time, etc... from the webAPI. And all is ok.

There will be no fix. The local API will be removed with the next commit, the project will have the following structure:

SpotifyAPI.Web (NuGet Package)
SpotifyAPI.Web.Auth (NuGet Package)
SpotifyAPI.Web.Example
SpotifyAPI.Web.Tests

I'm currently reworking SpotifyAPI.Web.Auth with a better internal HTTP Server and an additional "auth-method", where users have to register their own spotify dev application. This will be the only "secure" authentication method.


Migrate from CommonJS to ES Modules #29

Description
This PR migrates the codebase from CommonJS to ES Modules
Closes https://github.com/MLSAKIIT/devblogs-backend/issues/29
Acceptance Criteria

[X] All require() statements are replaced with import statements
[X] All module.exports are replaced with export statements
[X] Local imports include file extensions
[X] package.json includes "type": "module"

Screenshots (if applicable)
Working snapshot:

cc: @Tony-ArtZ for review and merge.

Great work @ahsan-javaid ! good PR, thanks for contributing !


Issues with cycjimmy/semantic-release-action in main workflow (Rev 2)

This is a re-submission of https://github.com/cypress-io/github-action/issues/672 removing the issue caused by cycjimmy/semantic-release-action v2. PR https://github.com/cypress-io/github-action/pull/712 has bumped cycjimmy/semantic-release-action to v3 which has resolved the previous deprecation warnings.
Workflow location
.github/workflows/main.yml
Issue 1 - parameter branch
The action cycjimmy/semantic-release-action's README: Inputs lists the parameters branches and branch as follows:

Input Parameter
Required
Description

branches
false
The branches on which releases should happen.[Details]Support for semantic-release above v16.

branch
false
The branch on which releases should happen.[Details]Only support for semantic-release older than v16.

Logs show "ℹ  Running semantic-release version 19.0.5" which is newer that semantic-release v16 (see above), so the input parameter branch is not correct.
https://github.com/cypress-io/github-action/blob/a615f3566b22aee6241008d488f6a89ebabbd55b/.github/workflows/main.yml#L43
Issue 2 - failure in fork
When main.yml executes on a GitHub fork, it fails with an Annotations error:
"SemanticReleaseError: Cannot push to the Git repository."
In detail "The command "git push --dry-run --no-verify<EMAIL_ADDRESS>HEAD:master" fails with the error message remote: Permission to cypress-io/github-action.git denied to github-actions[bot]."
Instead of failing it should skip trying to run on a fork.
Suggestions
Change cycjimmy/semantic-release-action parameter to branches
Change branch: master to branches: master.
Although the parameter branch: currently works, changing it to branches: makes it conformant to the documentation.
Prevent cycjimmy/semantic-release-action running in fork
https://github.com/cypress-io/github-action/blob/a615f3566b22aee6241008d488f6a89ebabbd55b/.github/workflows/main.yml#L33
Add if condition to ensure it only tries to release when it is running on cypress-io/github-action. See Example: Only run job for specific repository.
For instance, consider adding:
if: github.repository == 'cypress-io/github-action'

Workaround
Disable the workflow .github/workflows/main.yml in the fork to prevent failures. See GitHub help: Disabling and enabling a workflow.

PR #777 addresses the second issue and suppresses the release job execution in a fork

Closing this issue. From the list of issues

Issue 1 - parameter branch
Issue 2 - failure in fork

"failure in fork" is resolved by PR #777
"parameter branch" does not appear to be causing any problem at this time, so I will drop this issue. In fact the documentation of  cycjimmy/semantic-release-action does not mention that it is robust against the wrong use of the parameter. The action corrects the wrong use of the parameter.


🐛 Unable to use external USB camera

What were you trying to do?
I wanted to use external USB camera in my android app to take photo.
const devices = useCameraDevices();
console.log(devices.external); // returns undefined although my usb camera is connected

Reproduceable Code
import React, {useCallback, useEffect, useState} from 'react';
import {Button, View, ToastAndroid} from 'react-native';
import {
  Camera,
  useCameraDevices,
  CameraRuntimeError,
} from 'react-native-vision-camera';

const App = () => {
  const devices = useCameraDevices();
  const [cameraPosition, setCameraPosition] = useState<
    'front' | 'back' | 'external'
  >('back');
  const [isCameraInitialized, setIsCameraInitialized] = useState(false);

  const device = devices[cameraPosition];

  useEffect(() => {
    const requestPermissions = async () => {
      await Camera.requestCameraPermission();
    };
    requestPermissions();
  });

  // Camera callbacks
  const onError = useCallback((error: CameraRuntimeError) => {
    console.error(error);
  }, []);

  const onInitialized = useCallback(async () => {
    setIsCameraInitialized(true);
  }, []);

  return (
    <>
      <View style={{flexDirection: 'row'}}>
        <Button
          title="Use USB Camera"
          onPress={() => {
            setCameraPosition('external');
            ToastAndroid.showWithGravity(
              'External camera enabled',
              ToastAndroid.SHORT,
              ToastAndroid.BOTTOM,
            );
          }}
        />
        <Button
          title="Use back Camera"
          onPress={() => {
            setCameraPosition('back');
            ToastAndroid.showWithGravity(
              'Back camera enabled',
              ToastAndroid.SHORT,
              ToastAndroid.BOTTOM,
            );
          }}
        />
      </View>
      {device != null && (
        <Camera
          device={device}
          isActive={isCameraInitialized}
          onInitialized={onInitialized}
          onError={onError}
          photo={true}
          video={false}
          style={{height: '90%'}}
        />
      )}
    </>
  );
};

export default App;

What happened instead?
External USB camera was not detected. Only front and back are available. It doesn't even ask for usb permissions like other apps.
Vision camera demo
https://user-images.githubusercontent.com/29520305/210509978-a856a705-a52c-441d-9c7d-82b39332aa8c.mp4
I can see my usb camera when I use it with other app
Android USB camera
https://user-images.githubusercontent.com/29520305/210510747-155ad242-5a80-48f9-8255-fc60a8423b33.mp4
Relevant log output
No response
Device
All android devices
VisionCamera Version
2.15.2
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

I am also facing same problem with this package. Please suggest us something

Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3.
I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here?
Here's an instruction on how you can test that: https://github.com/mrousavy/react-native-vision-camera/pull/1674#issuecomment-1684104217
If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉
Otherwise please let me know and I'll keep this issue open to keep track of it.
Thank you!

Also, can you add
Camera.getAvailableCameraDevices().then((d) => console.log(JSON.stringify(d)))

to your code and then paste the output of that here? I'd like to see what devices it detects.

@mrousavy I tried the line above but it returns me undefined with the USB device ( albeit it could be an issue with the manufacturer itself, seemed like I might have to use USB API from Android to create a custom module to support such functionality, I'd be more than happy to try and add it to the library if it doesn't already exist )

@bhimeshchauhan I unfortunately don't have an USB camera to test this, but can you maybe try the official Google camera2 example app to see if it even works with Android's Camera API?

Download https://github.com/android/camera-samples
Open Camera2Basic or Camera2Video in Android Studio
Run it on your device and see if the device is available in there (I think in video you should be able to select any camera device, not sure)

Also, in VisionCamera it should log all devices to the logcat logs (adb logcat/Android Studio) that become available. Maybe you could double-check there if it is availble?
Can you even use the USB Camera in the stock Camera app on your phone?

Ah, see this StackOverflow post.

Hello all. With current iOS17, we should be able to use external camera on iPhone/iPad. Do you know if « external » camera mode could be working with this library?
Thanks a lot.

Hey @tiste, you made me curious. Look at this PR: https://github.com/mrousavy/react-native-vision-camera/pull/1813 😄


Domains to add

felphi.com
jaffx.com

Hi Brian.
Thanks for the suggestions. Do you have any examples of the spam that included these domains? Sometimes the content of the comments (including the email addresses and links) can provide very useful information regarding the source and style of spam.

It is spam registrations. Here are 3 today.

I do have a catptcha on the registrations page.
It is often followed by a password reset request.

Ok, thanks.

Same just got my registration turned on and I received these:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Screenshot: https://bit.ly/2RK3dFR
P.S. Couldn't screenshot all and not sure if they are spam but in my theory, they are.

I hesitate to add email domains that have been used for user registrations to the blacklist. Unless the domains are URL shorteners (as noted in the read me), they should be considered as valid, legitimate domains.
User registrations are harder to filter because they are not accompanied by any additional links or text, like comments are.
If you find that you are getting multiple bogus registrations from the same email domain, consider using a plugin such as Comment Blacklist Manager and adding your site-specific terms to the Local Blacklist field. The plugin will automatically update the primary blacklist from my repository, but also include your custom terms from the local list.

consider using a plugin such as Comment Blacklist Manager

Boom. I've been looking for such a things for ages - just what I need. I'd missed it in your readme.


Create separate path for geo derivatives

Creates separate path for geo derivatives. Closes #871

Coverage remained the same at 100.0% when pulling 26fca8be2ee0026cdeb305fdbf0ea30be3dc98c2 on 871-geo-derivatives into dcda02252b4ecf3e14f9578f4d853257c397f236 on geo_concerns.

Coverage remained the same at 100.0% when pulling 26fca8be2ee0026cdeb305fdbf0ea30be3dc98c2 on 871-geo-derivatives into dcda02252b4ecf3e14f9578f4d853257c397f236 on geo_concerns.

Coverage remained the same at 100.0% when pulling 8d08e88a57d2fdbba6ad8dbbccba67d70c23cccc on 871-geo-derivatives into dcda02252b4ecf3e14f9578f4d853257c397f236 on geo_concerns.


How can I trigger highlight function for markdown code block with four whitespace

Markdown text like below will not trigger highlight function.
code with 4 whitespaces ahead

but code between ``` can trigger it
code between ```

You should override code block renderer to make it behave similar to fenced block https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js#L30.


Project Crashes After Adding repositoryName Field

I followed every step in the README file, but once I switched the 'prist' repo name to my repo name called 'cRotunno' the program compiles when running gatsby-develop, but the local server creashes.

https://github.com/margueriteroth/gatsby-prismic-starter-prist/issues/11#issuecomment-546243720

Same problem here, I can't run gatsby develop and edit. All running perfect if I don't change the "prist" repo name, but obviusly I can't add new posts

I found the solution to the problem in this answer to another thread.
To make it short, you have to fill your new Prismic repo with content before building. And make sure links are actual links.

Same issue. @regisaberbache solution fixed it.

Same. Fixed when I used the solution in this issue.


Add generally not needed files (.sln) to .gitignore

[ ] Add the files you generally don't need to .gitignore
[ ] Update the CONTRIBUTING.md with instructions to ignore the .ignore file when you need an excluded file.

dup of #1385


Dataview implicit fields don't seem to be working inside the new dataview query

Describe the bug
Dataview implicit fields don't seem to be working inside the new dataview query.
To Reproduce
FROM !"_system" WHERE type = this.file.link doesn't work in db-folder, but it does in a normal dataview query.
Desktop (please complete the following information):

OS: [Win 11]
Version [1.8.0]

"this" implies the context of the current file, but the query does not support it yet, maybe with future dataview versions. The context could be the own database file


Custom breakpoints can cause error in Chrome 88

Custom breakpoints with removed breakpoints as xs, xl etc. are still active and processed with JSS as a string, so in some calculations with this value, NaN is returned and it causes an error. This is caused only in Chrome 88+ because for some reason latest Chrome change the behavior of calculation with NaN.

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
Custom removed breakpoints have a string value. This removed breakpoint is still used in some components and it causes an error.

Expected Behavior 🤔
Custom removed breakpoints are ignored.

Steps to Reproduce 🕹

Steps:
1.Create custom breakpoints and remove xs and xl breakpoints:
const theme = createMuiTheme({
  breakpoints: {
    keys: ["sm", "md", "lg"],
    values: {
      sm: 0,
      md: 764,
      lg: 1366,
    },
  },
})
declare module "@material-ui/core/styles/createBreakpoints" {
  interface BreakpointOverrides {
    xs: false;
    xl: false;
  }
}

Create some component which uses breakpoints, in my case MuiContainer
Open application in Chrome 88 (older versions and Firefox works correctly)
react-dom.production.min.js:216 TypeError: Failed to execute 'px' on 'CSS': The provided double value is non-finite. error should occure in console

Your Environment 🌎

`npx @material-ui/envinfo`

  System:
    OS: Linux 5.8 Ubuntu 20.10 (Groovy Gorilla)
    CPU: (8) x64 AMD Ryzen 5 2400G with Radeon Vega Graphics
    Memory: 1.62 GB / 13.66 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 14.15.0 - /usr/bin/node
    Yarn: 1.16.0 - /usr/local/bin/yarn
    npm: 6.14.8 - /usr/bin/npm
  Managers:
    Apt: 2.1.10 - /usr/bin/apt
    pip3: 20.1.1 - /usr/bin/pip3
    RubyGems: 3.1.2 - /usr/bin/gem
  Utilities:
    Make: 4.3 - /usr/bin/make
    GCC: 10.2.0 - /usr/bin/gcc
    Git: 2.27.0 - /usr/bin/git
  Virtualization:
    Docker: 19.03.13 - /usr/bin/docker
  IDEs:
    Nano: 5.2 - /usr/bin/nano
    Vim: 8.2 - /usr/bin/vim
  Languages:
    Bash: 5.0.17 - /usr/bin/bash
    Perl: 5.30.3 - /usr/bin/perl
    Python: 2.7.18 - /usr/bin/python
    Python3: 3.8.6 - /usr/bin/python3
    Ruby: 2.7.1 - /usr/bin/ruby
  Databases:
    MySQL: <IP_ADDRESS> - /usr/bin/mysql
  Browsers:
    Chrome: 88.0.4324.96
    Firefox: 84.0.2
  Monorepos:
    Yarn Workspaces: 1.16.0

See: #24519

See: #24519

@lehovec Great, I could reproduce the issue: https://codesandbox.io/s/material-demo-forked-ipnbz?file=/demo.tsx.

@lehovec Great, I could reproduce the issue: https://codesandbox.io/s/material-demo-forked-ipnbz?file=/demo.tsx.

It comes from this line:
https://github.com/mui-org/material-ui/blob/569c72e8d3eae604b7d8266dcab557c485ed935e/packages/material-ui/src/Container/Container.js#L41
Math.max(undefined) === NaN
We also have the issue with the Dialog:
https://github.com/mui-org/material-ui/blob/569c72e8d3eae604b7d8266dcab557c485ed935e/packages/material-ui/src/Dialog/Dialog.js#L76
We have solved the issue in v5 by not rendering the style of the xs breakpoint unless we really need to, which we don't in your case as disabled:
https://github.com/mui-org/material-ui/blob/ad8167abd6447b0cc2266badcc962cc030143b90/packages/material-ui/src/Container/Container.js#L73-L77
At this point, I think that it will be more efficient to spend time-solving https://github.com/cssinjs/jss/issues/1445 (the fix is trivial) than working on this very issue.

It comes from this line:
https://github.com/mui-org/material-ui/blob/569c72e8d3eae604b7d8266dcab557c485ed935e/packages/material-ui/src/Container/Container.js#L41
Math.max(undefined) === NaN
We also have the issue with the Dialog:
https://github.com/mui-org/material-ui/blob/569c72e8d3eae604b7d8266dcab557c485ed935e/packages/material-ui/src/Dialog/Dialog.js#L76
We have solved the issue in v5 by not rendering the style of the xs breakpoint unless we really need to, which we don't in your case as disabled:
https://github.com/mui-org/material-ui/blob/ad8167abd6447b0cc2266badcc962cc030143b90/packages/material-ui/src/Container/Container.js#L73-L77
At this point, I think that it will be more efficient to spend time-solving https://github.com/cssinjs/jss/issues/1445 (the fix is trivial) than working on this very issue.

Fixed with #24570

Fixed with #24570

@oliviertassinari
When I try to use xs as max-width in my container component, mui sets it to 444 although in my theme settings it is set to 360.
Why would it do that and how can I override it?
Works fine with all other breakpoints.


feat: session related change-password tests

Signed-off-by: Meenal Trivedi<EMAIL_ADDRESS>

@kegsay Can you please tell me how can I get multiple sessions for a user l=https://github.com/matrix-org/sytest/blob/eedac420ae8c810f48200e7a4ba6a3bc85958f35/tests/14account/01change-password.pl#L93 like done for this one?

You need to call /login again. See https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-login

You

But isnt it trying to start an another session? We need to see if any other session already started should be invalidated except for the existing ones which was used to change password 🤔

trying to start an another session

This is what you asked for:

Can you please tell me how can I get multiple sessions for a user

If you want to check session invalidation AFTER changing your password, then make the 2nd session before changing your password.

@kegsay Please review the updated PR.


Texts on GUI is hardcoded and cannot be found in the language file

Description
Texts on GUI is hardcoded and cannot be found in the language file. This is very bad for globalization. Technically, all non-debug displayed texts should be localizable.
How to reproduce

Select world type TerraForged on world creation screen. Click customize to make sure there are some texts on the GUI.
Navigate into the mod jar file. Open assets/terraforged/lang/en_us.json.
❎ Texts seen in the GUI cannot be found here. This means they are hardcoded.

#155


fix(scf): handler update

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


commit_for_testing

Don't close the PR. Ask me once for changes.
@tarunsamanta2k20
Issue link: #96
Issue Description:
One minor issue I found while adding a new database connection is, If any field is kept empty, it does show "cannot be empty," which is good.
We can make the border of the empty field Red if it is empty. (Warning)

There are conflicts! Please resolve the conflicts

Is it possible to show the errors when the user presses the add button but before hitting the API? can you make that change?

No! I mean't displaying the empty field as red only after pressing add button and not before that. By default it should be default input css style.

@paraswaykole did you watch my video from conversation section?
When I am pressing add but button then only red borders are getting visible. Right?

Ok! The video doesn't play. I will test it and merge it then.

Looks good! One last change. backend only throws cannot be empty error when "display name or host or port or database name" is empty. Can you add these checks only for these 4 fields now.

@paraswaykole at the place of cannot be empty?

Looks good! One last change. backend only throws cannot be empty error when "display name or host or port or database name" is empty. Can you add these checks only for these 4 fields now?

@paraswaykole at the place of cannot be empty?

Nope. For showing the red input boxes

Nope. For showing the red input boxes

@paraswaykole where do i have to add?

You have already added the red border on the input boxes for all the input boxes when it throws error. Show the red border only on the 4 mentioned input boxes, remove the code for rest of them. Please make these changes.
four input boxes where red border should show when it throws errors are:

display name
host
port
database name

You have already added the red border on the input boxes for all the input boxes when it throws error. Show the red border only on the 4 mentioned input boxes, remove the code for rest of them. Please make these changes.
four input boxes where red border should show when it throws errors are:

display name
host
port
database name

@paraswaykole what about checkboxes red border?

You have already added the red border on the input boxes for all the input boxes when it throws error. Show the red border only on the 4 mentioned input boxes, remove the code for rest of them. Please make these changes.
four input boxes where red border should show when it throws errors are:

display name
host
port
database name

@paraswaykole what about checkboxes red border?

Not needed!

@paraswaykole done

@paraswaykole please add me as a member of your organization. I wanna contribute more in tte future.


rekit-studio can't launch success

I can't launch rekit studio. After Checking in network of devtools, I find request of project-data failed. And the response id TypeError: Cannot read property 'name' of undefined. Anyone know where is problem. Thanks.

If I remember correctly I ran into a similar issue. Double check your files manually and make sure there are no references going to other files that you deleted in your project.


Is it possible to add custom section in the home page?

Just like the docsy theme: https://example.docsy.dev/
It would be great if zdoc supports custom extra section in the home page. Btw zdoc is my favorite theme so far, please keep going!

Ok, I'll try

I added some sections.
This is my full test code.
You may get an idea from it.
I'll document this later on.
I'm looking forward to hearing your opinion
---
title: Zzo
description: Hugo Zzo theme documentation landing page
date: 2020-01-26T04:15:05+09:00
draft: false
# updatesBanner: "Banner -   [Hugo ZDoc theme](https://github.com/zzossig/hugo-theme-zdoc)   just arrived"
landingImage: favicon/android-icon-192x192.png
landingTitle:
  - Zzo Docs
landingText:
  - Make a blog with hugo zzo theme!
titleColor:
textColor:
spaceBetweenTitleText: 25
buttons:
  - link: docs/gettingstarted/quickstart
    text: GET STARTED
    color: primary
  - link: https://github.com/zzossig/hugo-theme-zzo
    text: DOWNLOAD
    color: default
sections:
  - bgcolor: teal
    type: card
    description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id eleifend erat. Integer eget mattis augue. Suspendisse semper laoreet tortor sed convallis. Nulla ac euismod lorem"
    header:
      title: Why Zdoc
      hlcolor: "#8bc34a"
      color: '#fff'
      fontSize: 32
      width: 220
    cards:
      - subtitle: Performance
        subtitlePosition: center
        description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id eleifend erat. Integer eget mattis augue."
         Fusce id eleifend erat. Integer eget mattis augue. Suspendisse semper laoreet tortor sed convallis.  Fusce id eleifend erat. Integer eget mattis augue. Suspendisse semper laoreet tortor sed convallis.  Fusce id eleifend erat. Integer eget mattis augue. Suspendisse semper laoreet tortor sed convallis. Nulla ac euismod lorem"
    header:
      title: Build it with Zdoc
      hlcolor: DarkKhaki
      color: "#fff"
      fontSize: 32
      width: 340
    body:
      subtitle: Extensible and customizable.
      subtitlePosition: left
      description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id eleifend erat. Integer eget mattis augue. Suspendisse semper laoreet tortor sed convallis. Nulla ac euismod lorem"
      color: white
      image: images/section/root-server.png
      imagePosition: left
---

Yes, this works perfectly! Just like the home page on zzodocs.netlify.com now. Please add this to the theme and document it.
There is one potential improvement though. I think the top section should cover full screen (like the docsy theme and has an arrow to indicate scrolling down for below sections), or at least should be an option for it.

@laubonghaudoi
I add support background on the landing page.
We have new landing params height, backgroundImage
You can do this.
landing:
  height: 500
 ...
  backgroundImage:
     src: images/landscape.jpg
     height: 600

Also, you can set navbar menu colors.
You can find the color.toml file at root/themes/data/color.toml.
Copy-paste the file at your root/data/color.toml and edit the file as you want.


Can add a function  that Retrieving original destination from iptables after REDIRECT  with netty  “SO_ORIGINAL_DST ”

I want to use this as a transparent proxy, where my original plan is to use iptables with a REDIRECT rule forward all connections to my application proxy.

I did this last year and far as I can remember, Netty was receiving original source and destination IP and Port. I had EpollChannelOption.IP_TRANSPARENT enabled.

I configure this feature whit EpollChannelOption.IP_TRANSPARENT enabled. How do I get it original source and destination IP and Port when  TCP connect？

there is demo
i```
ptables -t nat -A OUTPUT -p tcp -j REDIRECT  --to-ports 12345
iptables -t nat -A PREROUTING -p tcp -j REDIRECT  --to-ports 12345
netty code

`      ServerBootstrap serverBootstrap1 =new ServerBootstrap();
        serverBootstrap1.group(new EpollEventLoopGroup())
                .channel(EpollServerSocketChannel.class)
                .option(EpollChannelOption.IP_TRANSPARENT,true)
                .childOption(EpollChannelOption.IP_TRANSPARENT,true)
                .childHandler(new ChannelInitializer<SocketChannel>() {
                    @Override
                    protected void initChannel(SocketChannel ch) throws Exception {
                        ch.pipeline().addLast(new SimpleChannelInboundHandler<Object>() {

                            @Override
                            protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {
                                System.out.println(ctx.channel().remoteAddress());
                                System.out.println(ctx.channel().localAddress());
                                System.out.println(ctx.channel());
                                EpollSocketChannelConfig config = (EpollSocketChannelConfig)ctx.channel().config();
                                System.out.println(config.isIpTransparent());

                            }
                        });

                    }
                }).bind("<IP_ADDRESS>",12345).sync();`

request：
**curl localhost:12**
result ：
**/<IP_ADDRESS>:37466
/<IP_ADDRESS>:12345
[id: 0x128b8653, L:/<IP_ADDRESS>:12345 - R:/<IP_ADDRESS>:37466]**

Not sure but try this command:
iptables -t mangle -A PREROUTING -p tcp --dport 443 -j TPROXY --on-port=9110 --on-ip=<IP_ADDRESS>

This will forward traffic received on TCP:443 to <IP_ADDRESS>:9110/TCP using Transparent Proxy.

The problem has been solved. Thank you.but I still hope that netty can adapt a function Retrieving original destination through the DNAT  instead of TPROXY in the future

The problem has been solved. Thank you.but I still hope that netty can adapt a function Retrieving original destination through the DNAT instead of TPROXY in the future

how to solve it ? I want to learn more about this .Thanks


remove eligible_groups: use miq_groups instead

Background: removing session[:group] from everywhere.
If possible, removing access to the user's id, or group ids, and using real objects instead.
In this case, the logic in the method was overkill.

the user is logged in.
the method was only called if the count was > 1.
the method only pulled out the id and description.

removing globals and access to session[:group]
/cc @dclarizio Does this look good to you?

@kbrock another nice PR!
@dclarizio looks good to merge, IMO.

@kbrock @chessbyte It looks good, but I wanted to verify that the group selector still worked which, I thought, was now allowed for non-ldap users as well, but can't seem to figure out how.  Will ping @kbrock as maybe I am misunderstanding.

Spoke with @dclarizio we can create this scenario directly in the appliance console. wonder if we want to be able to associate a user with multiple groups in the ui. will create a trello

@kbrock @dclarizio I do not understand what was the result of your conversation yesterday.  Is this PR mergeable as is or needs to be updated?

@chessbyte dan is verifying that it is still working. as is

@chessbyte Yes, I found out from @kbrock that the models support non-LDAP users to belong to multiple groups so I can test out the top right group picker without needing to login using LDAP.  Hope to get to testing it out soon.

OK, tested in UI and the group switcher seems operational . . . merging.


Edited and added new sections to the quickstart tutorial

Overview: What does this pull request change?
Edited the quickstart guide for easier reading, according to technical writing best practices. Added two sections, one on positioning mobjects and another on using .animate.

Motivation and Explanation: Why and how do your changes improve the library?
Resolves #1863

Links to added or changed documentation pages

https://manimce--2216.org.readthedocs.build/en/2216/tutorials/quickstart.html
Further Information and Comments
I wasn't sure how to check the formatting, especially for the links to other parts of the site and the animation displays. Might need fixing.

Reviewer Checklist

[ ] The PR title is descriptive enough for the changelog, and the PR is labeled correctly
[ ] If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
[ ] If applicable: newly added functions and classes are tested

@Darylgolden Thank you for the feedback! Before I get started incorporating it, something I should have asked before I began any editing: is there a way to preview the way the document will look beforehand? When I look at it in my repository a lot of the formatting seems to break.

I'm not aware of any such feature; however, you can commit the changes and revert the commit if you find that it breaks the formatting.


[FileSpec] Re-implmenet removeLastPathComponent

When reading DBGSourcePathRemapping from a dSYM, we remove the last two
path components to make the source lookup more general. However, when
dealing with a relative path that has less than 2 components, we ended
up with an invalid (empty) FileSpec.
This patch changes the behavior of removeLastPathComponent to remove the
last path component, if possible. It does this by checking whether a
parent path exists, and if so using that as the new path. We rely
entirely on LLVM's path implementation to do the heavy lifting.
We now also return a boolean which indicates whether the operator was
successful or not.
Differential revision: https://reviews.llvm.org/D47495
rdar://37791687
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@333540 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 23454e85f0ef4916fc9282deddcbaa378d06c62d)

@swift-ci please test and merge

Looks like m_style is not available yet.

@swift-ci please test and merge


feat: Added endpoint to regenerate schema oauth credentials

Added endpoint to regenerate OAuth clientId and clientSecret for ST Schema apps
Types of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] I have read the CONTRIBUTING document
[x] My code follows the code style of this project (npm run lint produces no warnings/errors)
[x] Any required documentation has been added
[x] I have added tests to cover my changes

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


没有chaosblade-operator-yaml-0.6.0版本

Issue Description
kubectl安装小节里提示使用chaosblade-operator-yaml-VERSION的版本，但是在最新release里没有找到。
Type: bug report or feature request
Describe what happened (or what feature you want)
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)

Tell us your environment
Anything else we need to know?

YAML installation is no longer provided, use Helm


Application to GPT-J family

Congratulations on your achievement.
Can you give us some hints and recommandations to adapt the procedure in order to quantify the GPT-J models family ?

Hi,
since the GPT-J models are I think pretty standard Transformers, much like OPT and BLOOM, it should not be too difficult to apply GPTQ to those models as well.
There core algorithm in gptq.py is designed to work with linear layers and should thus work for GPT-J as well (assuming that the model implementation also uses nn.Linear layers). What will however require changes is the code that applies this algorithm to each layer in turn: opt_sequential() and bloom_sequential() in the opt.py and bloom.py files, respectively. In general, I believe this should mainly involve changing layer-names to match those in the GPT-J model definition (there might however be some other model-specific details that require some additional adjustments). I would recommend to compare our OPT and BLOOM implementations (opt.py and bloom.py) to see what is different between them and hence will probably need some adjustment for GPT-J.
I hope this helps a bit.
Elias

你好，
由于 GPT-J 模型是我认为非常标准的变形金刚，很像 OPT 和 BLOOM，因此将 GPTQ 应用于这些模型也应该不会太困难。
其中的核心算法gptq.py设计用于线性层，因此也适用于 GPT-J（假设模型实现也使用nn.Linear层）。然而，需要更改的是依次将此算法应用于每一层的代码：分别在opt_sequential()和文件bloom_sequential()中。总的来说，我认为这应该主要涉及更改图层名称以匹配 GPT-J 模型定义中的图层名称（但是可能还有一些其他特定于模型的细节需要一些额外的调整）。我建议比较我们的 OPT 和 BLOOM 实现（和），看看它们之间有什么不同，因此可能需要对 GPT-J 进行一些调整。opt.py``bloom.py``opt.py``bloom.py
我希望这个能有一点帮助。
埃利亚斯

你好，我正在将GPTQ应用到GPT-J模型中，出现了点错误，请问nsamples的意义主要是什么？应用到别的模型上时，nsamples应该怎么修改？


NotImplemented error

Hi, I'm using the resnet for inference.
[train]
spatial_window_size = (16,16,16)
[inference]
border = [5,5,5]
spatial_window_size = (8,8,8)
It gave me this error:

File "/home/yilinliu/Niftynet_copy/niftynet/engine/windows_aggregator_base.py", line 135, in crop_batch
raise NotImplementedError
NotImplementedError

I've also tried [0,0,8] for the spatial_window_size and set border to [0,0,0]. None of them worked.
Any help is appreciated!

The border is applied both sides of each dimension: I think this may mean you have negative dimensions for your inference. Try increasing the spatial window size or decreasing the border. Any luck?


[curl] sFTP protocol not supported

Even when installing curl[non-http] package for windows, sFTP protocol is missing (HTTPS is present though). I don't want to use winssl, I chose the default ssl backend.
Is there any technical reason why all protocols are not enabled when choosing the non-http feature for curl port?
Would it be possible to enable sFTP?
Thanks

Have you tried using curl[ssh]?  I that feature will implicitly enable curl[non-http] and should enable sFTP.  I don't think there is a technical reason why all protocols are not enabled, it is probably because the features in vcpkg reflect the way the upstream Curl CMake options are set up which do not enable sFTP unless explicitly enabling ssh.

Unfortunately when you choose curl[tool] is automatically disable libssh2.
I checked the generated cmake cache file, and it says: CMAKE_USE_LIBSSH2:BOOL=OFF
sFTP can only be enabled if libssh2 is used (based on what I can see in cURL source code).

FYI, I updated to the latest vcpkg today. I've seen that curl is now on v7.66.0 and I'm now able to use sFTP along with curl[non-http], curl[openssl] and curl[ssh].
I don't know if you changed something in the curl port, or if it's just a fix from curl itself, but it looks OK to me now!

Hi @christophe-calmejane  thanks for posting this issue. curl has been updated to version v7.66.0 that fixed many issues. Please refer to this https://curl.haxx.se/changes.html#7_66_0 if you're interested in these changes. This issue has been fixed now. I'll close it.


Logged is as null

Hello
I always got follow message in the bottom page

Maybe is it bug?

I think this might be because you do not have a name set in your GitHub profile.

Yup, that's exactly the problem.

Yup, that's exactly the problem.

Maybe Releaser should display nickname, if profile name is null? Why did you close the issue?

Yeah, we could update it to show the email if displayName is null

Yeah, we could update it to show the email if displayName is null

Um, why? For example, you have:

Profile name: Richard Hagen
Nickname: Richard87
Email: undefined

We could show nickname (it's required for user) if profile name (not required) is empty, not email (not required).

@Richard87 So, and what is your email?

To specify, from Firebase Authentication, we just get displayName (in this
example, "Richard Hagen") and email :)
tor. 29. jun. 2017 kl. 16:59 skrev Alexander Popov<EMAIL_ADDRESS>
:

@Richard87 https://github.com/richard87 So, and what is your email?
[image: image]
https://user-images.githubusercontent.com/6510020/27694417-afe5768c-5cf4-11e7-8d53-75ec15cb441f.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Richard87/releaser/issues/18#issuecomment-311993764,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFe704oBOF5lNqaBNgKkQZyivvzUnfezks5sI7vegaJpZM4OG4Wb
.

@Richard87 Oh, okay, thank you.

No problem!
tor. 29. jun. 2017 kl. 18:31 skrev Alexander Popov<EMAIL_ADDRESS>
:

@Richard87 https://github.com/richard87 Oh, okay, thank you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Richard87/releaser/issues/18#issuecomment-312021294,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFe708HaqrTxdjpnQe0L3E-kXZiO7Ovvks5sI9FzgaJpZM4OG4Wb
.

@AlexWayfer Could you test that it works as expected now?

@AlexWayfer Could you test that it works as expected now?

Production? Still null :disappointed:

ahh, thanks, I forgot to push deploy :O
søn. 6. aug. 2017 kl. 20:52 skrev Alexander Popov<EMAIL_ADDRESS>
:

@AlexWayfer https://github.com/alexwayfer Could you test that it works
as expected now?
Production https://releaser.richardhagen.no/? Still null 😞
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Richard87/releaser/issues/18#issuecomment-320508327,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFe7045xLK1z_1-RGAwh2LFSiOSX4S30ks5sVcU2gaJpZM4OG4Wb
.

@AlexWayfer  Just pushed new version, could you try again? Sorry for the inconvenience! I appreciate your help :)

Sure, no problem!
I checked: now the email is displayed :tada:
You can close this issue :)

Thanks man!


Added strings for the edit csproj dialogs.

Added dialog strings for needing to reload the project file and saving changes to the project file on close. Screenshots:

What is the later dialog?

If there are unsaved changes in the buffer on buffer close. We can't just reuse the existing editor logic as there's no real backing file for the editor any more.

So what happens if I have 5 projects with unsaved changes? We prompt 5 times?

At present, yes. All of the state machine logic is at the project level, so we'd have to create a machine to live at the solution level to consolidate that.

Let's talk offline - we really should be opt'ing into the existing infrastructure


Koogeek Smart Plug #KLUP1  {Not Flashing}

Hello,
Device - "https://www.amazon.co.uk/gp/product/B07XGRG9SB/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&th=1"
Probem - Device failed to flash using Raspberry Pi 3 - Model B (Linux raspberrypi 4.19.66-v7+)
Smart Plug in pairing mode with rapid flashing LED.
Method 1, with Wemos d1 as AP (device LED flashing, then solid as flashing commences)
Log:
Attempting to stop wpa_supplicant
Configuring AP interface...
RTNETLINK answers: Network is down
RTNETLINK answers: Network is down
Starting DNSMASQ server...
Starting AP on wlan0...
Configuration file: /dev/stdin
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:79:30:e5 and ssid "vtrust-flash"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: AP-STA-CONNECTED dc:4f:22:17:f3:6c
wlan0: interface state ENABLED->DISABLED
wlan0: AP-STA-DISCONNECTED dc:4f:22:17:f3:6c
wlan0: AP-DISABLED
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
AP closed
Stopping DNSMASQ server...
Method 2, with android phone as AP (phone gets ip from pi)
Log:
Configuring AP interface...
RTNETLINK answers: File exists
Starting DNSMASQ server...
Starting AP on wlan0...
Configuration file: /dev/stdin
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:79:30:e5 and ssid "vtrust-flash"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: AP-STA-CONNECTED 2c:fd:ab:ce:ce:3d
wlan0: interface state ENABLED->DISABLED
wlan0: AP-STA-DISCONNECTED 2c:fd:ab:ce:ce:3d
wlan0: AP-DISABLED
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
AP closed
Stopping DNSMASQ server...
Please help. Thank You.

Please post the rest of your logs, there's not much to go on here

{log purged, restart, using wemos d1 (solid LED)}
System info
94acc3b
Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
OpenSSL 1.1.0l  10 Sep 2019
Dnsmasq version 2.76  Copyright (c) 2000-2016 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-$
This software comes with ABSOLUTELY NO WARRANTY.
Dnsmasq is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License, version 2 or 3.
hostapd v2.6
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2016, Jouni Malinen<EMAIL_ADDRESS>and contributors
Python 3.5.3
Attempting to stop wpa_supplicant
Configuring AP interface...
RTNETLINK answers: Network is down
RTNETLINK answers: Network is down
Starting DNSMASQ server...
Starting AP on wlan0...
Configuration file: /dev/stdin
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:79:30:e5 and ssid "vtrust-flash"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: AP-STA-CONNECTED dc:4f:22:17:f3:6c
wlan0: interface state ENABLED->DISABLED
wlan0: AP-STA-DISCONNECTED dc:4f:22:17:f3:6c
wlan0: AP-DISABLED
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
AP closed
Stopping DNSMASQ server...

sudo nano smarthack-psk.log
^CTraceback (most recent call last):
File "./psk-frontend.py", line 113, in
main()
File "./psk-frontend.py", line 106, in main
r,, =  select.select(readables, [], [])
KeyboardInterrupt
sudo nano smarthack-udp.log
Listening for Tuya broadcast on UDP 6666
Listening for encrypted Tuya broadcast on UDP 6667
^C
sudo nano smarthack-web.log
Listening on <IP_ADDRESS>:80
^CReceived SIGINT, exiting...

Any advice ?

I don't see your smart plug appear in the logs. It may not be an ESP8266 based Tuya module.
Are you able to retrieve the MAC address of the unit? You can then check to see if the OUI is Espressif Inc.

Yes its Espressif Inc...

Does the device stop blinking when you are running start_flash?

Hello @kueblc , I have the same problem and the device was blinking fast (EZ Mode) and after start_flash the device stop blink.


Expose the Auth component's current view to the NextJS parent page to enable relevant "page furniture"

When the Auth component is placed in a NextJS page, the parent page needs the ability to access the current view state to display a relevant title and supporting copy.
Currently there is no way to determine the state of a the Auth component - e.g. whether it is displaying the Sign In, Sign Up or Forgotten Password screen. As such, it is not possible to display a relevant title or subtitle on the page.
If the page is able to determine the state of the component, the content and styling of the page can be updated to reflect this - specifically copy referring to "Please sign in" could change to "Please sign up" as the Auth screens change. Further, when the user signs up and has to click on the confirmation email, this could become part of a broader on-boarding journey if the parent app is aware of the change of state.
Possible solutions:

A callback function could be accepted by the Auth component and be used to update the parent on state changes

The use of a callback function would enable the Page to be synchronised and updated as the user navigated through the Auth component.

Alternatively, perhaps the SessionContext object could be used with a signin state that could be accessed by the parent page - e.g. "Sign In" / "Sign Up" / "Needs confirmation" / "Password Reset" etc

Example screenshot - Sign Up screen with Sign In header:

I think #47 will better address this as I don't think we should be leaking the state outside of the component. What #47 will enable is for you to create your own paths (pages) in your app and show only the component/view relating to that path.

I think this makes sense - ultimately it "unbundles" the component but achieves the same end result with only the relevant view being available on each page.
Adding title & subtitle props so that the component can be placed with supporting copy is a 3rd possible solution but of the three I think I concur that #47 is probably the most versatile.

This is now possible using the method I outlined above in the latest 0.2.5 version. I've mentioned a bit more in #47 how this can be done.


Adding parameter to LogTargetW3C MSFT_xIisLogging.psm1

Pull Request (PR) description
xIISLogging does not currently contain the logTargetW3C parameter. I have added the parameter and updated tests.
This Pull Request (PR) fixes the following issues

Fixes #414

Task list

[x] Added an entry under the Unreleased section of the change log in the README.md.
Entry should say what was changed, and how that affects users (if applicable).
[x] Resource documentation added/updated in README.md.
[x] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[x] Unit tests added/updated. See DSC Resource Testing Guidelines.
[x] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[x] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #416 into dev will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##              dev    #416      +/-   ##
=========================================
+ Coverage   90.67%   90.7%   +0.03%
=========================================
  Files          17      17
  Lines        2412    2421       +9
=========================================
+ Hits         2187    2196       +9
  Misses        225     225

Impacted Files
Coverage Δ

...SCResources/MSFT_xIisLogging/MSFT_xIisLogging.psm1
97.74% <100%> (+0.16%)
:arrow_up:

Continue to review full report at Codecov.

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

Added the parameter to integration tests.


do not generate og images for posts in "_draft" folder

there can be any random stuff in drafts, that does not nessesarily have a markdown header. without a valid markdown header, there can be a text: invalid markup in text (Vips::Error) and the jekyll serve will fail

my bad, I ran the server with --drafts


hostname dsthost not working

It seems that the default sys-firewall supports hostnames for appvm firewall configs.
The same cannot be said for mirage, as adding a hostname to a dsthost yeilds no changes to network connectivity.
It's fairly easy to reproduce, simply create an appvm with a hostname firewall rule, and switch between default sys-firewall and mirage-firewall and notice how mirage-firewall doesn't respect those rules.

DNS resolution in firewall rules is supported in the firewall now.
How do you reproduce your problem step by step, and what's the error output you see?

It seems I didn't test thoroughly initially, and after some more testing it seems to work perfectly.


Some OSM objects do not have styling

Need to add more styles to account for things such as: hospitals, graveyards, etc.

It's not ideal, but there are default styles for overpass turbo: https://wiki.openstreetmap.org/wiki/Overpass_turbo/MapCSS#overpass_turbo_-_Default_Style

@yeesian
I think that this is now resolved--I added styles for every tag of the most common types of OSM objects so now you can change the style for any tag by modifying it's entry in the dictionary. I think that now perhaps it might be useful to have some way of parsing MapCSS to change the styles.jl file so that the styles align. Maybe it would make sense to have a Style object that has the dictionary in it.


⚠ ClamAV has degraded performance

In 60ffed8, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 189 ms

Resolved: ClamAV performance has improved in 6b7922c.


Add the cluster core IP address for the Windows Server Failover Cluster (WSFC)

About a year ago we followed this article but I do not remember this part.
Can someone explain why?

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

ID: ee7ac6ba-8f0a-b6d9-99f4-a335afc63b99
Version Independent ID: 2b550681-c147-281d-15be-ff701387797f
Content: SQL Server Availability Groups - Azure Virtual Machines - Tutorial
Content Source: articles/virtual-machines/windows/sql/virtual-machines-windows-portal-sql-availability-group-tutorial.md
Service: virtual-machines-sql
GitHub Login: @MikeRayMSFT
Microsoft Alias: mikeray

@MCKPRO Thank you for the detailed inquiry. This is the health probe that monitors the cluster to determine the health of virtual machines that are member of the cluster.

Windows Server Failover Clustering (WSFC) is a feature of the Windows Server platform for improving the high availability (HA) of applications and services. WSFC, which is the successor to Microsoft Cluster Service (MSCS), can be administered through the Failover Cluster Manager snap-in.

More information can be found with the following document, as the document you opened this GitHub issue under is a tutorial and doesn't explain the functionality: Windows Server Failover Clustering with SQL Server
I hope this information provides you the information you are seeking. Please let me know if you have additional questions.

@MCKPRO We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


[Feature Request] Parameter Values from SSM Parameter Store / Secret Store

Adding Parameter Store / Secret Store support for params would be awesome.
Something like...
$[taskcat_secretstore_SECRET_NAME]
$[taskcat_secretstore_UNICORN-API-TOKEN]

Would also want to support JSON data within the value.
UNICORN-API-TOKEN Value:
{
 "latest":"foobar"
}

$[taskcat_secretsetore_UNICORN-API-TOKEN_latest] would return foobar.

Brainstorming a little. This would leverage the client exposed per RegionObj, so perhaps some cross-documentation references would be needed


feat: Filter workflows by "Finished before" and "Created Since" via API. Fixes #13151

Fixes #13151
Motivation

"Finished before" and "Created Since" are filtering workflows client-side so not all workflows are shown

Modifications

I implemented createdAfter and finishedBefore on server side similarly to https://github.com/argoproj/argo-workflows/issues/12161.
Remark on implementation: createdAfter is based on metadata.creationTimestamp which is stored as json so I needed to extract it is the request here
I didn't update the CLI as mentioned here by @agilgur5 as I never worked with the CLI and don't really know what to do. Can someone give me an insight on that or maybe we could split this in another issue to implement in the CLI later ?

Verification

Tests for ListWokflows function
Local testing on existing worflows

Initial workflows

Filtering created since

Filtering finished before

Filtering finished before

I didn't update the CLI as mentioned here by @agilgur5 as I never worked with the CLI and don't really know what to do. Can someone give me an insight on that [...]?

The CLI is one of the most straightforward parts of the codebase (simpler than the UI and API, IMO); each command has a file (e.g. cmd/argo/commands/list.go) with around ~100-200 LoC each (depending on the number of flags).
You can see the existing client-side date filters in the list command starting on this line

Verification

you'll want to test when both are set as well since there are some edge cases with that, although now that these are in the API, that can be covered with back-end tests
and ensure that with and without archived workflows works correctly

@agilgur5  join the band again 🎸

My original rationale has not changed, so that won't happen, but if I'm tagged somewhere (as I was here) and it's related to something I wrote, I do try to be helpful as a general principle.
I didn't do an in-depth review, but as I was looking through anyway, I reviewed a small bit


Create 1899-Merge-Triplets-to-Form-Target-Triplet.js

File(s) Modified: 1899-Merge-Triplets-to-Form-Target-Triplet.js
Language(s) Used: javascript
Submission URL: https://leetcode.com/submissions/detail/771026163/

Thanks, @kciccolella!


Add babel-core as a dependency

In a package where we use Happo, running yarn I saw the following warning:

warning " ><EMAIL_ADDRESS>has unmet peer dependency "babel-core@6".

When running yarn in happo.io while investigating the above, I
saw the warnings:

warning " ><EMAIL_ADDRESS>has unmet peer dependency "babel-core@6".
warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| ^7.0.0-0".

This commit addresses the warnings by adding babel-core as a dependency.
I had considered making it a peer-dependency, but considering the amount of babel-* things in this repo, it seems nicer for end users to just add it here so they don't need to deal with it.

@ljharb when running yarn add --peer babel-core I get the following warning from yarn:

warning "babel-core" is already in "dependencies". Please remove existing entry first before adding it to "peerDependencies".

Should I manually add it to get around that? Not sure I fully understand how having it as a dependency and a peer-dependency helps consumers.

If you make it both a dep and a peer dep, it will prevent conflicts while also having a nicer experience for consumers.

This is new to me as well, but if I understand things correctly it will make sure that a dependency is available while also allowing it to be provided/overridden by the consumer. Is that right @ljharb? It might be that yarn is just not handling this correctly.

@MatthewHerbst yarn isn't the standard, npm is, and in this case it's wrong.
So, the overarching issue is: there must only be one copy of babel-core in the tree. Thus, it must be a peerDependency, of everything, except the top-level app.
The downside of it being a peer dep is that consumers need to remember to add it in their top-level app.
By adding it also as a production dependency, users get it installed automatically, but the singleton requirement still gets hoisted to the top-level app, ensuring the desired correctness, while avoiding the UX pitfall.

yarn isn't the standard, npm is, and in this case it's wrong.

This repo has a committed yarn.lock file, so I was going off of that as to which to use.
Thanks for the explanation on why it should be in both.


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[x] Appropriate changes to README are included in PR

thanks for getting me here.


Accept functions as interfaces

Hi!
First of all, thanks for go-linq, it's awesome :)
Since there are no generics in Golang, we have to deal with interface{}-s.
I just spotted nice hack in Glow project to allow users to specify types on parameters themself:
https://github.com/chrislusf/glow/blob/master/flow/dataset_map.go#L19-L47
Seems like a really great idea to steal :)

@bsideup hmm, I am not sure I understood what's going on from the code. Can you please elaborate?

@ahmetalpbalkan yes, I will try :)
Currently what we have in Go-linq:
We receive func with T (aka interface{}) signature, then users almost always perform casting:
over18Names, err := From(students)
    .Where(func (s T) (bool,error){
        return s.(*Student).age >= 18, nil
    })
    .Select(func (s T) (T,error){
        return s.(*Student).name, nil
    }).Results()

But, since casting is a must, we can move it into the go-linq and allow users to specify type on func's signature, so this code will look like this:
over18Names, err := From(students)
    .Where(func (s Student) (bool,error){
        return s.age >= 18, nil
    })
    .Select(func (s Student) (T,error){
        return s.name, nil
    }).Results()

Technically it's possible with reflection. I you want I can implement it and send as a pull request :)

@bsideup ooh interesting. What would be the method signatures for Where/Select in this case?

@bsideup If you're still interested, I'd love to see a prototype. It appears like this would make these methods accept interface{} rather than []linq.T. I have a feeling like this would make the caller code cleaner although it'll probably make it a bit harder to use for the first time, but then we have errors etc to handle that. Feel free to send something over to discuss if you like.

@ahmetalpbalkan sorry for no response for a long time, was busy a little bit
actually, I did some research, and it looks like reflection will affect performance :(
Also, I found this great post about it:
http://blog.burntsushi.net/type-parametric-functions-golang/