How to set up XAML to handle a LIST of objects?

Hello Question: , have a list of objects where one of the properties is LIST ( as below) .
I seem to be having trouble understand how to setup code behind or XAML properly?
 public class PostObject : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        string postOwner = string.Empty;
        string id = string.Empty;
        string profileimage = string.Empty;
        string post = string.Empty;
        List<string> postimages = null;

        public string PostOwner
        {
            set
            {
                if (postOwner != value)
                {
                    postOwner = value;
                    OnPropertyChanged("PostOwner");
                }
            }
            get
            {
                return postOwner;
            }

        }

        public string Id {

            set
            {
                if (id != value)
                {
                    id = value;
                    OnPropertyChanged("Id");
                }
            }
            get
            {
                return id;
            }
        }

        public string Post
        {
            set
            {
                if (post != value)
                {
                    post = value;
                    OnPropertyChanged("Post");
                }
            }
            get
            {
                return post;
            }
        }
        public string ProfileImage
        {
            set
            {
                if (profileimage != value)
                {
                    profileimage = value;
                    OnPropertyChanged("ProfileImage") ;
                }
            }
            get
            {
                return profileimage;
            }

        }
        public List<string> PostImages
        {
            set
            {
                if (postimages != value)
                {
                    postimages = value;
                    OnPropertyChanged("PostImages");
                }
            }
            get
            {
                return postimages;
            }
        }

        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

    }

here is where I'm stuck:
  <StackLayout>
            <cv:CarouselViewControl Orientation="Horizontal" InterPageSpacing="10"  ItemsSource="{Binding MyGroupPosts}" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
                <cv:CarouselViewControl.ItemTemplate>
                    <DataTemplate>
                        <Image  Source="{Binding PostImages}" Aspect="AspectFill" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" />
                    </DataTemplate>
                </cv:CarouselViewControl.ItemTemplate>
            </cv:CarouselViewControl>
        </StackLayout>
    </ContentPage.Content>

What exactly you want to achieve?

Hello @alexrainman,
sorry it was a little vague, I'm getting a list of posts from my server and within that data I have Images for each post. at the moment I able to display my data (without the images in a  <ListView.ItemTemplate>. I like to ad your CarouselViewControl to my <ListView.ItemTemplate> so I can display the images for each post. Does that more sense?

So, you have a list of posts no? Will each post be a page in your carousel? Then the list of post is your ItemsSource. Then each post has a list of images no? Use a ListView as ItemTemplate and the images list is the ListView ItemsSource. The ListView needs an Image as its ItemTemplate.

Q: Will each post be a page in your carousel?
A: No , each post (if possible) will contain a  carousel of none or many images
below is what I been trying to work with. if yo are familiar with Instagram it would look behave something like that
   <ListView x:Name="ItemsListView"
             VerticalOptions="FillAndExpand"
             HasUnevenRows="true"
             IsPullToRefreshEnabled="true"
             IsRefreshing="{Binding IsBusy, Mode=OneWay}"
             CachingStrategy="RecycleElement">

                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell >
                            <StackLayout Padding="10">
                                <Frame x:Name="myframe" HasShadow="True" >
                                    <Grid HorizontalOptions="FillAndExpand"  RowSpacing="0" ColumnSpacing="0"  >
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>
                                        <Label Grid.Row="0"  Text="{Binding Post}" LineBreakMode="NoWrap" Font="Bold,16"  />
                                        <BoxView Grid.Row="1" BackgroundColor="black" HeightRequest="1"  HorizontalOptions="FillAndExpand"/>

                                        <cv:CarouselViewControl x:Name="PostImages" Orientation="Horizontal" InterPageSpacing="10"  ItemsSource="{Binding MyGroupPosts}" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
                                            <cv:CarouselViewControl.ItemTemplate>
                                                <DataTemplate>
                                                    <Image  Source="{Binding PostImages }" Aspect="AspectFill" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" />
                                                </DataTemplate>
                                            </cv:CarouselViewControl.ItemTemplate>
                                        </cv:CarouselViewControl>
                                    </Grid>
                                </Frame>
                            </StackLayout>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>

code be hide
if(RestController.GetMyPostData(ref MyGroupPosts,gi.Id.ToString(), Application.Current.Properties["api"].ToString()))
            {
                ItemsListView.ItemsSource = MyGroupPosts;
            }

I don't think what I'm trying to will work I might have to come up with a different design.

Then each post is an item of a ListView no? Then inside each listview cell, add a carousel which ItemsSource will be the images. Not so complex.

yes, you got it.. :-)

I just can't seem to get the XAML and the item sources correct?

Will post a sample xaml later when i get to be in front of my computer.

Wow thank you so much !

@alexrainman I have figure how to get the plugin to work within a list view data template. Thank you for a great plugin!


[FEATURE]: Documentation Update - Sample manifest files for cosi referenced by documentation need to be added

Describe the solution you'd like
Manifest files for cosi's bucket class and bucket access class are refenced in the csm docs. They need to be created within the repository.
https://dell.github.io/csm-docs/docs/cosidriver/installation/helm/#bucket-classes-bucket-access-classes

Closing issue, issue is addressed under https://github.com/dell/csm/issues/1221


Finalize prefab implementation.

@gleblebedev I think I am done. There are things left, but I don't want to featurecreep this PR.
TODO, maybe after merge:

[ ] Show "unsaved" prefab changes in hierarchy and in component
[ ] Prefabs have unstable node/component ids when updated from component, need to clean it up

https://user-images.githubusercontent.com/8576192/214670973-0d1e1f24-fb49-44f4-b09c-ac0140700ed2.mp4


fix: fixed the heights of buttons on tools/generator page

#2463
This PR fixes the height of the button on tools/generator page
cc: @anshgoyalevil

/rtm


Deprecation Incomplete:  calyx, petal, stigma

We have the following terms in FoodOn:
obsolete: calyx http://purl.obolibrary.org/obo/FOODON_03420276
obsolete: petal http://purl.obolibrary.org/obo/FOODON_03420303
obsolete: stigmahttp://purl.obolibrary.org/obo/FOODON_03420277
They haven't had the deprecation process completed as they still have the "Subclass of: floret or flower" term relation and additional term annotations (which we usually remove).

Done!


nixos-install failed. - "Died at ... update-users-groups.pl"

I failed boot from unstable graphical/minimal iso. It showed just black blank screen.
So, I'm following this manual from Arch linux using chroot method.
https://nixos.org/wiki/How_to_install_NixOS_from_Linux
At 'nixos-install' step, I got this error.
... [snip] ...
updating GRUB 2 menu...
installing the GRUB 2 boot loader on /dev/sdb...
Installing for i386-pc platform.
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
/proc/devices: No entry for device-mapper found
Installation finished. No error reported.
setting up /etc...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = "",
        LC_PAPER = "en_US.UTF-8",
        LC_ADDRESS = "en_US.UTF-8",
        LC_MONETARY = "en_US.UTF-8",
        LC_NUMERIC = "en_US.UTF-8",
        LC_TELEPHONE = "en_US.UTF-8",
        LC_MESSAGES = "en_US.UTF-8",
        LC_IDENTIFICATION = "en_US.UTF-8",
        LC_COLLATE = "en_US.UTF-8",
        LC_MEASUREMENT = "en_US.UTF-8",
        LC_CTYPE = "en_US.UTF-8",
        LC_TIME = "",
        LC_NAME = "en_US.UTF-8",
        LANG = ""
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = "",
        LC_PAPER = "en_US.UTF-8",
        LC_ADDRESS = "en_US.UTF-8",
        LC_MONETARY = "en_US.UTF-8",
        LC_NUMERIC = "en_US.UTF-8",
        LC_TELEPHONE = "en_US.UTF-8",
        LC_MESSAGES = "en_US.UTF-8",
        LC_IDENTIFICATION = "en_US.UTF-8",
        LC_COLLATE = "en_US.UTF-8",
        LC_MEASUREMENT = "en_US.UTF-8",
        LC_CTYPE = "en_US.UTF-8",
        LC_TIME = "",
        LC_NAME = "en_US.UTF-8",
        LANG = ""
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Died at /nix/store/cs2ayqmqaa6wr0hbxjq02q44ir8flcd2-update-users-groups.pl line 135.
/nix/var/nix/profiles/system/activate: line 292: /proc/sys/kernel/hotplug: No such file or directory

Tell me anything what you want for investigation.
Thanks.

I'm getting the same /proc/sys/kernel/hotplug issue on a nixos-rebuild switch. Did anyone make nay progress on this?

@copumpkin did you figure this out in the end?

(triage) should have been solved in the meantime. close @cop

Is this still an issue?

Will close it now since there is no reaction; if it’s still a problem we can reopen it.


The action 'new' could not be found for DeviseTokenAuth::RegistrationsController

Hi, I faced some issue using gem.
I have got such routing
require 'api_constraints'
CapperGroupV1::Application.routes.draw do
  namespace :api, defaults: { format: :json },
                              constraints: { subdomain: 'api' }, path: '/'  do
    scope module: :v1,
              constraints: ApiConstraints.new(version: 1, default: true) do
      mount_devise_token_auth_for 'User', at: '/auth'
    end
  end
end

And I got a result of my rake route :
new_api_user_registration
GET /auth/sign_up(.:format)
devise_token_auth/registrations#new {:format=>:json, :subdomain=>"api"}

But when i'm trying http://api.cappergroupv1.dev/auth/sign_up
I'm getting action missing error
Thanks in advance

@baramik - I think this has been fixed in version 0.1.31.beta8. Please confirm.

@baramik - I originally thought that this issue was related to your use of namespace, which has been fixed as of the latest beta 0.1.31.beta8, but I just realized that you're trying to access the new route of the registrations_controller. I'll repeat the response that I just gave in #105:
The new route isn't used by this gem. In standard devise, the new route is used for rendering the form's html page. This gem expects the form to be rendered by a front-end SPA (angualrjs, backbone, etc.).
I would like to disable the route completely, but according to this SO post, removing it will be more trouble than it's worth.
Let me know if the existence of the route is causing any serious problems, otherwise I'm closing this issue.

@lynndylanhurley hey, so what is the right way to overcome the routes issue? I'm having really similar problem: #199 ..

I wanna get one understanding right. Do i have to get devise installed first in my Rails app before i can use the devise-token-auth gem to connect wt my angularJS part?

@baramik where u able to solve this issue? cant solve it and i hv been on it for over 2days

@andreydeineko  where u able to solve this issue?

You don't need this route.
On Sun, Apr 12, 2015 at 7:23 AM Kingsley Simon<EMAIL_ADDRESS>wrote:

@andreydeineko https://github.com/andreydeineko where u able to solve
this issue?
—
Reply to this email directly or view it on GitHub
https://github.com/lynndylanhurley/devise_token_auth/issues/100#issuecomment-91997002
.

So if i need to register a new user and my front-end html is angularjs how do i route it to rails  similar to the sign_in method? @nicolas-besnard

i am using this tutorial https://www.airpair.com/ruby-on-rails/posts/authentication-with-angularjs-and-ruby-on-rails

https://github.com/lynndylanhurley/ng-token-auth
On Sun, Apr 12, 2015 at 3:32 PM Kingsley Simon<EMAIL_ADDRESS>wrote:

i am using this tutorial
https://www.airpair.com/ruby-on-rails/posts/authentication-with-angularjs-and-ruby-on-rails
—
Reply to this email directly or view it on GitHub
https://github.com/lynndylanhurley/devise_token_auth/issues/100#issuecomment-92070980
.

yes @nicolas-besnard  im using devise-token-auth gem in rails and ng-token-auth in angularjs nd im getting that error

You call the wrong URL, look at the doc.
On Sun, Apr 12, 2015 at 6:17 PM Kingsley Simon<EMAIL_ADDRESS>wrote:

yes @nicolas-besnard https://github.com/nicolas-besnard im using
devise-token-auth gem in rails and ng-token-auth in angularjs nd im getting
that error
—
Reply to this email directly or view it on GitHub
https://github.com/lynndylanhurley/devise_token_auth/issues/100#issuecomment-92089001
.

i know the doc says emailRegistrationPath:   '/auth',  but in my routes.rb in rails
mount_devise_token_auth_for 'User', at: 'auth' sets d url to be /auth/sign_up.  So even if i set it up to be the same route, i still end up with the same error
The action 'new' could not be found for DeviseTokenAuth::RegistrationsController. I realised that one of the answer that @lynndylanhurley  gave he mentioned that the gem doesnt support the new method for registrations. So then how can i perform an email registration because following the docs i end up with the same error. Which has to do with the devise_token_auth not supporting the new method. How do i customize it then? if I dont need the route, then how do i replace it because i need to perform an email registration authentication in my app. Thanks @nicolas-besnard and i hope this isnt being of much trouble to u.

@boyfunky the easiest way is to create your own controller and view like 'SessionController' and 'new.html.erb', don't care about the session_new_path any more, just imagine that devise_token_auth provide the login related methods (service) for you.

is manually creating sessions_controller with empty create action, and the 'new' view, sufficient to use those parts of devise, or is better to install the device gem in addition to devise_token_auth ?

6years and still broken?

@Tr4pSt3R this issue was closed 6 years ago. Please create a new ticket if you're having a different problem.

@lynndylanhurley Sure thanks for all your awesome work!


Fix perf target check bounds

This PR fixes the check-bounds job so that it doesn't break due to a missing surface scheme, and by fixing the job ID so that it's unique.

bors r+

bors r-

bors r+


Feature Request: Add onServiceRestarted method

Hi, i don't know if the onStart method of TaskHandler will be called whenever the Background task is restarted or not, so adding a specific method to know when the service is killed then restarted by Alarm Manager (Android) would be very useful. for cases like loading data to resume operations before the service is killed
Also a few more question:

Is there anyway to test and kill the service and test it in debug mode ?
It seem that i can't do asynchronous functions in the onDestroy, is that the expected behavior

Your answer would helps a lot, Thanks in advance

@TheValkDokk
I'm not very good English, so I'm not sure if I understood it correctly.

Is there anyway to test and kill the service and test it in debug mode ?

No. Currently, this plugin cannot test forcibly killing the service in debug mode.

It seem that i can't do asynchronous functions in the onDestroy, is that the expected behavior

I didn't understand this question. I would appreciate it if you could provide an example or expected scenario.

I think good idea to add the onServiceRestarted function. Because different processing may be required depending on whether onStart was called in normal way or onStart was called when the service was restarted by OS or Alarm Manager. I will add this function in the next version.

Hi, about the second question:
onDestroy,
what i means is when onDestroyed is called, operations like:

Write to local db about the last state of the app
make api requests to server

@override   void onDestroy(DateTime timestamp) async {     print('onDestroy');     await saveStateToLocal();   }
I will test make these method calls without await and check their behavior, thanks for consider adding onServiceRestarted

@TheValkDokk
This seems to be because the Flutter engine is destroyed as soon as onDestroy is called.
I will try to solve this issue by returning a Future in onDestroy.
Thank you for reporting the issue.

@TheValkDokk
please update to the latest version.
you can check whether the task has been restarted by the OS using the starter parameter of the onStart callback.
@override
Future<void> onStart(DateTime timestamp, TaskStarter starter) async {
  if (starter == TaskStarter.system) {
    // restarted by the OS
  }

  if (starter == TaskStarter.developer) {
    // restarted by the developer
  }
}

also, you can access network, database, and other plugins in onDestroy callback. :blush:

Since the feature has been added, i will close this issue.


Write a C++ program to print character of an ascii value

Description
Write a C++ program to print character of an ascii value
ASCII value is the numeric representation of a character. For example, the ASCII value of the character 'A' is 65. The ASCII value of the character 'a' is 97. The ASCII value of the character '0' is 48. The ASCII value of the character ' ' is 32.
Input  : 65
Output : A

How to contribute

Save the solution in PrintCharacterOfAnAsciiValue.cpp file
Add PrintCharacterOfAnAsciiValue.cpp file in print-character-of-an-ascii-value folder

kindly assign me for this task. i want to on this

!assign


Improve user privacy

remove unused django_language cookie
reduce lifetime of the sessionid and csrf_token cookies to the browser
session

Pull Request Test Coverage Report for Build 637

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.977%

Totals

Change from base Build 634:
0.0%

Covered Lines:
3662

Relevant Lines:
3662

💛  - Coveralls


Jool Installation fails via vagrant-start script

Background:
Installation on Windows 10, laptop, HP, core i7, 16 GB memory
Virtual box version 6.0.6
Vagrant version 2.2.4
Date: 05/13/2019
Problem:
The automated installation via vagrant-start script fails when its installing jool. It fails to find the directory and exits. The complete logs are attached in the zip file.
`    k86-nat64: DKMS: install completed.
k86-nat64: + echo 'Compiling and installing Jool'\''s user binaries'

k86-nat64: Compiling and installing Jool's user binaries

k86-nat64: + sudo chown -R vagrant:vagrant /home/vagrant/Jool

k86-nat64: + cd /home/vagrant/Jool/usr

k86-nat64: /tmp/vagrant-shell: line 31: cd: /home/vagrant/Jool/usr: No such file or directory

The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.`
jool_failure_logs.zip

any update? I have the same issue

You can fix this by changing the file in provision/provision_nat64.sh..
Jool is downloaded in /home/vagrant/Jool .. not Jool/usr.
Update all references in this file to /home/vagrant/Jool and it should proceed.

Furthermore, the current version of Jool is 4.0.1, which requires a different setup . The vagrant files here were designed with v3.x .. if you go with current version of Jool .. you'd needto setup jool yourself as it will not work .. what I did was that I downloaded the older version of jool (3.5.7) in the provision_nat64.sh ..
This is original
if [ ! -d "/home/vagrant/Jool" ]; then
	echo "Downloading Jool"
	git clone https://github.com/NICMx/Jool.git /home/vagrant/Jool.tmp
	mv /home/vagrant/Jool.tmp /home/vagrant/Jool
fi

I changed it to
if [ ! -d "/home/vagrant/Jool" ]; then
	echo "Downloading Jool"
	echo "git clone https://github.com/NICMx/Jool.git /home/vagrant/Jool.tmp"
	echo "mv /home/vagrant/Jool.tmp /home/vagrant/Jool"
	wget -O /tmp/jool.zip https://github.com/NICMx/Jool/archive/v3.5.7.zip
	unzip /tmp/jool.zip -d /tmp/
	mv /tmp/Jool-3.5.7/ /home/vagrant/Jool

fi

it worked after that.
PS. If you do this then you dont need to remove the usr as mentioned in my last comment.


[UX] - Setting up self-hosted instance of Kern AI

Hello. I'm trying to deploy Kern in a cloud VM.
It is not easy, as the instructions provided alone only work with a regular computer with Kern AI running in localhost.
I tried both cloning the repo and installing the pip dependency (which are basically the same thing as I understand), and here's what I found out:

accessing the UI as the recommended http://:4455/app/ from the internet returns me {"error":{"code":404,"status":"Not Found","message":"Requested url does not match any rules"}} which is generated from oathkeeper from what I understand. If I open this page from inside the cloud VM, i get {"error":{"code":401,"status":"Unauthorized","message":"Access credentials are invalid"}

I try to spot where the nginx exposes its port, and its the port 7050. I try to open http://:7050/app and I do get Angular's built index.html, but all further asset requests always return me the contents of index.html, as you can see in the attached screenshots.

Has anybody deployed Kern previously? Could you specify the steps? Thank you 😄

Hello Bartolomeu, thank you for choosing to use refinery! We already offer a hosted version as part of our managed cloud service. If you'd like, we can provide you with access to that! If that is not an option for you, please allow us to dive a little deeper into the problem that you are facing and get back to you soon. Also, could you specify the needs for your server setup in more detail? Thank you! 🙂

@LeonardPuettmann I'm currently trying to run an instance of Kern AI as you would normally do locally, but I want to run it in a DigitalOcean Droplet, which is a headless Ubuntu machine that can only be accessed through SSH. I want to run Kern AI in that machine, and access the UI interface through the browser. Unfortunately I do not have any more requirements, as we're still evaluating the possibility of using Kern AI.

Hi @Bartmr :)
We currently don't have in the OSS version an option to host refinery on e.g. AWS or DigitalOcean yet. We heard that request multiple times already, so be sure that its evaluation (whether we can include it, and how) is on our roadmap. At the moment, we're however already booked with other features to grow refinery. To give you some estimation, we will have a better answer to that question mid/end of Q1 2023.
We have a hosted version of refinery (https://app.kern.ai), and we're happy to give you enough time to evaluate refinery with your team.
Let us know, we're happy to help :)


Fixing the service worker config

Getting the NextJS codelab fixed up, this PR is intended to be shipped alongside cl/671476274

Update ignores to allow for easier local development
Simply some code, namely using implied unsubscribe
NextJS server actions are no longer experimental
Sync client & sw state with a magic url, fixes #306
Switch to using location globally in the worker, fixes #295 #294
Alt fix for location, fixes #298 #297
Add prebuild step and dev-mode for service worker, fixes #299
Don't crash the service worker on network failures, fixes #308
Skip adding headers to static resources
Defensively add --main webworker and --minify to the sw
Added comments to explain getAuthenticatedAppForUser, fixes #274
Fix restaurant details, fixes #292
Use prettier, fixes #251
Have a default maxInstances of 2, should help for folks with policy limits like #302 #291
Allow use with IDX out of box

TODO:

[ ] Sync up narrative in cl/671476274
[x] Ensure that nextjs-start has all relevant changes
[x] Do an unused import pass
[x] Lint
[x] Prettier

There's a problem with this if you log in with one user, then log in again as another user, it doesn't refresh and still uses the old user.

@pashpashpash hmmmm, that's odd. What browser are you using? Are you seeing a problem with the service worker?
I did guard the router refresh behind the service worker ready & so I could ensure auth state was in sync with the new magic url method.
I should do the same with login, only allow it if the service worker is registered and ready—since we rely on that.

Another issue I found is that server actions seem to drop the current user (currentUser=null), even though when SSR'ing a page that later calls the server action, the server says there is a currentUser.

Yeah, upon further inspection, it looks like server actions are sent as POST requests, which in your service worker setup:
self.addEventListener("fetch", (event) => {
  const { origin, pathname } = new URL(event.request.url);
  if (origin !== self.location.origin) return;

  // Use a magic URL to ensure that auth state is in sync between
  // the client and the service worker
  if (pathname.startsWith("/__/auth/wait/")) {
    const uid = pathname.split("/").at(-1);
    event.respondWith(waitForMatchingUid(uid));
    return;
  }

  if (pathname.startsWith("/_next/")) return;

  // Don't add headers to non-GET requests or those with an extension
  // This helps with CSS, images, fonts, JSON, etc.
  if (event.request.method !== "GET" || pathname.includes(".")) return;

  event.respondWith(fetchWithFirebaseHeaders(event.request));
});

Means that the firebase auth headers are not included in the request. So, naturally, the action tries to run:
    const { firebaseServerApp, currentUser } = await getAuthenticatedAppForUser();
And gets currentUser === null.

@jamesdaniels Okay I fixed this by allowing POST as well as GET requests in your service worker fetch event listener:

self.addEventListener("fetch", (event) => {
  const { origin, pathname } = new URL(event.request.url);
  if (origin !== self.location.origin) return;

  // Use a magic URL to ensure that auth state is in sync between
  // the client and the service worker
  if (pathname.startsWith("/__/auth/wait/")) {
    const uid = pathname.split("/").at(-1);
    event.respondWith(waitForMatchingUid(uid));
    return;
  }

  if (pathname.startsWith("/_next/")) return;

  // Don't add headers to non-GET requests or those with an extension
  // This helps with CSS, images, fonts, JSON, etc.
  if ((event.request.method === "GET" || event.request.method === "POST") && !pathname.includes(".")) {
    event.respondWith(fetchWithFirebaseHeaders(event.request));
  }
});

Please let me know if this is bad practice. But it seems to work fine. Idk

@pashpashpash good catch thanks, i'll address that

Sorry to keep bugging you, but I'm still getting a weird bug where the auth state randomly tells me that the current user is null, when attempting a server action.
Example scenario:

User clicks on a button on the client that fetches a server action
Server action calls const { firebaseServerApp, currentUser } = await getAuthenticatedAppForUser();, currentUser is authenticated and works fine.
User clicks on the button x amount of times again, and it works fine, user is authenticated
User clicks on the button, and all of a sudden, currentUser is null and the server action fails.

The most frustrating part about this bug is it seemingly happens at random, it feels ephemeral. Often the button works fine, and subsequent button clicks with other server actions are authenticated. But then randomly later on it shows the user as unauthenticated again. No page refreshes or anything. Same page, just a different point in time.

Sorry to keep bugging you, but I'm still getting a weird bug where the auth state randomly tells me that the current user is null, when attempting a server action.
Example scenario:

User clicks on a button on the client that fetches a server action
Server action calls const { firebaseServerApp, currentUser } = await getAuthenticatedAppForUser();, currentUser is authenticated and works fine.
User clicks on the button x amount of times again, and it works fine, user is authenticated
User clicks on the button, and all of a sudden, currentUser is null and the server action fails.
User clicks on the button right after that failure (no page reload), and it works fine again.

The most frustrating part about this bug is it seemingly happens at random, it feels ephemeral. Often the button works fine, and subsequent button clicks with other server actions are authenticated. But then randomly later on it shows the user as unauthenticated again. No page refreshes or anything. Same page, just a different point in time.
EDIT: FYI: After some debugging, I was able to fix this by just retrying to get the authIdToken if the first time I tried it was null, i try 2 more times with a 0.25s sleep. Not sure why but it fixed the issue.
async function fetchWithFirebaseHeaders(request) {
  let authIdToken = await getAuthIdToken();
  if (!authIdToken) {
    // sleep for 0.25s
    await new Promise((resolve) => setTimeout(resolve, 250));
    authIdToken = await getAuthIdToken();
  }
  if (!authIdToken) {
    // sleep for 0.25s
    await new Promise((resolve) => setTimeout(resolve, 250));
    authIdToken = await getAuthIdToken();
  }
  if (authIdToken) {
    const headers = new Headers(request.headers);
    headers.append("Authorization", `Bearer ${authIdToken}`);
    request = new Request(request, { headers });
  }
  return await fetch(request).catch((reason) => {
    console.error(reason);
    return new Response("Fail.", {
      status: 500,
      headers: { "Content-Type": "text/html" },
    });
  });
}

Thank you both for looking at firebase with Next/RSC.
@pashpashpash Would you have a link to the whole service worker file that's working for you?
Also for curiosity - did you try setting / using cookies manually and to completely remove the service worker? I'm aware that this is probably going to prevent some FirebaseClient APIs to work correctly but I'm just trying to understand what other people have tried.
Thank you.

@payable-sebastien-kovacs
here's the full file I have that's working well (as far as I've seen with gratuitous manual e2e testing):

// auth-service-worker.js

import { initializeApp } from "firebase/app";
import { getAuth, getIdToken, onAuthStateChanged } from "firebase/auth";

// Extract Firebase config from query string
const serializedFirebaseConfig = new URLSearchParams(self.location.search).get(
  "firebaseConfig"
);
if (!serializedFirebaseConfig) {
  throw new Error(
    "Firebase Config object not found in service worker query string."
  );
}

const firebaseConfig = JSON.parse(serializedFirebaseConfig);

const app = initializeApp(firebaseConfig);
const auth = getAuth(app);

self.addEventListener("install", () => {
  console.log("Service worker installed with Firebase config", firebaseConfig);
  self.skipWaiting();
});

self.addEventListener("activate", (event) => {
  event.waitUntil(self.clients.claim());
});

self.addEventListener("fetch", (event) => {
  const { origin, pathname } = new URL(event.request.url);
  if (origin !== self.location.origin) return;

  // Use a magic URL to ensure that auth state is in sync between
  // the client and the service worker
  if (pathname.startsWith("/__/auth/wait/")) {
    const uid = pathname.split("/").at(-1);
    event.respondWith(waitForMatchingUid(uid));
    return;
  }

  if (pathname.startsWith("/_next/")) return;

  // Don't add headers to non-GET requests or those with an extension
  // This helps with CSS, images, fonts, JSON, etc.
  if ((event.request.method === "GET" || event.request.method === "POST") && !pathname.includes(".")) {
    event.respondWith(fetchWithFirebaseHeaders(event.request));
  }
});

async function fetchWithFirebaseHeaders(request) {
  let authIdToken = await getAuthIdToken();
  if (!authIdToken) {
    // sleep for 0.25s
    await new Promise((resolve) => setTimeout(resolve, 250));
    authIdToken = await getAuthIdToken();
  }
  if (!authIdToken) {
    // sleep for 0.25s
    await new Promise((resolve) => setTimeout(resolve, 250));
    authIdToken = await getAuthIdToken();
  }
  if (authIdToken) {
    const headers = new Headers(request.headers);
    headers.append("Authorization", `Bearer ${authIdToken}`);
    request = new Request(request, { headers });
  }
  return await fetch(request).catch((reason) => {
    console.error(reason);
    return new Response("Fail.", {
      status: 500,
      headers: { "Content-Type": "text/html" },
    });
  });
}

async function waitForMatchingUid(_uid) {
  const uid = _uid === "undefined" ? undefined : _uid;
  await authStateReady();
  await new Promise((resolve) => {
    const unsubscribe = onAuthStateChanged(auth, (user) => {
      if (user?.uid === uid) {
        unsubscribe();
        resolve();
      }
    });
  });
  return new Response(undefined, {
    status: 200,
    headers: { "Cache-Control": "no-store" },
  });
}

function authStateReady() {
  return new Promise((resolve) => {
    if (auth.currentUser !== undefined) {
      resolve();
    } else {
      const unsubscribe = onAuthStateChanged(auth, () => {
        unsubscribe();
        resolve();
      });
    }
  });
}

async function getAuthIdToken() {
  await authStateReady();
  if (!auth.currentUser) return null;
  return await getIdToken(auth.currentUser);
}


Link "example" in README.md is broken.

The example link is supposed to be pointed at an async example.  I wonder if it should be updated to point here: https://github.com/Azure-Samples/azure-cosmos-java-getting-started/tree/main/src/main/java/com/azure/cosmos/sample/async


order cache before rewrite - question

I would like to strip known marketing query string parameters. On varnish I would use something like following.
if (req.url ~ "(\?|&)(gclid|utm_[a-z]+)=") {
    set req.url = regsuball(req.url, "(gclid|utm_[a-z]+)=[-_A-z0-9+()%.]+&?", "");
    set req.url = regsub(req.url, "[?|&]+$", "");
}

With caddy I can use internal rewrite rule.
The question is: since manual tells me to set mentioned setting (cache before rewrite) - will it work? Or will souin look for cache key with those query strings?

Hey @fliespl if you want to strip some parts of the url, the cache system will consider domain.com/page?q1=foo@q2=bar and domain.com/page?q1=baz equal because it will receive only domain.com/page as url (due to stripped).


Possible Bug: NULL Byte Array translates to nvarchar on insert

Hi Volkan,
I'm reopening issue #2907 which is now too old to reopen. It's taken me some time, but I did have some spare time and I made a few tests. Sorry it's taken so long.
The way to replicate:
Create a XXXRow with a field defined as byte[] (varbinary in sql).
Manually create a row and make sure the field has data in it and call the XXXRepository.Create()
Manually Create a row and make sure the byte field is null and call the XXXRepository.Create()
Now you should get the error above.
The code works as long as the field is not null (i.e. you can put in an empty byte array and that seems to work.
The trace during the create is:
SaveRequestHandler::ExecuteSave()
EntityConnectionExtensions::ToSqlInsert
SqlHelper::ExecuteAndGetID
SqlHelper::ExecuteReader

The query that is sent into ExecuteAndGetID from my code is:
"INSERT INTO [dbo].[ReportContent] ([ReportContentTitle], [ReportContentOrder], [ReportSectionId], [ReportContactId], [ReportDisclosureId], [ReportContentText], [ReportContentWordDocRef], [ReportContentFile], [DateAssigned], [Deadline], [DateCompleted], [StatusId], [OriginalFileName], [DirectToIndex], [ContentType], [TopicId]) VALUES (N'Headquarters', 7, 737, 2, 4766, NULL, N'content/00020_7qjohkuncfzrk.docx', NULL, '20170707', NULL, '20170710', 2, NULL, 0, 1, NULL)"

And this actually executes fine in SQL Server
The command that is sent into the ExecuteReader is
"INSERT INTO [dbo].[ReportContent] ([ReportContentTitle], [ReportContentOrder], [ReportSectionId], [ReportContactId], [ReportDisclosureId], [ReportContentText], [ReportContentWordDocRef], [ReportContentFile], [DateAssigned], [Deadline], [DateCompleted], [StatusId], [OriginalFileName], [DirectToIndex], [ContentType], [TopicId]) VALUES (@p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16);\nSELECT SCOPE_IDENTITY() AS IDCOLUMNVALUE"

And the parameter value @p8 is no longer null but blank ({[@p8, ]}.
I'm wondering whether the interpreter changes this to a nvarchar in this particular case.
I hope I was specific enough. If not let me know what you need.

Hi. Anything further I can do to help regarding this?

I don't understand what's the problem here, parameter type is irrelevant as long as value is NULL. You shouldn't get any errors on insert.

I'm just reporting what I get. The parameter sends nvarchar instead of varbinary. I also think it's weird. Do you need more info to verify this?
Using the SQL Server profiler I was able to see the error on the server as well.
For the moment, I have been able to circumvent the error using sql commands, circumventing the xxxRow but using the uow in order to maintain the transaction. So if I write the SQL manually it works.

Sorry for the delay in response (travelling).
SQL Server does not like that. It complains that you need to convert it to varbinary.


Date & Time pickers Not Works in FF and SF

Demo Date & Time pickers not work at https://material-ui-next.com/demos/pickers/
the demo provided at https://material-ui-next.com/demos/pickers/ not work in safari and firefox
i can not figure out what happened

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior
Date & Time pickers should works
Current Behavior
Date & Time pickers not works
Steps to Reproduce (for bugs)

visit https://material-ui-next.com/demos/pickers/ with safari or firefox
see Date & Time pickers demo
not works

Context
null
Your Environment

Tech
Version

Material-UI
v1.0.0-beta.47

React
16.3.2

browser
latest version of  Firefox and Safari

etc
null

Date & Time pickers is based on HTML5 Features
So This issue should closed

Duplicate of #9081


BugFix: Default fields do not work when passing schema as string to mergeSchemas

Notes:
If you pass your schema as a string to mergeSchemas it drops the default values.
I validated this by creating a unit test -> https://github.com/apollographql/graphql-tools/pull/1120
I have found exactly where it is failing -> https://github.com/apollographql/graphql-tools/blob/master/src/stitching/typeFromAST.ts#L186
reasoning -> valueFromAST(node.defaultValue, type) is returning undefined. If I replace type with the hard coded value expected (I.E. valueFromAST(node.defaultValue, GraphQLString) in this case) then I see the defaultValue is  Foo as expected and the mergedSchema includes the defaults. so it seems type is not evaluated correctly... I tried printing it out to console and see String as expected... but I'm not super familiar with GraphQLInputType and GraphQLInputObjectType so this is where my investigation came to a head. it feels like it should be a quick fix for someone more familiar with the code base? help would be appreciated!
Intended outcome: When passing schemas as strings to mergeSchemas I expect the result to have defaults defined in the original schemas (see draft PR above for basic example)
Actual outcome: defaults are dropped see output from test:

How to reproduce the issue: Pull down my branch and run yarn test -g 'input object with default and raw schema' I have added console Logs that should highlight the issue

I think this is because we should be using valueFromAstUntyped as the subfield types are just stubs.
If advanced parseLiteral functioning is needed (ie the stuff usually done with the type argument), this should be done from the original ast afterward. This would also come in handy in case the input type is changed, even if just the parseLiteral function is changed (for example if a different internal representation is used).

Fix to this is released in graphql-tools-fork v6.0.1. Please let me know how performs.

The way it shook out, valueFromAstUntyped does not work from stub types either, so what I did is the store the entire ast. when recreating a schema, it serializes with the old type and parses with the new, unless it is working from a stub when it calls parseliteral, as the default value is the stored original ast.

🔈@JazminGonzalez-Rivero
We recently released an alpha version of GraphQL Tools (#1308) that should fix your issue.
Please update graphql-tools to next or run:
npx match-version graphql-tools next

Let us know if it solves your problem, we're counting for your feedback! :)

Rolled into #1306


Exception from ChromeDriver::start() "Constant CURLOPT_CONNECTTIMEOUT_MS already defined"

What are you trying to achieve? (Expected behavior)

I tested ChromeDriver class with following code,
ChromeDriver::start($capabilities);
What do you get instead? (Actual behavior)

I got the following exception,
Constant CURLOPT_CONNECTTIMEOUT_MS already defined
How could the issue be reproduced? (Steps to reproduce)

I think it was caused by Facebook\WebDriver\Net\URLChecker::GetHTTPResponseCode($url)
if (!defined(CURLOPT_CONNECTTIMEOUT_MS)) {
            define('CURLOPT_CONNECTTIMEOUT_MS', 156);  // default value for CURLOPT_CONNECTTIMEOUT_MS
}

// the code should be. note the missing quotes ''
if (!defined('CURLOPT_CONNECTTIMEOUT_MS')) {
            define('CURLOPT_CONNECTTIMEOUT_MS', 156);  // default value for CURLOPT_CONNECTTIMEOUT_MS
}

Details

Php-webdriver version: 1.4
PHP version: 7.0
Selenium server version:
Operating system: Ubuntu 16.04 LTS
Browser used + version: google-chrome beta 59

@bluerelay Hi, this should be fixed in php-webdriver 1.4.1, see https://github.com/facebook/php-webdriver/pull/438.


access restriction on beta.gamedao.co

User Story
As beta test user I want to use my access key to interact with the gamedao beta so i can test the platform.
Acceptance Criteria

the /app page contains following elements
1.1 a teaser image container
1.2 a container informing about an access key is needed to access the beta
1.3 half width container informing about how to get polkadot wallet (link to documentation https://docs.gamedao.co/guides/installing-your-wallet )
1.4 half width container informing about how to get access key (link to discord beta invite channel https://discord.gg/YZT2QANG5m)
1.5 a wallet connect container to connect the wallet
if user tries to connect and cannot connect as of missing access key (wallet disconnected instantly) display snack bar message for 10seconds containing message "Connection failed, seems like you dont own an access key."  and the page redirects to /app page
2.1. if user tries to connect from any other page display same message do the same as on AC 2
if user is connected redirect to the quests page.

Additional Information
wireframe:

https://www.figma.com/file/7i2hvG20BsRPpuDf8J88Oe/Beta-Access-Key?node-id=36%3A230

⭐ Design Spec:

https://www.figma.com/file/7i2hvG20BsRPpuDf8J88Oe/Closed-Beta?node-id=86%3A337

How to test

go to homepage
see teaser
see access key visualization and clear instructions about  how to get it
see how to get started container with clear instructions how to get wallet and tokens
see connect wallet container and try

✅  done


[Ahuna] AssistantBuilder doesn't load agentConfigs, uses names route

Related task
Side-effect: allows reuse of already used avatars for agents

It does remove it but that logic does not hold for workspace that have consumed all avatars anyway.
A random choice makes thing much more lightweight and there is low probability of a collision between assistants that are close in names and concepts.

It does remove it but that logic does not hold for workspace that have consumed all avatars anyway.
A random choice makes thing much more lightweight and there is low probability of a collision between assistants that are close in names and concepts.

Feels like a bit of a regression for the vast majority of workspaces that have not exhausted avatars. But it doesn't matter enough for me to fight for it !

Do you believe there is a real negative impact of having a repetition of avatar?
With low number of agents it's unlikely
With large number of agents the impact feels completely minor?

Do you believe there is a real negative impact of having a repetition of avatar?

I believe it's not as good of an experience compared to have strictly different avatars. They are supposed to be AI generated images (even if we hack by pre-generating them). Ideally, you would never exhaust them, you would always get a fresh one. IMHO, we should aim for having more avatars than what people could possibly use.

But again this is pretty minor and if we are fine removing this little nice-to-have then I won't oppose


Split the fuse stream close() method

What changes are proposed in this pull request?
Split the fuse stream close() method into two individual methods:

Close the fuse stream
Release the lock

Currently no behavior changes on the close function as the function will call these two functions to achieve the same functionality as before.
Why are the changes needed?
When we handle some fuse operations, we sometimes want to close the stream only but want to keep the lock there, to avoid inconsistency.
Does this PR introduce any user facing changes?
Please list the user-facing changes introduced by your change, including

change in user-facing APIs
addition or removal of property keys
webui

alluxio-bot, merge this please.


Report job status instead of step

Summary

Step status only reports on the step itself and not the entire job.
This meant that if a job failed before the tracked step it would never
get reported back to the PR that triggered it.
This updates the workflow to use the job status, which will report
back failure if any steps fail.

Issues

Closes #819

@nr-kkenney Good catch! Added that to the commit


MELPA recipe fails without "next" branch

I was using emacs/straight.el/org-roam with (org-roam-database-connector 'sqlite-builtin). And yesterday after updating emacs and refreshing packages with straight, i got "next branch not found" for (use-package emacsql-sqlite-builtin :ensure t).
Is dropping "next" branch accidential?

Indeed I did, or rather I renamed it forgetting that its name was being used in the melpa recipe. I've now reverted the rename.

Ok, thanks! it worked now :)


Section: Draft circleci setup

Description of changes: This is is the PR for the circleci setup section
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eugenemu the CircleCI section is ready for review. Please review edit and merge when ready

Ok @eugenemu it's ok to merge now


Beds Heal Toxin Damage

As title says, all beds, medical or regular, heal toxin damage. I didn't test it on radiation, but it may heal it as well.

wasnt this removed

it was removed to promote better medical teaching, before the removal you could just tuck someone in medical beds and wait for the regen to do all the work

I cant tell if this is an issue or a suggestion. Currently as it stands, they still do heal poison damage; not radiation.

Weren't beds supposed to heal blunt and cold dmg, not blunt and poison?
I think medical beds should have wide-spec or multiple regens again, but currently healing poison is probably a bug

medical beds should also be removed from the space wrecks Salvages can find, they were nerfed primarely because salvagers were making their own powercreep dens on their shuttle never stepping on station and doing everything in their little paradise

salv can just make beds wreck doesnt matter
salv regularly make their own chem so beds wont affect that especially after nerfing

salv can just make beds wreck doesnt matter

salv regularly make their own chem so beds wont affect that especially after nerfing

isn't chemistry and medecine crafting getting nuke some time soon-ish? this will definitively have an impact(that is if chem restock box are also removed to prevent chemistry relying sorely on cargo for making meds with is a very boring gameplay loop)

What salvage could do shouldn't come at the detriment of medical or other departments
Medical bed was simply an easier way of getting offstation healing; now they just patch themselves up with medkits + chems and still won't come on station

What salvage could do shouldn't come at the detriment of medical or other departments
Medical bed was simply an easier way of getting offstation healing; now they just patch themselves up with medkits + chems and still won't come on station

this is in no way affecting medical, chemistry will be meant to go around the station and ask other department help in order to supply their own chemicals for their works(they will start with some so they still can make medicine), so obviously if they are meant to ask other for that it make sens to remove chemical restock box from the request form, because why would they ask for other department help if they can just ask cargo to spend a thousand spessbucks and restock 900u of every chemicals their machine can dispend?
Just remove the beds from salvage wrecks(AND expedition procedural bits), wait for the chem nuke, remove the restock box from the request console, bump the price of the medkits and finally tune down the amount of money cargo can make. and finally buff medical bed again because they belong in medbay nd nowhere else)

also tune down heavily the amount of medicine found on wrecks(yes even in the almost pristine medbay chunk) maybe with this many stick in their wheel they will start to consider they are also part of the crew, and not a special force sent to exterminate every xenos hiding in space and on planet ground(could also nerf damage reduction value of their suit... they are not space marines after all)

give salv shock collars too so they know whos boss

Fuck it make it so salv can only do dimension/bluespace jumps for expeditions and get recalled back after 10 minutes


Feature request: CaseInsensitiveUnicodeAttribute

Would it be possible to make a CaseInsensitiveUnicodeAttribute?  The idea would be to have it be a list of two values: the original unicode value and a lowercased copy of the unicode value.  The normal getter would return the original value (always stored first, so item 0).  The benefit is that a case insensitive scan is possible by doing, for instance, User.email.contains(find_email.lower()).
I've looked at the Attribute code, though, and I'm really not sure how to implement this.  I'm sure it'd be useful to do so, though!

Whoops! wrong project!


use correct relative path

third time is the charm. it's just 2 directories up: out of family-specific directory, and out of build-publish directory.

/lgtm


Unable to set environment variable on Ubuntu 18.10

As stated on flutter's website here, I tried setting the environment variable in my Ubuntu 18.10 system. I have saved command in .bashrc but when I source it to run in terminal or run flutter doctor command in a new terminal, it says flutter: command not found.
Surprisingly, when I tried the following command, it worked perfectly but it's temporary:
export PATH="$PATH:`pwd`/flutter/bin"

I want a permanent solution for setting the environment variable.
Output on echo $PATH:
/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Also, I have my .bashrc already which also have alias commands which I use very often. They are working fine. I think the problem is with flutter itself.
I have added echo "$PATH" in .bashrc right after the export PATH command and it does have a flutter path printed in the terminal when I execute source ~/.bashrc but when I enter flutter doctor after that, it still doesn't work!

This isn't a problem with flutter.  Something in .bash_profile or some other file is resetting your path after . bashrc is sourced. Try setting the path to something non flutter related like
export PATH=$PATH:/foo/bar
Then echo $PATH again and see if the changes are persistent.

Hi @chauhannaman98
You may want to follow the docs
Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow.
This SO question is similar to your case.
Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you

@iapicca Thanks! The issue was with the .bashrc file. It has been resolved now.

@chauhannaman98 I am facing the same problem on Ubuntu 20.04.1 LTS. Can you please help me on it?

Output on echo $PATH:
/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

@chinkysight Can you share the output when you enter echo $PATH in the terminal?

Output on echo $PATH:
/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

@chinkysight Can you share the output when you enter echo $PATH in the terminal?

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/chinkysight/Downloads/flutter/bin

@chinkysight
Have you tried flutter doctor -v? What's the output there?

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/chinkysight/Downloads/flutter/bin

Also, the SDK path has been exported successfully as per you the above output. Please check that the SDK has been installed properly in the target directory /home/chinkysight/Downloads/flutter/.

@chinkysight
Have you tried flutter doctor -v? What's the output there?

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/chinkysight/Downloads/flutter/bin

Also, the SDK path has been exported successfully as per you the above output. Please check that the SDK has been installed properly in the target directory /home/chinkysight/Downloads/flutter/.

How could I use flutter doctor -v when flutter doctor itself does not work. But still I tried, the output was :
Command 'flutter' not found, but can be installed with:

sudo snap install flutter

@chauhannaman98 I managed to solve the issue via changing the installation directory from $HOME/Downloads to $HOME


Gcchaves

Hey,
Got some problems with the script, "~/${ssh_user}" is creating /home/user/user, also the SSM agent undestands "~/" as "/var/snap/amazon-ssm-agent/".

there is no change within this PR.

there is no change within this PR.

The ~/${ssh_user}/.ssh is a wrong reference, this will be translated to "/home/user/user/.ssh"  which is wrong place for the ssh directory
"~/" -> home + ${ssh_user}

there is no change within this PR.

I see I think a made a mistake on the pull request. Will make a new one


Consider adding ID field

Consider URI vs. reverse domain name (aka beacon)

@jrambla Can you add your thoughts please?

Andy: +1 for just a unique string, not URI requirement


How to specify the API to call in a request?

Hello! I am using Amplify and set up an API with API_Key and Cognito authentification.
I am really lost here and do not even know if I am doing the right thing anymore :D
My Goal is to write a custom listItems query with filters.
When calling some query like:
"Amplify.API.query(request: .paginatedList(Item.self, where: predicate, limit: 20)) { event in ...."
I get the response: "Got failed event with error APIError: More than one graphQL API configured. Could not infer which API to call"
So here: https://docs.amplify.aws/lib/graphqlapi/authz/q/platform/ios is stated that i should set up my APIs like this:
"awsAPIPlugin": {
                "[FRIENDLY-NAME-API-WITH-API-KEY]": {
                    "endpointType": "GraphQL",
                    "endpoint": "[GRAPHQL-ENDPOINT]",
                    "region": "[REGION]",
                    "authorizationType": "API_KEY",
                    "apiKey": "[API_KEY]"
                },
                "[FRIENDLY-NAME-API-WITH-USER-POOLS]": {
                    "endpointType": "GraphQL",
                    "endpoint": "https://xyz.appsync-api.us-west-2.amazonaws.com/graphql",
                    "region": "[REGION]",
                    "authorizationType": "AMAZON_COGNITO_USER_POOLS",
                },
            }

, which I did, and then, at the bottom of the page, it tells me to set up my requests like this:
let request = GraphQLRequest(apiName: "[FRIENDLY-NAME-API-WITH-API-KEY]", ...)
Amplify.API.mutate(request: request, listener: ...)

which they do not ellaborate more on.

I managed to write a function that works on getting a single Item via the API key like this:
static func getItemWithApiKey(byId id: String) -> GraphQLRequest<JSONValue> {
        let operationName = "getItem"
        let document = """
        query getItem($id: ID!) {
          \(operationName)(id: $id) {
            id
            owner
          }
        }
        """
        return GraphQLRequest<JSONValue>(apiName: "myAPIKey", <- this is the "FRIENDLY NAME WITH API KEY"
                                    document: document,
                                    variables: ["id": id],
                                    responseType: JSONValue.self,
                                    decodePath: operationName)
}

However, when trying to write a custom request for lists, I do get back HTTP 400 from this code snippet:
static func listItemsWithApiKey(byShareId shareId: String) -> GraphQLRequest<JSONValue> {
        let operationName = "listItems"
        let document = """
        query ListTalks(
          $filter: ModelItemFilterInput
          $limit: Int
          $nextToken: String
        ) {
          \(operationName)filter: $filter, limit: $limit, nextToken: $nextToken) {
            items {
              id
              userId
              name
              shareId
              createdAt
              updatedAt
              clips {
                nextToken
              }
              owner
            }
            nextToken
          }
        }
       """

        return GraphQLRequest<JSONValue>(apiName: "quicktakesAPIKey",
                                                                         document: document,
                                                                         variables: ["shareId" : shareId],
                                                                         responseType: JSONValue.self,
                                                                         decodePath: operationName)
    }

I really cant figure out how to specify the document and how to really pass the right variables etc.

Is there an easier way of doing this? Am I missing something?
Is there a good guide on how to write these documents?

Anything helps, thanks in advance :)

hi @timokilb, thanks for reaching out.
I believe you're missing an open bracket in your ListTalks query right before the list of parameters
\(operationName)filter: $filter, limit: $limit, nextToken: $nextToken) {

See below the query with the missing (
let document = """
query ListTalks(
          $filter: ModelItemFilterInput
          $limit: Int
          $nextToken: String
        ) {
          \(operationName)(filter: $filter, limit: $limit, nextToken: $nextToken) {
           items {
              id
              userId
              name
              shareId
              createdAt
              updatedAt
              clips {
                nextToken
              }
              owner
            }
            nextToken
          }
"""


Revert "Explicitly copy defsIDependUpon into an appropriately sized array when initializing SourceFileDependencyGraph.Node"

Reverts apple/swift-driver#1119

@swift-ci please test


[WFLY-9556] Removed unmodified configuration files that can be inheri…

…ted from the core-feature-pack.
https://issues.jboss.org/browse/WFLY-9556

I suspect at some point previously these could not be inherited.


Feedback in cli missing

There is no feedback in the CLI when a command is executed.
For example:
nb-clean clean notebook.ipynb --> "notebook.ipynb was successfully clean"
or
nb-clean check notebook.ipynb --> "notebook.ipynb is already clean"

This is consistent with similar tools such as flake8 and autopep8. I'd consider a PR that adds a -v/--verbose flag adding this behaviour if this would be useful.


[Monitor][Ingestion] Enable typing checks

This enables mypy, pyright, and verifytypes checks.

API change check
API changes are not detected in this pull request.


fontWeight '300' not working on Android

setting fontWeight to '300' on Android doesn't make any difference although it switches to a lighter font on iOS.
example:
<Text style={{fontWeight: '300'}}>test</Text>

I'm using RN 0.17.0

I think Android only supports bold and regular (I was told this is a limitation of Android itself, not just React Native)
cc: @dmmiller

Android certainly supports light fonts: http://stackoverflow.com/a/13329907/1810160

@bodyflex in that case, I must have either misunderstood the issue, or been misinformed. If you think you know how to implement this, a PR would be appreciated.

@bodyflex I guess it's because you're referencing them by the font name, i.e. "roboto-thin" and not font family + weight?

@satya164 yes, that's true. but I don't think that makes it impossible to implement?
@nicklockwood I would do a PR if I had any familiarity with this code base. although, a quick look suggested that you are only using the constants in TypeFace, although to address this you should somehow also incorporate the font name:
textView.setTypeface(Typeface.create("sans-serif-light", Typeface.NORMAL));

@bodyflex Can't you just put the font like assets/fonts/Roboto-Thin and then reference it in the style as fontFamily: 'Roboto-Thin' without specifying any fontWeight? Doesn't it work?

@satya164 if I want to use the system font on iOS instead of Roboto I'd have to do a separate check for the platform. I could make it work of course, but shouldn't the API do this for me instead?

@bodyflex Yeah, it should. Go ahead with the PR if you can. These are the relevant files,
https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java
https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java

might look into doing a PR when I have more time. right now I'm using a work around like this:
text: {
  fontWeight: '300',
  fontFamily: Platform.OS === 'android' && 'sans-serif-light'
}

would it be wrong to implement this for Android by updating only Text.js with a solution like above? so without modifying any native code.

@bodyflex ideally we'd like to try and keep Text.js as similar as possible between iOS and Android. But you could always put up a PR and we can see if it looks reasonable as a stopgap.

I'd prefer to have it in native since the logic for determining the weight from filename is currently in native code. Having similar logic split across to different places seems bad IMO.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/fontweight-300-not-working-on-android
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub. GitHub issues have voting too, nevertheless
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.


How to create the Button Group as in the demo page?

Hello,
I am not able to find documentation about how to create the same button group that is shown in the event calendar demo.
Which options should I use?
Thanks

Please see headerToolbar option. The source code of the demo page can be found here.


temporarily switch to tf.tensordot instead of tensordot2

tf.matmul with transpose_a and  transpose_b arguments has a bug for complex dtypes if wrapped into tf.vectorized_map (see https://github.com/tensorflow/tensorflow/issues/52148). Our modified version of tf.tensordot, tensordot2, uses a tf.matmul with these arguments to improve efficiency. This unfortunately causes the afore mentioned bug to hit us in certain use cases.
Hence we temporarily revert to using tf.tensordot in the TensorflowBackend directly.
fixes #940

BTW, there is another call for tensordot2 on L111 of the same file, and it also induce similar issues with tf.vectorized_map

thanks, yes your're right! Fixed it

Codecov Report

Merging #941 (2491e46) into master (edf3f34) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #941      +/-   ##
==========================================
- Coverage   98.08%   98.04%   -0.05%
==========================================
  Files         129      129
  Lines       22928    22393     -535
==========================================
- Hits        22490    21956     -534
+ Misses        438      437       -1

Impacted Files
Coverage Δ

...rnetwork/backends/tensorflow/tensorflow_backend.py
98.23% <100.00%> (-0.02%)
:arrow_down:

...ornetwork/matrixproductstates/infinite_mps_test.py
84.78% <0.00%> (-1.50%)
:arrow_down:

...ckends/tensorflow/tensorflow_tensornetwork_test.py
59.75% <0.00%> (-1.17%)
:arrow_down:

tensornetwork/linalg/tests/initialization_test.py
84.61% <0.00%> (-0.65%)
:arrow_down:

tensornetwork/backends/decorators_test.py
92.64% <0.00%> (-0.51%)
:arrow_down:

...ensornetwork/tests/tensornetwork_symmetric_test.py
92.70% <0.00%> (-0.37%)
:arrow_down:

tensornetwork/backends/decorators.py
96.77% <0.00%> (-0.20%)
:arrow_down:

tensornetwork/linalg/tests/test_linalg.py
96.31% <0.00%> (-0.20%)
:arrow_down:

tensornetwork/tests/tensor_test.py
98.51% <0.00%> (-0.15%)
:arrow_down:

examples/simple_mera/simple_mera.py
95.49% <0.00%> (-0.12%)
:arrow_down:

... and 45 more

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 edf3f34...2491e46. Read the comment docs.

Should we deprecate the tensorflow2 module?

the tensordot2 module applies some tricks which make it more efficient than tf.tensordot. From looking at the latest implementation of tf.tensordot, it seems that these improvements are still valid. I would say we leave it in for now.

Sounds good. Should we at least open an issue to track the tf bug and re-use tensordot2 when it is resolved?

good point, yes we should!


feat(weather): add weather module for xamut/tmux-weather

Weather module
Requirements
This module depends on https://github.com/xamut/tmux-weather.
Install
The preferred way to install tmux-weather is using TPM.
Configure
Load tmux-weather after you load catppuccin.
set -g @plugin 'catppuccin/tmux'
...
set -g @plugin 'xamut/tmux-weather'
Add the weather module to the status modules list.
set -g @catppuccin_status_modules" "... weather ..."

Can you please update documentation also?

Done. I think there was no documentation when I uploaded my PR. Maybe I missed it.


Multiple Microphones

Is there any multi-mic support?  maybe something similar to http://www.instructables.com/id/Multi-Mic-Speech-To-Text-with-Python/
This would kind of seal the deal for me for using Jaspber in my HA setup.
I would LOVE to test if you have something :)

Sounds very interesting ;-) Though expensive. I'm using a much cheaper microphone (in an HP Webcam HD 2300). I had been wondering about an analog multiplexer..., but I'm not at that stage yet...

well, the microphones they used a little more pro level.  But some simple desktop mic's could work as well.  The connectors would be different.  I have some extra mics but that's because of my videography work.   But I think just the support for the multiple mic's would be awesome and let the tinkerer's figure out the hardware :)

Hi @brunkj
Do you have found a solution and tried something with multi-mic ?
Maybe do you have a buy a microphone array ?
Thanks


add dev container

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 97.484%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
151

Relevant Lines:
154

💛  - Coveralls


Add description for all arangodb config options. see #19

thanks @m0ppers
@mhausenblas ready to review and this resolves https://github.com/dcos/examples/issues/19

Thanks! LGTM ;)


Remove Contributor and ContributorGroup tables

What is it?
Pretty much everything can be an Artifact and Event should just have a to and from. That will make it easy to do both:

Monthly active users for a contract
Number of Contracts interacted with per user

Duplicate
https://github.com/hypercerts-org/oso/issues/194


[feature] : initialize project structure

App setup ( project initialization )

Would it be prudent to consider pinning a specific node/npm version for use when working with this repo? Reason: Came across an issue with package-lock.json; It was originally generated with lockfileversion set to 2, but due to the old version of npm that I am using caused changes on the lockfile. Suggestion: to pin on a version that all contributors have to use. Check out engines.

Okay, wow I have never known one can pin on a version. Let me look into it.
So ideally I pin on the version I used to generate the project, right?

Yup. The version you used should work 😊

Yup. The version you used should work 😊

I am using node v14.7.0, so I set this up as the default node version


defaultDate, enableTime, and disable issue

I'm creating a few calendars on a form with default dates and time enabled and a list of dates disabled. Without disabled dates everything works. When I add in an array of date ranges to disable the time of the default day changes from the default to 12 AM.
Expected Behavior
Each flatpickr calendar displays its own default date and time, and has specified dates disabled.
Current Behavior
Each calendar displays the correct day but incorrect time (always 12 AM).
Specified disabled dates are disabled.
I've tried using only Date objects and I've noticed no change in behavior.
Steps to Reproduce (for bugs)

Setup a a config obj like so
let config = {  		disable: ["December, 12 2016 04:00:00"],  		enableTime: true,  		dateFormat: "D M d Y h:i K",  		defaultDate: "December, 13 2016 20:30:00",  	};
Apply config to input element flatpickr("#ID", config);
Scratch your head at the 12 AM display time.

Context
I'm using the flatpickr as an input for a reservation request system. Restricted dates and including time in the input are necessary in this system.

Quick turnaround! Thanks for the terrific library.


Testing harness, attempt 1

Here is my rough draft of the testing harness:

I made a new directory, Tests/, to hold our testing things.
We can add or remove tests via the Tests/tests.txt file, and we can add or remove heuristics via the heuristics list.
The results are written to a file, Tests/results.txt, which is overwritten each time the tests are run. This file is ignored by git.
I had to add self as an argument to things in src/Search.py, not sure why but now it seems to work.
All of the heuristic names are coming back as ABCMeta, we should probably fix that at some point.
Running just the first three tests on BFS and DFS is very fast, I haven't tried to run any more of them yet.

Also I think the standard is the use lowercase for package names (i.e. test, not Test), could you rename it?


[REQUEST] EMI Compatibility

Description:

EMI is a relatively new recipe viewer with many benefits over REI; I request you add support for viewing this mod's recipes in it.

Reason:

Such that users of EMI can view mod's recipes in game more easily.

It appears that a lot of recipes and even items (like Nikolite Dust) do not show up in JEI and/or EMI (EMI can be used together with JEI for greater compat). It appears that only REI works out of the box.
@GabrielOlvH Are there plans to fix this compatibility issue? I wonder why certain items/recipes only show/work in REI.

It's not a compatability issue. Speaking as another developer, its because we need to write the code to make our mods work with JEI, EMI and REI separately, so they don't just work fluently with each other

I see, sorry for the confusion. I thought it was some compatibility issue as only some recipes that don't show up, and I can't figure out the common link between them.

It's all good, its basically because whenever you have a general minecraft recipe type, stuff like crafting, smelting, blasting etc. Those recipe handlers will handle them on their own, so any recipes in the mod that use vanilla crafting mechanisms will show automatically regardless of the recipe viewer
But if a custom recipe type is used, like mods like this do tend to use, such as for machines or whatnot, then a developer needs to write some code to tell EMI, JEI or REI how to handle it, how to display it etc. And each of these mods handle it differently and require you write it differently too

Any potential updates on proper EMI support? I am also not seeing a large amount of items in EMI; they do show up in recipes themselves but not the EMI sidebar where we can see craftable items.

Any update on this? Alternatively, is there a wiki or something to view recipes? Currently playing on a pack with this and EMI, and we have no way to view some recipes


chore(deps): upgrade to latest

a couple of questions:

I see that you upgraded ESLINT to v.9, is it on propose?
I see that testing-library/react had a major, wanted to make sure the tests still run :)

A couple of questions:

I noticed that ESLint has been upgraded to version 9. Was this intentional?
I see that testing-library/react had a major update. wanted to make sure the tests still run :)

good catch, downgraded :)


Margins of ListViewItem top Margin visibly changes if it ListViewItem shrinks or grows.

Describe the bug
If I have any item in a ListView (or GridView) container change height size, e.g. as the result of a checkbox or toggle button changing, the space above the item shrinks if the item grows and grows if the item shrinks, seemingly ignore any Margin defined on the item.
Steps to reproduce the bug
    <ListView
    HorizontalAlignment="Left"
    Width="200"
    Margin="10"
    BorderBrush="Green"
    BorderThickness="1">
    <Grid
        BorderBrush="Red"
        BorderThickness="1"
        RowDefinitions="Auto,Auto">
        <CheckBox x:Name="CheckBox" Content="CheckBox" />
        <Rectangle
            Grid.Row="2"
            Width="50"
            Height="50"
            Fill="Blue"
            Visibility="{x:Bind CheckBox.IsChecked, Mode=OneWay}" />
    </Grid>
</ListView>

Expected behavior
The distance between a ListView item and its predecessor (or the top of the ListView if it's the first item) should not change when the height of the item changes.
Screenshots

NuGet package version
WinUI 3 - Windows App SDK 1.2.3: 1.2.230118.102
Windows version
Windows 10 (21H2): Build 19044
Additional context
ListBox doesn't have this problem (but it doesn't support drag-and-drop reordering out of the box so less desireable for my purposes).
With the XAML provided, checking/unchecking the box shows/hides the rectangle. It makes no difference if you wrap the Grid in the example in a ListViewItem. GridView has the same problem. I suspect TreeView might have this issue, but it's more complicated to construct a repro and its re-order behavior is cumbersome to use.

This seems to be an issue with ListViewItem's layout. I can repro with this simpler scenario with just a stackpanel and ListviewItem
<StackPanel
HorizontalAlignment="Left"
Width="200"
Margin="10"
BorderBrush="Green"
BorderThickness="1">
    <ListViewItem>
        <Grid
    BorderBrush="Red"
    BorderThickness="1"
    RowDefinitions="Auto,Auto">
            <CheckBox x:Name="CheckBox" Content="CheckBox" />
            <Rectangle
        Grid.Row="2"
        Width="50"
        Height="50"
        Fill="Blue"
        Visibility="{x:Bind CheckBox.IsChecked, Mode=OneWay}" />
        </Grid>
    </ListViewItem>
</StackPanel>


data: add additional identifier for MX Anywhere 2

$ egrep "Name|Handlers" /proc/bus/input/devices | egrep -B1 'Handlers.*mouse'
N: Name="Logitech MX Anywhere 2"
H: Handlers=sysrq kbd mouse1 event12 leds

$ lsusb
Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver

Same as https://github.com/libratbag/libratbag/pull/1146#issuecomment-886112882. Sorry!


'Done' button doesn't obey the theme.

OS: WIndows 10 x64
Issue Descriptions: When viewing more on an artist's bio, the 'done' button doesn't obey the theme colours.
Steps to Reproduce: View more on an artist's biography, then look at the 'done' button.

As far as I am aware it does?  If you look at the button with the theme disabled it also has a transparent background and plain text.
Can you confirm what you expect it to look like

Here's what mine looks like with the blue theme:

I would assume that the word 'Done' should also be blue as the 'Read More' text was. I also tried with some of the other colours but they didn't work as expected either.

Ahhhh, I see.  When I checked I took a look on the dark theme where it looks kinda normal 👍


WIP Zenith Implementation

Highly WIP, but have some basics functioning on top of the re-architecture PR.
Working basics:

Invoking environment commands, including local dir import/export. Examples:

./hack/dev ./bin/dagger do -e ./universe/dagger --output /tmp/testout cli
./hack/dev ./bin/dagger do -e ./universe/dagger lint

Invoking environment checks. Examples (the output needs some TLC):

Listing checks: ./hack/dev ./bin/dagger check list -e ./universe/dagger
Passing check: ./hack/dev ./bin/dagger check -e ./universe/dagger python-lint
Failing check (warning: there is a ton of output): ./hack/dev ./bin/dagger check -e ./universe/dagger engine-lint

"type-unsafe" API for invocation (i.e. dagger env calls out to the go-sdk env to lint)
Loading environments both from Directory and from "universe"
The new "environment builder" API (only in Go so far, also needs some really obvious cleanups still like fixing WithCommand_ 😁)

Lots of TODOs and cleanups needed, major ones that immediately come to mind:

Update internal SDK developer docs for new requirements so we can start working on updating them for the modifications to how environment runtimes are invoked

Fortunately, this is largely just a simplification; more work is done server side so SDKs have less to do.

Reconcile the API/CLI/etc. w/ the other proposals (here and here)
Implement namespacing of loaded environment resolvers (still just putting everything under Query atm)
(related to above) Support for WithExtension
Merge the re-arch PR, rebase this one on main

I also made some small fixes + improvements in this PR that should be backported to that one

There's obviously no way that this PR will include all of Zenith's implementation of course, I think goal should probably be to have a solid+clean implementation of just Tool entrypoints (currently still named Command in this PR), with the foundation laid for the other types as follow-ups.

Pivoting back here now, gonna start w/ rebasing on https://github.com/dagger/dagger/pull/5415 since that's in a solid place now

I took the liberty of reconciling the README in this branch with the one in main.

Zenith README is now in zenith/README.md
Zenith examples are in zenith/EXAMPLES.md

This should have been closed a while back, current iteration can be found here: https://github.com/dagger/dagger/pull/5757


FeatureUnion tests for xgboost

They should cover https://github.com/TeamHG-Memex/eli5/pull/117#discussion_r93981603

Current coverage is 97.30% (diff: 100%)

Merging #124 into master will not change coverage

@@             master       #124   diff @@
==========================================
  Files            35         35
  Lines          1894       1894
  Methods           0          0
  Messages          0          0
  Branches        362        362
==========================================
  Hits           1843       1843
  Misses           24         24
  Partials         27         27

Powered by Codecov. Last update 2db34a0...02d5927

Awesome, thanks!


[$500] Chat  - Video leads to not here page after reopening chat

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.43-2
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Navigate to staging.new.expensify.com
Go to chat
Upload a video
Play the video and verify that it plays
Go to LHN
Reopen the chat in Step 2
Play the video

Expected Result:
The video is played without issue
Actual Result:
The video leads to not here page
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/ec1d40ef-ac9f-4b51-a53c-827537794de5
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~018ba9a1f89a9fa057
Upwork Job ID:<PHONE_NUMBER>491719680
Last Price Increase: 2024-02-20

We think that this bug might be related to #vip-vsp
CC @quinthar

Proposal
Please re-state the problem that we are trying to solve in this issue.
After reopening the chat page that has a video, pressing the video (on small screen) or expanding it will show not found page.
What is the root cause of that problem?
When the not found page shown, the reportID params in the URL is empty. We get the reportID from the active route.
https://github.com/Expensify/App/blob/669ac330b4eeaad2238419bdb501811d3e031e13/src/components/HTMLEngineProvider/HTMLRenderers/VideoRenderer.tsx#L25-L29
But the reportID could be empty when the page is still transitioning. If the reportID is empty, we will see the not found page.
https://github.com/Expensify/App/blob/669ac330b4eeaad2238419bdb501811d3e031e13/src/components/HTMLEngineProvider/HTMLRenderers/VideoRenderer.tsx#L36-L39
What changes do you think we should make in order to solve the problem?

Get the reportID every time we press the video.
onShowModalPress={() => {
    const activeRoute = Navigation.getActiveRoute();
    const {reportID} = parseReportRouteParams(activeRoute);

    const route = ROUTES.REPORT_ATTACHMENTS.getRoute(reportID, sourceURL);
    Navigation.navigate(route);
}}

This is coming from https://github.com/Expensify/App/pull/30829
@francoisl do you think we should accept the above proposal? Or would you rather wait until next week after the deploy freeze to handle this?

Yep, we should still try to address deploy blockers during the freeze. If the fix works, let's go with it.

Great. @alitoshmatov what do you think of the above proposal?

@bernhardoj 's proposal does solve this issue and provide correct RCA
We can go with this proposal
C+ reviewed 🎀 👀 🎀

PR is ready
cc: @alitoshmatov

Looks like Melvin failed here and we missed this issue. The PR went to into production 3 weeks ago. Can we proceed with next step
@stitesExpensify

Does the issue still exist on production? If so then yes let's proceed!

@stitesExpensify This issue does not exist in production. The payment is not handled yet

Oh, my apologies I misunderstood your question. I will get a bug zero member assigned!

Hi @sonialiap Melvin didn't trigger here, but the issue is already completed. Could you please process the payment for @bernhardoj and @alitoshmatov ?

Thanks for the note about payment, processing now
Payment summary:

@bernhardoj fix $500 - offer sent
@alitoshmatov reviewer $500 - offer sent

@sonialiap Accepted the offer

Both payments made ✔


TextFormField seems not support the Input shortcut.

Some input software have some shortcut to help us quickly edit the input fields (like the screenshot below), but it seems the TextFormField (and maybe TextField and so on) doesn't support those behavour?

flutter analyze

flutter doctor -v

We're not familiar with the on-screen keyboard shown in your screenshot. Is it a 3rd party add-on?

@HansMuller It's a input App named 'Baidu IME', I love this App for it's strengthly input function. It works well with any native android App make write with traditional Java develop method. Here the example usuage:

By the way, as the flutter TextField not support the input shortcut like select all, copy and paste, I guessed that maybe it also not support Ctrl+A, Crtl+V, Ctrl+X and so on keyboard shortcut when used an physical keyboard with OTG? Somebody who has OTG could take I try? Thanks.

Might be related to #14047

Some keyboard input braces { will automatically add} and move the cursor to the middle of {}. TextField does not support it, and the cursor will move to the front. Should that be the same problem?

@zhengxiaoyao0716 请问解决了吗，我用讯飞输入法和百度输入法的复制、粘贴、全选、剪切、选择等操作也毫无反应。

I'm sorry that I haven’t paid much attention to this issue recently, but it seems not been resolved.

@zhengxiaoyao0716 ok, thanks.

@justinmc Can you solve this problem? He seems to have influenced a lot of input methods. There is no problem with EditText on native

I hadn't seen this issue, I'll add it to my list.
CC @GaryQian in case you've looked at something similar before


Implement TLS

Manager should have the option to use TLS as a transfer protocol so as to safeguard from data leaks.

This issue was shelved due to Unity seemingly not allowing selfsigned certificates making the develoment prosess too time consuming.


Document serialized inserts in readme

Just a heads-up, since there's still a "TODO" in there in an awkward location ("Insertions are serialized, which means [TODO]") and it might be easier to track a github issue. :)

The docs could certainly use work


Modify: Google.Chrome.Dev version 128.0.6559.0

Checklist for Pull Requests

[X] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[X] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Don't close.

Don't close. Merge #160407 first, and then I'll rebase.

/azp run

Hi @aisgbnok,
This manifest adds Apps and Features entries that aren't present in previous PR versions. These entries should be added to the previous versions, or removed from this version.
(Automated response - build 886.)


Disable spellcheck and autocapitalize on username/password fields

Describe the solution you'd like
Every time I try to log in to Memos on my Android, I have to un-capitalize my keyboard to enter the first letter of my username. Since usernames are case-sensitive in Memos (a separate concern I will not discuss here), it's important to type in my username all in lowercase.
Disabling autocapitalize would resolve this issue, however, it seems like a good idea to disable spellcheck as well since many usernames and passwords will not be dictionary words.
Type of feature
User Interface (UI)
Additional context
The username field is currently rendered as:
<input placeholder="Username" type="text" required="" class="MuiInput-input css-1u0jcuo" value="">

My suggested update would change it to:
<input placeholder="Username" type="text" required="" class="MuiInput-input css-1u0jcuo" value="" autocorrect="off" autocapitalize="off" spellcheck="false" >

Note that despite the below article covering its usage, I think we should leave autocomplete enabled for password management tools.
https://davidwalsh.name/disable-autocorrect

Hey all!
Have been using memos for awhile, thought I'd see how I could contribute back via OSS.
I can give this issue a shot; will put in a PR when I've got it all wrapped up.


[Bulk] Validation Missing Desc Fixes

This PR fixes 30 issues.

Docs Build status updates of commit 96e5d7d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-nav/optimize-sql-set-compatibility-level.md
:bulb:Suggestion

Details

dynamics-nav/OPEN-Function--File-.md
:white_check_mark:Succeeded

dynamics-nav/OPEN-Function--Query-.md
:white_check_mark:Succeeded

dynamics-nav/OPENEDIT-Function--TestPage-.md
:white_check_mark:Succeeded

dynamics-nav/OPENNEW-Function--TestPage-.md
:white_check_mark:Succeeded

dynamics-nav/OPENVIEW-Function--TestPage-.md
:white_check_mark:Succeeded

dynamics-nav/OPTIONCAPTION-Function--FieldRef-.md
:white_check_mark:Succeeded

dynamics-nav/OPTIONCOUNT-Function--TestPage-Field-.md
:white_check_mark:Succeeded

dynamics-nav/OPTIONSTRING-Function--FieldRef-.md
:white_check_mark:Succeeded

dynamics-nav/OnPreXMLport-Trigger.md
:white_check_mark:Succeeded

dynamics-nav/OnQueryClosePage-Trigger.md
:white_check_mark:Succeeded

dynamics-nav/OnRename-Trigger.md
:white_check_mark:Succeeded

dynamics-nav/OnValidate--Fields--Trigger.md
:white_check_mark:Succeeded

dynamics-nav/OnValidate--Page-fields--Trigger.md
:white_check_mark:Succeeded

dynamics-nav/Open-Window-Method.md
:white_check_mark:Succeeded

dynamics-nav/Opening-a-Page-in-the-Microsoft-Dynamics-NAV-Web-Client-by-Using-a-URL.md
:white_check_mark:Succeeded

dynamics-nav/Opening-a-Report-in-the-Microsoft-Dynamics-NAV-Web-Client-by-Using-a-URL.md
:white_check_mark:Succeeded

dynamics-nav/Operating-System-Functions.md
:white_check_mark:Succeeded

dynamics-nav/Optimizing-SQL-Server-Performance-with-Microsoft-Dynamics-NAV.md
:white_check_mark:Succeeded

dynamics-nav/OptionCaption-Property.md
:white_check_mark:Succeeded

dynamics-nav/OptionCaptionML-Property.md
:white_check_mark:Succeeded

dynamics-nav/OptionString-Property.md
:white_check_mark:Succeeded

dynamics-nav/Options-for-Merging-Objects.md
:white_check_mark:Succeeded

dynamics-nav/OrderBy-Property.md
:white_check_mark:Succeeded

dynamics-nav/OutStream-WRITE-Function.md
:white_check_mark:Succeeded

This comment lists only the first 25 files in the pull request.

dynamics-nav/optimize-sql-set-compatibility-level.md

Line 21, Column 30: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/sql/relational-databases/databases/view-or-change-the-compatibility-level-of-a-database' will be broken in isolated environments. Replace with a relative link.
Line 33, Column 31: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/sql/t-sql/statements/alter-database-transact-sql-compatibility-level' will be broken in isolated environments. Replace with a relative link.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Global effort to fix build validation errors
The Content & Learning team is fixing build validation errors on docs.microsoft.com for the rest of H2. This will eliminate potential accessibility, security, and usability issues. This PR includes only build validation fixes and does not change other content. Please review within five business days and merge or comment in the PR with any changes you'd like to see. Thank you!
@buck1ey Please suggest a reviewer for this PR if you can! Thank you.


--nameserver will not keep le service dnsdock runing in "docker ps" in the version 1.16.*

Hello,
I have tried two versions of dnsdock
1.15.* and 1.16.*
I want to use --nameserver option to redirect some request to a private network.
with 1.15., it works well but with 1.16., the service stopped right away after it is started.

Hi
Can you start dnsdock with the verbose option and copy the result here.

Hi, i have the same issue - the container shuts down after this error message:
18.1.2017 12:19:1211:19:12.376 | CRITICAL ▶ DNS fowarding for 'read udp <IP_ADDRESS>:35526-><IP_ADDRESS>:53: i/o timeout' failed: no more nameservers to try

@aacebedo, here is the line where it all goes down: https://github.com/aacebedo/dnsdock/blob/a8f97e6b4ffaddcfe652eaa98b42fe2095e12439/src/servers/dnsserver.go#L196
This is because logger.Fatalf() calls os.Exit(1): https://golang.org/pkg/log/#Fatalf

Hi !
Thanks for the feedback.
The logger is not the issue as I don't use the standard but q third party lib
However I think the err variable may be nil leading to a segfault

Do you use https://github.com/op/go-logging? It seems like Fatalf() from it does call os.Exit(1) too: https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L180

Hi! I have exactly the same issue.
The container with dnsdock shuts down when communication to the all forwarding DNS (in my case only one from Google) is not reachable, when for example host system disconnects from the WiFi router.
10:41:10.167 | DEBUG ▶ Using DNS forwarding for 'bqgfsvygfybyf.'
10:41:10.167 | DEBUG ▶ Forwarding DNS nameservers: <IP_ADDRESS>:53
10:41:10.167 | DEBUG ▶ Using Nameserver <IP_ADDRESS>:53
10:41:11.165 | CRITICAL ▶ DNS fowarding for 'read udp <IP_ADDRESS>:38846-><IP_ADDRESS>:53: i/o timeout' failed: no more nameservers to try

@rothvaw, it's still usable when you run it with --restart on-failure flag:
#!/usr/bin/env bash

docker run -d \
       -v /var/run/docker.sock:/var/run/docker.sock \
       --name dnsdock -p <IP_ADDRESS>:53:53/udp \
       --restart on-failure \
       aacebedo/dnsdock:latest-amd64 --domain dnsdock --environment dev        # --verbose

I mean, usable and awesome. Works great in development environment.

@koddo thanks for workaround, but in my case I also add some entries to the dnsdock by http api and when dnsdock restarts those entries are not present anymore, I must to add them once again.
Maybe there is an option to save entries by mounting some volumes?

Hi
I am trying to release a corrected version this weekend.
I am struggling with another issue on the resolution side.
I think I'll pause it to fix this issue in priority

Hi !
This issue shall be solved with version 1.16.3 :)
Sorry for the delay.

Hi!
I confirmed, it's working in 1.16.3. The dnsdock is stable even if the connection to all forwarding DNS servers is not possible. In this case there is only a warning in logs, instead of shutdown (like was in 1.16.1):
07:44:15.828 | DEBUG ▶ Using Nameserver <IP_ADDRESS>:53
07:44:17.144 | WARNING ▶ DNS fowarding failed: no more nameservers to try

Thank You very much!

You're welcome :)


Featured Speakers: Unwanted line breaks and bold text

The featured speakers area shows line breaks where the should not be any and bold text.
Please see screenshot below:

I will look into it :)


adding ALDS support to Capture

Adding ADLS support to Capture

@ShubhaVijayasarathy,
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

@ShubhaVijayasarathy : Thanks for your contribution to the Azure documentation! The author, @ShubhaVijayasarathy, has been notified to review your proposed change.

Microsoft authors of articles need to make updates through the private repository so the updates can be staged and validated by the current validation rules. After you review staging and fix all validation issues, you can add the sign-off comment to let the PR reviewers know the updates are ready to be merged.
It's easy to access the private repo version of your articles in GitHub. Just add -pr to the URL, as follows:
Public repo URL: https://github.com/Microsoft/azure-docs/blob/master/articles/azure-portal-overview.md
Private repo URL: https://github.com/Microsoft/azure-docs-pr/blob/master/articles/azure-portal-overview.md
We've closed this pull request. Please resubmit the updates through the private repo. If you need perms to the private repo, see the contributor guide instructions


[zh] sync /workloads/controllers/_index.md

Add zh text to this page:
content/zh-cn/docs/concepts/workloads/controllers/_index.md

See preview please.

/lgtm

/approve

/lgtm