JSQMessageAvatarImageDataSource example

New issue checklist

[✓ ] I have read the README, documentation, and FAQ.
[ ✓] Contributing guidelines confirmation: ____
[ ✓] I have searched existing issues and this is not a duplicate.

General information

JSQMessagesViewController version: 7.3.4
iOS version: 9.3.5
Devices/Simulators: Device (iPhone 5)
Reproducible in the demo project? (Yes/No): No
Any related issues: No

I'm trying to get avatar images to show up in group chats. My Participant model class has a property to hold a URL to their profile image. In the docs it says

Your avatar model objects should conform to the JSQMessageAvatarImageDataSource protocol.

I'm not sure what it means by avatar model objects. Do you mean my participant objects have to conform to JSQMessageAvatarImageDataSource? The Swift demo project doesn't have anything related to avatars.
I'd appreciate any clarification on this.

Create an avatar: .../SwiftExample/SwiftExample/DemoConversation.swift#L60
let image = UIImage(named:"demo_avatar_jobs")!
let avatar = JSQMessagesAvatarImageFactory().avatarImage(withImage: image)

Return the avatar in: .../SwiftExample/SwiftExample/ChatViewController.swift#L349
override func collectionView(_ collectionView: JSQMessagesCollectionView,
    avatarImageDataForItemAt indexPath: IndexPath) -> JSQMessageAvatarImageDataSource?

Thanks @acjh! Some of my avatar images are URLs. Is there a way to load avatars asynchronously?

Thanks @acjh ! 💯

Could you answer to @Isuru-Nanayakkara las question : Is there a way to load avatars asynchronously? Thanx

I'm also interest by loading avatar asynchronously... :)

1)I load default images for the avatar in avatarImageDataForItemAt
2)download all the required images
3)after each image is downloaded call collectionView.reloadData()
4)this will reload avatarImageDataForItemAt. This time the avatar is ready to be used 👍
@palmitoto
@terflogag


object of type 'NoneType' has no len()

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

General information
Cannot play any media
Addon version used
v0.15.1, but failing since v0.15.0
Description
When selecting a episode or a movie, this last one fail.
Steps to Reproduce

[First Step] Browse to a media
[Second Step] Select it

Expected behavior:
The episode or movie should play
Actual behavior:
None (just crash)
Installation

[x] I'm using this Netflix Repo
[ ] I'm using other Netflix Repo (Please specify which)
[ ] I'm using a different source (Please tell which)

Operating System

[ ] Linux (x86/x64)
[ ] OSX (x86/x64)
[ ] Windows (x86/x64)
[x] Linux (ARM)
[ ] Android

Additional informatin on the environment
LibreELEC (official): 9.0.2, kernel: Linux ARM 32-bit version 4.19.36
Raspberry PI firmware version: Mar  6 2019 14:47:17
Debug log
2019-08-25 13:26:45.256 T:1739563888   ERROR: [plugin.video.netflix (0)] Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/http_server.py", line 47, in do_GET
                                                data = self.server.msl_handler.load_manifest(int(params['id'][0]))
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 41, in error_catching_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 109, in load_manifest
                                                manifest = self._load_manifest(viewable_id, g.get_esn())
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 195, in _load_manifest
                                                manifest_request_data, esn)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 244, in _chunked_request
                                                self._post(endpoint, self.request_builder.msl_request(request_data, esn)))
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/request_builder.py", line 37, in msl_request
                                                return (json.dumps(self._signed_header(esn)) +
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/request_builder.py", line 57, in _signed_header
                                                esn)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/default_crypto.py", line 62, in encrypt
                                                cipher = AES.new(self.encryption_key, AES.MODE_CBC, init_vector)
                                              File "/usr/lib/python2.7/site-packages/Crypto/Cipher/AES.py", line 200, in new
                                              File "/usr/lib/python2.7/site-packages/Crypto/Cipher/__init__.py", line 55, in _create_cipher
                                              File "/usr/lib/python2.7/site-packages/Crypto/Cipher/_mode_cbc.py", line 234, in _create_cbc_cipher
                                              File "/usr/lib/python2.7/site-packages/Crypto/Cipher/AES.py", line 89, in _create_base_cipher
                                            TypeError: object of type 'NoneType' has no len()
2019-08-25 13:26:45.258 T:1739563888   ERROR: Traceback (most recent call last):
2019-08-25 13:26:45.259 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
2019-08-25 13:26:45.259 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
2019-08-25 13:26:45.259 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
2019-08-25 13:26:45.259 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 654, in __init__
2019-08-25 13:26:45.260 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 713, in finish
2019-08-25 13:26:45.260 T:1739563888   ERROR:   File "/usr/lib/python2.7/socket.py", line 283, in close
2019-08-25 13:26:45.260 T:1739563888   ERROR:   File "/usr/lib/python2.7/socket.py", line 307, in flush
2019-08-25 13:26:45.260 T:1739563888   ERROR: error: [Errno 32] Broken pipe

Other information
I had to trunk the log as Elementum was extremely verbose. Let me know if you want me to drop the full one.

restarting the device should be solve

Wow, I did reboot before posting the bug - without luck.
Now I just did it again to be sure and it worked!
Thank you very much!

Another user had same error on android
https://paste.kodi.tv/axetemoduj.kodi
there is need to investigate

I had the error once yesterday while trying OSMC, at first run (after the service started correctly).
It was just after Widevine install. After a reboot I couldn't reproduce the issue anymore.

For the last error, I think the service was dead. See line 1038 in https://paste.kodi.tv/axetemoduj.kodi
I don't know what the 'auto_update' value can be in settings.xml...

@acolombier can you provide your full debug logs please? You can use paste.ubuntu.com if it's very large.

summary for reference:
default_crypto line 76 i think "self.encryption_key" value
android_crypto line 97 don't know what parameter need to check "xbmcdrm.CryptoSession"

@Smeulf unfortunately, there is quite a few of sensible data in the log coming from other plugins. I tried to isolate the bit referring to Netflix plugin, hopefully that might be helpful ?
2019-08-25 13:23:54.544 T:1936613392   ERROR: Window Translator: Can't find window programssettings
2019-08-25 13:24:23.509 T:1146082160   ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/
2019-08-25 13:24:23.513 T:1936613392   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/) failed
2019-08-25 13:24:26.811 T:1936613392   ERROR: Control 50 in window 10025 has been asked to focus, but it can't
2019-08-25 13:24:29.501 T:1146082160  NOTICE: script.module.youtube.dl: youtube_dl core version: 2018.11.07
2019-08-25 13:24:34.522 T:1146082160 WARNING: CPythonInvoker(21, /storage/.kodi/addons/script.extendedinfo/plugin.py): the python script "/storage/.kodi/addons/script.extendedinfo/plugin.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui10DialogBusyE
2019-08-25 13:26:19.893 T:1495925616  NOTICE: DecodeJpeg: unable to decode https://occ-0-461-1167.1.nflxso.net/art/f0582/49c099f0119c08240367fa2b9b6b6c1f827f0582.jpg 1280x720
2019-08-25 13:26:20.414 T:1137689456  NOTICE: DecodeJpeg: unable to decode https://occ-0-461-1167.1.nflxso.net/art/b5ab7/6be7c7de49925a62ef3748d913d04f6db66b5ab7.jpg 1280x720
2019-08-25 13:26:23.785 T:1936613392  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.netflix/play/show/80044950/season/80103731/episode/80103819/
2019-08-25 13:26:23.787 T:1375724400  NOTICE: Creating InputStream
2019-08-25 13:26:23.893 T:1375724400   ERROR: GetDirectory - Error getting /usr/lib/kodi/addons/inputstream.adaptive/
2019-08-25 13:26:44.996 T:1375724400   ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
2019-08-25 13:26:44.996 T:1375724400   ERROR: CCurlFile::Open failed with code 0 for http://localhost:44641/manifest?id=80103819:
2019-08-25 13:26:44.996 T:1375724400   ERROR: AddOnLog: InputStream Adaptive: Cannot download http://localhost:44641/manifest?id=80103819
2019-08-25 13:26:44.996 T:1375724400   ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (http://localhost:44641/manifest?id=80103819)
2019-08-25 13:26:44.999 T:1375724400   ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.netflix/play/show/80044950/season/80103731/episode/80103819/]
2019-08-25 13:26:45.003 T:1375724400  NOTICE: CVideoPlayer::OnExit()
2019-08-25 13:26:45.218 T:1936613392  NOTICE: CVideoPlayer::CloseFile()
2019-08-25 13:26:45.218 T:1936613392  NOTICE: VideoPlayer: waiting for threads to exit
2019-08-25 13:26:45.218 T:1936613392  NOTICE: VideoPlayer: finished waiting
2019-08-25 13:26:45.256 T:1739563888   ERROR: [plugin.video.netflix (0)] Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/http_server.py", line 47, in do_GET
                                                data = self.server.msl_handler.load_manifest(int(params['id'][0]))
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 41, in error_catching_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 109, in load_manifest
                                                manifest = self._load_manifest(viewable_id, g.get_esn())
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 195, in _load_manifest
                                                manifest_request_data, esn)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 244, in _chunked_request
                                                self._post(endpoint, self.request_builder.msl_request(request_data, esn)))
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/request_builder.py", line 37, in msl_request
                                                return (json.dumps(self._signed_header(esn)) +
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/common/misc_utils.py", line 246, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/request_builder.py", line 57, in _signed_header
                                                esn)
                                              File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/default_crypto.py", line 62, in encrypt
                                                cipher = AES.new(self.encryption_key, AES.MODE_CBC, init_vector)
                                              File "/usr/lib/python2.7/site-packages/Crypto/Cipher/AES.py", line 200, in new
                                              File "/usr/lib/python2.7/site-packages/Crypto/Cipher/__init__.py", line 55, in _create_cipher
                                              File "/usr/lib/python2.7/site-packages/Crypto/Cipher/_mode_cbc.py", line 234, in _create_cbc_cipher
                                              File "/usr/lib/python2.7/site-packages/Crypto/Cipher/AES.py", line 89, in _create_base_cipher
                                            TypeError: object of type 'NoneType' has no len()
2019-08-25 13:26:45.258 T:1739563888   ERROR: Traceback (most recent call last):
2019-08-25 13:26:45.259 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
2019-08-25 13:26:45.259 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
2019-08-25 13:26:45.259 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
2019-08-25 13:26:45.259 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 654, in __init__
2019-08-25 13:26:45.260 T:1739563888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 713, in finish
2019-08-25 13:26:45.260 T:1739563888   ERROR:   File "/usr/lib/python2.7/socket.py", line 283, in close
2019-08-25 13:26:45.260 T:1739563888   ERROR:   File "/usr/lib/python2.7/socket.py", line 307, in flush
2019-08-25 13:26:45.260 T:1739563888   ERROR: error: [Errno 32] Broken pipe

Is there any precise info you were looking for ?

@acolombier I'm trying to determine if there's any previous error related to the service

I have exactly the same problem. The first time I was able to enter my profile and list, but playback did not work. I did a restart, and from that moment I can't even enter the list of movies or series
Logs - exactly the same as above.

Ok. I tried the git version - it works without a problem. I see that the settings have been heavily rebuilt ... I was on vacation - most things were moved to the database?

most things were moved to the database?

Indeed. See https://github.com/CastagnaIT/plugin.video.netflix/commit/c269d3f0a1113255d0f40b1addd85bb94fe2ec0f

Not sure it's related, but I don't like this error : ERROR: [plugin.video.netflix (0)] SQLite error no such table: app_config :/

Another user had same error on android:

there is need to investigate

I have it on osmc, service mediacenter restart had solved the problem

I could reproduce it on Windows, at a very first run (deleted addon user data folder) https://paste.kodi.tv/azomacolar.kodi
"msl_data.json" is not created at first service run, generating a "ValueError: No JSON object could be decoded" (around line 576)
Then also at first service run, settings.xml is not created yet, and so we have an another error I should be able to fix
update_frequency = g.ADDON.getSettingInt('auto_update')                                             TypeError: Invalid setting type
And finally, as msl_data.json is still not created, we have the encryption error (line 1765) when trying to play a video.

this is the cause of encryption error?

I think (will confirm) that as the username and password are not set yet, there's not handshake with the server, and then no encryption key.

In mslhandler:
if self.perform_key_handshake():
                self.request_builder = MSLRequestBuilder(json.loads(
                    common.load_file('msl_data.json')))

The service starts, without username/password.
No handshake written, no file msl_data.json created.
So encryption key is None (verified on debug), causing the error.
At logon, msl data should be reloaded IMo (but I did not look how to ^^).

Well, now I found the real problem:

the ESN is set at startup in the database
As there's no username/password, handshake can't be performed
When opening the addon, credentials are requested, and login is performed
Then we call update_session_data() (in nfssession.py), that will call _update_esn
Update ESN checks if the ESN has change, and if changed calls common.send_signal(signal=common.Signals.ESN_CHANGED, data=esn), that triggers perform_key_handshake in msl_handler.py

But the ESN didn't change, so signal is not sent, and handshake is not made, resulting in the error.
But, we need the ESN to be set or it will thrown an error at migration, that's why we made that commit "Simplified code for manual ESN"
https://github.com/CastagnaIT/plugin.video.netflix/commit/0be5d97cf9812803fd0fa346505b2ce3a4b65554
I have no idea how to fix it...

(rpi3 - OSMC) When install plugin i have same error of this issue...and after reboot "MSLError: Email or password is incorrect"
My debug log:
https://paste.kodi.tv/xubisonike.kodi

Well, now I found the real problem:

the ESN is set at startup in the database
As there's no username/password, handshake can't be performed
When opening the addon, credentials are requested, and login is performed
Then we call update_session_data() (in nfssession.py), that will call _update_esn
Update ESN checks if the ESN has change, and if changed calls common.send_signal(signal=common.Signals.ESN_CHANGED, data=esn), that triggers perform_key_handshake in msl_handler.py

But the ESN didn't change, so signal is not sent, and handshake is not made, resulting in the error.
But, we need the ESN to be set or it will thrown an error at migration, that's why we made that commit "Simplified code for manual ESN"
0be5d97
I have no idea how to fix it...

I'm studying a way, I also suspect that the database copy works but that the completion of the file copy is not waited by code causing the impossibility to check the tables and resulting start-up error
i'll let you know

Just found @Smeulf fix for the SQLite error on their github fork. Addon immediately started working again. I'll keep playing around with over the next couple days.

@snoopyjoe this is not THE fix, I mean it's fixing some problems, but not all related to this issue.
You can of course use the branch I'm working on, but remember I'm just helping @CastagnaIT the best I can, and he remains the main maintainer of this fork.

Temporary fix is better than broken in the developer world hahaha. I'm still following @castagnaIT git and repo for official things. Constant error messages even when not using the add-on was getting annoying.

The errors mentioned are solved in the new release


[User Experience] [Input validation errors] Lack of feedback after submission on Input Card with error

Platform
What platform is your issue or question related to?
All
Author or host
Microsoft Teams
Version of SDK
SDK version 2.1.0 (ACv1.3)
Details
If action is taken on card for the subsequent time when errors are already showing on Adaptive Card, no change takes place on card. This could confuse the user that the card has frozen and nothing is happening. One way could be that error messages should vanish and reappear to show flicker so user knows that the card is not frozen.
Link to video for the above experience

@almedina-ms / @jwoo-msft this one is a P2 as far as the Teams 1.3 upgrade blockers is concerned but we should get this looked at and prioritized for design discussions; @RebeccaAnne FYI

@almedina-ms / @jwoo-msft this one is a P2 as far as the Teams 1.3 upgrade blockers is concerned but we should get this looked at and prioritized for design discussions; @RebeccaAnne FYI

Sure, I will add those input related issues filed by Team to the design discussions.

Because the errors are already showing, the user has an indication of what they need to do to progress. Additional indication here is not currently in scope.


Fix bug: T126666

Can't we just clone into a temporary directory and then move the directories around?
Alternatively, git fetch && git reset --hard origin/master ?

That's exactly what I did in https://phabricator.wikimedia.org/P2599 we can use this instead :)

Seems this is already solved: https://phabricator.wikimedia.org/T125505


[BUG] Upgrading from Version 4 Throws LiteException: File is not encrypted as of Version 5.0.18

Version

LiteDB Version: 5.0.20
Win 11
.Net 8.0

Describe the bug

Upgrading  a database created with version 4.1.4 using versions higher than 5.0.17 (i.e.  5.0.18 to 5.0.20) fails with a LiteException: File is not encrypted

Code to Reproduce

Create a password protected database using version 4.1.4 or
try to open the attached version 4 database in MyDataV4.zip using version 5.0.20. Password is pass123.

ConsoleApp1.csproj
<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net8.0</TargetFramework>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
    </PropertyGroup>

    <ItemGroup>
      <None Remove="MyDataV4.db" />
      <Content Include="MyDataV4.db">
        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
      </Content>
    </ItemGroup>

    <ItemGroup>
        <PackageReference Include="LiteDB" Version="5.0.20" />
    </ItemGroup>

</Project>

Program.cs
using LiteDB;

var connectionString = new ConnectionString(new FileInfo("MyDataV4.db").FullName)
{
    Password = "pass123",
    Upgrade = true,
};

using (var db = new LiteDatabase(connectionString)) // <= throws as of version 5.0.18
{
}

Expected behavior
The database should be upgraded to the new format without exception.
Screenshots/Stacktrace
The exception thrown is:
Unhandled exception. LiteDB.LiteException: File is not encrypted.
    at LiteDB.Engine.AesStream..ctor(String password, Stream stream)
at LiteDB.Engine.FileStreamFactory.GetStream(Boolean canWrite, Boolean sequencial)
at LiteDB.Engine.RebuildService.ReadFirstBytes()
at LiteDB.Engine.RebuildService..ctor(EngineSettings settings)
at LiteDB.Engine.LiteEngine.Recovery(Collation collation)
at LiteDB.Engine.LiteEngine.TryUpgrade()
at LiteDB.Engine.LiteEngine.Open()
at LiteDB.Engine.LiteEngine..ctor(EngineSettings settings)
at LiteDB.ConnectionString.CreateEngine()
at LiteDB.LiteDatabase..ctor(ConnectionString connectionString, BsonMapper mapper)

Thank you for reporting this issue. We appreciate your detailed description and code to reproduce the problem.
Given the current backlog of work and the focus on addressing existing pull requests, we won't be able to prioritize this issue immediately. However, if this issue is critical for your project, we encourage you to investigate and implement a fix yourself. You can then submit a pull request for review.
We appreciate your understanding and contributions to the project. If you choose to work on a fix, please ensure it includes thorough testing to verify compatibility with databases created using earlier versions.

We have the same issue for our use of LiteDB - older releases are on LiteDB v4, and would need to upgrade to LiteDB v5 due to the published securirt issue. However, the upgrade bug from v5.0.18 onwards means we can't use the library.
Based on my investigation, I believe this issue is an incompatibility with the v4 format with a password  and the AesStream class. Essentially, any time a v4 file is opened, it has to use the Stream class instead of AesStream. I'll test my workaround for this with your sample and if it works, I'll put it up for review and we can iterate over that.


Add a Wiki document on how to get started and contribute to Elixir template

Why
As the template is growing, it takes time for the new developer understand and contributor into the template
Who Benefits?
New developer, contributor
AC
A document on Wiki to guide step by step on
1/ Adding a new Addon
2/ Run unit test on local
3/ Apply the whole template on local (linked to the https://github.com/nimblehq/elixir-templates/issues/157)
4/ FAQ section were solving some frequently, could be empty at the beginning.

Hi @topnimble would you like to take this task on your exploring the elixir template journey, you can take your experience from there and help the new contributor


[BROKEN] Homebrew installation

Oddly github doesn't show a trace of go-completion in Homebrew/homebrew-completions.
@kura shall I submit a PR, something along these lines ?
class GoCompletion < Formula
  desc "Bash and Zsh completion for Go CLI"
  homepage "https://github.com/kura/go-bash-completion"
  url "https://github.com/kura/go-bash-completion.git",
    :revision => "f2d3af2bd51d09087b2dab57f21455b51e174792"
  version "1"
  head "https://raw.githubusercontent.com/kura/go-bash-completion.git"

  bottle :unneeded

  def install
    bash_completion.install "etc/bash_completion.d/go" => "grunt"
  end

  test do
    assert_match "-F _go",
      shell_output("source #{bash_completion}/go && complete -p go")
  end
end

If you'd like to, sure. I don't use Homebrew so anything related to that, feel free to do whatever you guys want with it. :)


Statistics

Is your feature request related to a problem? Please describe.
It would be nice to have tools in Python which help us with calculating statistics
Describe the solution you'd like
Displaying a notebook with tools/tips and a test data set for trying

sounds great. A new branch has been created for this feature, called "10-statistics".


Support placeholderTextColor prop

Hey Anurag!
Thank you so much for this amazing npm package!!
I needed to be able to specify the placeholderTextColor so I thought I'd submit a PR. I made the code so if it's not specified, it falls back to a close approximation of the default placeholder text color, 35% black. I also added the new prop to the README page.
I tried it in my project and it works. Hope you'll consider merging it into your project.
If necessary you can reach me by email: justinschier [at] gmail.com
Thanks!
Justin Schier

exactly what we needed at my company and worked perfectly with patch package 👍

You can do this by changing the input props.
Ex:
textInputProps={{
  placeholderTextColor: 'red'
}}

Hey Anurag
Can we please merge the changes of @justinschier asap
Thanks


defer FinalizeLogger()

Self-close the logger so the user does not have to.

Hi @jnovack! Thank you for paying attention to my log library (despite it has no description at all)!
I can't accept this change for few reasons: line you added just duplicate functionality in code above (which also close logger in case when termination events received from OS), so functionality from you line trying repeatedly close logger, because they both (code above and you line) are waiting for <-ctx.Done() event.
I would be glad to have some kind of golang code pattern that will 100% guaranty for self-closing in any situation, but as I know there is no way implement 100% guaranty implicit self-closing mechanism in golang, because any os.Exit() of panic() call will not trigger <-ctx.Done(), but just terminate application in it current state.
If you have any additional thoughts regarding this question, please, let me know.

Ah, I didn't think/feel that it was getting closed because you were closing it manually in some of your upstream packages. https://github.com/d2r2/go-dht/blob/master/examples/example2/example2.go#L32  Why defer it there?
I'm using most of your library (go-dht, go-i2c, go-hd44780, go-logger) in my current project.  Which turned out to be just a copy and paste of your example scripts in those repos into the same main.go. ;)
I'm merely a plebeian with golang, so my apologies on the pointless PR.

Right, I'm closing it manually in main(), because as I explain before it gives better control to do it in explicit manner. In fact, probably the main reason to close it manually explained by the fact, that logger keep physical log file open during whole application session, and if you didn't close it before app exit, it can lost some part of log information which was written, but doesn't flush to hard drive.
Events intercepted in the line <-ctx.Done() managed by d2r2/go-shell extra library which catch few OS "termination" signals. It's kind of case, when you shut down your OS, and it report to each application, that you should gracefully end your work (btw, it also intercept ordinary keyboard CTRL+C and CTRL+BREAK signals).
Only one thing confuses me: why do you get so many messages 2018/10/01 11:18:47 Signal received, cancel context. In fact this message generated in d2r2/go-shell CloseContextOnKillSignal() function.
Let me investigate this question and reply. As an option, I can just eliminate this line from d2r2/go-shell, which I added as an extra control, but it would be better first find explanation of so quite a lot output.
P.S. Thanks for feedback! It's pleasure to know that somebody use so many my libraries ;)

I found the issue in d2r2/go-dht, which produce long long output of 2018/10/01 11:18:47 Signal received, cancel context. The number of output strictly correspond to number of calls made to ReadDHTxxWithRetry, which on exit left gorutine live and waiting for termination event in shell.CloseContextOnKillSignal(cancel).
I will open a ticket today in d2r2/go-dht to resolve the issue.
So, thanks again for the help to identify the problem ;) Will reply when issue will be fixed.

Issue fixed and merged to the master trunk in d2r2/go-dht. This pull request is rejected. @jnovack, thanks for the help!


Fixed #26637 - Match the Sphinx version requirement with the actual code.

I think we could remove this note at this point since Sphinx gives a helpful error message if you're using a version that's too old. What do you think?

That will make world consistent (not inconsistent ;-) as well, so it's fine by me.

Removed in 2e1d44e46d1ea3d8c9fdc5c323a127f51006f6c3, thanks for the report!


Existing loggers are disabled

Sanic (0.5.4) uses LOGGING in sanic.config as config data for logging.
But 'logging.config.dictConfig()' with it disables existing loggers that I use
for my application modules.
I understand that I can use my own configuration instead of LOGGING.
But Is there any reason not to set 'disable_existing_loggers' in LOGGING?

I also wanted to ask the same question... seems like setting disable_existing_loggers will help many unless there is a specific reason not to use it?

Just bumped into this as well. My Socket.IO and Engine.IO projects have their loggers disabled when used with Sanic, just because I create these loggers before Sanic calls dictConfig(). I think Sanic should leave existing loggers alone.

@tada3 @miguelgrinberg my fault of forgetting to set this flag to False.
I agree with your comments that Sanic should leave existing loggers alone.


Gazebo sim not responding

Hi,
I've installed all required packages for simulating OP3 in Gazebo.
When I run;
$ roslaunch robotis_op3_gazebo robotis_world.launch
Gazebo does open up and I get this

However, I could not get the simulated robot to do anything.
When I run;
$ roslaunch op3_manager op3_gazebo.launch
nothing happens to the robot. It should go into init mode where it will sit down, correct?
Using the GUI program also did not move the robot in any way. I launched it using;
$ roslaunch op3_gui_demo op3_demo.launch
I tried to echo some topics (head pan & tilt etc) but nothing comes up.
There is no error messages from any of the processes.
How else can I check whats going on?

OMG I have been working on this for a few weeks and only today I find the START button on Gazebo!
Issue solved, I just need to click the START button on Gazebo.


Networking setup fails when launching centos8 with microk8s profile

When a new centos container is launched using the command lxc launch -p default -p microk8s images:centos/8 centos8 networking setup fails. However an identical command with centos7 lxc launch -p default -p microk8s images:centos/7 centos7 works, with networking setup correctly.
If the centos8 container is launched without the microk8s profile as in lxc launch -p default  images:centos/8 centos8 then networking is setup correctly. Further if the microk8s profile is added to the so launched centos8 container using lxc profile add centos8 microk8s network continues to work correctly.
inspection-report-20200710_114909.tar.gz

The offending part of the microk8s profile is the raw.lxc configuration . Removing it, done by the attached patch, seems to fix this problem.
netfix-patch.txt

I am out of touch with this issue. Closing for now. Hopefully someone else will reopen if it is a problem still.


Tests should run as a non-root user

All Deis components should run as regular, non-privileged users within their Docker containers, including this deis-e2e image.

This issue was moved to teamhephy/workflow-e2e#14


Updated property name 'teamsApp' to 'teamsAppDefinition'.

Hi @Harikrishnan-MSFT
In HomeController.cs file, there is a method called SendNotificationToManager. This method tries to get the list of installed teams-applications for the user. The property name 'teamsApp' has been now modified to 'teamsAppDefinition' by the Microsoft. Hence, I have updated the same in SendNotificationToManager.

@pankajmunde12 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

Hi @Pawank-MSFT, @Mohammed-MSFT
Could you please check this and provide your suggestion on this fix? If it looks correct, I would like to update the property name at few more places.
Thanks and Regards,
Pankaj Munde

@pankajmunde12  We have checked tab-request-approval sample with these changes but sample not working as expected, We have fixed that with these changes and also checking other samples also. Once its done first we'll merge this PR and right after we will updated code.


Switched User Accounts on me, won't let me switch back

Trying to use this extension for one of my Instagram accounts, and it remotely switched itself to my other account.  Can't get it to go back to my original account...please help!  How can I switch Instagram accounts on Chrome IG Story?

@borntotravel07 Delete Cache and Cookies for instagram.com.
If it still doesn't work, delete the Extension and download it again.
This worked for me.


Salt error :  KeyError: 'config.get'

Hello,
I just upgraded to ubuntu 22 again :)
I try to run the formula but I am returned a python error :
KeyError: 'config.get'
Full output :
» wget -O /tmp/framework-laptop-tldr.sh https://raw.githubusercontent.com/lightrush/framework-laptop-formula/main/framework-laptop-tldr.sh && bash /tmp/framework-laptop-tldr.sh
--2022-05-26 19:39:36--  https://raw.githubusercontent.com/lightrush/framework-laptop-formula/main/framework-laptop-tldr.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 868 [text/plain]
Saving to: ‘/tmp/framework-laptop-tldr.sh’

/tmp/framework-laptop-tldr.sh       100%[=================================================================>]     868  --.-KB/s    in 0s

2022-05-26 19:39:37 (92.5 MB/s) - ‘/tmp/framework-laptop-tldr.sh’ saved [868/868]

Hit:1 http://fr.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 https://updates.signal.org/desktop/apt xenial InRelease
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Fetched 210 kB in 1s (228 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  libc++1
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
salt-common is already the newest version (3004.1+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
--2022-05-26 19:39:43--  https://github.com/lightrush/framework-laptop-formula/archive/refs/heads/main.zip
Resolving github.com (github.com)... <IP_ADDRESS>
Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/lightrush/framework-laptop-formula/zip/refs/heads/main [following]
--2022-05-26 19:39:43--  https://codeload.github.com/lightrush/framework-laptop-formula/zip/refs/heads/main
Resolving codeload.github.com (codeload.github.com)... <IP_ADDRESS>
Connecting to codeload.github.com (codeload.github.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 363558 (355K) [application/zip]
Saving to: ‘framework-laptop-formula-main.zip’

framework-laptop-formula-main.zip   100%[=================================================================>] 355.04K  1.02MB/s    in 0.3s

2022-05-26 19:39:44 (1.02 MB/s) - ‘framework-laptop-formula-main.zip’ saved [363558/363558]

Archive:  framework-laptop-formula-main.zip
925443a4ddbca2c1612e278cab216d982a5e7731
  inflating: framework-laptop-formula-main/.gitignore
  inflating: framework-laptop-formula-main/LICENSE
  inflating: framework-laptop-formula-main/README.md
  inflating: framework-laptop-formula-main/framework-laptop-tldr.sh
  inflating: framework-laptop-formula-main/framework-laptop/defaults.yaml
  inflating: framework-laptop-formula-main/framework-laptop/files/10-framework-sec-trim.rules
  inflating: framework-laptop-formula-main/framework-laptop/files/com.ubuntu.enable-hibernate.pkla
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/libfprint_delete_device_prints.py
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/prebuilt/debian.libfprint.install.patch
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/prebuilt/debian.rules.patch
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/prebuilt/fprintd-doc_1.94.0-1_all.deb
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/prebuilt/fprintd_1.94.0-1_amd64.deb
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/prebuilt/gir1.2-fprint-2.0_1.94.1-1_amd64.deb
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/prebuilt/libfprint-2-2_1.94.1-1_amd64.deb
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/prebuilt/libfprint-2-doc_1.94.1-1_all.deb
  inflating: framework-laptop-formula-main/framework-laptop/files/fingerprint-reader/prebuilt/libpam-fprintd_1.94.0-1_amd64.deb
  inflating: framework-laptop-formula-main/framework-laptop/files/intel-audio-workaround.conf
  inflating: framework-laptop-formula-main/framework-laptop/files/intel-ax210-workaround.conf
  inflating: framework-laptop-formula-main/framework-laptop/files/intel-ax210-workaround.service
  inflating: framework-laptop-formula-main/framework-laptop/files/touchpad-suspend-workaround
  inflating: framework-laptop-formula-main/framework-laptop/fingerprint-reader.sls
  inflating: framework-laptop-formula-main/framework-laptop/framework-sec-trim-enable.sls
  inflating: framework-laptop-formula-main/framework-laptop/grub-cleanup.sls
  inflating: framework-laptop-formula-main/framework-laptop/grub-decrease-menu-timeout.sls
  inflating: framework-laptop-formula-main/framework-laptop/hibernate.sls
  inflating: framework-laptop-formula-main/framework-laptop/hpet-disable.sls
  inflating: framework-laptop-formula-main/framework-laptop/init.sls
  inflating: framework-laptop-formula-main/framework-laptop/intel-audio-workaround.sls
  inflating: framework-laptop-formula-main/framework-laptop/intel-ax210-workaround.sls
  inflating: framework-laptop-formula-main/framework-laptop/intel-xe-tearing-workaround.sls
  inflating: framework-laptop-formula-main/framework-laptop/map.jinja
  inflating: framework-laptop-formula-main/framework-laptop/mem-sleep-default.sls
  inflating: framework-laptop-formula-main/framework-laptop/mouse-accel-profile.sls
  inflating: framework-laptop-formula-main/framework-laptop/oscodenamemap.yaml
  inflating: framework-laptop-formula-main/framework-laptop/osfamilymap.yaml
  inflating: framework-laptop-formula-main/framework-laptop/osmap.yaml
  inflating: framework-laptop-formula-main/framework-laptop/pillar.example
  inflating: framework-laptop-formula-main/framework-laptop/post-resume-power-draw-workaround.sls
  inflating: framework-laptop-formula-main/framework-laptop/pulseaudio-bt-hires-codecs.sls
  inflating: framework-laptop-formula-main/framework-laptop/salt-masterless.sls
  inflating: framework-laptop-formula-main/framework-laptop/tlp.sls
  inflating: framework-laptop-formula-main/framework-laptop/touchpad-click-method.sls
  inflating: framework-laptop-formula-main/framework-laptop/touchpad-suspend-workaround.sls
  inflating: framework-laptop-formula-main/framework-laptop/vmware-graphics-acceleration.sls
Traceback (most recent call last):
  File "/usr/bin/salt-call", line 33, in <module>
    sys.exit(load_entry_point('salt==3004.1', 'console_scripts', 'salt-call')())
  File "/usr/lib/python3/dist-packages/salt/scripts.py", line 432, in salt_call
    client.run()
  File "/usr/lib/python3/dist-packages/salt/cli/call.py", line 55, in run
    caller.run()
  File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 111, in run
    ret = self.call()
  File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 218, in call
    ret["return"] = self.minion.executors[fname](
  File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
    return self.loader.run(run_func, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1201, in run
    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1216, in _run_as
    return _func_or_method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/executors/direct_call.py", line 10, in execute
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__
    return self.loader.run(run_func, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1201, in run
    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1216, in _run_as
    return _func_or_method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/modules/state.py", line 793, in apply_
    return sls(mods, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/modules/state.py", line 1295, in sls
    opts["test"] = _get_test_value(test, **kwargs)
  File "/usr/lib/python3/dist-packages/salt/modules/state.py", line 475, in _get_test_value
    elif __salt__["config.get"]("test", omit_opts=True) is True:
  File "/usr/lib/python3/dist-packages/salt/loader/context.py", line 78, in __getitem__
    return self.value()[item]
  File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 334, in __getitem__
    super().__getitem__(item)  # try to get the item from the dictionary
  File "/usr/lib/python3/dist-packages/salt/utils/lazy.py", line 105, in __getitem__
    raise KeyError(key)
KeyError: 'config.get'

Nobody on the internet seems to be having the same issue, so I was wondering if you have any idea of what is happening ?
Thanks

Yeah, seems like Salt itself is throwing this error. Try purging the salt-common and salt-minion packages, then re-run the TL;DR script.

Woot I made it !
I tried purging salt-common and salt-minion but it wasn't enough.
Very randomly I tried following the instructions here : https://repo.saltproject.io/#ubuntu
and also installed salt-master and it worked.
Thanks for you help :)
My computed will finally go to hibernation \o/

You might want to uninstall salt-master if you aren't using it. It isn't required for this stuff and it just runs in the background consuming resources.

Good to know thanks !
I think what fixed my issue was using different repo, maybe

This is still an issue on Ubuntu 22.04. Purging / re-installing / installing salt-master didn't help.

Does it happen every time?


integration: watch test for multi-events with txn

Related to https://github.com/coreos/etcd/issues/4216.

@heyitsanthony Just fixed. PTAL. Thanks,

lgtm after fixing nits

Thanks. Just fixed. Will merge after CI passes.


actions/setup-node/pull/

https://github.com/actions/setup-node/pull/#866

Closing this as spammy


bugfix: ESC keyCode should be 27 and not 127

I mentioned this in an issue a little while ago, and decided to just fork, fix, and submit a pull request.

Thanks for that! :+1:


Performance Improvement

Small code change can improve performance quite a bit.

Nice. Asked for a small change and then we merge. Thanks.


Security contact / follow up to issue #6224

I've used the form mentioned in issue #6224 about a month ago to
get in touch about some security relevant concerns. However I've not
gotten any response yet.
Could someone from the traefik team at least let me know if the report
is being considered at all?
Thanks
joern

Hello,
Yes we received your report.
Normally someone has or will answer you.
Thanks.

Well in this case I eagerly await your response.
I however might publish some details by end of April.


[HOW-TO] Please let me know the latest stable Easyrepro release.

Hi, I tried to integrated nuGet latest version (9.2.21014.138), I am getting login issues.
With the previous release (<IP_ADDRESS>021) login is success, but command bar click and xrmApp.Entity.SubGrid.ClickCommand("SubGrid_Activities", "New Activity", "Email") are nor working. these issues may be because of latest UI changes of Dynamics 365.
Please let me know when can expect the latest working build or do I need to change my code for login?
(Currently I am using xrmApp.OnlineLogin.Login(CRMURL, TestAgentUser, TestAgentPassword);)

Workaround out of my bug: https://github.com/microsoft/EasyRepro/issues/1114


Feature: v2 API - update contributions-evolution-by-type graph

Type of feature
🍕 Feature
Current behavior
Followup to: https://github.com/open-sauced/api/pull/485
A few things have changed with this v2 update: now uses bucket as the ISO time-string, has a few updated stat fields (like commits, etc.) See above PR for full list of changes.
Suggested solution

Update DTO for graph to use new datatypes

Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Contributing Docs

[X] I agree to follow this project's Contribution Docs

.take

Thanks for taking this on @sourabpramanik - I had meant to tag this as core team work, but if you're feeling up for it, go ahead! You'll want to land these changes on the alpha branch here and use alpha.api.opensauced.pizza as your API reference.

Oh! I will give it a shot if that works.
Just to clarify this change has to be done on /list/[listid]/activity page right or somewhere else? Can you help me with where I should focus please @jpmcb?

Sine this API endpoint has changed, anywhere we grab data with this hook:
https://github.com/open-sauced/app/blob/caa511ccc079066e5a82731a44892f2b9b6945e2/lib/hooks/api/useContributionsByEvolutionType.ts#L27

Hey @sourabpramanik - We're getting really close to doing the v2 cutover: any progress here?
I may reassign this to me if you haven't started working on it yet since this was originally intended to be core team work and we're moving pretty fast on making this v1 --> v2 transition happen.

Hey @jpmcb I can see that yesterday the changes were already merged and there is only one place where
 const apiEndpoint = lists/${listId}/stats/contributions-evolution-by-contributor-type?${query.toString()} is being used. So, are there any other changes to be done here?
https://github.com/open-sauced/app/blob/8d38551610674ec6d49d9db6578a03c5eabcfd55/components/molecules/ContributionsEvolutionByTypeCard/contributions-evolution-by-type-card.tsx#L59C1-L65C1

I will unassign myself so that you can close this one.

.take

May I can work on it

I can see that yesterday the changes were already merged

Ahh, good catch: I think this ended up being less granular than when I planned out this work. Thanks for the validation!
Marking this as closed since the user list graph endpoints are now migrated on alpha! Thanks all!


Create README.md

Currently this crate only has crate-level documentation in src/lib.rs, which can be only seen at docs.rs/socket_addr_macros. Since crates.io and GitHub can not show that, a README.md should be added for easier overview of the crate.

Going to include the snippet I mentioned in #3


Feature: AI added in the game

AI System has been added in the game. It's very easy to create your own AI. You should try to make better AIs and get highscore in the AI category. Either use logic based AI or use Machine Learning.
Documentation on how to create AI is also included in the package: here.
Example: A simple AI that just chases coins:

New cart images:
Now the only bad looking things in the game are the backgrounds.


Line color did not change when button is clicked

Hello! Sorry i dont know if this is an issue, or im just wrong on using it (sorry, im new at ios dev)
@IBAction func markerButtonPressed(_ sender: Any) {
    drawView.brush.color = .red
    drawView.brush = Brush.thick
 }

The problem is that when I clicked the button, it doesn't change the color of the line.

Ohh. Im just wrong on using it hehe
I should declare first the brush type before the color... because it overlaps.. Im sorry

Correct! Glad you were able to fix it yourself

Hi sir! I have another problem. Could you help me?

I already open a new issue sir. Thanks a lot!


Axon homeostasis

Would it be possible to create a new GO term for Axon homeostasis.
I know we do not create terms related to diseases, but it looks like some protein coding genes are specifically required to 1) prevent axon destruction (NMNAT2), while another protein, MYCBP2, is specifically required to degrade NMNAT2 to promote axon degradation/degeneration
After discussing with Pascale, we thought that creating 'Axon homeostasis' would be helpful
Thanks
Sylvain
PMID:20126265;
PMID:23082226;
PMID:23665224;
PMID:23610559;

response from SynGO
Hi,
We're mostly focussed on synapses atm so I have not really thought about ontology models for dendrites and axons. In general, I do not favor using terms that describe phenotypes/diseases.
In SynGO we use very generic terms for such cases, something like 'axon maintenance' following https://www.ncbi.nlm.nih.gov/pubmed/20126265 (SynGO maintenance terms; GO:0099559, GO:0098880, GO:0048790, GO:0099562). We're currently short on experts and annotation coverage for synapse organization and synaptogenesis terms. Although I hope we can expand to this a bit in the near future, I cannot contribute a structural solution for annotating synapse/axon/dendrite organization mechanisms that is widely applicable.
Best,
Frank

We have neuron projection maintenance. Do we want to make an axon child? Are the mechanisms different enough?

Hi Ruth and David,
I was not aware of neuron projection maintenance. As I'm not very familiar with this topic and that the process described in my papers are not well defined, I would say that using neuron projection maintenance is fine for the moment.
However, as said, I'm not familiar with such processes
Thanks a lot for your help
Sylvain

Hi @ukemi I do not think there is any evidence in literature for different mechanics... (or at least not yet). The term 'neuron projection maintenance' is intended to cover both axons and dendrites, so any neuron projections, generally referred to as 'neurites' in literature.
In fact the results sections in the papers cited by @sylvainpoux also describe mostly 'neurites' rather than specifically axons (unless animal work is presented). So 'neuron projection maintenance' is definitely applicable in these studies and I would not use a more specific term, if the experimental evidence comes from cell culture-based work.
For the studies done in adult animals (e.g. Figure 1 in PMID: 23665224) I would be happy to use a more specific term 'axon maintenance', as here there is no ambiguity about whether or not the described neurite is indeed an axon.
So with regard to GO term specificity, I would only go as far as I would be able to infer from the experimental assay.
Here: cell work --> neurite, animal work --> axon.
(But The mechanics of the neurite process in the cell culture may as well be more or less the same as for the axon process in the animal).
@ukemi based on the above, would you add 'axon maintenance' as a child term of 'neuron projection maintenance'? Or would you perhaps make it a broad synonym of 'neuron projection maintenance'? @paolaroncaglia what would be your recommendation?

Side note: the second paper cited by @sylvainpoux (PMID:23082226) can be a little tricky to annotate. These studies were done in embryos and the authors themselves state in the abstract "Our observations suggest that during embryogenesis, Nmnat2 plays an important role in axonal growth or maintenance." Figure 7 does not exactly show that axonal homeostasis/maintenance is affected: "Because NF+ axons are present in both wild-type and mutant limbs at E13.5 (Figure 7C, D), innervation appears to be initiated but then regresses by E18.5 in Nmnat2blad/blad embryos." So, without knowledge about Nmnat2 in adult animals (e.g. PMID: 23665224 mentioned above), I would most probably infer here that Nmnat2 is probably required for a step in the developmental cascade (rather than maintenance) and capture this with 'GO:0031175 neuron projection development'... (And both annotations could be correct; the protein could have a role in axonal development as well as its maintenance).

cc: @RLovering

Hi @BarbaraCzub. Unless we want to specifically distinguish the maintenance of axons versus dendrites, then I would not make new terms. I would make narrow synonyms because axon is narrower than neuron projection. It is probably possible to make the distinction using annotation extensions.

Hi @ukemi, yes, it is possible to capture the axon vs. dendrite in the annotation extensions. I'll 'axon maintenance' as a narrow synonym then. Thank you!

Hm... I wonder whether this should actually be a related synonym? (Is there any documentation that I could refer to?)

@BarbaraCzub
‘axon’ is_a ‘neuron projection’, so to me ‘axon maintenance’ should be a narrow synonym of ‘neuron projection maintenance’. Yes, related synonyms are always safe when in doubt. Some guidance is here: http://geneontology.org/page/ontology-structure#extras

http://wiki.geneontology.org/index.php/Curator_Guide:_General_Conventions#Synonyms

Thank you @paolaroncaglia and @ukemi for the guidance notes!
I added 'axon maintenance' and 'axon homeostasis' as related synonyms, because 'neurite maintenance' had been previously added as a narrow synonym:

And 'neurite' is also a narrow synonym of a 'neuron projection' (https://www.ebi.ac.uk/QuickGO/term/GO:0043005).
But based on the guidelines in the above links, which you both shared (thank you!), it looks like 'neurite...' should be exact, and 'axon...' should be narrow synonyms, respectively. @ukemi can you think of a reason why 'neurite' had been added as a narrow synonym previously? Based on my understanding of the literature a 'neurite' is an exactly the same structure as a 'neuron projection'. Although the latter is actually very rarely used in literature (usually researchers use the shorter term 'neurite').
Having read the guidance notes, I think the synonyms should be as follows:
'GO:0043005 neuron projection'
--> 'neurite' [exact]
'GO:1990535 neuron projection maintenance'
--> 'neurite maintenance' [exact]
--> 'neurite homeostasis' [exact]
--> 'neuron projection homeostasis' [exact]
--> 'neuronal cell projection homeostasis' [exact]
--> 'neuron process homeostasis' [exact]
--> 'neuron protrusion homeostasis' [exact]
--> 'axon maintenance' [narrow]
--> 'axon homeostasis' [narrow]
But there are many more 'neuron projection...' terms in the ontology for which 'neurite' had been added as a 'narrow' synonym, and not exact. And e.g. 'neurite morphogenesis' is a related synonym of 'GO:0048812 neuron projection morphogenesis', and not even narrow...
The guidance notes also say that the main purpose of the synonyms is to help with searches, so I am not going to address these synonym issues now. But perhaps in the future, we should consider whether we even have a need for synonym types?

Unless there are neuron projections that are not neurites. Seems possible.

There are certainly neuron types, which have a primary cilium. (But in the ontology a cilium is a descendant of cell projection rather than the more specific neuron projection). But, yes, a cilium would be a neuron projection other than a neurite. I did not consider this. Thank you!

@BarbaraCzub
In reply to your note
“perhaps in the future, we should consider whether we even have a need for synonym types?”
A couple of quick thoughts here. One is that it is important to differentiate exact synonyms from all others, because an exact synonym is to all extents equivalent to the primary name (the latter is usually chosen on the basis of usage and/or clarity). This has practical implications, so it’s important that exact synonyms are really exact (e.g. ‘signalling’ and ‘signalling’ are the same, but ‘ciliary transition zone’ and ‘CTZ’ are not, as the latter may also refer to ‘chemoreceptive trigger zone’ - CTZ should be related, not exact).
Another thought is that, among biomedical ontologies, GO is one of the few (to my knowledge) that has this richness of variety in synonym types which ultimately adds to knowledge content and quality. Sure, it is not the most essential aspect of GO, but I like to think that it can help curators if applied thoughtfully throughout.
This said, i agree that this ticket is resolved :-)


Use operartor-sdk to generate csv

/hold
need to test when image is ready.

/hold cancel

/assign pmorie
/assign deads2k

/approve

/lgtm


[FEATURE] Evict graphs from cache when index is closed or delete for indices that are created using NativeEngines990KnnVectorsFormat

Is your feature request related to a problem?
This PR #1946 clears graph from cache whenever index is closed or deleted to save memory. However this works only for indices created using BinaryDocValues. With 2.17. k-NN uses NativeEngines990KnnVectorsFormat, hence, we need similar feature for indices that are created using this new format.
What solution would you like?
Evict graph when index is closed or deleted irrespective of vector format.
What alternatives have you considered?
N/A
Do you have any additional context?
N/A

@0ctopus13prime do you want to pick this task up as part of removing the file watcher dependency from k-NN plugin?

@navneet1v
Hi Navneet! Sorry, I just saw your comment.
And as you know, the related PR was merged for both main and 2.x, I think we can close this out!

Closing out this issue after getting confirmation from @0ctopus13prime


DOCSP-31899 Update docs for Creating an export bucket to s3

Proposed changes
Update docs for Creating an export bucket to s3. Specifically, add link to Atlas docs where we describe how to create and retrieve Cloud Provider role access for Atlas.
Jira ticket: DOCSP-31899
Closes #[issue number]
Checklist

[ ] I have signed the MongoDB CLA
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
[ ] I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
[ ] I have updated test/README.md (if an e2e test has been added)
[ ] I have run make fmt and formatted my code

Further comments

@kanchana-mongodb you need to regenerate the docs


move sigmoid to core fusion

support for sigmoid on multiple backend
sigmoid reference kernels for interpreter backend

@Krovatkin all of points that @aprocter mentioned are addressed

TESTNOW


terminate called after throwing an instance of 'CUDAError'

$ python example.py
Loading checkpoint shards: 100%|██████████████████████████████████████| 2/2 [00:00<00:00, 14.15it/s]
Loading pipeline components...:  57%|██████████████████▊              | 4/7 [00:00<00:00,  6.78it/s]You set add_prefix_space. The tokenizer needs to be converted from the slow tokenizers
Loading pipeline components...: 100%|█████████████████████████████████| 7/7 [00:00<00:00,  9.20it/s]
[2024-11-10 07:05:24.144] [info] Initializing QuantizedFluxModel
[2024-11-10 07:05:24.261] [info] Loading weights from /home/test/.cache/huggingface/hub/models--mit-han-lab--svdquant-models/snapshots/d2a46e82a378ec70e3329a2219ac4331a444a999/svdq-int4-flux.1-schnell.safetensors
[2024-11-10 07:05:24.261] [warning] Unable to pin memory: operation not supported
[2024-11-10 07:05:25.061] [info] Done.
terminate called after throwing an instance of 'CUDAError'
what():  CUDA error: pointer does not correspond to a registered memory region (at /home/knishika/AI2/work/nunchaku/src/Serialization.cpp:32)
Aborted (core dumped)
CUDA Toolkit 12.4, driver is 550-open.

The installation is the same as this.
https://www.reddit.com/r/StableDiffusion/comments/1gmse2o/comment/lw6qaxl/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Hi, please try the latest version and see if it fixes the problem.

it worked! thank you.


Update Date Format to Reflect en-IN Format

Currently, dates in the application are displayed in the en-US format (MM/DD/YYYY). It would be better to:

Change the default date format to en-IN (DD/MM/YYYY).
Bonus: Implement functionality to automatically detect the user's locality (e.g., by using services like ip-api.com or similar) and display dates in the appropriate local format.

Kindly assign this issue to me.
My approach:
By using Intl.DateTimeFormat() :
const localTime = date.toLocaleString('en-US', { timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone });

ok, the implementation looks great and will help us avoid depending on any third party api.
feel free to go ahead and open a PR.


Update comment of template for doc (#14679)

Cherry pick #14679
@fpesce This is purely a doc update for reference at istio.io.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: bianpengyuan
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: kyessenov
If they are not already assigned, you can assign the PR to them by writing /assign @kyessenov in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

mixer/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/lgtm
/approve
On Tue, Jun 11, 2019 at 3:54 PM istio-bot<EMAIL_ADDRESS>wrote:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: bianpengyuan
https://github.com/istio/istio/pull/14722#
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: kyessenov
If they are not already assigned, you can assign the PR to them by writing /assign
@kyessenov in a comment when ready.
The full list of commands accepted by this bot can be found here
https://go.k8s.io/bot-commands.
The pull request process is described here
https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process
Needs approval from an approver in each of these files:

mixer/OWNERS
https://github.com/istio/istio/blob/release-1.2/mixer/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/14722?email_source=notifications&email_token=ACIYRRTKQJW2TIKGO5Q63JTP2AUKLA5CNFSM4HXD7K42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXOXO4Q#issuecomment-501053298,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACIYRRUQPBNLSROGRIXWTWLP2AUKLANCNFSM4HXD7K4Q
.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: bianpengyuan, kyessenov
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

mixer/OWNERS [kyessenov]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@bianpengyuan: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
ab11f4e2bf3e3a93e3b81e00858a822416fe545c
link
/test istio-pilot-multicluster-e2e-release-1.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


p.textWrap(p.CHAR) not working

Expected Behavior
Actual Behavior
TypeError: p.textWrap is not a function
Steps to Reproduce the Problem
use p.textWrap(p.CHAR);
Specifications
I'm fairly sure this is to do with the version of p5 that is being imported - is there a way to check what p5 is being used and to use the most up to date one?

This is very strange...


pickType: PickType.all is not working

Code :
ElevatedButton(
child: Text('openCamera for video and image'),
onPressed: () async {
List? res = await ImagesPicker.openCamera(
pickType: PickType.all,
quality: 0.8,
maxSize: 800,
maxTime: 15,
);
print(res);
if (res != null) {
print(res[0].path);
setState(() {
path = res[0].thumbPath;
});
}
},
),
pickType: PickType.all, is unable to pic image and video together.

        open camera not support all type---- On 星期二, 18 一月 2022 20:14:54 +0800  ***<EMAIL_ADDRESS>wrote ----

Code :    ElevatedButton(
child: Text('openCamera for video and image'),
onPressed: () async {
List? res = await ImagesPicker.openCamera(
pickType: PickType.all,
quality: 0.8,
maxSize: 800,
// cropOpt: CropOption(
//   aspectRatio: CropAspectRatio.wh16x9,
// ),
maxTime: 15,
);
print(res);
if (res != null) {
print(res[0].path);
setState(() {
path = res[0].thumbPath;
});
}
},
),
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

then , why their is an option of all type in code.

        support in ios---- On 星期二, 18 一月 2022 20:37:34 +0800  ***<EMAIL_ADDRESS>wrote ----

then , why their is an option of all type in code.
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: @.***>


GeoLoc always returns PERMISSION_DENIED

Environment

Platforms
Android is only what i'm doing right now
Versions

Android: API 23
iOS:
react-native-geolocation: 1.4.2
react-native: 0.61.5
react: 16.9.0

Description
First of all thank you for this package, currently i am using it and it works perfectly, but then when i integrate this with react-native-geolocation-enabler and when i call the enabler the result of every call from this package always results to PERMISSION_DENIED. I know and i understand that this may not be independently the reason behind the scenes, but how can i get more details from the error? Would there be a way for me to debug this package or get more error info?
Reproducible Demo

Install both package.
Run enabler.
GetLocation
PERMISSION_DENIED

We've encountered this issue before on iOS. On our case, the app's location permission was set to "Never" on the settings. We just have to set it to "Ask next time" and then when we tried it again, it prompted us to grant permission and it worked fine after allowing it. I believe there's a similar setting for Android too.

I will make sure to check this one out, thank you very much for the info!

We've encountered this issue before on iOS. On our case, the app's location permission was set to "Never" on the settings. We just have to set it to "Ask next time" and then when we tried it again, it prompted us to grant permission and it worked fine after allowing it. I believe there's a similar setting for Android too.

I was able to see the issue. Once i have turned on the Location Service, it can't fetch the Loc instantaneously, so i had to set intervals and resolve once fetched.

We've encountered this issue before on iOS. On our case, the app's location permission was set to "Never" on the settings. We just have to set it to "Ask next time" and then when we tried it again, it prompted us to grant permission and it worked fine after allowing it. I believe there's a similar setting for Android too.

I was able to see the issue. Once i have turned on the Location Service, it can't fetch the Loc instantaneously, so i had to set intervals and resolve once fetched.

Can you help me how to set the intervals?

We've encountered this issue before on iOS. On our case, the app's location permission was set to "Never" on the settings. We just have to set it to "Ask next time" and then when we tried it again, it prompted us to grant permission and it worked fine after allowing it. I believe there's a similar setting for Android too.

I was able to see the issue. Once i have turned on the Location Service, it can't fetch the Loc instantaneously, so i had to set intervals and resolve once fetched.

Can you help me how to set the intervals?

Create an interval that requests continuously and clear it once it has succeeded fetching the location.


style: use stylized checkbox instead of icon for indicating completion

User description
…letion

Type
enhancement

Description

Replaced the icon used for indicating todo completion with a stylized checkbox to improve UI consistency and user interaction.
Introduced new styles for the checkbox in both unchecked and checked states, including a custom checkmark design.

Changes walkthrough
Relevant filesEnhancement

todoListUI.jsReplace Completed Icon with Checkbox in Todo Items

js/todoListUI.js
Replaced the completed icon with a stylized checkbox for todo items.  Added input element of type checkbox for indicating todo completion.

+6/-7

styles.cssStyling for New Todo Item Completion Checkbox

css/styles.css
Added styles for the new todo item completion checkbox.  Defined styles for unchecked and checked states, including custom checkmark.

+25/-0

✨ PR-Agent usage:
Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

:tada: This PR is included in version 2.6.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


revise dartdoc integration

tweaks to the UI for the documentation view
update the url we built to work with the new dartdoc

@lukechurch

The build failure looks related to bower getting the polymer components. Investigating...

lgtm


zIndex not working on Android occasionally

Description
The code below has a container <View> and 2 child <View> in it

One Blue <View> with position: 'absolute' and zIndex: 1
One Red <View> with flex: 1

import { View } from 'react-native';

const App = () => (
  <View style={{ flex: 1 }}>
    <View
      style={{
        position: 'absolute',
        zIndex: 1,
        top: 0,
        left: 0,
        right: 0,
        height: 60,
        backgroundColor: 'blue',
      }}
    />

    <View
      style={{
        backgroundColor: 'red',
        flex: 1,
      }}
    />
  </View>
);

export default App;

Assuming zIndex works fine for both IOS and Android, the Blue box should display on top of the Red one. However, on Android the Blue box actually displays behind the Red one (see below).

IOS
Android

Interestingly, if I add some random styles to the container <View>, like backgroundColor: '#fff', then the Blue box actually starts showing on Android somehow.
const App = () => (
  <View style={{ flex: 1, backgroundColor: '#fff' }}>
    ...
  </View>
);

Before
After adding backgroundColor: '#fff' to container <View>

What's even more bizarre is that this is only the issue for React Native CLI Project, the same code above has no zIndex issue on Expo Android, Blue box will always show on top of the Red one.

RN CLI
Expo (see Snack here)

So after noticing all of these inconsistent behaviours above, I just want to confirm if zIndex actually works for React Native Android. And if zIndex are NOT expected to work for Android all the time, should it be mentioned is the React Native docs?
There are some workarounds for this issue, like using elevation or just re-order the code to make sure Blue box is after the Red box in the document tree. But I think it would still be good to know if zIndex on Android is actually an issue.
Version
0.70.6
Output of npx react-native info
System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Pro
    Memory: 356.00 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v16.14.0/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
    Android SDK:
      API Levels: 30, 31, 32
      Build Tools: 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0
      System Images: android-30 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play ARM 64 v8a, android-32 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8193401
    Xcode: 14.1/14B47b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.6 => 0.70.6
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce
See above in Description
Snack, code example, screenshot, or link to a repository
React Native CLI
https://github.com/mk-nickyang/react-native-android-zindex-issue
Expo Snack
https://snack.expo.dev/@lucissa/android-zindex-playground?platform=android

I'm actually facing the same random behavior; did you find any answer to that @mk-nickyang ?

@pierroo  Haven't got an answer from React Native officially. But I just kinda accept this is an issue and will always put the element with higher stack level after the one with lower stack level in the document tree. Like
const App = () => (
  <View style={{ flex: 1 }}>
    // View A
    <View style={{ backgroundColor: 'red',  flex: 1 }} />

    // View B
    // Make sure View B is placed after View A
    <View style={{ position: 'absolute',  zIndex: 1 }} />
  </View>
);

Not gonna lie, this is frustrating; but regardless your answer and reminder really helped me going around it as a fix, thank you @mk-nickyang  :)

In my case placing the component higher or lower in a component tree, adjusting zIndex or elevation doesn't help with the issue. The component is still rendered in the background.
And the problem only occurs when there's a conditionally rendered loader present in a component hierarchy. If it has been rendered at least once, zIndex issue will occur (happens randomly).
Loader itself is an Animated.View with LottieView as its single child.

@Orange9000 Do you happen to use LayoutAnimation from react-native-reanimated? If so, it might also be because react-native-reanimated v2 LayoutAnimation doesn't work very well, they did fix it in v3 tho.

@Orange9000 Do you happen to use LayoutAnimation from react-native-reanimated? If so, it might also be because react-native-reanimated v2 LayoutAnimation doesn't work very well, they did fix it in v3 tho.

I do, but not in the component which has zIndex issues.
I solved my problem above by setting opacity of a loader to 0 when there's no fetching, instead of conditionally rendering it. Dirty solution, but does the job.

Yeah, that's how I found this zIndex issue too in the first place. After triggering reanimated LayoutAnimation, some conditional render component zIndex just goes wrong (similar to https://github.com/software-mansion/react-native-reanimated/issues/3368) and I had to remove the reanimated v2 LayoutAnimation usage to fix it.
I'm still not sure what's causing the issue, looks like it's from reanimated, but RN Android zIndex is also sus, that's why I posted this issue.
Btw, the reanimated team did rewrite the entire LayoutAnimation in v3 recently and looks like the reanimated side issue did get fixed.

I'm having the same problem in a conditional render component, with react native 0.72.7, it seems to be an old issue in react native. The only way to get around it was to follow  @sergioisidoro tip and sett the elevation to a negative number (-2) in the parent view of my conditional render view.
I can't post the component here, but it was something like this:
const App = () => (
  <View style={{ flex: 1 }}>
    <View style={{ backgroundColor: 'red',  flex: 1 , zindex:1, elevtion:-2}} />
     {conditionalRendering &&
        <View style={{ position: 'absolute',  zIndex: 3 }} />
     }
   </View>
);


Merge pull request #1 from ribice/master

update my code

Codecov Report

Merging #56 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #56   +/-   ##
=======================================
  Coverage   99.58%   99.58%
=======================================
  Files          23       23
  Lines         485      485
=======================================
  Hits          483      483
  Misses          1        1
  Partials        1        1

Continue to review full report at Codecov.

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


Integrate with known exploited vulnerabilities catalog

Highlight separately / flag vulnerabilities that are within https://www.cisa.gov/known-exploited-vulnerabilities-catalog

F


Separate drag events

As discussed in revery-ui/revery#833, it makes sense to differentiate between events that carry a file/text/path and those that don't.
This splits dropEvent into dropEvent and dropNotificationEvent. dropNotificationEvent is for when SDL is simply notifying that a drop is about to/has taken place through either DROPBEGIN or DROPCOMPLETE. dropEvent is for when there is information about the actual items being dropped.
This is a very simple change, but I definitely agree with both @glennsl and @bryphe that it improves clarity for these events!

Looks great! Seems to even make the implementation here simpler!
I think you might have gone a bit too hard on the lockfiles though.

Yeah not sure what happened there. That was just the result of me running esy install 🤔. Is there anything you think I should do?

Will publish this once it is in 👍

Sounds good! I'll wait for this to pass CI and then I'll merge it in!

Yeah not sure what happened there. That was just the result of me running esy install thinking. Is there anything you think I should do?

./update-lockfiles.sh usually fixes these kinds of issues

Yeah not sure what happened there. That was just the result of me running esy install thinking. Is there anything you think I should do?

./update-lockfiles.sh usually fixes these kinds of issues

Does that exist here? Using find doesn't turn up anything.

Hmm, I guess it doesn't. There's only one other sandbox here though, so just running esy @js install should do it then.

Hmm, I guess it doesn't. There's only one other sandbox here though, so just running esy @js install should do it then. Hopefully.

No go 😕. The git status after running that is empty 🤔.

Deleting the lock directories and running esy i again also produces the same lockfiles, so I think it's okay..? Not sure what else I would do.

I guess so. Weird. If any dependency had been updated to drop a bunch of dependencies I'd expect esy.lock/index.json to have changed as well.

Published 2.10.3028 👍


Automatically switch to footprint display when fewer images in map area

When only few images are displayed in the map area (at any zoom level), the display could automatically switch from tiles/cells to image footprints. This would normally happen when zooming in to a smaller area or by limiting the number of images displayed through a filter.

@cgiovando Let's push this to a future version as v2 is still focused core functionality.

Closing this in preference to #56. Use that ticket for capturing the goal of showing an alternative way of viewing imagery in an area instead of just the grid.


Parse empty number fields as null

A fix for https://github.com/mbostock/shapefile/issues/31. The property value for a number will become null if the dbf value is an empty string or whitespace. Currently, these values get converted to 0. I added a test as well and they all pass on my end.

This looks good. I changed the expression ever-so-slightly:
return !(value = value.trim()) || isNaN(value = +value) ? null : value;


Figure download button is inconsistent

ALL software version info
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)

Software Version Info
bokeh                     3.4.2              pyhd8ed1ab_0    conda-forge
jupyter-bokeh             4.0.5                    pypi_0    pypi
python                    3.11.9          hb806964_0_cpython    conda-forge
jupyter                   1.0.0             pyhd8ed1ab_10    conda-forge
Linux 4.19.0-26-amd64 #1 SMP Debian 4.19.304-1 (2024-01-09) x86_64 GNU/Linux

Description of expected behavior and the observed behavior
Complete, minimal, self-contained example code that reproduces the issue
The figure download button is inconsistent in the docs for hvplot on this page: https://hvplot.holoviz.org/reference/geopandas/points.html.
On this plot it is missing:

but on this plot lower on the page it is present:

I noticed this because in my own work, the download button is missing from all of my hvplot figures and I would like to have it present. Am I missing something to get it in there, or is this a bug? Thank you!

Thanks for reporting!
If tiles=True, it's actually disabled by default. More info here: https://github.com/holoviz/geoviews/issues/206
However, I'm not sure if it's still valid. You could potentially try adding it back with .opts(default_tools=["save"])

Ok, thank you for your response!


Production deployment documentation

Provide documentation on how to deploy tuna code on to a cloud environment.
Provide examples for k8s.

@bryantc99 Please provide details on how you would like to deploy.

@bryantc99 Please provide details on how you would like to deploy.

To deploy a live webhook that can receive webhook events from the Messenger Platform, your code must be hosted on a public HTTPS server that meets the following requirements:
HTTPS support, Self-signed certificates are not supported
A valid SSL certificate
An open port that accepts GET and POST requests

Link

To deploy a live webhook that can receive webhook events from the Messenger Platform, your code must be hosted on a public HTTPS server that meets the following requirements:
HTTPS support, Self-signed certificates are not supported
A valid SSL certificate
An open port that accepts GET and POST requests

Link


Telemetry DB initialization breaks main.py's init

The db initialization lines in the Telemetry class's init cause main to break on first boot, because the database file which is supposed to live at DB_FILE hasn't been mkdir'ed yet.

Closed by #85


Page won't allow source metadata or feed modification

@dsjen and @cindyloo Whenever I go to individual sources and try to modify their metadata or feeds I get hit with this -->
this appear whenever I try to change metadata from source on any collection:

This bellow appears whenever I try to modify the feed of any source on any location:

Thanks for reporting this! Seems like a pretty essential feature. I'm going to throw it in the high priority queue (let me now if it's not though as things in this queue bump other work).

It high priority thanks Denis!
Sent from my iPhone

On Aug 20, 2020, at 2:42 PM, Dennis Jen<EMAIL_ADDRESS>wrote:

Thanks for reporting this! Seems like a pretty essential feature. I'm going to throw it in the high priority queue (let me now if it's not though as things in this queue bump other work).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Add tu.edu.vn to domains library

@montgomery2000 I am sorry, this university seems to have a different official domain. I have to close this request without merging. Please apply for free educational license with an official document which proves that you are a student. You can do it using "OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students.
Thank you for the understanding!


Pyscript this up for online use?

think this could get working online with a little thing called pyscript?  https://anaconda.cloud/pyscript-python-in-the-browser

I can try

noice, hows it going so far? Is it working?

If you are able to get this running and make a pull request, that would be great, but i will get to it

ok quick question: What are the libraries used here? Is it poetry and selenium only?

hey did you ever get to pyscripting this?

No, I do not know how to use pyscript right now, it might be possible, I do not really know. Running the browser on a docker container is more stable anyway

fair point.


Vite + Vue + TS + Vanilla Extract Error "Couldn't find parent package.json"

Describe the bug
When i try to import MyButton.css.ts into the MyButton.vue component file i get the following error:

Link to reproduction
I've been following the instructions fo Vite as you can see in my example project:
https://github.com/luckyluggi/vanilla-extract-vite
System Info
System:
    OS: Windows 10 10.0.19042
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 4.33 GB / 15.92 GB
  Binaries:
    Node: 14.15.5 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 91.0.4472.124
    Edge: Spartan (44.19041.1023.0), Chromium (91.0.864.67)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    @vanilla-extract/css: ^1.1.0 => 1.1.0
    @vanilla-extract/vite-plugin: ^1.0.0 => 1.0.0
    vite: ^2.4.2 => 2.4.2

Am i missing some configuration?
Thanks!

Oh no i just had to add "name": "something", to my package json file.
The issue could be deleted.


Make the logging levels and message in ServiceLevelAgreementMonitor configurable

Use an IConfigureServiceLevelMonitor interface which provides the details and include a default that defaults to Debug normally and Error when SLA is breached

maybe we could abstract whole logging, so then users could pick up other logging libraries

Done in 2.0.0


Added support to produce output locally of model-levels-to-zarr.py and single-levels-to-zarr.py file.

In response to Issue #30, where it was noted that there was no existing support for producing output locally of model-levels-to-zarr.py and single-levels-to-zarr.py scripts, I have made the necessary modifications to address this limitation.

Hello, @alxmrs, I'm happy to share that it performs flawlessly when tested in a local environment.


feat: add dynamic attributes to lwc:dynamic

:point_right:  Rendered

Closing this in favor of #52


Update cognitive-services-development-options.md

Fix typos and update the content as per Microsoft Writing Style Guide

@pallabiwrites : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@erhopf Could you take a look at the pull request? Azure Cognitive Services is the name of an Azure service, so references to the service should be singular (Azure Cognitive Services is a . . .). Would it be accurate to refer to a collection of items that are available in Azure Cognitive Services in the plural (Cognitive Services are services that . . .)?
Thanks.

Approve as is.

@erhopf Could you take a look at the pull request? Azure Cognitive Services is the name of an Azure service, so references to the service should be singular (Azure Cognitive Services is a . . .). Would it be accurate to refer to a collection of items that are available in Azure Cognitive Services in the plural (Cognitive Services are services that . . .)?
Thanks.

I get it, this is one of those things where we (MS) have a product name that doesn't really mesh well with the way we speak, so it reads weird while being correct. I won't block on this.

Thanks!


Sort out element resolution so it plays well with migrations.

This follows on from: https://github.com/sageserpent-open/kineticMerge/issues/90#issuecomment-2468497451 ...

Another gotcha lurking in the wings as how coincident insertions / edits are dealt with - resolution is applied on the fly in a desparate attempt to conform to MergeResult wanting to have sequences of plain elements in it. There is no way of representing two or three elements in unresolved form in the merge result, and I'm starting to think this would be much better when #41 is worked on, because that won't just choose a section when resolving them, it will synthesize one to pick up the whitespace adjustment.

This also turns up in: https://github.com/sageserpent-open/kineticMerge/issues/83#issuecomment-2509670965

Something slightly disquieting is that resolution is performed early in the second-pass merge for preservations, coincident insertions and coincident edits - but the logic for building anchored runs looks at the original files prior to any resolution.

What's needed here is to take out resolution from the core merge algebra furnished by MergeResult and from the move evaluation logic in MoveDestinationsReport.evaluateSpeculativeSourcesAndDestinations, so it can be applied downstream after the migrations have been performed (for both migrated changes and migrated splices).
Changing MergeResult so that it contains indexed sequences of a type that represents either a single element, a coincident pair of elements or a preserved triple of elements would allow resolution to be applied later on, but also allow migrations to work with the original elements.

I've just realised: the substitutions are applied after splice migration, so the existing code should be OK for the most part.
Granted, the splitting of resolution between early application in CoreMergeAlgebra and the computation of substitutions for pure moves in MoveDestinationsReport.evaluateSpeculativeSourcesAndDestinations is hokey.
There is a potential bug lurking in that a coincident move is resolved twice - once as a two-way resolution in the core merge algebra and again as a three-way resolution when evaluating the moves, so it is possible that the subsitution doesn't match what the two-way resolution produced. Oops.

Did the clumsy and fragile workaround on 34a0ff8b1d77a42146f193d264b1df80dd8b6238.
There is WIP on 7e65456c3b03bf2c06e9ce18e3cb6e18188233ea, tryign to do things in a more principled manner, but this is already coming off the rails, so let's get something in the bag...

An idea for later - cut over the change migration subsitutions so that they take unresolved elements as keys - so a coincident insertion or edit made by the initial merge can be substituted with a preservation representing a pure move detected by the move evaluation.
I'm uneasy about how forwarded edits work, where we see double-substitutions...


Initial commit of Jax Vision.

Not doing any more work haha

Marking
Good Practice (Design/Commenting, TF/Torch Usage)
Adequate design and implementation
Good spacing and comments
Header blocks missing
Recognition Problem
Solves problem -4 no project on ResNet!
Driver Script present
File structure present
Shows Usage & Demo & Visualisation & Data usage -2
Module present
Commenting
No Data leakage
Difficulty: Easy -10
Commit Log
Meaningful commit messages -1
Progressive commits used -1
Documentation
ReadMe missing -1
Model/technical explanation -1
Good Description and Comments
Markdown used and PDF submitted -2
Pull Request
Successful Pull Request (Working Algorithm Delivered on Time in Correct Branch)
No Feedback required -2
Request Description missing -1


DynamoDb HTTP ERROR

Hello,
Thanks for this great library, I am trying to set it up with DynamoDb. I already have a table and I am trying to configure a Phoenix app to query it. I am pretty new to Elixir/Phoenix and I am sure this is likely a noob issue :).
When I execute my query:
alias ExAws.Dynamo
query = Dynamo.query("some table",
KeyConditionExpression: "id = :id AND start_time = :time",
ExpressionAttributeValues: %{":id" => %{"N" => 7}, ":time" => %{"N" =><PHONE_NUMBER>}})
ExAws.request query

I am getting an error:
[warn] ExAws: HTTP ERROR: {:noproc, {:gen_server, :call, [:hackney_manager, {:new_request, #PID<0.262.0>, #Reference<<IP_ADDRESS>>, {:client, :undefined, {:metrics_ng, :metrics_dummy}, :hackney_tcp_transport, 'dynamodb.us-east-1.amazonaws.com', 80, "dynamodb.us-east-1.amazonaws.com", [recv_timeout: 30000, recv_timeout: 30000], nil, nil, nil, true, :hackney_pool, 30000, false, 5, false, 5, nil, nil, nil, :undefined, :start, nil, :normal, false, false, false, :undefined, false, nil, :waiting, nil, 4096, "", [], :undefined, nil, nil, nil, nil, :undefined, ...}}, :infinity]}}

I have this in my dev.exs file:
config :ex_aws,
  access_key_id: "A...",
  secret_access_key: "i+...",
  region: "us-east-1"

config :ex_aws, :dynamodb,
  scheme: "https://",
  region: "us-east-1"

Any help is appreciated.
Cory

Hey there!
You need to add :httpoison to your list of applications in your mix.exs file. HTTPoison relies on :hackney, which starts a pool of processed used to make HTTP requests. If you try to make a request without that application already started, you get that error.
I do believe the applications list is mentioned in the readme.
Feel free to create an issue for any further issues you run into!

Thanks that worked! Sorry I missed that in the docs.


Update request: scribus 1.5.8 → 1.6.0

Package name: scribus
Latest released version: 1.6.0
Current version on the unstable channel: 1.5.8
Current version on the stable/release channel: 1.4.8
[X] Checked the nixpkgs pull requests

Notify maintainers
@erictapen
@Kiwi
https://sourceforge.net/projects/scribus/files/scribus/1.6.0/

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

The version on the stable channel is also 1.5.8, 1.4 existed only on the old NixOS 23.05 release and got removed since.


multi rip

Hello, I'm looking to find a way to get this to rip multiple disks at one time. any thoughts? or should this work already? I'm running the docker on an unraid server. I tried running two docker containers but I was unsuccessful. I changed the values to be  /dev/sr1 and /dev/sr2 respectively.  in separate containers but it did not work for me what would have to happen to make this work?

Read the readme on how to do this