Realtime Stream Initalizing and Cancelling to Handle Errors

Describe the bug
Our app secondary feature is messaging, we listen to room_status using realtime stream.
A stream can fail onError like having no internet connection.
when we initialize our stream again after error the stream is not listening to any changer
To Reproduce
Steps to reproduce the behavior:

Create a table and enable realtime
initialize the realtime
Close the internet then open the app
After the internet connection fails, the stream does not get realtime events (after initializing again)

or

Initialize a stream listener and cancel it and initialize it agian

Expected behavior
Realtime stream work with StreamSubscription so we can cancel and listen again to realtime streams.
Additional context
MacOS, Windows, Android and iOS

The issue main issue is
we can listen to the stream only once when first time initializing
if we close the screen and open it again, we cant listen to the stream again.

@iampopal
Thanks for opening this issue. I am having trouble reproducing this issue. Here are the steps that I am doing:

Create a StreamBuilder like this:

StreamBuilder(
  stream: Supabase.instance.client.from('posts').stream(['id']),
  builder: (context, snapshot) {
    if (snapshot.hasError) {
      print(snapshot.error.toString());
      return Text(snapshot.error.toString());
    }
    if (snapshot.connectionState != ConnectionState.active) {
      return const Center(child: CircularProgressIndicator());
    }
    return ListView.builder(
      itemCount: (snapshot.data as List).length,
      itemBuilder: ((context, index) {
        return ListTile(
          title: Text(
              (snapshot.data as List)[index]['content']?.toString() ??
                  ''),
        );
      }),
    );
  },
),

Open the app
Update data from dashboard and observe that data is being updated on the Flutter app in realtime
Make the app go in background mode and open other app
Reopen the app again.
Update data from dashboard and observe that the data is being updated on the Flutter app in realtime.

It seems like with the above steps I didn't lose realtime connection. I tested it using Android phone and supabase-flutter v1.0.0-dev.7.

After the internet connection fails, the stream does not get realtime events (after initializing again)

Also, could you explain what exactly you do when you say initializing again in the above sentence?

@dshukertjr  Thank you for your response

@iampopal Thanks for opening this issue. I am having trouble reproducing this issue. Here are the steps that I am doing:

Create a StreamBuilder like this:

StreamBuilder(
  stream: Supabase.instance.client.from('posts').stream(['id']),
  builder: (context, snapshot) {
    if (snapshot.hasError) {
      print(snapshot.error.toString());
      return Text(snapshot.error.toString());
    }
    if (snapshot.connectionState != ConnectionState.active) {
      return const Center(child: CircularProgressIndicator());
    }
    return ListView.builder(
      itemCount: (snapshot.data as List).length,
      itemBuilder: ((context, index) {
        return ListTile(
          title: Text(
              (snapshot.data as List)[index]['content']?.toString() ??
                  ''),
        );
      }),
    );
  },
),

Open the app
Update data from dashboard and observe that data is being updated on the Flutter app in realtime
Make the app go in background mode and open other app
Reopen the app again.
Update data from dashboard and observe that the data is being updated on the Flutter app in realtime.

It seems like with the above steps I didn't lose realtime connection. I tested it using Android phone and supabase-flutter v1.0.0-dev.7.

After the internet connection fails, the stream does not get realtime events (after initializing again)

Also, could you explain what exactly you do when you say initializing again in the above sentence?

Thank you for your response.

Thanks for the detailed description. I was able to reproduce the issue.
Right now without re-initializing the stream, the stream will keep getting any updates after it comes back online, but the problem is that it loses any updates that happened during when the device was offline, it sounds like.
@Vinzent03 I think the solution to this issue is to implement refetching upon coming back to online, but what do you think?
https://github.com/supabase-community/supabase-flutter/issues/90#issuecomment-1252179018

Just wanted to come back to this issue. Currently, Supabase's real-time feature requires an internet connection in order to provide real-time data. If the device goes offline, any data that was sent to the client from the server is lost. This is a known limitation of Supabase, and we do have some attempts to solve it like this one. Until we find a proper fix for it across all Supabase producets, Supabase will remain to have a stable internet connection as a requirement. With this, I will close this issue for now.


[DOCS]

Description
Add README.md file
Screenshots
No response

Plz assign me this task. Thank you

Hey @jyotika6221, this project already does have a README.md file. Please specify what contributions you want to make.


[Bug report]: Margin between text and icon in button not always applied

Requirements before reporting

[X] No duplicated issue reported.
[X] I have checked the latest version if the bug exist there. See all available packages at npmJS.com
[X] I have followed the installation guide.

Package versions
@scania/tegel-angular: ^1.7.0
Browser
Chrome
Framework
Angular
Version
Angular 17
Reproduction steps

Add a tds-button
Add a tds-icon through the slot="icon"
Add a text attribute to the button.
Reload the page showing the component

Code example
<tds-button type="button" variant="primary" size="sm" text="button text">
    <tds-icon slot="icon" name="plus"></tds-icon>
</tds-button>

Screenshots

Expected behaviour
The margin between text and icon should always be applied, now it seems that it triggers sometimes but not always. Not sure as to why but it seems like the class "tds-button :not(.only-icon).sm.sc-tds-button-s>[slot=icon]" is not applied when the margin is missing.
Working Workaround : If I use the label slot for my button text it's working as expected.
Console errors
none
Contact information
<EMAIL_ADDRESS>

I looked into this. I could not replicate it in our demo page, however, I think the issue was in over-complicated styling. I have made a PR to simplify it a bit. Hopefully, it resolves this problem, let's see after the release.

Fix was released in 1.12.1 version.
Please try and reopen this ticket if the issue is still present. ;)


Add RSpec::Core::MemoizedHelpers.will_be_expected

Create an alias RSpec::Core::MemoizedHelpers.will_be_expected to expect { subject }
Designed to prettify one-liners when you have block expectations for subject, e.g.
class SimplePrinter
  def initialize
    print "Printer is ready"
  end
end

This goes to
it { will_be_expected.to output("Printer is ready").to_stdout }

instead of
specify { expect { subject }.to output("Printer is ready").to_stdout }

For more complicated cases:
describe UserFactory do
  subject { UserFactory.create_user }

  it { will_be_expected.to change(User.count).by(1) }
  it { will_be_expected.to output.to_stdout }

  context 'with database issues' do
    it { will_be_expected.to output.to_stderr }
    it { will_be_expected.to raise_error }
  end
end

So this change allows to DRY up, prettify and make specs even more readable.
Do you have any suggestions?

Thanks for the PR!  I do have a few concerns, though:

Based on the names, it's not obvious how is_expected and will_be_expected differ.  expect(...) vs expect { ... } is about values vs side effects, but is_expected and will_be_expected are about present vs future tense.  Our docs can certainly make this clear but if we're going to introduce a new API like this I think I'd want it to be more obvious.
subject { UserFactory.create_user } reads to me like it's defining the subject to be the return value of UserFactory.create_user (that is, the created user), but it's really not -- in your example the thing being tested is the act of creating a user, and not the created user itself.  IMO, your example spec doesn't communicate well.  In fact, I think it's much clearer (and faster, to boot!) to not use subject or ..._expected at all:

describe UserFactory do
  def create_user
    UserFactory.create_user
  end

  it "logs a message about the fact it created a user" do
    expect { create_user }.to change(User.count).by(1).and output.to_stdout
  end

  context 'with database issues' do
    it "surfaces the database error and logs a message" do
      expect { create_user }.to raise_error.and output.to_stderr
    end
  end
end

IMO, this is better because there's less cognative load to understand what's going on and it's faster (we're only creating the user twice instead of 4 times!).
Still, I'm sure some users would like will_be_expected even if it's something that I think doesn't belong in core.  What do you think of packaging it up as a gem so it's available to the community?

Hi @myronmarston  Thank you for a detailed reply!

What do you think of packaging it up as a gem so it's available to the community?

Yep, I'll create a separate gem for this feature. I expected this answer from you :smile:
Could you please also answer some questions? It is hard to find this information in RSpec docs, that's why conventions differ from project to project.

Should the subject always be an instance of described_class?
Can it be another class returned by some method of described_class (as you mentioned above)?
Is it a common way to define methods inside example groups like create_user above? And should these methods describe actions unlike let/subject describe entities?

How is this any better than it { is_expected.to output("Printer is ready").to_stdout } which we already have?

Ah I see, block rather than just bare subject... but still you could get this by returning a block from subject?

Should the subject always be an instance of described_class?

Not necessarily.  subject can be whatever the user declares it to be, and may not have any correlation to what they've passed to describe.  The default subject we provide will be an instance of described_class if they passed a class to describe, though.

Can it be another class returned by some method of described_class (as you mentioned above)?

Yes, it can be literally anything.  That's the point of the subject method in describe -- it allows the user to specify what the subject should be and we put no limitations on that.

Is it a common way to define methods inside example groups like create_user above?

Extremely common in my experience.  I use helper methods all the time, and most other RSpec users I've worked with do as well.

And should these methods describe actions unlike let/subject describe entities?

Helper methods can do anything you want.  Really, let just defines a helper method -- the difference being it takes care of memoization for you.

Ah I see, block rather than just bare subject... but still you could get this by returning a block from subject?

Yep.  And actually, I think there's an argument to be made that that's better: it makes it explicit that the thing your testing is the action itself, and not simply the return value of it.

Thank you for a detailed explanation! I believe it would be really good if you put this information to the RSpec docs.
If somebody comes here, reads the discussion above, but still wants to use this kind of subjects, see this gem https://github.com/d-unseductable/rspec-will_be_expected

Thank you for a detailed explanation! I believe it would be really good if you put this information to the RSpec docs.

We've got docs on subject, helper methods, etc:
https://relishapp.com/rspec/rspec-core/v/3-2/docs/helper-methods/arbitrary-helper-methods
https://relishapp.com/rspec/rspec-core/v/3-2/docs/helper-methods/define-helper-methods-in-a-module
https://relishapp.com/rspec/rspec-core/v/3-2/docs/subject/explicit-subject
What's missing?


Missing Dependencies - Alarm Decoder

Home Assistant release with the issue:
0.68.1
Last working Home Assistant release (if known):
Unknown
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io
Component/platform:
https://www.home-assistant.io/components/alarmdecoder/
Description of problem:
When using USB type for Alarm Decoder, Home Assistant advises that dependencies are missing:
Error during setup of component alarmdecoder
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/alarmdecoder.py", line 166, in setup
    AlarmDecoder(USBDevice.find())
  File "/usr/lib/python3.6/site-packages/alarmdecoder/devices/usb_device.py", line 109, in find
    raise ImportError('The USBDevice class has been disabled due to missing requirement: pyftdi or pyusb.')
ImportError: The USBDevice class has been disabled due to missing requirement: pyftdi or pyusb.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
alarmdecoder:
  device:
    type: 'usb'
  panel_display: On

This looks like that this is an issue of the alarmdecoder module.

I do recall their developers being somewhat actively recently on their Github pages.  Might be worth a shot to hit them up over there.  https://github.com/nutechsoftware

Submitted an issue to the AlarmDecoder developers.  I am not well versed in software; would appreciate a peer review of the issue.
https://github.com/nutechsoftware/alarmdecoder/issues/25

Alarm decoder devs seem to have turned me away.  Is it possible to add pyftdi or pyusb to HassIO vis command line?  Sorry for the very basic questions.


Our Mask with animated spinner can be a source/cause of latency.
When used in a Panel, our Mask component by default shows an animated spinner.  To not show the spinner on any mask in an app requires configuring every Panel with a customized Mask component.
This is a bit of a chore, and it might be worth finding an app wide way to configure the appearance of all Masks.
Also, it would be nice to easily show an icon or image that isn't animated, rather than no icon/image at all.

I am looking at this.

Closing this, as we currently think that the new spinner component addresses the main reason behind this ticket.
We can always revisit the idea of improving our mask API, which is more of an open-ended problem.


Can't install node

From @rtuider on July 7, 2015 12:39
Hi guys,
when trying to install node under Redhat7 I get this error:
[local]$ brew install node
==> Installing node dependency: pkg-config
Error: pkg-config cannot be built with any available compilers.
To install this formula, you may need to:
  brew install gcc

If I install gcc as mentioned I get this:
[etc]$ brew install gcc
==> Installing dependencies for gcc: gmp, xz, mpfr, libmpc, isl
==> Installing gcc dependency: gmp
Error: gmp cannot be built with any available compilers.
To install this formula, you may need to:
  brew install gcc

I have this compiler installed via yum (I followed the install instruction of brew):
gcc-4.8.3-9.el7.x86_64
What could I do?
KR
Ruben
Copied from original issue: Homebrew/homebrew#41449

Are you using Linuxbrew?

From @rtuider on July 7, 2015 13:7
Yes.
I followed this instructions: https://github.com/Homebrew/linuxbrew/blob/master/README.md

Try the following:
ln -s $(which gcc) $(brew --prefix)/bin/gcc-$(gcc -dumpversion |cut -d. -f1,2)
ln -s $(which g++) $(brew --prefix)/bin/g++-$(g++ -dumpversion |cut -d. -f1,2)

Awesome... thanks. This works.


Add a reset store function

In different use cases, sometimes, I need to reset the store or a part of the store.
For example, when I switch from a connected user to another I need to reset a huge part of the store and its quite exhaustive to do. Because I have to call each reset() methods of my reducers, or create RESET actions to my custom reducers. And, in the future, if I have to add a new reducer, I dont must forget to reset it when needed.
I was thinking about a method :

store.reset() : apply the initial state to the entire store
store.reset('path') : apply the initial state from the given path

What do you call an initial store ?

The init parameter (given to createStore) ?
The defaultData from k-redux-factory reducers ?

Implementation
Right now I think about:

trigger an action : @@krml/RESET${path ? '>' : ''}${path} for custom reducers and reactions
calls reset in the tree when reducers are from k-redux-factory, but I don't know if I keep the store declaration at runtime (after the store is created)

For me initial store, means the state of the store when I have started it for the first times.
The equivalent in redux is calling each reducers with an undefined state and an empty action.
(acting like redux executing them for the first time.)

I am speaking about redux behaviour.
If you pass an initState to redux, I believe it inject that initial state on each subreducer at init (not always undefined
This is the reason of my question

Ok so, I think I waiting to have the given initial state. (like redux do when it starts for the first time)

Mini algorithm

Retrieve path parameter
Retrieve description of the store (so we can know if a path is a an object description, or a function (reducer))
For each leaf
a. find the initState into createStore((), { init }) parameter (init) for the same path
b. if this is a krf reducer, calls reset -> 🚧  we have to accept a state into reset payload on krf 🚧
b)bis. if this is a custom reducer, calls ??? 🆘

b) bis. execute the custom reducer with the init for the same path : custom(init, {}) and I think it's could be the same with krf reducers.

How do you mutate the redux store ? :)
This is not as easy as you say.
Maybe we have to pass by an enhancer

Of course, it's not as easy as I say 😄
But... maybe we could try to use replaceReducer doing something like that :
store.replaceReducer(combine(store[pathInReducerTree]))

Yes maybe, I don't really know how it behave.
Is it synchronous ? In this case this is ok for me.
Is it asynchronous ? In this case, how Redux handles action meanwhile reducer is being replaced ?

For me, redux is always synchronous.


Assigning a consistent timestamp to each line/message

From https://github.com/jpnurmi/znc-clientbuffer/pull/7#issuecomment-266006958:

Each message/line in ZNC, from beginning to end, should have a single timestamp associated with it and accessible from within modules. /cc @psychon

Sounds like a good idea. An implementation idea would be to add this to CMessage. If I understand this right, every IRC-line that ZNC parses ends up as an instance of someting inheriting from CMessage, so if CMessage took a timestamp e.g. when it is constructed, everything would have access to a consistent timestamp.

Good reason from therein:

So there’s this one slight issue left… When using znc.in/self-message capability, after reconnecting, my own last message is sent back to me. But only to the client that actually sent it, others work okay.
[…]
My first guess would be that sending a message from a client (identifier) does not update its seen timestamp. This would cause the issue.
[…]
Oh, it seems like it’s more complicated. So the timestamp of me sending the PRIVMSG is indeed updated. But the timestamp of this entry in the buffer is slightly off. 300 µs in my case.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39964770-assigning-a-consistent-timestamp-to-each-line-message?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).

Will a fix for this close the issue that started the referenced PR? (Also the issue message markdown seems broken.)

Daniel, not directly, but having one consistent timestamp for each message
in ZNC, will free clientbuffer from calling gettimeofday (for each
message), which returns logically incorrect values, leading to inconsistent
and unexpected behavior.
Also, the module hooks would need to get this timestamp somehow. IIRC (I'm
not at the computer right now), now the modules are getting just CStrings.
Arguably, stringly-typed programming is not one that should be practiced. =P
The fix for clientbuffer would involve changing gettimeofday to this new
per-message timestamp. Probably +3-3 diff or similar.
Thank you for taking interest in this!

Also, the module hooks would need to get this timestamp somehow. IIRC (I'm not at the computer right now), now the modules are getting just CStrings.

Not really. The module API was changed (well, replaced) and the CStrings-based one is marked as deprecated. The new one gets instances of CMessage, so if timestamps are added to CMessage, modules would automatically have access to them.
For example: https://github.com/znc/znc/blob/master/include/znc/Modules.h#L693-L699

@psychon, ah! Great to hear that, then. :smile_cat:

So after each CMessage gets a timestamp during its creation, I’d argue that no other place should ask the kernel for time, to keep everything consistent. And most of all, timestamps in replay buffers should be equal to timestamps of corresponding CMessages.

Uhm. CMessage instances already have a timestamp accessible via GetTime:
https://github.com/znc/znc/blob/384681351228c1a4e4be2bea3d7ae7585409a210/include/znc/Message.h#L102
This is either the time when the CMessage instance was created or the time-tag that the server sent.

Awesome, so we’re waiting impatiently for a stable 1.7.x. =)
I’ve looked through the code and it seems that after creation, the timestamps are not update. Exactly what we needed!

I'm not entirely sure what znc-clientbuffer would do with a timestamp coming from the server, by the way. They might cause some kinds of breakage if the clocks aren't syncronized and timestamps start going backwards...

@psychon, sigh, right… :disappointed: Well, let’s then reopen this and gather more opinions.

FYI, my fork of the ClientBuffer module (which now serves as the project's main repository, as @jpnurmi has been MIA) uses the new ZNC 1.7.x API when built against ZNC 1.7.x. I believe it works perfectly, other than some possible rare hickups when replaying self-messages - still need to track this down, but by the sound of it, certainly sounds plausible that it could be caused by a mismatch between local and server timestamps (self-messages' timestamps would need to come from local time, whereas received ones would have the server timestamp if any).


Fetching collaborator stats breaks if org name != org login

What I did:

Set oss-dashboard to fetch private information with private-access: ['org-name'].
Executed ruby refresh-dashboard.rb config_goes_here

What I expected:
At least the backing database to be filled with team membership and collaborator information.
What I got instead:
metadata
org-name Error during processing: GET https://api.github.com/users/Org name/repos?per_page=100: 404 - Not Found // See: https://developer.github.com/v3/repos/#list-user-repositories
Backtrace:
/usr/lib/ruby/vendor_ruby/octokit/response/raise_error.rb:16:in on_complete' 	/usr/lib/ruby/vendor_ruby/faraday/response.rb:9:in block in call'
/usr/lib/ruby/vendor_ruby/faraday/response.rb:57:in on_complete' 	/usr/lib/ruby/vendor_ruby/faraday/response.rb:8:in call'
/usr/lib/ruby/vendor_ruby/octokit/middleware/follow_redirects.rb:73:in perform_with_redirection' 	/usr/lib/ruby/vendor_ruby/octokit/middleware/follow_redirects.rb:61:in call'
/usr/lib/ruby/vendor_ruby/faraday/rack_builder.rb:139:in build_response' 	/usr/lib/ruby/vendor_ruby/faraday/connection.rb:377:in run_request'
/usr/lib/ruby/vendor_ruby/faraday/connection.rb:140:in get' 	/usr/lib/ruby/vendor_ruby/sawyer/agent.rb:94:in call'
/usr/lib/ruby/vendor_ruby/octokit/connection.rb:154:in request' 	/usr/lib/ruby/vendor_ruby/octokit/connection.rb:84:in paginate'
/usr/lib/ruby/vendor_ruby/octokit/client/repositories.rb:71:in repositories' 	/home/isabel/projects/oss/oss-dashboard/github-sync/db_metadata/sync-metadata.rb:121:in store_organization_members'
/home/isabel/projects/oss/oss-dashboard/github-sync/db_metadata/sync-metadata.rb:177:in block (2 levels) in sync_metadata' 	/var/lib/gems/2.3.0/gems/sequel-4.46.0/lib/sequel/database/transactions.rb:224:in _transaction'
/var/lib/gems/2.3.0/gems/sequel-4.46.0/lib/sequel/database/transactions.rb:199:in block in transaction' 	/var/lib/gems/2.3.0/gems/sequel-4.46.0/lib/sequel/database/connecting.rb:301:in block in synchronize'
/var/lib/gems/2.3.0/gems/sequel-4.46.0/lib/sequel/connection_pool/threaded.rb:107:in hold' 	/var/lib/gems/2.3.0/gems/sequel-4.46.0/lib/sequel/database/connecting.rb:301:in synchronize'
/var/lib/gems/2.3.0/gems/sequel-4.46.0/lib/sequel/database/transactions.rb:165:in transaction' 	/home/isabel/projects/oss/oss-dashboard/github-sync/db_metadata/sync-metadata.rb:170:in block in sync_metadata'
/home/isabel/projects/oss/oss-dashboard/github-sync/db_metadata/sync-metadata.rb:166:in each' 	/home/isabel/projects/oss/oss-dashboard/github-sync/db_metadata/sync-metadata.rb:166:in sync_metadata'
/home/isabel/projects/oss/oss-dashboard/github-sync/sync.rb:52:in github_sync' 	refresh-dashboard.rb:210:in block in '
refresh-dashboard.rb:197:in each' 	refresh-dashboard.rb:197:in '

I applied your patch - thank you for providing it; definite error in the code :)


rfc: fast-blazor absent from blazor.net UI Component section

💬 RFC

There's a number of commercial UI and Component libraries listed on blazor.net while there's no mention of microsoft/fast-blazor. Surely just an oversight, I thought I'd mention.
🔦 Context

See the UI component ecosystem section of blazor.net -> Seem's like a lot of people new to Blazor are not finding their way here and are instead lead astray since there's no mention of this great free alternative for base components in their applications.
💻 Examples

Fixed by https://github.com/AdrienTorris/awesome-blazor/pull/543

Fixed by https://github.com/AdrienTorris/awesome-blazor/pull/543


How to uncomment DISABLE_NOTIFICATIONS ?

How to uncomment DISABLE_NOTIFICATIONS in bin/setenv.sh ?

Refer to the comment from https://github.com/alvistack/ansible-role-jira/blob/master/templates/opt/atlassian/jira/bin/setenv.sh.j2#L45-L47:
# Uncomment this setting if you want to import data without notifications
#
#DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"

I guess you are trying to have a XML backup restore? In this case because it is not such often use case, I will making it as an options for defaults/main.yml (due to KISS principle).
You could first deploy JIRA with my role, manually stop the instance, manually change the DISABLE_NOTIFICATIONS, start it again for your data import. Once completed, re-run my role to verify it as normal status ;-)

Yes but this would be a manuel step to do every time when updating the Staging System. Hoped this could be done with this role. :)

For staging setup, I usually handle with complete JIRA_HOME + JIRA_CATALINA rsync from production, then also restore DB from PostgreSQL level.
Don't always believe with Atlassian's XML backup/restore process, I only use it for:

Migrate DB backend, e.g. from H2/MySQL to PostgreSQL/MSSQL/Oracle, or
DB records looks dirty, so purify it with XML backup -> import to a newly installed clean system + rsync JIRA_HOME/attachements from legacy system


Added ability to delete records on cascade

This PR solves two features I was needing.
The first is that I needed the ability to delete an activity record if its subject/parent model was deleted. I didn't want the activity feed display items that were orphaned. A static property has been added and some other methods put in place to allow this functionality.
The second need allows both the getRecords() and getUserActivity() methods to return activity matching certain event types. For a forum user's profile, things like logging in or logging out are irrelevant. So a second and third method parameter, respectively, have been added to allow the option of passing in either a string such as created_post or an array ['created_post', 'updated_post'].
I attempted to write tests to cover the new functionality and am still willing to do that. However, some changes have been made to orchestra/testbench and the test suite needs to be fixed to match these breaking changes. If you get that updated, let me know and I can write tests.

Awesome, I'll check the test suite at my earliest convenience
Thanks for the PR

Thanks. I have a few more additions and refactors I'd like to do. I'll send them your way when they are ready.

Sure thing, will try to fix testbench in the meanwhile👍🏻

Updated composer.json to choose the correct testbench suite. Unfortunately it is the laravel 5.2, as this package was initially developed for that. Should work now

Excellent. Thanks @Hyleeh


Request: Detect language from string input

Could you wire up the functionality to perform a "detect_language" operation natively against a string, rather than forcing content to be read from a file?

Hi @MrTomKimber is not possible because Apache Tika gets input from file. But if you want you can write a function that gets the string, writes a temp file and submits it to Apache Tika.


UI bug identified on Windows 10

Diego, I identified unexpected behavior in the top bar on Windows 10.

The configuration applied in the electron/main.ts file had no effect on Windows.

Can you try passing titleBarStyle: 'hidden'? https://stackoverflow.com/a/48877027

I also used windows 10 and didn't have this problem, it must be some option of the computer or version of windows...

More bugs! The application open, but, don't work.
Example:

I'll try to execute this inside Windows to find out, but it seems to be something that happens only to some users :thinking:

This happened to me, but it was a problem in the project, after the boot command was updated my problem fixed

@felipeleite11 and @lenivene, you guys could provide more information, otherwise we can't help fix it (try at least).
Example:

What is the SO? What is the SO version (not only windows 10 but the full version)
Steps to reproduce that.
And other information

Just tried on 3 different machines with windows 10 and I couldn't reproduce the problem. If you guys can provide more informations, I can try to fix.
Steps I did:

Clone the repository
yarn -> To install dependencies
yarn dev -> To run the program

Let's go try again!
It's "working" now, but save don't work 😅

@lenivene I'm still working on "save": #34


Null check operator used on a null value

this line throw such error
await retriever.setFile(File(song.path));
[ERROR:flutter/runtime/dart_isolate.cc(1137)] Unhandled exception:
Null check operator used on a null value
#0      MethodChannel.binaryMessenger
package:flutter/…/services/platform_channel.dart:142
#1      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:148
#2      MethodChannel.invokeMethod
package:flutter/…/services/platform_channel.dart:331
#3      MetadataRetriever.setFile
package:flutter_media_metadata/flutter_media_metadata.dart:85
<asynchronous suspension>
#4      GenerateThumbnails.isolatedThread
package:ruminate/…/utils/generate_thumbnails.dart:38
<asynchronous suspension>

dart version
sdk: '>=2.13.0 <3.0.0'

@4-alok ,
please check that you gave permissions etc.
The plugin is working fine for me.


Update gersian.md

Fixed header

@gersianc 2 commits are showing up here. Do the following to see if it will fix it to be only 1 commit.
git fetch upstream
git rebase upstream/main
git push -f

@gersianc 2 commits are showing up here. Do the following to see if it will fix it to be only 1 commit.
git fetch upstream
git rebase upstream/main
git push -f origin assignment-3-branch

When I do git rebase upstream/main, I get:
fatal: It seems that there is already a rebase-merge directory, and
I wonder if you are in the middle of another rebase.  If that is the
case, please try
	git rebase (--continue | --abort | --skip)
If that is not the case, please
	rm -fr ".git/rebase-merge"
and run me again.  I am stopping in case you still have something
valuable there.

Looks like your rebase got messed up. I would recommend just closing this PR and opening another one with a new branch.
git fetch upstream
git checkout -b [branch-name] upstream/main

Make your changes in this new branch, add, commit, and then push to open another PR


Update dark mode colors

We'd like to make some adjustments to dark mode to make it a bit more friendly on the eyes. The feedback we received was:

The greens feel a bit too saturated and make the app feel almost too much like a theme or skin
There is too much contrast between sidebar and chat content
The white text has too much contrast with the background of the app
People want to be able to go back to light mode

Before entertaining the last option, we’d like to perfect the dark mode theme first and address the first three bullets. So that being said, let's do this:

darken white text from #FFFFFF to #E7ECE9
darken supporting text from #C9D3C5 to #AFBBB0
darken and desaturate borders from #1B5744 to #1A3D32
darken LHN/highlight BG color from #002E22 to #07271F
get rid of the rightBorder on the LHN, and use the inset style with rounded edges to reduce the harshness of the border

That gives us something like this:

Figma is here.
For the sidebar changes, I had trouble getting rid of the white background behind the sidebar area as a heads up:

Also for the sidebar:

we only want the rounded/inset effect to happen on desktop
to achieve this effect, we just need to give the sidebar a border of 8px using the same color as the appBG. Note that we can try making it so that we only have borderTop, borderLeft, and borderBottom. If we have 0 for borderRight, I think the content will fit snugly against the LHN
We also might want to consider making the LHN a bit wider since the border will eat up 16px of space. So maybe we bump up the sidebar width from 375px to something like 392px? (I love numbers divisible by 4 hehe)

Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01b424baf5aca597d8
Upwork Job ID:<PHONE_NUMBER>255846912
Last Price Increase: 2022-12-29

Will all true whites in the app be replaced with #E7ECE9? Or only text/buttons?

Good question. I think it can't hurt to just update the white variable we are using in colors.js:

Quick color check:

Yup, that checks out!

Do you know what might cause the sharp corners on the bottom section? I figured I'm applying the style in the wrong place. Pink for visibility :)

Here's where I'm at! For personal reference, I think I might need to add the border to the drawer styles instead

While I'm here, do you have an idea of what the RHN would look like? Would it have the same border?

Nice!
For the RHN, I think we can just leave it as-is.
I have no idea why the bottom is not getting the roundedness that we want, perhaps we need to add overflow:hidden to that container?
Also for the top right of the LHN, it doesn't quite look perfectly rounded - any idea what's happening there?

@mananjadhav can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~01b424baf5aca597d8

Accepted @mallenexpensify

Paid @mananjadhav $1000.
Unsure if we want to update regression test steps for this so leaving open (I'm assigned) and bumping to weekly

@grgia @shawnborton do we need to add regression steps here? else we can close this one out?

I think we decided not to add anything for now? cc @grgia @JmillsExpensify

Gonna close until we have a plan for design-related issues.  Otherwise it's updating the test steps "verify new dark mode colors are everywhere" which isn't too helpful or actionable.


Correct logic error when associating FIP with OVN LB

Fixes a logic error which meant that we didn't iterate over all logical switches when associating a FIP to an OVN loadbalancer. The symptom was that the FIP would show in neutron, but would not exist in OVN.
Closes-Bug: #2068644
Change-Id: I6d1979dfb4d6f455ca419e64248087047fbf73d7
Co-Authored-By: Brian Haley<EMAIL_ADDRESS>(cherry picked from commit befb7ec6f5fe8f74b41a97da64b4049d591ffa02)

Does this fix the OVN load balancer issues that @MaxBed4d discussed on Friday?

Does this fix the OVN load balancer issues that @MaxBed4d discussed on Friday?

I don't think it will because there seems to be no issue with assigning FIPs; it's the complete loss of connectivity once one has been assigned. Also, the issue only seems to present itself to VLAN networks. This bug is closer to what I am seeing, to which they have stated:
"don't think we can resolve this issue. If a LB VIP has FIP, then the traffic from North -> South needs
to be load balanced and unless it is centralized on gateway node, we cannot do load balancing."


Proposal for a new tutorial : calculating the noise power of a signal

After the tutorial for the use of DMA it would be very interesting to make use of that setup as follows:

Acquire a frequency slice of 1 MHz out of the full BW of the RP (0-54 MHz)
Calculate the power in that signal slice via a FFT/DFT on the FPGA
Store the result in a PS accessible location with timestamp, border frequencies (low-high), FFT-bin width, integration length/signal length
Set-able parameters could be center frequency, BW of acquired signal, FFT-bin, acquisition length
Making the above automated to do this for the total RP BW in a period of x minutes doing all bins for y seconds.

I can of course answer questions or help to give a better description when needed

Thanks for the feedback,
a real-time spectral power meter is a cool application. I won't have time to implement that in the following weeks but I can give you some suggestions on how to do it:

I believe that a FFT/DFT is not required, alternatively you can use a configurable band-pass filter and measure the power of your filtered data.
A band pass filter can be easily implemented by concatenating an IIR high-pass and an IIR-low pass filter (the order does not matter).
To measure the power it is as simple as squaring your signal and sending the squared signal through a IIR-low pass filter

DATA IN -----> IIR band-pass -----> multiplier (x^2) ------> low-pass ------> DATA OUT


X509.DevCluster json sample

Can you please provide sample json for X509.DevCluster Service fabric deployment?

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

ID: 853125bc-3720-1031-f79e-21aafcd38ee1
Version Independent ID: 4db45bdd-eef4-bf40-b92d-d98a71c982d4
Content: Secure an Azure Service Fabric cluster on Windows by using certificates
Content Source: articles/service-fabric/service-fabric-windows-cluster-x509-security.md
Service: service-fabric
GitHub Login: @dkkapur
Microsoft Alias: dekapur

@Thanks for the Feedback. I am assigning the issue to content author for adding comment and enhancing the document as applicable.

@dkkapur Can you please look into this feedback and add your comments.


Value in the plugin not properly updating, when importing Styles or Variables.

Describe the bug
Value of a token in the plugin is not properly updating, when importing Styles or Variables. The plugins shows that there are differences, but that doesn't reflect in the plugin. Once you for example toggle theme, make another change or reopen the plugin, the new imported value is visible afterwards.
This is not only the color swatch for example, but also if you open the token, the old value is still present.
Note: issue is present in [V 2.0-rc8] and 1.38.9
To Reproduce
Steps to reproduce the behavior:

Create a variable/style
Import style/variable in the plugin
Change the value of the style/variable and import that again in the plugin.

Expected behavior
I expect for the changes to be visible instantly, without having to interact further with the plugin.
Screenshots or Screencasts
https://github.com/tokens-studio/figma-plugin/assets/109062656/e0a3b737-2671-47cf-84e5-d646a52d086c

I think I missed this ticket when creating When Importing New Variables Does Not Update Token Value #2529, but this has been fixed as of rc10. I don't know about the styles though.

This is working fine in RC11 for styles as well. @keeganedwin and myself tested it out. Closing this issue.
However what we also noticed is:
"When we create a style and import it and a new token is created. Then, if we change the style properties and import it again, it is working as expected. However, if we change the name of the style or even move the style to another folder, and import styles again in the plugin, a new token is created instead of updating the existing token's name.
Not sure if we already have had a discussion around this, but we can explore how to keep the style and the token it created always linked regardless of name or folder change."
CC: @six7


Replace 'Vim Awesome' with 'Vim Galore'

https://github.com/mhinz/vim-galore
Why?
vimawesome.com isn't like any of the other awesome lists here. It's just a list of 14072 plugins which nobody would have the time to read through. Vim Galore has a guide, many tips as well as a selection of plugins and colour schemes.

Couldn't agree more. Every time I visited Vim Awesome, I thought that it was a cool website and then closed it without learning or finding anything new because there's just too many things there.


Clarification on MCC Calculation Method

I noticed that in the code, MCC is calculated and then combined with precision and recall for each class into a single list. Could you please explain the rationale behind this approach?
  if self.config.params.metric == 'mcc':
      metric =  matthews_corrcoef(y_true.numpy().ravel(), y_pred.numpy().ravel())
      recall = recall_score(y_true.numpy().ravel(), y_pred.numpy().ravel(), average=None).tolist()
      precision = precision_score(y_true.numpy().ravel(), y_pred.numpy().ravel(), average=None).tolist()
      #tp = confusion_matrix(y_true.numpy().ravel(), y_pred.numpy().ravel(), normalize='true').diagonal().tolist()
      metric = [metric] + recall + precision #[list(i) for i in zip(recall, precision)]

Hi, we report the single-class metrics in addition to the MCC, and we return them all together as a list. The MCC itself is not affected by this. We show the additional metrics in the supplement.

Thank you for your quick response.
I checked the code again and found that you average all the metrics only during the validation stage.
val_metric = np.mean(val_metric).
I initially thought you were reporting this average metric as the result in the paper.


How to train on A Single GPU

Thanks for your contribution, but by reproducing your code I found that it only works for two or more GPUs. I wonder if you could guide me on what changes I should make if I want to train on a single GPU, thanks a lot again!

You can double config.DATA.TRAIN_BATCH in configs and change --nproc_per_node and --gpu in script.sh to 1.
Note that the results on single GPU may be lower that the results on two GPUs, since the optimal batch size for BatchNorm on small datasets is 32 per GPU.

Thanks for your quick reply!


Implement unit tests for the tournament PoC model

Start this issue once we have merged the model and functions implemented for the tournament model: https://github.com/ByteBuildersLabs/ByteBeastsBackend/issues/93

Add unit tests for all functions implemented for the tournament model:

create_tournament
register_player
start_tournament
complete_tournament
get_tournament

Or any other additional functions implemented; review the issue and the merged PR for details.

Try to add different scenarios for the flow, not just the correct flow, and test several possibilities or edge cases to consider:

Invalid inputs (e.g., tournament_id does not exist, attempting to register more players than allowed).
Registering a player in a tournament that is not in pending status.
Valid cases where all conditions are met (e.g., successfully registering a player, starting a tournament with enough participants, or completing it with a declared winner).
Handling unexpected states or errors (e.g., empty participant list, invalid prize pool).

Follow the Contributions Guidelines and PR guidelines/example etc.
Include clear comments to explain the test logic and why specific scenarios are covered.
If you need help just ask me here in a comment or ping me on Telegram in the group channel for external contributors.
Thanks for your time, please send a comment with your approach/solution, be creative and use a technical explanation and avoid ChatGPT or AI comments.

Hi, My name is Kevin Obando, a full stack junior developer with 2 years of experience from Costa Rica. I am starting in this community and I want to help in this project.

Is it okay if I tackle this?
i have experience in writing and testing smart contract in cairo and solidity.
kindly assign me. making ETA <= 48hrs

Hi there based on my experience in Cairo, rust and solidity my approach to this would be
I would create the tournament.cairo PoC model and ensure it has all necessary logic to make the system robust and function seamlessly. Most importantly the main part of this project would be the testing phase.
This system would include

Errors Handling (reverts if a condition is not valid)
State Variables
Avoiding magic numbers the less implicit the better the code
Use the Alexandria library for managing dynamic arrays for participants and prize pools.
Conduct stateful and stateless fuzzing to ensure the system can handle any type of incoming data.
Following Check, Effects and Interaction (CEI) for better security
Proper documentation and Natspec

May I try my hand at this?

Can I take care of this issue?
i'm a frontend dev, and a blockchain dev kindly assign :)

I'd love to give this a go.

I’d like to resolve this.

Good morning, My name is Matias Aguilar, I am a software development engineer with 1 year of experience in backend and some Frontend. I have worked on several issues about testing and implementing functions in practice so I already have an idea of how to implement each thing and make it understandable and clean at the same time. I am a member of Dojo Coding, and I would really love to participate in the project with this issue.
Implementation and solution to the problem
I am going to cover certain important points for the implementation of the test, without leaving aside how I would start working on it.
1. Fork Repository and create code in the same
1 The Fork of the main repository of the project will be created to my normal repository.
2 The test will begin to be implemented in accordance with the function linked to the test requirement
3 The steps of everything will begin to be implemented.
2. Test resolution

The implementation of the references will be carried out to complete the test
The various scenarios will be considered to complete the contract
The necessary commits for resolution will be sent.
The recommendations given by the maintainer will be accepted

Features to consider
1. create_tournament
2. register_player
3. start_tournament
4. complete_tournament
5. get_tournament

3. Clean execution of a PR
The bases will be explained to be able to make a PR in the best and cleanest way possible.
Questions and recommendations
I am waiting for questions and recommendations on how you would like to implement the test, so if you need any changes or implementation of something or another.

Hey I've had past experiences in testing complex Cairo contracts logic eg. https://github.com/carbonable-labs/cairo-erc-7498/blob/main/tests/erc7498_get_and_update_campaign.cairo
I will read carefully the contract source code and use snfoundry to try reaching full coverage of every function in the tournament model.

Let me try this one!

Hi @saimeunt, now you can start with this issue 🫡


Unable to run iOS project after adding this plugin

Please note: I have no experience with using Xcode directly, I'm only just starting out with Capacitor, but I've been a long time Ionic/Cordova user..
also, I have Windows 11 on my main PC, and I have a subscription to a managed server with MacinCloud (limited access time, which means I can't just sit on the Mac and "debug endlessly").. this is the pain of a hybrid developer who doesn't have a Mac.

I've been through the project README multiple times, got it working nicely on all relevant Android API levels (24 to 33), but I am unable to get passed a runtime error with iOS. when I try run the project (after the typical ng build and cap sync commands), the app builds successfully, but then Xcode pauses the main thread and prints out the following runtime error:
2022-11-29 21:53:28.591488+0100 App[6043:982648] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/user222621/Library/Developer/CoreSimulator/Devices/6F460A89-B3D1-449A-BDAE-F25D778EF216/data/Containers/Data/Application/13D7F92D-D426-4DD4-A824-77EF059387EF/Library/Cookies/com.nortech.dashboardmobile.binarycookies
2022-11-29 21:53:29.018405+0100 App[6043:982648] KeyboardPlugin: resize mode - native
2022-11-29 21:53:29.023122+0100 App[6043:982648] 🟢 [SplashScreen]: native plugin loaded
2022-11-29 21:53:29.023424+0100 App[6043:982648] 🔎 [SplashScreen]: showOnLaunch(): ShowOptions(source: "*", delay: 0.0, fadeInDuration: 0.0, showDuration: 1.0)
⚡  Loading app at capacitor://localhost...
2022-11-29 21:53:29.073026+0100 App[6043:982648] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<OS_dispatch_mach: 0x600001c24bd0>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled.
Key path: frame
Observed object: <WKWebView: 0x12d044c00; frame = (0 0; 393 852); opaque = NO; backgroundColor = <UIDynamicSystemColor: 0x600003b2e1c0; name = systemBackgroundColor>; layer = <CALayer: 0x600002e6e5e0>>
Change: {
    kind = 1;
    new = "NSRect: {{0, 0}, {393, 852}}";
}
Context: 0x0'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001063897ec __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x00000001014c9144 objc_exception_throw + 56
	2   Foundation                          0x0000000104ddc6b8 -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 0
	3   Foundation                          0x0000000104ddcac0 NSKeyValueNotifyObserver + 248
	4   Foundation                          0x0000000104ddfa08 NSKeyValueDidChange + 352
	5   Foundation                          0x0000000104ddf428 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 636
	6   Foundation                          0x0000000104ddfbd4 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 60
	7   Foundation                          0x0000000104dda628 _NSSetRectValueAndNotify + 296
	8   UIKitCore                           0x000000012aa49050 -[UIDropShadowView setContentView:] + 220
	9   UIKitCore                           0x000000012a844f74 -[UISheetPresentationController presentationTransitionWillBegin] + 1380
	10  UIKitCore                           0x0000000129e9aeb0 __80-[UIPresentationController _initViewHierarchyForPresentationSuperview:inWindow:]_block_invoke + 1860
	11  UIKitCore                           0x0000000129e991f0 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_3 + 292
	12  UIKitCore                           0x0000000129e9dbec +[UIPresentationController _scheduleTransition:] + 72
	13  UIKitCore                           0x0000000129e98e1c -[UIPresentationController runTransitionForCurrentState] + 1472
	14  UIKitCore                           0x0000000129e96c54 -[UIPresentationController _presentWithAnimationController:inWindow:interactionController:target:didFinish:] + 564
	15  UIKitCore                           0x000000012a62fe4c -[UIWindow addRootViewControllerViewIfPossible] + 328
	16  UIKitCore                           0x000000012a62f7c4 -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 212
	17  UIKitCore                           0x000000012a6305fc -[UIWindow _setHidden:forced:] + 228
	18  UIKitCore                           0x000000012a63f0f4 -[UIWindow _mainQueue_makeKeyAndVisible] + 36
	19  UIKitCore                           0x000000012a5f6660 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 2912
	20  UIKitCore                           0x000000012a5fb298 -[UIApplication _runWithMainScene:transitionContext:completion:] + 856
	21  UIKitCore                           0x0000000129d64770 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 104
	22  UIKitCore                           0x000000012a226f4c _UIScenePerformActionsWithLifecycleActionMask + 92
	23  UIKitCore                           0x0000000129d65008 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 188
	24  UIKitCore                           0x0000000129d64b70 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 212
	25  UIKitCore                           0x0000000129d64e60 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 588
	26  UIKitCore                           0x0000000129d648d0 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 248
	27  UIKitCore                           0x0000000129d6fc5c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 140
	28  UIKitCore                           0x000000012a140bb4 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 656
	29  UIKitCore                           0x000000012a23cce4 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 196
	30  UIKitCore                           0x0000000129d6f968 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 288
	31  UIKitCore                           0x0000000129bdc188 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.189 + 552
	32  UIKitCore                           0x0000000129bdaf8c -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 208
	33  UIKitCore                           0x0000000129bdbe44 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 220
	34  UIKitCore                           0x000000012a5f9f58 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 496
	35  UIKitCore                           0x000000012a166574 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 260
	36  FrontBoardServices                  0x000000011074adc4 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 316
	37  FrontBoardServices                  0x0000000110770ac8 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.59 + 92
	38  FrontBoardServices                  0x00000001107568ac -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 160
	39  FrontBoardServices                  0x0000000110770750 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke + 296
	40  libdispatch.dylib                   0x0000000101d5dd5c _dispatch_client_callout + 16
	41  libdispatch.dylib                   0x0000000101d61974 _dispatch_block_invoke_direct + 392
	42  FrontBoardServices                  0x000000011078ffac __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 44
	43  FrontBoardServices                  0x000000011078fea0 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 176
	44  FrontBoardServices                  0x000000011078ffe0 -[FBSSerialQueue _performNextFromRunLoopSource] + 24
	45  CoreFoundation                      0x00000001062ee1dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
	46  CoreFoundation                      0x00000001062ee124 __CFRunLoopDoSource0 + 172
	47  CoreFoundation                      0x00000001062ed894 __CFRunLoopDoSources0 + 232
	48  CoreFoundation                      0x00000001062e7f00 __CFRunLoopRun + 756
	49  CoreFoundation                      0x00000001062e77f4 CFRunLoopRunSpecific + 584
	50  GraphicsServices                    0x0000000103993c98 GSEventRunModal + 160
	51  UIKitCore                           0x000000012a5f85d4 -[UIApplication _run] + 868
	52  UIKitCore                           0x000000012a5fc5cc UIApplicationMain + 124
	53  App                                 0x00000001005faf78 main + 64
	54  dyld                                0x000000010086dfa0 start_sim + 20
	55  ???                                 0x00000001009b508c 0x0 +<PHONE_NUMBER>
	56  ???                                 0x8c01000000000000 0x0 +<PHONE_NUMBER>0286621696
)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<OS_dispatch_mach: 0x600001c24bd0>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled.
Key path: frame
Observed object: <WKWebView: 0x12d044c00; frame = (0 0; 393 852); opaque = NO; backgroundColor = <UIDynamicSystemColor: 0x600003b2e1c0; name = systemBackgroundColor>; layer = <CALayer: 0x600002e6e5e0>>
Change: {
    kind = 1;
    new = "NSRect: {{0, 0}, {393, 852}}";
}
Context: 0x0'
CoreSimulator 857.13 - Device: iPhone 14 Pro (6F460A89-B3D1-449A-BDAE-F25D778EF216) - Runtime: iOS 16.1 (20B72) - DeviceType: iPhone 14 Pro
terminating with uncaught exception of type NSException
(lldb)

I've also asked in the capacitor-ios channel in the Ionic Discord community, but much like the Ionic Forums always were, it's still all questions and no answers. searching online keeps bringing up results that look similar, but the attached solutions are either not applicable (different plugin, older versions, etc) or simply make no difference to my project.
please could somebody help me interpret this output? what does this mean??

ok, so.. testing aparajita/capacitor-splash-screen-demo in my current macOS environment does work, it's most definitely something in my own code that's failing.
I'll go through the raw file differences between your demo and my local project, hopefully spot something that I missed.. but if anybody sees this and can help, please do? my project is unfortunately way past the original deadline already, I really need to get this working ASAP.

hmm.. I've got it running, but in all honesty I don't understand why.
in comparing my project to the linked demo project, I made the following changes:

removed @capacitor/splash-screen (which I had removed, got errors from Android, then I re-added it, and the errors went away)
added the 6 ...UsageDescription strings to iOS project Info.plist file (none of which actually apply to any functionality that my app uses)
replaced my 6 large png files in App/Assets.xcassets/Splash.imageset with a single svg (Xcode warned me that the file sizes may cause a startup crash)
moved logger configuration in capacitor.config.ts from plugins.SplashScreen.logger to plugins.Logger (I first used the example from the main plugin README, but the demo project is different)

I would like to leave this issue open for now please, in the hopes that somebody might be able to shed some light on this situation for me?

and that joy was short-lived.. after making these changes and successfully running the app in an iOS Simulator, I tried to create two new RC builds in CodeMagic, and both builds failed.
I've got a meeting now, so I'll dig into those error logs just now and see what I find.


Guarantee 64 bit integer precision for dates even on 32-bit

See https://github.com/realm/realm-cocoa/pull/2154.
Closes https://github.com/realm/realm-cocoa/issues/2152.
\c @tgoyne @bdash

retest this pelase

retest this please

failures appear to be unrelated

Needs a changelog entry. Otherwise looks good.

CHANGELOG added

Rebased


Integration test for ASG

Can we have the integration tests for AWS test that we can scale a cluster up/down as defined in #301

@kris-nova I am happy to contribute this.

Take it away!

@kris-nova Submitted this PR first to allow run tests at a considerable cheaper price.


Undocumented argument 'env'

Hi!
Whilst AzureCLI@0 does not, it seems AzureCLI@1 and AzureCLI@2 both support the use of an env: argument to define environment variables. For example:
          - task: AzureCLI@2
            displayName: 'Call some script'
            inputs:
              azureSubscription: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
              scriptType: bash
              scriptLocation: scriptPath
              scriptPath: scripts/my_script.sh
            env:
              EXAMPLE: 'some text'.     # this is available in the bash script as $EXAMPLE
              SAMPLE: 'some more text'  # also available in the bash script as $SAMPLE

While the docs for the Bash task do document the env argument, the docs for the AzureCLI task do not.
What's the status of the env argument? Is the documentation simply lacking mention of it, or should this functionality not be used?
Thanks!

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

ID: 8de3304e-98f9-bac0-3ccc-c65f68a89e87
Version Independent ID: 8fb2f6a9-545d-dff1-ff86-974694a85054
Content: Azure CLI task - Azure Pipelines
Content Source: docs/pipelines/tasks/deploy/azure-cli.md
Product: devops
Technology: devops-cicd-tasks
GitHub Login: @ushan
Microsoft Alias: UshaN

+1. The Azure DevOps UI does even present the environment variables editor section, due to the settings for v1 and v2, and the View YAML button does export them as expected.

@rossdotpink - While we look into this, consider these resources:

Azure DevOps Services
Azure DevOps Support Bot
Azure DevOps on Stack Overflow

All tasks should have an env property with the description: "Variables to map into the process's environment", I will look into getting this added, either to every task, or in a "global" tasks type section, as there are other properties that all tasks share as well, such as condition for evaluation, etc.
Investigating

#reassign steved0x

There is some information here, I will add env to here: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/tasks?view=azure-devops&tabs=yaml#task-control-options

Awesome :) thanks all!


Settings of Falabracman activity was overlapping with activity palette

The settings are not visible when we open activity-palette in Falabracman activity.

Hey @llaske,
I have solved this issue
PR: #1061
Can you please review it

You're right.

Thanks but you're not supposed to send a PR to master. See here.
I've merged it manually here: https://github.com/llaske/sugarizer/commit/15433b480f1afde09890f85f95035cb4b787f769


Node.js Child Processes: Everything you need to know

Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Proposed title of article
Your title should be descriptive of the article/tutorial. Be Specific. Use keyword research to gain your article higher ranking.
Introduction paragraph (2-3 paragraphs):
Single-threaded, non-blocking performance in Node.js works great for a single process. But eventually, one process in one CPU is not going to be enough to handle the increasing workload of your application.
No matter how powerful your server may be, a single thread can only support a limited load.
The fact that Node.js runs in a single thread does not mean that we can’t take advantage of multiple processes and, of course, multiple machines as well.
Using multiple processes is the best way to scale a Node application. Node.js is designed for building distributed applications with many nodes. This is why it’s named Node. Scalability is baked into the platform and it’s not something you start thinking about later in the lifetime of an application.
We can easily spin a child process using Node’s child_process module and those child processes can easily communicate with each other with a messaging system.
The child_process module enables us to access Operating System functionalities by running any system command inside a, well, child process.
We can control that child process input stream, and listen to its output stream. We can also control the arguments to be passed to the underlying OS command, and we can do whatever we want with that command’s output. We can, for example, pipe the output of one command as the input to another (just like we do in Linux) as all inputs and outputs of these commands can be presented to us using Node.js streams.
Key takeaways:
1.Spawned Child Processes
2.Shell Syntax and the exec function
3. The execFile function
4.The *Sync function
References:
Please list links to any published content/research that you intend to use to support/guide this article.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

👍  @owinowendy  nice topic - approved.


Fix lp2d

Was actually working on this while you submitted the PR. Let me know if this commit solves your issue: https://github.com/pettni/smooth/commit/7848a93a71c733b1e2de96b874f419623c741631

Was actually working on this while you submitted the PR. Let me know if this commit solves your issue: 7848a93

It does, but their was a code smell left.


Update dependencies

Why isn't json_annotation not in dev_dependencies? Is it required to be in regular deps?

Why isn't json_annotation not in dev_dependencies? Is it required to be in regular deps?

It's actually in the code that is shipped. strictly speaking, I don't think a missing import related to an annotation will affect runtime behavior –

It's actually in the code that is shipped. strictly speaking, I don't think a missing import related to an annotation will affect runtime behavior –

Yeah it makes sense. I don't even know why I asked this lol. I guess I was tired.


mapping between genome assembly versions

Kim: figure out whether to use/recommend LiftOver, Ensembl's thingy, or something else.
Curators (read: Midori): add a FAQ (oh my I hope there'll be existing documentation to link to) for whatever we use

I'll keep this in live version for now.
Mainly because we need to discuss a potential project/publication.
We can all chat about this on Monday.

Kim found this
http://crossmap.sourceforge.net/

Although we need to do this it won't be until the sequence is updated and  that won't be for ages (need a feature update first, UTRs RNAs etc). I still think this is a couple of years off realisticly

Future doc


InfoGAN model error

`dist = torch.distributions.one_hot_categorical.OneHotCategorical(torch.tensor([0.1]*10))
lossf = MutualInformationPenalty()
z = torch.randn(2, 100)
c_cont = torch.randn(2, 30)
c_dis = dist.sample([2])
print(c_dis)
G = InfoGANGenerator(10, 30)
D = InfoGANDiscriminator(10, 30)
fake = G(z, c_dis, c_cont)
score, q_categorical, q_gaussian = D(fake, return_latents=True)
loss = lossf(c_dis, c_cont, q_categorical, q_gaussian)
loss.backward()`

Traceback (most recent call last):
File "test.py", line 40, in
loss.backward()
File "/usr/local/lib/python3.5/dist-packages/torch/tensor.py", line 102, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/usr/local/lib/python3.5/dist-packages/torch/autograd/init.py", line 90, in backward
allow_unreachable=True)  # allow_unreachable flag
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

Hi,
There are quite a few errors in the documentation. And it took me a lot of time to build the model correctly.
When I used the above code, there were some errors and I was wondering if it was my usage error.
Thanks.

@Aniket1998 could you have a look at the error?
Also @Sumching we would really appreciate if you could point us to the errors in the documentation.


[online scanner] reCaptcha resources loaded dynamically from Google URLs triggering hints

The scanner is flummoxed by resources dynamically loaded from Google URLs by the reCaptcha routine.
See the myriad hints at: https://webhint.io/scanner/8a3938a3-8502-4557-b65c-dd108334e3d8
Are these hints that Google should properly address, or are there things a developer using reCaptcha can do in terms of security headers and settings to prevent these hints from triggering?
It first complains that the JavaScript and CSS retrieved for reCaptcha at https://www.gstatic.com/recaptcha/api2 has the wrong content-type for each resource, when the content-type seems correct for each resource requested
For example:

hint #1: 'content-type' header charset value should be 'utf-8'.
https://www.gstatic.com/recaptcha/api2/v1565591531251/recaptcha__en.js
Content-Type: text/javascript

Under Performance, it complains about the various directive of resources from https://www.google.com/recaptcha/ and from https://www.gstatic.com/recaptcha and https://fonts.gstatic.com/, e.g.

hint #1: The directive "must-revalidate" is not recommended
https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LdqHFEUAAAAAHgdqbQOKU-sDC8UksKpKjWe2KWa&co=aHR0cHM6Ly90aG9tYXNicm9kaGVhZC5jb206NDQz&hl=en&v=v1565591531251&size=normal&cb=vz8ut64xvmu0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate

And it goes on like this for dozens of hints all triggered by the reCaptcha components loaded dynamically by the single parent reCaptcha JS routine employed by the developer.
Please advise.

My advice is to ignore those errors. While we believe they should be fixed by Google, there's nothing you can do to get them fixed.
If you aren't doing it already, the CLI and the browser extension allow you to ignore domains.
@sarvaje @antross, I think we are ignoring some domains in the online scanner. Maybe we should add these (and maybe some others) as well?

Could we please have in the online scanner the same simple options available in the browser extension? The Categories, Target Browsers, and Ignored Resources options would make the online scanner very useful.

That's something we've wanted to enable for a while but there have been other higher priority issues coming up 😞

I'm going to close this issue as the work is tracked in https://app.zenhub.com/workspace/o/webhintio/webhint.io/issues/233
I think we should continue the conversation about how much configuration we want to enable there.
Thanks!


Bug : ok-to-test action isn't working

/ok-to-test sha=c3b949a
Originally posted by @inferno-chromium in https://github.com/ossf/scorecard/issues/312#issuecomment-810441268

Without this, the confidence to merge any dependabot fixes/ PR's from external contributors becomes an issue. We would need to address this ASAP IMO. I am proposing this be included in our next Milestone.
@azeemshaikh38 @inferno-chromium

I'm not sure I understand this bug fully. Maybe we can discuss this during our meet today?

Some context
https://github.com/imjohnbo/ok-to-test
https://github.com/ossf/scorecard/blob/main/.github/workflows/ok-to-test.yml

I'm not sure I understand this bug fully. Maybe we can discuss this during our meet today?

Yes, let's discuss this.

this seems to work now, if yes close ?

It is working. We can open it reoccurs.


Implements patch list as a single contiguous array of reusable PatchPoint instances.

Issue #, if available:
N/A
Description of changes:
This PR introduces optimizations to improve memory usage and avoid unnecessary allocations. The following changes are included in this PR:

Instead of maintaining the patch list for both the container level and IonRawBinaryWriter, we only keep the IonRawBinaryWriter level patch list (this patch list is composed by the patch list for containers within the current scope)during the writing process. Previously, we needed to append the child container's patch list after the parent container to maintain the accurate sequence of the patch points. With the change, we use a patch point placeholder for the parent container's patch information. If there is a patch point created for the current container, we override the placeholder with the real data.
Instead of using a linked list, we implemented a recycling queue to manage the patch points. With the recycling queue, we can reuse the initialized instances to avoid memory allocations when more patch points are required during the writing process.

Here are the performance comparison results before and after the change: Benchmark a write of data equivalent to the a stream of stream of 194617 nested binary data using IonWriter(binary). The output data will write into an in-memory buffer.
Note: This implementation is built on top of removing the patch buffer, so we will compare the performance of the library without any changes, with the change of removing the patch buffer and with the change of recycling queue implementation.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Here are more benchmark results from a different usage pattern:
Results from benchmarking a write of data equivalent to a stream of 59155 nested binary Ion values(3 forks, 2 warmups, 2 iterations).

Benchmark
No Change
Remove Patch Buffer
Optimize Patch List
Units

Bench.run
509.652
503.944
496.619
ms/op

Bench.run:Heap usage
326.793
355.376
384.838
MB

Bench.run:Serialized size
21.271
21.271
21.271
MB

Bench.run:·gc.alloc.rate
125.438
126.443
128.845
MB/sec

Bench.run:·gc.alloc.rate.norm
70369781.67
70038249.64
70368735.18
B/op

Bench.run:·gc.churn.G1_Eden_Space
7.477
5.494
7.435
MB/sec

Bench.run:·gc.churn.G1_Eden_Space.norm
4194304
3043367.01
4061151.492
B/op

Bench.run:·gc.churn.G1_Old_Gen
133.457
132.904
132.499
MB/sec

Bench.run:·gc.churn.G1_Old_Gen.norm
74868326.4
73639994.51
72368388.06
B/op

Bench.run:·gc.churn.G1_Survivor_Space
0.03
0.029
0.054
MB/sec

Bench.run:·gc.churn.G1_Survivor_Space.norm
16604.8
16085.956
29435.111
B/op

Bench.run:·gc.count
78
73
77
counts

Bench.run:·gc.time
585
518
567
ms

Results from benchmarking a write of data equivalent to a single nested binary Ion value(3 forks, 2 warmups, 2 iterations).

Benchmark
No Change
Remove Buffer
Optimize Patch List
Units

Bench.run
0.089
0.082
0.089
ms/op

Bench.run:Heap usage
6.778
8.811
7.126
MB

Bench.run:Serialized size
0.005
0.005
0.005
MB

Bench.run:·gc.alloc.rate
93.704
96.721
93.916
MB/sec

Bench.run:·gc.alloc.rate.norm
9172.312
8701.888
9172.299
B/op

Bench.run:·gc.churn.G1_Eden_Space
94.339
97.196
94.465
MB/sec

Bench.run:·gc.churn.G1_Eden_Space.norm
9234.427
8745.584
9225.896
B/op

Bench.run:·gc.churn.G1_Survivor_Space
0.004
0.004
0.004
MB/sec

Bench.run:·gc.churn.G1_Survivor_Space.norm
0.387
0.317
0.421
B/op

Bench.run:·gc.count
574
592
575
counts

Bench.run:·gc.time
317
309
303
ms

Results from benchmarking a write of data equivalent to a stream of 194617 nested binary Ion value(3 forks, 2 warmups, 2 iterations).

Benchmark
No Change
Remove Patch Buffer
Optimize Patch List
Units

Bench.run
3988.343
3974.707
4031.55
ms/op

Bench.run:Heap usage
2815.305
2654.546
2686.608
MB

Bench.run:Serialized size
201.663
201.663
201.663
MB

Bench.run:·gc.alloc.rate
160.884
160.583
159.961
MB/sec

Bench.run:·gc.alloc.rate.norm
703010831.1
713050404
715554289.3
B/op

Bench.run:·gc.churn.G1_Eden_Space
32.785
40.088
37.906
MB/sec

Bench.run:·gc.churn.G1_Eden_Space.norm
143072369.8
178374428.4
169869312
B/op

Bench.run:·gc.churn.G1_Old_Gen
58.898
73.473
74.752
MB/sec

Bench.run:·gc.churn.G1_Old_Gen.norm
255793294.2
326050275.6
334445226.7
B/op

Bench.run:·gc.churn.G1_Survivor_Space
6.423
4.629
1.77
MB/sec

Bench.run:·gc.churn.G1_Survivor_Space.norm
28208808
20096732
7976842.667
B/op

Bench.run:·gc.count
16
20
15
counts

Bench.run:·gc.time
571
788
663
ms

I think it would be interesting to do a performance comparison with the recycling queue both with and without auto-flush. I wonder if auto-flush amplifies the benefits of this change by limiting the size of the recycling queue.

The flush operation did help reuse the objects in the recycling queue. From the benchmark profiling results, we observed 6% size decrease on patchPoints which is implemented by recycling queue.
No flush:

Flush:


Considering to merge 'leetcode.workspaceFolder' and 'leetcode.outputFolder' into one single setting.

🚀 Feature Proposal
Currently the leetcode.workspaceFolder is used to specify the folder path and leetcode.outputFolder is used to specify the relative path. But it's confusing. Merge them into one single setting might be a good choice.

Maybe it is better to use current opened folder as leetcode.workspaceFolder.
手工指定 workspaceFolder 感觉有点奇怪，直接使用当前打开的文件夹作为工作目录不是更自然么？
至于没有打开文件夹的情况，这种模式和这个插件的工作模式是相悖的，因为插件无论如何都要找一个地方写入文件，所以比如是要打开一个文件夹才对。要么报错，要么引导用户打开文件夹，这种处理方式。
另外，我觉得 outputFolder 应该和 fileName 合并，直接改成相对路径 filePath，您觉得如何？

手工指定 workspaceFolder 感觉有点奇怪，直接使用当前打开的文件夹作为工作目录不是更自然么？

I don't think we should use the current active folder as workspaceFolder. Imagine you have opened other project in your VS Code. Generate LeetCode files in the current folder will ruin your source control.

至于没有打开文件夹的情况，这种模式和这个插件的工作模式是相悖的，因为插件无论如何都要找一个地方写入文件，所以比如是要打开一个文件夹才对。要么报错，要么引导用户打开文件夹，这种处理方式。

Yes, the current behavior will prompt the user to open the specified folder, just as you have said.

另外，我觉得 outputFolder 应该和 fileName 合并，直接改成相对路径 filePath，您觉得如何？

Hmm, currently the extension does not support customize the file name yet.

我打算修改，以便支持自定义文件名。请问是否接受 PR?
另外，是否保留 outputFolder 这个设置，我还没什么想法。

@magic-akari All the contribution is welcome! We actually have an issue for this: https://github.com/jdneo/vscode-leetcode/issues/166. I suggest we can discuss in that issue to address a design before the PR is sent out.

how to config the "leetcode.workspaceFolder" ? I want to change after my first choose, but I cannot find it in workspace settings

@jwbecalm It's in the user settings.

Close since the leetcode.outputFolder has been deprecated.

但是现在如果我想以当前工作目录为参考的相对路径，要怎么设置呢？


Formatter can't format Timezone name using "ZZZ"

Example code:
dt = arrow.get("2018-03-19 13:55:44 US/Pacific", "YYYY-MM-DD HH:mm:ss ZZZ")
dt.format("YYYY-MM-DD HH:mm:ss ZZZ")

Expected output:
"2018-03-19 13:55:44 US/Pacific"
Actual output:
"2018-03-19 13:55:44 -07:00-0700"

And now I see this issue has a pending PR: https://github.com/crsmithdev/arrow/pull/391

@boarik I merged that PR so hopefully this is fixed in the next release.


18717 small bug fix

Issue #: /bcgov/entity#18717
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the PPR license (Apache 2.0).

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.80%. Comparing base (0314254) to head (f107ed6).
Report is 61 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #259      +/-   ##
==========================================
- Coverage   65.43%   64.80%   -0.64%
==========================================
  Files          57       65       +8
  Lines        2092     2270     +178
  Branches      278      388     +110
==========================================
+ Hits         1369     1471     +102
- Misses        647      724      +77
+ Partials       76       75       -1

Flag
Coverage Δ

search-api
64.80% <100.00%> (-0.64%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


How to use state to set 's initial position?

https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/pull-requests/683/page/1
This comment says that initial position is better suited for the state tag.  How do we do this?

This code block for loading the joint positions are commented:
https://github.com/osrf/gazebo/blob/gazebo11/gazebo/physics/ModelState.cc#L90

This code block for loading the joint positions are commented:
https://github.com/osrf/gazebo/blob/gazebo11/gazebo/physics/ModelState.cc#L90


MNT: upgrade upload/download-artifact GitHub actions

Hi, version 4 of upload-artifact and download-artifact were recently released.
Staying on old version is not viable long term because GitHub will sooner or later drop support for the old versions of node that these depend on.
Since migration to v4 is not as straightfoward as bumping the version number, I'm helping all astropy-related packages byt manually performing the necessary changes.
(in this specific case it is actually trivial, I'm just doing them all at once so no reason to skip this repo)

Superseded by #79 sorry!

No worries, thanks for also cleaning up !


[Task] UI to code conversion

[ ] Page-level entities are showing up as global entities

[ ] Actions keyword on all tooltips should be in all lowercase

Check point DP - https://appsmith-os11uxxpb-get-appsmith.vercel.app/

Can we please add the x icon in the search input in order to make it easier to delete the entered text.

Need a period (.) after Actions.

Double clicking inside the search input erases the entered text

On scrolling the tree dropdown for some actions moves on the screen.
https://www.loom.com/share/5f4f5f9a1390440b9dc17c56f9c39ed7

Select the Show Modal option & then select New Modal for Modal Name.

Now delete the Modal1 from the entity explorer. Notice that we are still able to see the Modal1 in the action selector even though it got deleted.
https://www.loom.com/share/552975676d6740d5b37c8e514504af0e

Can we please have similar tooltips for On Success & On Failure(The first sentence).
No tooltip for Callbacks.


Steam: build fails on stable (URL broken)

Issue description
It's this issue again:
Checking that all programs called by relative paths in udev rules exist in /nix/store/nih5bga6fwphwm1la0wy2pxnv2wng675-systemd-239.20190219/lib/udev... OK
Checking that all programs called by absolute paths in udev rules exist... OK

trying http://repo.steampowered.com/steamrt/pool/main/g/gcc-5/gcc-5-base_5.4.0-7.really.6+steamrt1.1+srt2_i386.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
building '/nix/store/khyj03mz00q357nx3dw8hniwf5kdwk3y-libcomerr2.deb.drv'...

trying http://repo.steampowered.com/steamrt/pool/main/e/e2fsprogs/libcomerr2_1.42-1ubuntu2.3+srt1_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

trying https://abbradar.net/steamrt/pool/main/g/gcc-5/gcc-5-base_5.4.0-7.really.6+steamrt1.1+srt2_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

trying https://abbradar.net/steamrt/pool/main/g/gcc-5/gcc-5-base_5.4.0-7.really.6+steamrt1.1+srt2_i386.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

trying http://repo.steampowered.com/steamrt/pool/main/e/e2fsprogs/libcomerr2_1.42-1ubuntu2.3+srt1_i386.deb
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

trying https://abbradar.net/steamrt/pool/main/e/e2fsprogs/libcomerr2_1.42-1ubuntu2.3+srt1_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    566      0 --:--:-- --:--:-- --:--:--   566
100   162  100   162    0     0    532      0 --:--:-- --:--:-- --:--:--   532
100   162  100   162    0     0    568      0 --:--:-- --:--:-- --:--:--   566
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

trying https://abbradar.net/steamrt/pool/main/e/e2fsprogs/libcomerr2_1.42-1ubuntu2.3+srt1_i386.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
error: cannot download gcc-5-base.deb from any mirror
builder for '/nix/store/qvkymaxh2gny22bvcglzaga2niihi891-gcc-5-base.deb.drv' failed with exit code 1
building '/nix/store/2smbkxdvrf5gz9lg3cv8d9bhknicwky7-libgcc1.deb.drv'...
building '/nix/store/sr3rg53ciy76n33ll9qyscr6ljwf4h63-libgomp1.deb.drv'...
cannot build derivation '/nix/store/aghh1zqyn176ri01ca9r430ski40z4i1-steam-runtime.json.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/bnrmykgax0dmxh8hny5j2skkp8l0j7h1-steam-runtime-2016-08-13.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/fkyj8mw5sv8w1l4m3fsr4sqspycn70sz-steam-runtime-wrapped.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/0jy9cgblbzf3ian89bxrg4rwrd7yq1bg-steam-run-usr-target.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ksvjrxavvbavhk3fw9860nhw8i5590h5-steam-usr-target.drv': 1 dependencies couldn't be built
building '/nix/store/72l98mxm6ziipxw617lasxw4g9w772l0-nix.conf.drv'...
building '/nix/store/8apcshlh3x8w8jnn2wds33nr4238vmsz-nvidia-x11-415.27-4.19.34.drv'...
cannot build derivation '/nix/store/v6d89bss13i82d3kq8xzrirsa6zg1saz-steam-fhs.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ci9d0y26l1wvjs9770i59ajysz87p10g-steam-run-fhs.drv': 1 dependencies couldn't be built
building '/nix/store/nzaxcnnf7sk7wfma98qj3mnwqg576w3l-unit-docker.service.drv'...
building '/nix/store/69cd1z0krzyshvg3ccypxq02r7d7lvs4-unit-nix-optimise.service.drv'...
cannot build derivation '/nix/store/s1nsgbbpi8xcjv9bqqpgczizlksvs7ja-steam-init.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/zx0nj90cxynl9gbrp0x5l601sf23lvhn-steam-run-init.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/46w6xnwaih135zhdiz31y8d3j41kl1bv-steam-run.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xj44vy9bgdmvqc8br0h2j5x9l1hr9dgs-steam.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/w7s14ww3h5ybxhnp5lciq1ydw9azp95m-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/w3m14ciy6hnbgcyw91lsh2jhy5jvkadg-nixos-system-gaming-19.03.git.b3318aa.drv': 1 dependencies couldn't be built
error: build of '/nix/store/w3m14ciy6hnbgcyw91lsh2jhy5jvkadg-nixos-system-gaming-19.03.git.b3318aa.drv' failed

cc @abbradar
Steps to reproduce
Technical details

system: "x86_64-linux"
host os: Linux 4.19.56, NixOS, 19.03.173028.7152cb297ad (Koi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(root): "nixos-19.03.173028.7152cb297ad, nixos-hardware, nixos-unstable-19.09pre184359.73392e79aa6"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Fixed by backporting 726beb66e99092679afeca28c335a6c97d567ed6.


Echo Server with GUI

I use BlueSocket and create an EchoServer class in iOS, it's worked correctly but I need to use it with an interface, when I create an object of echoServer it's prevent GUI from responding, How can I resolve that?

To fix this, you need to move code that's listening on the socket off the main (i.e. UI) thread.

Can you provide me a code to do that?


Build failure when both CONFIG_ESP_TASK_WDT and CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT are disabled (IDFGH-8235)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
master
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
Build should succeed when both CONFIG_ESP_TASK_WDT and CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT are disabled
What is the actual behavior?
Build failed
Steps to reproduce.

idf.py menuconfig
Disable Component config -> ESP System Settings -> Initialize Task Watchdog Timer on startup
Disable Component config -> FreeRTOS -> Port -> Enable task snapshot functions
idf.py build

Build or installation Logs.
/Users/tangyi/esp-idf/components/esp_system/task_wdt.c:430:5: error: unknown type name 'TaskSnapshot_t'
  430 |     TaskSnapshot_t snapshot = { 0 };
      |     ^~~~~~~~~~~~~~
/Users/tangyi/esp-idf/components/esp_system/task_wdt.c:435:11: error: implicit declaration of function 'vTaskGetSnapshot'; did you mean 'vTaskGetInfo'? [-Werror=implicit-function-declaration]
  435 |     ret = vTaskGetSnapshot(xTaskGetCurrentTaskHandle(), &snapshot);
      |           ^~~~~~~~~~~~~~~~
      |           vTaskGetInfo
/Users/tangyi/esp-idf/components/esp_system/task_wdt.c:449:36: error: request for member 'pxTopOfStack' in something not a structure or union
  449 |     void *frame = (void *) snapshot.pxTopOfStack;
      |                                    ^
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
HINT: The header file task_snapshot.h is no longer included as part of freertos/task.h. Users need to include freertos/task_snapshot.h explicitly.
HINT: The header file task_snapshot.h is no longer included as part of freertos/task.h. Users need to include freertos/task_snapshot.h explicitly.
ninja failed with exit code 1, output of the command is in the /Users/tangyi/esp-idf/examples/get-started/hello_world/build/log/idf_py_stderr_output_77816 and /Users/tangyi/esp-idf/examples/get-started/hello_world/build/log/idf_py_stdout_output_77816

More Information.
No response

Cannot reproduce it with current master tree, maybe this is already fixed?

Seems like building task_wdt.c now depends on CONFIG_ESP_TASK_WDT_EN so this should no longer be an issue neither on master nor 5.0 (fixed after 53c7dd4efc619342ddebd3c938547044506bef84)
Thanks for following up on this one @AxelLin, seems like this can be closed.


Incorrect values reported for private variables

There seems to be an issue with some of the additional private variables displayed on Etherscan. For example, here Metadock reports that the _initializing variable is set to true, although it is false. _initializing is consistently misreported in Initializable contracts, but I assume this affects other variables as well.

Thanks, it works now.


Create load_from_idata ModelBuilder method

The load classmethod has a few steps:
https://github.com/pymc-labs/pymc-marketing/blob/62ed55f37a380d556d49e3fdf4f0ad063e1859d5/pymc_marketing/model_builder.py#L509-L514
This would result in separate the first from the rest which the current load classmethod would be able to depend on the new method.
Just bringing up in case someone has the InferenceData object and wants to recreate the model. This relaxes our assumption of IO.
CC: @juanitorduz
Reference: https://github.com/wd60622/pymc-marketing-dagster-example/issues/2

Would also help against #1218


Added feature to toggle darkmode from settings page

Closes #1
Hey, I did a version for the toggle dark mode issue if this solution is okey to you.

Thanks for your pull request. In general it looks good, but here are a few changes:

Remove line 10 in pages/layout/index.tsx
Bug: When you reload the page, the darkmode localStorage value resets to false

Hopefully, they should be fixed in the new commit I made. Check it out. 😀


feature request

Could you add an option when we use mkvmerge the result be raw mkv (video and audio without subtitle)
I tried --nosubs but it doesn't work.

Strange nosubs should work. I will take a look later

Thank you for your response mate
I found a solution by adding "dlSubs: none" to cli-defaults.yml


Allow setting the scrollPosition when selecting a row

Defaults to .none
What where you trying to do
When the list is long and you want to pre-select an option, the dropdown table always starts at the top. Would be nice if it can scroll to the pre-selected row automatically.
How to reproduce the issue
Just have a long list, and call selectRow

Hello @KBog !
Thanks for your help making DropDown better 🙏


Pagination needs code love

Creating this issue since I saw a note on it in Notion.
@chachasikes Assigning you just to start, but feel free to reassign to the appropriate person.

Action plan:

Add code sample and description for how to consume the events sent by the pagination component. This can be taken from cannabis' recent implementation
Add explanation that this component relies on underlying site functionality to replace paged content

Code changes merged


Create docs for Azure Configuration Service component

What content needs to be created or modified?
Create docs for Azure Configuration Service component
Documentation should also describe the behavior described here: https://github.com/dapr/components-contrib/pull/1874#discussion_r919242001
Where should the new material be placed?
/daprdocs/content/en/reference/components-reference/supported-configuration-stores
The associated pull request from dapr/dapr, dapr/components-contrib, or other Dapr code repos
https://github.com/dapr/components-contrib/pull/1874

@cmendible, can you please submit a PR for this? We'll need the docs in order to release this in 1.9.

Resolved


Allow for the auto formatter to only run on select files.

The auto formatter takes such a long time to run all the way through it would be nice if you could chose what file you want it to run on.

This functionality will be moved to my clang format all tool


[question] Expanding variable definitions

I'm trying to migrate my config to i3bang, but the syntax isn't very well-specified in the README. Is this some common syntax that I can look up somewhere?
For example, I currently have something like this:
set $ws1 "1:foo"
set $ws2 "2:fee"
set $ws3 "3:fii"

How do I go about writing this in the i3bang syntax? I tried things like
set $ws!!1,2,3 "<1:foo,2:fee,3:fii>"

but it didn't come out right. And, in fact, ideally it should be shrunk down to something like
set $ws!!1..10 "!!1..10:<foo,fee,fii,.........................>"

Is this possible?

Yes, it would be:
set $ws!!1..10 "!!<1..10>:!!<foo,fee,fii,...>"

OK, thanks, I'll give that a shot. I'd also like to ask about one example in the README, the "Separate expansions" one. What does the !!1 in !!1!1..10 stand for?

OK, so I tried
set $ws!!1..10 "!!<1..10>:!!<a,b,c,d,e,f,g,h,i,j>"

But it gets expanded to
set $ws!!1..10 "1:a"
set $ws!!1..10 "2:b"
set $ws!!1..10 "3:c"
set $ws!!1..10 "4:d"
set $ws!!1..10 "5:e"
set $ws!!1..10 "6:f"
set $ws!!1..10 "7:g"
set $ws!!1..10 "8:h"
set $ws!!1..10 "9:i"
set $ws!!1..10 "10:j"
```

Looks like adding #!nobracket to the bang file works. What exactly does that do?

It allows you to use !!1..10 instead of !!<1..10> when followed by whitespace. (And here's where the disadvantages of being too lazy to write good documentation really start to show... ;) I'll add some more docs when I get the time.)

But shouldn't the above work without that option then?

No, because !!1..10 is ignored if the option is not set.

Alright, thanks :)


[WIP] YAML support for CFN orchestration templates

This PR adds support for CloudFormation Orchestration Templates in YAML format. Both template validation and template parsing have been updated.
https://bugzilla.redhat.com/show_bug.cgi?id=1417021

@miq_bot add_label providers/cloud, enhancement
@miq-bot assign @bzwei

@miq-bot add_label wip

Putting this on hold until plans for moving orchestration template support to each provider has been finalized - see ManageIQ/manageiq#12454

Are there any chances of adding this support to ManageIQ anytime soon?

Hi @maschinetheist - This depends on the timeline for  ManageIQ/manageiq#12454
@bzwei - Can you chime in?

@bronaghs I am thinking of the path to move all template classes to the right repository. This PR can be the initial work.

Make OrchestrationTemplateCfn to support both JSON and YAML
Make the same change to OrchestrationTemplateHot to support both JSON and YAML
Make OrchestrationTemplateCfneligible only to Amazon
Rename template classes to based on provider type, for example ManageIQ::Providers::Amazon::CloudManager::OrchestrationTemplate. This requires a DB migration too.

Together with this initial work you'll need UI changes. Currently UI assume OrchestrationTemplateCfn always be JSON so it uses a JSON editor to show and edit the content.

Closing in favor of https://github.com/ManageIQ/manageiq-providers-amazon/pull/298