Edge queue runs out of edges

So I'm trying to use MeshCNN on some quite large meshes, around ~10000 faces, ~16000 edges. When running the train script however, I get the following error:
File "C:\MeshCNN\models\layers\mesh_pool.py", line 50, in __pool_main
    value, edge_id = heappop(queue)
IndexError: index out of range

It seems that the queue of edges runs out of edges before it has reached the number of edges required by the pool_res argument? Is this correct?
I'm also guessing this is happening because __pool_edge in the same file returns false for too many of the edges in my mesh.
Does anyone have any idea how I might rectify this? Is there a way to make sure that the queue does not run out of edges so that I can continue removing edges, regardless of how many edges I started with?

Hi @SorteKanin ,
Thanks for letting me know. So first of all, may I ask, are you trying to learn classification or segmentation?
So currently the default configuration collapses the input mesh to 180 edges for classification and 600 for segmentation. If you have 16k edges, you should increase this. You can do so by changing the --pool_res flag. Instead of passing
--pool_res 600 450 300 180
try passing:
--pool_res 15000 14000 12000 10000
for example.
The number of edges you can collapse is related to a few things:
first, we do not collapse any edges near the boundaries, but we could have (following this issue, I checked how to do it but didn't test it out fully yet). So if you have a lot of boundaries it can prevent simplification to a small number.
Also, meshes with a high genus (topological "holes") cannot be simplified past a certain amount (mathematically speaking).
In general, another tip I suggest is to simplify the meshes beforehand, to make the network capacity smaller (sort of like resizing images). If you don't have scripts to do that, I hope to add them here soon, but it will take me another couple weeks or so.

Hi @ranahanocka, I got the same issue trying to use MeshCNN as classifier, over a dataset where the meshes have different number of faces (and therefore of edges) over the different classes. Even if I avoided this error, it is still failing. So I was wandering if could be possible to run the classification in this case? Differences between the meshes are very big (something like 10k faces in a certain class, while 300 faces in another one).  Is it possible?
Thank you so much in advance.

Hi @SaraCasti ,
Thanks for letting me know. It seems a bit odd to me to have a network which works on 10k and 300 faces, but I didn't try it, and maybe it can work.
The first option is to process the data: add some more faces to the small resolution meshes, and simplify the larger ones, and get the shapes to be roughly the same size (or at least in a closer range). I recommend this route (at least, I expect this approach to work well).
The second option is leaving your meshes as is, and trying to modify the hyper-params of meshCNN to get it to work with your data. Note that 300 faces is 450 edges (if there are no boundaries), and 10k faces is 15k edges. So the current default --pool_res 600 450 300 210 is probably way too aggressive.  If you take this approach, you should modify the --pool_res  flag, first check  what the smallest number of edges the network can collapse your data to. Let's say the smallest number you can collapse to is 300 edges across all meshes, so in that case I would suggest a lot of pooling layers, --pool_res 9000 6000 3000 600 300 .
This route seems slow , and inefficient, but I am curious to know if it works !
Let me know how it goes :)

Also, make sure you modify --ninput_edges flag to be the max number of input edges. If it is 15k edges, so --ninput_edges 15000

Hello
I tested your code for classificaton I had the same problems, I corrected them as you said but I had another type error:
File "MeshCNN/models/layers/mesh_pool.py", line 181, in __remove_triplete
assert(len(vertex) == 1)
AssertionError
I want to inform you that I use models (ShapeNet) with about: 43554 vertices, 87218 faces (manifold models) and 1530 vertices and 3240 faces (simplified)
can someone help me plz

Hi @sana-aroua ,
Thanks for letting me know.
In general, ShapeNet is not manifold. This assertion is failing because of a non-manifold geometry. You can open your model in meshlab, then check Render>show non-manifold edges and also Render>show non-manifold vertices , and it will show you all the bad geometry. Here's a random shapenet model (yes the whole thing is non-manifold so it is show in pink...)

I mentioned that I would like to find some time to clean & run shapenet in  this issue, but I have been busy and still didn't find the time to try it yet, I hope I can find some time to try it soon.

thank you for your quick response.
I inform you that the information given above are information after testing the manifold code and mesh simplification and the error displayed is after the correction (so I test on manifold mesh )
any idea plz

I see, thanks for the screenshot.
[Maybe the issue is a very small connected component. How did you make this model manifold? Is it with this code? If so, when I tried that, there were like "floating pyramids" and currently the code doesn't handle that, so you should remove them.
Try this Filters > Cleaning & Repairing > Remove Isolated pieces w.r.t face num:

and see if it removes pieces. If it does remove the pieces, then try to re-run the code

hi @ranahanocka
I did as you advised me
and I had this error
if min(dihedral[edges]) > 2.65:
ValueError: min() arg is an empty sequence
this can be due to points that are not connected to the mesh ?
help plz
thanks

Hi @sana-aroua ,
That is weird. First of all, please delete the meshes in the cache folder (or simply rename the mesh) and re-try. If that still doesn't work try increasing the minimum connected component size in meshlab (and delete the cache again), and try running the MeshCNN code again. If that still doesn't work, let me know and attach the mesh here and I'll take a look
-Rana

Hi
test.zip
Thanks for your help .
I put the object in attachments

I managed to repair the meshes I had using https://github.com/davidstutz/mesh-fusion. With this solution, there is still a possibility that the meshes have a some unconnected component. To solve that issue, I simply ran meshlabserver with a script that used Remove Isolated pieces w.r.t face num

Hi @SorteKanin, @SaraCasti,
Were you able to solve this error?
I am also getting the same error, it would be helpful to know the steps you have taken to solve it.

I never solved it - only used workarounds, like what ranahanocka suggested above or by simply decimating the model files I was using to be less big.
Ultimately I moved away from this approach entirely, so sorry, I have no solution.

For other ones' reference, let me share my experience.
I encountered the same problem of "index out of range" while heappop. It seems that the problem is not because the non-manifoldnesss and small components in the input mesh. I carefully checked about them.
Instead, the problem seems to be because that the edge pooling makes the input mesh non-manifold (or turn to include other unexpected edge connectivity). Since the edge pooling depends on the edge features and they seems rather random particularly when the training just started.
Although I did not find any solution for that, we may need to make the network to give a sort of "uniform" features at the initial state and to train the network to slowly adapt to give the purpose-specific features.


sass-embedded is not supported on all platforms

Since 3.0.0 this plugin switched to sass-embedded it now relies on binaries to be available for all platforms. We also build for s390x and aarch64 (and likely ppc64) for which sass-embedded does not distribute binaries.
Would it be possible to maybe allow for either sass or sass-embedded to be a dependency of esbuild-sass-plugin. Looking at sass-loader and vite. This seems to be something npm can support.
I'm happy to write a patch to make this happen.

I am looking into trying and providing both sass as default to work on any platform and leave sass-embedded as an option
...thank you for spotting this shortcoming! It sucks indeed

please let me know how it goes with v3.1.0

@glromeo Thanks a lot! It works very well indeed, ARM builds are happy again.


Refactor details

@andreadelrio if you could give this (fairly large) refactoring a look, I'd appreciate it.  May be easier to just look at it on disk, as the diff is pretty messy.

Note: I've tried to add all of the properties we have for cases, methods and orgs -- so that's definitely not just a refactoring.


Compilation iisue

Hi, thanks for contributing!
This project is maintained in my spare time, so in order to help me address your issue as quickly as
possible, please provide as much of the following information as you can.
-- Michael
=======
Angular 2 version:
ng2-pagination version:
Description of issue:
Steps to reproduce:
Expected result:
Actual result:
Demo: (if possible, edit this Plunker demo and paste the link to your fork)
Any relevant code:
http://prntscr.com/d20io1

Hi,
I'm sorry, this is an incomplete issue. There is no description other than a screenshot with no context. I'm closing this now, but if you are able to add more context (i.e. actually fill out the prompts in the issue template), I can take another look.

Hi,
I just import the ng2-pagination in my module and compiled it and it returned that syntax error

Sounds like you might have run into an issue with TypeScript version support. See https://github.com/michaelbromley/ng2-pagination/issues/81
Basically there is an error if you are not yet using TypeScript 2.0+, but I am actually working on fixing that right now.


Updated Copyright year from 2018 to 2019 in README.md

Updated Copyright year from 2018 to 2019

LGTM


'Int128' is not a type identifier

How to use complex types
I want to use C++ BOOST library boost::multiprecision, which provides types such as int128_t, int256_t, I would like to know if cython supports using these types, and if so how to use them?
# Num128.h
#include <boost/multiprecision/cpp_int.hpp>

// typedef boost::multiprecision::int128_t Int128;
using Int128 = boost::multiprecision::int128_t;

namespace multiprecision {
class Num128 {
  public:
    Int128 value;
    Num128(Int128 v) : value(v){};
    ~Num128(){};
    Num128 add(Num128 other) { return Num128(this->value + other.value); };
};
}

# Num128.pxd
cdef extern from "Num128.h" namespace "multiprecision":
    # FIXME: HOW TO DEFINE `Int128` HERE?
    cdef cppclass Num128:
        Int128 value
        Num128(Int128 v)
        Num128 add(Num128 other)

# cython: language_level=3
# distutils: language=c++
# distutils: sources =
# distutils: include_dirs = .

import cython
from cython.cimports.Num128 import Num128, Int128

@cython.cclass
class pyNum128:
    ...

from setuptools import Extension, setup
from Cython.Build import cythonize

setup(
    ext_modules=cythonize(
        [Extension("mp", sources=["pynum128.pyx"], language="c++")]
    )
)

python setup.py build_ext --inplace

running the build command produces the following error:
    cdef cppclass Num128:
        Int128 value
        ^
------------------------------------------------------------

Num128.pxd:17:8: 'Int128' is not a type identifier

Please ask support questions on the cython-user's mailing list rather than the bug tracker (you were told this multiple times when you posted this issue).
You can probably just declare the types as int (making the exact type match isn't hugely important to extern cdefs)
cdef extern from "<something>":
    ctypedef int int128_t
    # ...

Please ask any follow up questions on the mailing list.


Usage and Examples for OCO_OPENAI_BASE_PATH

Description
While setting up OpenCommit, I'm experiencing issues with the OCO_OPENAI_BASE_PATH configuration. I've set it to https://api.xxx.xxx/v1/ and provided the API key, but it's not working as expected.
Suggested Solution
Can you provide some specific examples of how to correctly use OCO_OPENAI_BASE_PATH, especially when using a custom API endpoint?
Are there any additional steps or configurations needed when using a custom API endpoint instead of the default OpenAI one?
Alternatives
No response
Additional Context
No response

lets start with what do you mean by not working as expected?

@jeromeleong :)

we need to make OCO_OPENAI_BASE_PATH and OCO_FLOWISE_API_URL and all variables solving the same thing (path to an endpoint) — be one variable OCO_API_URL
if smdb introduces a PR before me — please refer to this ticket and add a README docs on how to use the OCO_API_URL. It's used on Flowise and Ollama engines, and also in openAi engine and Azure too

there are now many similar configs which should be refactored to a single one, e.g.:
OCO_OPENAI_BASE_PATH
OCO_GEMINI_BASE_PATH
OCO_API_URL
OCO_OLLAMA_API_URL
OCO_FLOWISE_ENDPOINT
they should all be a single config key, we'll keep the OCO_API_URL instead of all the others. I'm renaming the ticket to serve this purpose. We will also add docs to readme. @matscube wdyt?

done
update the latest version just merged https://github.com/di-sukharev/opencommit/pull/412
run npm i -g opencommit@latest


TrainTestData Method Does not exist

I am recording my ML journey and I am on Linux Mint trying to follow along, I can not compile this.
TrainTestData does not seem to be a method of TrainCatalogBase anymore.
Checking the resources it shows a 404 on this
https://docs.microsoft.com/en-us/dotnet/api/microsoft.ml.traincatalogbase.traintestdata Does not exist

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

ID: c8e22825-c4ee-5a36-f911-8ad456970ecc
Version Independent ID: ad0bf640-7dfc-1184-077c-358bb14277a7
Content: Use ML.NET in a sentiment analysis binary classification scenario
Content Source: docs/machine-learning/tutorials/sentiment-analysis.md
Product: dotnet-ml
GitHub Login: @JRAlexander
Microsoft Alias: johalex

Hi, @jstillings1! We are in the process of updating the tutorials for 1.0.0 preview. In the meantime, TrainTestData is now in DataOperationsCatalog: https://docs.microsoft.com/en-us/dotnet/api/microsoft.ml.dataoperationscatalog.traintestdata?view=ml-dotnet. We apologize for the delay! Please let me know if you have any other questions. Thanks!

The code sample here may be helpful as well: https://docs.microsoft.com/en-us/dotnet/api/microsoft.ml.dataoperationscatalog.traintestsplit?view=ml-dotnet#Microsoft_ML_DataOperationsCatalog_TrainTestSplit_Microsoft_ML_IDataView_System_Double_System_String_System_Nullable_System_Int32__

Closing as I believe this is resolved. @jstillings1 please let us know if that is not the case. The tutorial should be updated in a few days.

Thanks John I got caught up with today's projects and left ya hanging. I am sure this fixes it.
Email me at<EMAIL_ADDRESS>Phone is still down...

From: John Alexander<EMAIL_ADDRESS>Sent: Monday, April 15, 2019 1:55:27 PM
To: dotnet/docs
Cc: Jeremiah Stillings; Mention
Subject: Re: [dotnet/docs] TrainTestData Method Does not exist (#11799)
Closing as I believe this is resolved. @jstillings1https://github.com/jstillings1 please let us know if that is not the case. The tutorial should be updated in a few days.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/docs/issues/11799#issuecomment-483374571, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Acl4hFf_d2wVFau1rXbxW7ah_pc3dV8Bks5vhMsfgaJpZM4crI2Z.


Mobile TabContainer with top positioned switcher leaves empty space

There is an empty space at the bottom of the content due to this rule:
https://github.com/xh/hoist-react/blob/develop/mobile/cmp/tab/impl/Tabs.scss#L54
See if we need to conditionally apply the rule only for bottom switchers, or if we can remove the rule entirely

See PR: https://github.com/xh/hoist-react/pull/3874


Support for Yew

I wanted to try deploying a yew app with shuttle. I set up what I thought would be the natural minimum setup to deploy the yew app on top of an axum backend, but when I deploy it doesn't show up :/ Would someone be able to help me get the basic example working, and then I can add it to the examples for the repo?
https://github.com/bcpeinhardt/yewaxumshuttle

Hello again Benjamin! While it is planned, serving static assets isn't supported yet. For reference, here is a thread about this on our discord: https://discord.com/channels/803236282088161321/1020834755035545600. Lately we've been focusing on improving stability and security, but as we get back to adding features this will be high on the list.

Thank you!

@bcpeinhardt probably you already saw it but just in case: Axum static files example.

I didn't but this is awesome, thank you!!!!

you're welcome! I guess you could close the issue.

Haha I guess I could!


Update azuread-join-sso.md

document restrictions in name type agrred with Steve Syfuhs (CIA<EMAIL_ADDRESS>per:
Here’s the referred bug: Bug 35222500: Runas /netonly with domain\user syntax run from LocalSystem fails with error 1348 ERROR_BAD_VALIDATION_CLASS on AADJ only device - Boards (visualstudio.com). Tl;dr; AADJ devices don’t support NETBIOS\username syntax for things like runas and we aren’t inclined to fix it because NETBIOS.

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

#label:"aq-pr-triaged"

Thanks @HerbertMauerer!


chore: add babel+ts

Overview
TL;DR
Add babel + ts
Cool Spaceship Picture

Are we sure we want test to be inside src ? Obviously this is also a matter of whether we want our tests to be transpiled as well or not.
Yeah I was wondering the same. I think we want them transpiled
I could add something like that:
"include": ["./src/**/*", "./test/**/*"]

Do we have to make bin/embark => bin/embark.js|ts ? Or can we keep it a normal text file without extension?

A normal file is with extension for me :)
I feel it is always better to keep extension, you know what to expect
For end user it won't be different they will still type embark

Okay. Another thing to keep in mind is that if we want to run this we no longer do ./bin/embark run but ./dist/bin/embark.js can we put this in the commit message as well?

See https://github.com/embark-framework/embark/pull/1055.

Closing in favor of #1055.


Sync uncharted-distil

The version used in D3M (per primitive annotations) is only in the uncharted-distil fork. This merges that in.
If you could also publish the updated version on PyPI that would be great!

@davesullivan41 @NewKnowledge would it be possible to have this released on PyPI (for example as 3.0.1)?

@remram44 just to confirm you need this PR merged? I can also look into publishing on PyPi

Hi @amably,
That would be good, in the meantime I have published it as punkML from our fork at datadrivendiscovery/contrib/ (diff)


Anyway to save the text file I edited

Anyway to save the text file I edited? because i tried to edit the file I imported in. However when I tried to modify it and save, the text extracted is the original text file instead the modified version.

Not at the moment no. The two different texts in the Scintilla controls have already been modified to indicate the changes so the changed text would also contain these place holder characters, etc. Accessing the text should be quite easy though, something like:
/// <summary>
/// Gets the modified text on the left <see cref="Scintilla"/> scintilla control.
/// </summary>
/// <value>The modified text left <see cref="Scintilla"/> scintilla control.</value>
public string ModifiedTextLeft => scintillaOne.Text;

In the ScintillaDiff\ScintillaDiffControl.cs file...

alright. How about to get text for the particular line. Example I want to get the whole text of line 2 to move from left scintilla to right scintilla?

I don't think implementing such feature would be worth the trouble. The Scintilla.Lines collection is "virtual" and read-only because one doesn't know the line endings used in a particular text. You can't really assign anything to the lines collection. I.e. the following would lead to an error: scintilla.Lines[0].Text = "abcd"; Also the line's Text property contains the line ending making this to set an identical value to Scintilla's Text: scintilla.Text = string.Concat(scintilla.Lines.Select(f => f.Text));. Sorry...


Incorrect GVK reported by kubectl for VolumeClasses

When using kubectl get volumeclass -A -o yaml, the GVK reported are incorrect. For example, on a fresh, default install of Acorn, running the given command will produce output with ClusterVolumeClassInstance in the internal.admin.acorn.io group.
These objects should have kind VolumeClass in the api.acorn.io group.
Thanks to @njhale for reporting this.

Tested with acorn version v0.6.0-41-g7d82bde4+7d82bde4
volumeClasses get reported with  kind: VolumeClass and apiVersion: api.acorn.io/v1
% kubectl get volumeclass -A -o yaml
apiVersion: v1
items:
- apiVersion: api.acorn.io/v1
  default: true
  description: Acorn-generated volume class representing the storage class local-path
  kind: VolumeClass


Way to autoFocus non-tabbable element in a FocusScope

🙋 Feature Request
It would be great to have a way to use autoFocus in combination with non-tabbable (but focusable) element
🤔 Expected Behavior
Allow for autofocusing element with tabIndex={-1}
😯 Current Behavior
Only tabbable elements can be autoFocused now:
https://github.com/adobe-private/react-spectrum-https://github.com/adobe-private/react-spectrum-v3/blob/d126789d5fac8d7196c30ab4e0507efc05e1380f/packages/%40react-aria/focus/src/FocusScope.tsx#L302-L303
💁 Possible Solution
As tabIndex={-1} elements are not included in tab sequence and there might be many arbitrary elements with tabIndex={-1} set on them I don't believe having a way to autoFocus "first" of those would be a good solution.
What I was thinking is to provide a specialized wrapper component - something like <AutoFocus/> that could register the intention of focusing a particular element (or rather - first within that subtree?). A good thing about such a solution would be the ability to autoFocus arbitrary element which also might be sometimes desirable and it would be possible to customize it with tabbables prop - so it could only include tabbables or all focusables within it.
I'm not sure yet about the exact API of such <AutoFocus/> - there are definitely few ways you could go with this:

rendering sentinels like for the FocusScope itself
cloneElement
use a hook instead of a component that would accept a ref within which the search should be performed
possibly something else

I would happily help you implement this if only we can agree that this would be a nice addition and we figure out the dream API for this.
🔦 Context
Sometimes it is advisable to autofocus such elements, according to https://w3c.github.io/aria-practices/#keyboard-interaction-7 :

"Unless a condition where doing otherwise is advisable, focus is initially set on the first focusable element." (and this might not be first tabbable)
"If content is large enough that focusing the first interactive element could cause the beginning of content to scroll out of view, it is advisable to add tabindex=-1 to a static element at the top of the dialog, such as the dialog title or first paragraph, and initially focus that element."

🧢 Your Company/Team
External, non-Adobe 😉

This seems like a reasonable feature. We generally support autoFocus as a prop on many components, so to auto focus a specific element you could use that prop directly on the element you want of focus. But to auto focus the first "focusable" as opposed to "tabbable" element within a scope seems useful.
Perhaps we could have the autoFocus prop accept a value like autoFocus="focusable" or autoFocus="tabbable"? Maybe not the greatest API though...

What I was thinking is to provide a specialized wrapper component - something like <AutoFocus/>

This would be fairly easy to build using useFocusManager:
function AutoFocus({children, tabbable}) {
  let focusManager = useFocusManager();
  useEffect(() => {
    // focuses the first element if none already focused
    // perhaps we can also add `focusFirst` and `focusLast` methods
    focusManager.focusNext({tabbable});
  }, []);

  return children;
}

<FocusScope>
  <AutoFocus>
    {/* children */}
  </AutoFocus>
</FocusScope>

What do you think?

We generally support autoFocus as a prop on many components, so to auto focus a specific element you could use that prop directly on the element you want of focus.

I guess this makes a lot of sense. It's actually super easy to implement a helper hook for this. My initial thoughts were that using a component-based API would be simpler to use as it maybe wouldn't require creating a ref to an element manually, OTOH such API would be more magical in its implementation so maybe I have just overthought this as a simple hooks API is a way to go?

Perhaps we could have the autoFocus prop accept a value like autoFocus="focusable" or autoFocus="tabbable"? Maybe not the greatest API though...

This was one of the possibilities that I was thinking about but later concluded that maybe focusing a focusable should just require a more targeted approach at all times as those cases are way less common.

This would be fairly easy to build using useFocusManager:

If this AutoFocus should target the whole FocusScope - yes, this seems nifty. Wrapping just a part of a subtree would require some more effort, but maybe this use case is too convoluted to include it in the core library anyway?

as a simple hooks API is a way to go?

We have the useFocusable hook to handle this for most of our components that support being focused. It supports autoFocus along with passing through focus and keyboard events, and tabIndex.
https://github.com/adobe-private/react-spectrum-v3/blob/6c487fd9af6955d0e042daa1cf867764beb41e0e/packages/%40react-aria/focus/src/useFocusable.ts#L22

Wrapping just a part of a subtree would require some more effort

FocusScope can be nested, so you could nest the part you wanted to auto focus in another scope. That could make sense to auto focus an unknown child element, but if it's a specific known element then I guess using the autoFocus prop through useFocusable or a ref with a focus() call would be easy enough.

This would be fairly easy to build using useFocusManager

If I understand correctly this wouldn't "scope" the autofocus to its children and actually it would be hard to achieve this without introducing an additional DOM element.
Anyway - after some additional thinking, I came to the conclusion that using useFocusable is totally fine. A little bit verbose, but at least robust & flexible.
Feel free to close this issue if you want.

Cool. Thanks for the considerations. We can always re-open if this comes up again.


UnicodeEncodeError in download_package: creates 0-byte cached file

I have run pip-compile (from the future branch), and it failed on the dj-database-url package when writing the file contents.

The problem appears to be that pip's get_file_content returns a unicode string.
If have tried encoding it as utf-8, but that results in an invalid/broken zip/whl file.
===> Resolving full tree
- Finding best package matching ['dj-database-url']
    PIP said: Getting page https://pypi.python.org/simple/dj-database-url/
    PIP said: URLs to search for versions for dj-database-url:
    PIP said: * https://pypi.python.org/simple/dj-database-url/
    PIP said: Analyzing links from page https://pypi.python.org/simple/dj-database-url/
    PIP said:   Found link https://pypi.python.org/packages/2.7/d/dj-database-url/dj_database_url-0.3.0-py2.py3-none-any.whl#md5=58211401b11c49ba27deca8183c3061d (from https://pypi.python.org/simple/dj-database-url/), version: 0.3.0
    PIP said:   Found link https://pypi.python.org/packages/source/d/dj-database-url/dj-database-url-0.1.2.tar.gz#md5=8b285dba950c9ca6e3f6082be64b2faf (from https://pypi.python.org/simple/dj-database-url/), version: 0.1.2
    PIP said:   Found link https://pypi.python.org/packages/source/d/dj-database-url/dj-database-url-0.1.3.tar.gz#md5=175111400fee7c1f6ce4a4829c8b26ee (from https://pypi.python.org/simple/dj-database-url/), version: 0.1.3
    PIP said:   Found link https://pypi.python.org/packages/source/d/dj-database-url/dj-database-url-0.1.4.tar.gz#md5=ee1f46a6b0ca3329e6701b5578b2aee6 (from https://pypi.python.org/simple/dj-database-url/), version: 0.1.4
    PIP said:   Found link https://pypi.python.org/packages/source/d/dj-database-url/dj-database-url-0.2.0.tar.gz#md5=faaf1e1f06f738f72ef964696c46e379 (from https://pypi.python.org/simple/dj-database-url/), version: 0.2.0
    PIP said:   Found link https://pypi.python.org/packages/source/d/dj-database-url/dj-database-url-0.2.1.tar.gz#md5=63ad283bb5931e8d3842e5b9edd7a1fd (from https://pypi.python.org/simple/dj-database-url/), version: 0.2.1
    PIP said:   Found link https://pypi.python.org/packages/source/d/dj-database-url/dj-database-url-0.2.2.tar.gz#md5=ca96735f7e068a3e3414d3167122f927 (from https://pypi.python.org/simple/dj-database-url/), version: 0.2.2
    PIP said:   Found link https://pypi.python.org/packages/source/d/dj-database-url/dj-database-url-0.3.0.tar.gz#md5=28f89d403b565ee62dc25582852ae241 (from https://pypi.python.org/simple/dj-database-url/), version: 0.3.0
    PIP said:   Skipping link http://www.12factor.net/backing-services (from https://pypi.python.org/simple/dj-database-url/); not a file
    PIP said: Using version 0.3.0 (newest of versions: 0.3.0, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.4, 0.1.3, 0.1.2)
  Found best match: 0.3.0 (from PyPI)
- Getting dependencies for dj-database-url-0.3.0
    - Getting package location for dj-database-url==0.3.0
          Archive cache miss, downloading dj_database_url-0.3.0-py2.py3-none-any.whl...
        - Downloading package from https://pypi.python.org/packages/2.7/d/dj-database-url/dj_database_url-0.3.0-py2.py3-none-any.whl
Traceback (most recent call last):
  File "venv/bin/pip-compile", line 182, in <module>
    main()
  File "venv/bin/pip-compile", line 173, in main
    compile_specs(src_files, include_sources=args.include_sources, dry_run=args.dry_run)
  File "venv/bin/pip-compile", line 120, in compile_specs
    pinned_spec_set = resolver.resolve()
  File "venv/local/lib/python2.7/site-packages/piptools/resolver.py", line 44, in resolve
    if not self.resolve_one_round():
  File "venv/local/lib/python2.7/site-packages/piptools/resolver.py", line 28, in resolve_one_round
    new_deps = self.find_new_dependencies()
  File "venv/local/lib/python2.7/site-packages/piptools/resolver.py", line 91, in find_new_dependencies
    all_deps = self.find_all_dependencies()
  File "venv/local/lib/python2.7/site-packages/piptools/resolver.py", line 74, in find_all_dependencies
    pkg_deps = pkgmgr.get_dependencies(spec.pin(version))
  File "venv/local/lib/python2.7/site-packages/piptools/package_manager.py", line 336, in get_dependencies
    path = self.get_or_download_package(pinned_spec)
  File "venv/local/lib/python2.7/site-packages/piptools/package_manager.py", line 377, in get_or_download_package
    self.download_package(link, fullpath)
  File "venv/local/lib/python2.7/site-packages/piptools/package_manager.py", line 417, in download_package
    f.write(content)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd3' in position 10: ordinal not in range(128)

This error then caused an empty cache file to be created, which pip-compile also does not handle gracefully (e.g. by re-downloading it):
$ echo dj-database-url > test.in
$ pip-compile test.in
Traceback (most recent call last):
File "venv/bin/pip-compile", line 182, in
main()
File "venv/bin/pip-compile", line 173, in main
compile_specs(src_files, include_sources=args.include_sources, dry_run=args.dry_run)
File "venv/bin/pip-compile", line 120, in compile_specs
pinned_spec_set = resolver.resolve()
File "venv/local/lib/python2.7/site-packages/piptools/resolver.py", line 44, in resolve
if not self.resolve_one_round():
File "venv/local/lib/python2.7/site-packages/piptools/resolver.py", line 28, in resolve_one_round
new_deps = self.find_new_dependencies()
File "venv/local/lib/python2.7/site-packages/piptools/resolver.py", line 91, in find_new_dependencies
all_deps = self.find_all_dependencies()
File "venv/local/lib/python2.7/site-packages/piptools/resolver.py", line 74, in find_all_dependencies
pkg_deps = pkgmgr.get_dependencies(spec.pin(version))
File "venv/local/lib/python2.7/site-packages/piptools/package_manager.py", line 337, in get_dependencies
deps = self.extract_dependencies(path)
File "venv/local/lib/python2.7/site-packages/piptools/package_manager.py", line 503, in extract_dependencies
self.unpack_archive(path, unpack_dir)
File "venv/local/lib/python2.7/site-packages/piptools/package_manager.py", line 425, in unpack_archive
archive = zipfile.ZipFile(path)
File "/usr/lib/python2.7/zipfile.py", line 770, in init
self._RealGetContents()
File "/usr/lib/python2.7/zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

Python 2.7.6

Yes, it appears to be fixed in Python 2, but not for Python 3: #137


Binding to <IP_ADDRESS> and use of HTTP without TLS

Greetings,
I am a security researcher, who is looking for security smells in Puppet scripts. I noticed instances of binding to <IP_ADDRESS>. Binding an address to <IP_ADDRESS> indicates allowing connections from all IP addresses. I would like to draw attention to these instances. Binding to <IP_ADDRESS> may lead to denial of service attacks. Practitioners have reported how binding to <IP_ADDRESS> facilitated security issues for MySQL (https://serversforhackers.com/c/mysql-network-security), Memcached (https://news.ycombinator.com/item?id=16493480), and Kibana (https://www.elastic.co/guide/en/kibana/5.0/breaking-changes-5.0.html).
I suggest to use a dedicated IP address other than <IP_ADDRESS>.
Any feedback is appreciated.
Source: https://github.com/hubspotdevops/puppet-nexus/blob/master/manifests/params.pp

I also found instances where the HTTP protocol is used instead of HTTPS (HTTP with TLS). According to the Common Weakness Enumeration organization this is a security weakness (https://cwe.mitre.org/data/definitions/319.html).  I was wondering why HTTP is used? Is it because of lack of tool support?
I am trying to find out if developers are forced to adopt bad practices due to lack of tool support when it comes to the HTTPS protocol. Maybe it is due to dependency on a resource that uses HTTP?
Any feedback is appreciated.
Source: https://github.com/hubspotdevops/puppet-nexus/blob/master/manifests/params.pp (Line 28, 40)


Fixed Overflow issue

overflowing of task which leading the container overflowing outside the screen
Description
overflowing of task which leading the container overflowing outside the screen
Fixes:
https://github.com/Groverio/To-Do-List/issues/88
Type of change

[x] Bug fix (non-breaking change)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so that they can be reproduced.

[x] Test A
Cross-browser testing to see if the feature works on Chrome, Firefox, etc.
Mobile and desktop testing for responsive design.
Verifying that the overflowing text by adding multiple items.

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] Any dependent changes have been merged and published in downstream modules

sure ,i can do that @Anshgrover23
Thankyou for review


orientation Portrait Only

Is there any way I can make ImagePicker activity Portrait Only?

I think you can override the activity declaration in AndroidManifest. Haven't tried it but i think it should work

@achatina it will override the current declaration in the library right?

@esafirm Yes, it seems so. Anyway, I think i would be great feature to add in Factory method like screenOrientation(some value), with default behavior - Changing Orientation. It will help not to overriding default declaration and may protect from some bugs

@achatina thanks I will try that.


update dependencies

This change is

It should be clarified why the InfluxExporterTest is not working only at IBM Java 8


⚠ Bofrost.es has degraded performance

In e52a95c, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1562 ms

Resolved: Bofrost.es performance has improved in 8633163 after 8 minutes.


Support mxbai-embed-large-v1

Original model link: https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1
Has done quite well on MTEB, downside: 512 tokens only — viable alternative to bge-small-en-v1.5

@NirantK I would like to work on this issue.


Add retry helper

Hey there,
As a follow-up on that old discussion, I tried to move the recipe inside a helper.
The only problem I'm facing is that I can't really catch the exception thrown inside the test, so a warning is logged when running it.
Any feedback would be really much appreciated.
Cheers,
Georgios

@Andarist Thanks for the feedback.
Sure, I'd like to continue working on it. I'll ping you once I have more.

If you have anything you would like to ask about, don't hesitate. You can always ping me here or on gitter.

Any progress on this?

Bump up, any progress?

I dont think @nuc is still working on this, anyone is free to pick this work up and get it to the finish line.

merged in https://github.com/redux-saga/redux-saga/pull/1430


Error when registering on a Win2012R2 Core server running the DC role

level=error msg="Error response from agent" error="Request error: Error storing certificate, Details: The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation."

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

ID: a659a749-7b5e-38d9-4cdf-5e447e973703
Version Independent ID: e96961bb-e4c5-1989-d860-fece74e9286d
Content: Quickstart - Connect machines to Azure using Azure Arc for servers - Portal
Content Source: articles/azure-arc/servers/quickstart-onboard-portal.md
Service: azure-arc
Sub-service: azure-arc-servers
GitHub Login: @bobbytreed
Microsoft Alias: robreed

@frehnejc Thanks for the Comment. We are actively investigating and will get back to you soon.
@bobbytreed FYI, any help you can offer here?

@frehnejc - This issue has been inactive for sometime now.  Because this isn't based on an issue with the article itself, I'm proceeding with closing this GitHub issue. If you are still having an issue deploying the Arc enabled agent on a domain controller, please open a case with Microsoft Support.  Thanks - #please-close.


Issue on dissipative post processing

Hello.
I am a little bit confused since the implemented dissipative post processing is a little bit different from the Eq.8 in the paper.
https://github.com/neuraloperator/markov_neural_operator/blob/67e77ed04f3909b71bb7654be2944b353bcaf227/dissipative_utils.py#L44-L45C14
Isn't it supposed to be
def part_unity_post_process(x, model, rho, diss):
    return rho(torch.norm(x)) * model(x).reshape(x.shape[0],) + (1 - rho(torch.norm(x))) * diss(x)

not this?
def part_unity_post_process(x, model, rho, diss):
    return rho(torch.norm(x)) * model(x).reshape(x.shape[0],) + (1 - rho(x)) * diss(x)

I'm not sure this is a bug or intended behavior so I left the issue.

Hi @sleepyeye, thanks for catching this! Yes, this is a bug. I've addressed it in this commit.

Thanks @mliuschi


Handling of session tickets under TLS1.3

Is new_session_cb callback (set by SSL_CTX_sess_set_new_cb) supposed to be called on the client side when the server-side sends a NewSessionTicket message? In particular at the end of an ssl handshake?
If that's not the case, what is the correct way for a client to handle NewSessionTicket, considering that it may array at any time?

Is new_session_cb callback (set by SSL_CTX_sess_set_new_cb) supposed to be called on the client side when the server-side sends a NewSessionTicket message? In particular at the end of an ssl handshake?

In TLSv1.3 it gets called when the client processes a NewSessionTicket message (i.e. post handshake) if SSL_SESS_CACHE_CLIENT has been enabled via a call to SSL_CTX_set_session_cache_mode. See:
https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_session_cache_mode.html

In TLSv1.3 it gets called when the client processes a NewSessionTicket message (i.e. post handshake) if SSL_SESS_CACHE_CLIENT has been enabled via a call to SSL_CTX_set_session_cache_mode

That's what I thought, but in my case (OpenSSL 1.1.1d) the callback is not being invoked; I have an info_callback setup and it shows that the server-side is trying to send session keys, but the client side has successfully completed the handshake. Provided the cache mode is set to SSL_SESS_CACHE_CLIENT could anything else prevent the callback from being invoked?

Tickets are post-handshake in TLS 1.3, so the client completing the handshake is not sufficient to get the ticket. The client also needs to pick up the post-handshake. This usually happens at some point in the application protocol itself, because it depends on the client calling SSL_read.

The client also needs to pick up the post-handshake NewSessionTicket message.

Is this supposed to be done via new_session_cb? If not, how should the application differentiate between data containing a ticket (as it can show up at any time) and application data itself?

new_session_cb will be called. and the application should not try to differentiate. If the server sent a ticket, SSL_read will consume it, call new_session_cb, and, assuming SSL_MODE_AUTO_RETRY is enabled (the default), continue on to the next record to look for application data.

SSL_read will consume it, call new_session_cb

Yep, it works now, this was the bit I was missing. tyvm for the explanation.


Mic 780 api audit events

Codecov Report
Attention: Patch coverage is 95.63636% with 12 lines in your changes missing coverage. Please review.

Project coverage is 85.48%. Comparing base (bd0e49a) to head (acb0a37).

Files with missing lines
Patch %
Lines

server/middleware/auditPageViewMiddleware.ts
91.66%
2 Missing :warning:

...utes/journeys/base/patchInvestigationController.ts
75.00%
2 Missing :warning:

...rver/routes/journeys/base/patchReviewController.ts
87.50%
1 Missing :warning:

...base/updateReferralContributoryFactorController.ts
50.00%
1 Missing :warning:

...evelop-an-initial-plan/check-answers/controller.ts
83.33%
1 Missing :warning:

...urneys/record-decision/check-answers/controller.ts
80.00%
1 Missing :warning:

...journeys/record-review/check-answers/controller.ts
80.00%
1 Missing :warning:

...te-referral/contributory-factor-type/controller.ts
0.00%
1 Missing :warning:

...rral/new-contributory-factor-comment/controller.ts
83.33%
1 Missing :warning:

server/services/auditService.ts
88.88%
1 Missing :warning:

:exclamation:  There is a different number of reports uploaded between BASE (bd0e49a) and HEAD (acb0a37). Click for more details.
HEAD has 1 upload less than BASE

Flag
BASE (bd0e49a)
HEAD (acb0a37)

4
3

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #343      +/-   ##
==========================================
- Coverage   90.72%   85.48%   -5.24%
==========================================
  Files         348      349       +1
  Lines        5209     5299      +90
  Branches      765      767       +2
==========================================
- Hits         4726     4530     -196
- Misses        468      742     +274
- Partials       15       27      +12

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


Update API Endpoints dealing with Game model (List and Detail Views)

Pull Request https://github.com/uchicago-cs/chigame/pull/153 changed the Game model to be more fleshed out, taking inspiration from BoardGameGeeks. Due to the changes in the model, we changed our API Endpoint Views dealing with the Game model, so that the model attributes are returned correctly. There are additions to the model, as well as changes to the existing attributes of the Game model.
Specifically, the GameSerializer now has the line fields = "__all__", which implies that we want to return all the fields in the model, when serializing and deserializing a Game. This is also dynamic, as we don't have to add fields/rename fields manually, when the Game class changes, as the serializer will just return all the fields in the model.

For reference, this is a duplicate of PR #165, which for some reason was not running CI tests.

Closing Comments: In this PR, we updated the GameSerializer class to include all of the fields in the Game model, instead of just the original fields (name, description, min_players, max_players). Using fields = '__all__' instead of manually typing out all the fields, allows for the GameSerializer to dynamically change the fields it outputs if new fields are added to the Game model. Now, when a user goes to /api/games or /api/games/<game_id>, they should see all the new fields in the Game model.

Issue Score: Excellent
Comments:
Great work!
I really appreciate how verbose and clear your comments are.
I'm labeling this as minor since it was 1 line of code changes for the implementation.


Subscriptions

Is there a way to subscribe to a query and only get changed / new / deleted results ?

Not at the moment or in the near-term future, but it could be something we'd want to add later on (sorry for a bit of a late response).

@gruuya
i Wonder if the new rust delta lane storage changes this ??

Well I am thinking about how a users does a mutation into data fusion. One way is use CDC off the original system like postresql or google sheets.
So the mutations goes into that system.
Then we have the reactive data scenarios. If you have a CDC then you can see the changes  of the  master data source like postresql or google sheets, so then you can  get the the middle and correlate what data changes against what your uses are currently looking out that they did a query for a minute again , and so send them a change stream.
This only works though if you can do that correlation.
do you get the concept ?
i already do cdc on all this stuff .
also you guys are not using Flight SQL yet ? Cause this helps with doing the correlation .

so then you can get the the middle and correlate what data changes against what your uses are currently looking out that they did a query for a minute again , and so send them a change stream.

I'm probably missing something here, but if the underlying issue is simply about making sure the users see the latest data note that this happens automatically once a change has been made. This touches on

how a users does a mutation into data fusion

in Seafowl we support a couple of ways of changing data (all of them batch-oriented):

CSV/Parquet upload: https://seafowl.io/docs/guides/uploading-csv-parquet
querying external CSV/Parquet files directly: https://seafowl.io/docs/guides/csv-parquet-http-external
querying tables in other database systems: https://seafowl.io/docs/guides/remote-tables
or good old DMLs (INSERT/UPDATE/DELETE): https://seafowl.io/docs/guides/writing-sql-queries

As soon as some data is written to a table, this results in a new table version. This annuls the cached responses, and all subsequent queries always target the latest version by default.
You can also target previous table versions using the time travel syntax (as well as look at e.g. the diff between successive table versions).

do you get the concept ?

More likely, maybe you're referring to enabling streaming replication from master data sources using CDC files in a particular format, as a new approach to changing/writing data in addition to the ones above?

also you guys are not using Flight SQL yet ?

No, not currently.

Thanks @gruuya for the in-depth links. It’s me that’s missing something :)
I did not realise these aspects were done by seafowl for mutations. I am still getting familiar with data fusion aspects.
about Streaming changes via CDC. I currently do this already in other projects using nats message broker.
The use case is that when a user updates their google sheets ir DB, they can see it in data fusion system.
I really want to adopt DataFusion and so am brain storming it with you.
The more I think about it the more I see it as being non intrusive. The cdc system just needs a way to talk to data fusion system and transform the data in.
I can track what user is “ watching what query  “ out of bounds , and so then just rerun the query on data fusion and send the deltas to the user. I wo der if there is a way to track the version of a query and the fata as a hash ?
If you want to have a chat / video about it I would really like to explore it ..

Am reopening . Hoping to discuss this ..

(as well as look at e.g. the diff between successive table versions)

Is this available at the API / http level ? Cause then I can do subscriptions and only send what changed. I do all this by wrapping seafowl api with NATS message broker and so know what users are doing what. It also gives my global load balancing and auth / authz.

Aha no worries, I think we're (getting) on the same page.

I wonder if there is a way to track the version of a query and the data as a hash ?

You could look at the ETag of the response, as this is currently based on the which specific data files are used in a query. Note that this doesn't involve changes to the query plan, hence issue #57. (There's also the system.table_versions metadata table for browsing table versions if that's useful.)

If you want to have a chat / video about it I would really like to explore it ..

Oh sure, I'd love to see if we can converge here—how about discord for starters: https://discord.gg/eFEFRKm?

Is this available at the API / http level ?

Yup, it works as any other query (check out the prior-to-last section of this blog post for an example); we just have the awkward syntax since the AS OF clause isn't supported by sqlparser for now.

I'm also interested in this topic.
I'm grateful to be trying Seafowl for log storage. As new data is constantly coming in, the table version keeps increasing, which causes the cache to be invalidated continuously.
As a workaround strategy, I'm creating tables by date or using similar approaches.
However, it would be great if we could achieve the same effect within a single table.
I'm not quite sure how to do this yet!


throw error when exitOnError set to false and errors occur - fixes #48

This PR should solve #48.
There's still one thing I'm not sure about. What if we have this task list
	const list = new Listr([
		{
			title: 'foo',
			task: () => Promise.reject(new Error('Foo failed'))
		},
		{
			title: 'bar',
			task: () => {
				return new Listr([
					{
						title: 'unicorn',
						task: () => Promise.reject(new Error('Unicorn failed'))
					}
				]);
			}
		},
		{
			title: 'baz',
			task: () => Promise.resolve()
		}
	], {
		exitOnError: false,
		renderer: SimpleRenderer
	});

What should this output? Should it mark bar as failed (because the inner task failed) or should it be marked as completed?

foo [started]
foo [failed]

Foo failed
bar [started]
unicorn [started]
unicorn [failed]
Unicorn failed
bar [completed]
baz [started]
baz [completed]
done

foo [started]
foo [failed]

Foo failed
bar [started]
unicorn [started]
unicorn [failed]
Unicorn failed
bar [failed]
Unicorn failed
baz [started]
baz [completed]
done

// @okonet

Yes, I'd say it should. To me it should work the same way as it would normally. The only difference is that the actual throwing is happening in the main task and not as the error occurs.

I would say that bar should be marked as failed.


Update sample data

Tags now have at least one card, each card has at least one tag.
This should resolve #161 , where the addressbook starts out in an invalid state.

Pull Request Test Coverage Report for Build 366

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

Totals

Change from base Build 364:
0.0%

Covered Lines:
2185

Relevant Lines:
2485

💛  - Coveralls


UIAC, UIAD: support for new object types

As technical catalogs are a good way to manage FLP content, would it be possible to add support for UIAC  and UIAD objects?

Sure. We just need someone to code it: https://docs.abapgit.org/development/serializers.html

To implement this object type, create a PR or reopen this issue for further discussion.

I just want to inform that description of #5958 was created long time ago. Currently has been decided to support only UIAD objects. UIAC object is not in a  focus anymore.
Could the description of #5958 be changed only for UIAD? It would be better to follow a process.


Display decoded definitions form same file in different buffers

Current behavior
Showing javap/tasty/semanticdb representations of definitions is a great feature ❤
In case there are multiple trait/class/object definitions in the same file, a popup asks for a choice of a single definition to decode.
Then decoding result is displayed in a separate buffer named "%filename%.scala decoded *%format% viewer".
The buffer is reused when decoding other definitions from that file.
Proposal
I'm not sure if reusing the buffer is a convenient default behavior, since it makes impossible showing same-type decodings (e.g. javap) for multiple definitions from the same file at the same time.
Also, it might be useful to put definition names into the buffer name, e.g "%filename%.scala/%classname% decoded %format% viewer"

Hey @susliko, good point. I haven't revisited this since I first implemented it. My original thought process was to try and make sure there wasn't a bunch of random leftover buffers for decoded classes etc, but I was probably overzealous with my worry.

Also, it might be useful to put definition names into the buffer name, e.g "%filename%.scala/%classname% decoded %format% viewer"

Yea, I think this is a totally fine idea.


save is called on every mouseup

See this.save() call in _onDone. Save() ends up being called on every mouseup. This call needs to be moved up, I think, and combined with a Sortable.active check to limit it to actual drags ala dispatchEvent(end)
                // Drag end event
                Sortable.active && _dispatchEvent(rootEl, 'end', dragEl, rootEl, oldIndex, newIndex);

                // Save sorting
                Sortable.active && this.save();

Done. Try dev-branch.


TextField can't catch focus when there are two textField with different keyboardType on phone

Steps to reproduce
write a code with two TextField with different two different keyboard type, but one need to be (keyboardType: TextInputType.visiblePassword),
and tap one TextField, focus get, and keyboard show up;
and then tap the second one, keyboard switched, but the second TextField did get focus;
Expected results
the second one can get focus
Actual results
the second one didn't get focused
Code sample
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const Scaffold(
        body: SafeArea(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              SizedBox(
                width: 300,
                child: TextField(
                  decoration: InputDecoration(hintText: "Id", labelText: "Id"),
                ),
              ),
              SizedBox(
                width: 300,
                child: TextField(
                  keyboardType: TextInputType.visiblePassword,
                  obscureText: true,
                  decoration: InputDecoration(hintText: "name", labelText: "name"),
                ),
              )
            ],
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]
https://github.com/flutter/flutter/assets/3118573/a56a834f-cb60-46de-a17b-a543c6bd2861
it can't be recorded as password keyboard is used, please run by code;

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

Hi @wanjm, what device(s) are you experiencing this issue on? What keyboard are you using?
Please provide the output of flutter doctor -v.

[!] Flutter (Channel stable, 3.16.9, on macOS 12.6.3 21G419 darwin-x64, locale en-CN)
    • Flutter version 3.16.9 on channel stable at /opt/google/flutter
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 41456452f2 (6 weeks ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /opt/google/android/sdk
    • Platform android-34, build-tools 33.0.2
    • ANDROID_HOME = /opt/google/android/sdk
    • ANDROID_SDK_ROOT = /opt/google/android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version unknown)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0
    ✗ Unable to determine VS Code version.

[✓] Connected device (3 available)
    • NTH AN00 (mobile) • AKRSVB1630026451 • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos            • darwin-x64     • macOS 12.6.3 21G419 darwin-x64
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 122.0.6261.94

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

You are using an older version of flutter. Kindly upgrade to the latest version of flutter (3.19.2) to see if you still experience this issue. If you do, please provide the updated output of flutter doctor -v. Please also provide the keyboard type you use. I tried with gboard but I didn't experience any issues.
Thank you

[!] Flutter (Channel stable, 3.19.2, on macOS 12.6.3 21G419 darwin-x64, locale en-CN)
    • Flutter version 3.19.2 on channel stable at /opt/google/flutter
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision<PHONE_NUMBER> (9 days ago), 2024-02-27 16:51:22 -0500
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /opt/google/android/sdk
    • Platform android-34, build-tools 33.0.2
    • ANDROID_HOME = /opt/google/android/sdk
    • ANDROID_SDK_ROOT = /opt/google/android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    ! CocoaPods 1.11.3 out of date (1.13.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version unknown)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0
    ✗ Unable to determine VS Code version.

[✓] Connected device (3 available)
    • NTH AN00 (mobile) • AKRSVB1630026451 • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos            • darwin-x64     • macOS 12.6.3 21G419 darwin-x64
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 122.0.6261.111

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

there is still such problem in 3.19.2
https://github.com/flutter/flutter/assets/3118573/10c47910-0fea-40f0-9ab4-2794a26b8693

This issue seems to be fixed with the new version of Flutter (3.19.2). I tried to recreate the problem but It gives the focus to different textfield inputs properly. This is a screen recording from the Flutter 3.19.2 version.
https://github.com/flutter/flutter/assets/52316373/eaa0f3f5-fac2-441a-a088-dd1be01533c1
This is Flutter doctor response
[√] Flutter (Channel stable, 3.19.2, on Microsoft Windows [Version 10.0.19045.3803], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.2)
[√] VS Code (version 1.87.0)
[√] Connected device (4 available)
[√] Network resources

! Doctor found issues in 1 category.

Hi @wanjm, what language setting is your keyboard using? Also, what keyboard are you using?

both  chinese XuFei  and chinese Baidu have such problem;
also I found there is one switch called "safe input"  in  setting "Languge and Input method";when turn "safe input" on, it will come accross this problem;

@sachin96Boy plese change line 21 to "keyboardType: TextInputType.visiblePassword,"

I just tried with keyboardType: TextInputType.visiblePassword, and it properly focuses on different text fields. I'm sorry, but there wasn't any 'Safe Input' option in my Emulator. Here's my flutter doctor.
[√] Flutter (Channel stable, 3.19.2, on Microsoft Windows [Version 10.0.19045.3803], locale en-US)
    • Flutter version 3.19.2 on channel stable at C:\Users\Admin\Documents\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (10 days ago), 2024-02-27 16:51:22 -0500
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Admin\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[√] VS Code (version 1.87.1)
    • VS Code at C:\Users\Admin\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.84.0

[√] Connected device (4 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.19045.3803]    • Chrome (web)            • chrome        • web-javascript • Google Chrome 122.0.6261.111
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 117.0.2045.36

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Hi, I have also encountered a similar problem here. Does not occur in all phones, only in Huawei and Honor phones.
And I also found that it was normal before version 3.10. I didn't do any further validation between version 3.10 and 3.16.
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.0 23A344 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.86.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Hi @EchoPuda, if you use gboard on the honor/huawei devices, do you still have this issue?

Hi @danagbemava-nc , sorry, the Honor/Huawei device belongs to my client and they uses system keyboard. I cannot request them to install Gboard to help me test it.
By the way, this has not problem on my Google device or iPhone.

I checked HuaWei/Honor, there is such switch, and has such issue;
I also checked MI, there is also such switch, but no such issue;
I check Sumsung, there is no such switch, and no such issue;

Thanks for the update.
Labeling this for further investigation.
This appears to be device specific, related to Huawei & honor devices. It does not reproduce on my Pixel and others have confirmed this doesn't happen on devices other than huawei/honor.

Hi I checked vivo/oppo/Huawei/MI/One Plus also called "safe input" on, my flutter version is 3.19.3

Oppo also has the same problem.

So far I haven't been able to repro this on Huawei/Oppo devices with the "security input" option on, (commit c14d55c4d2). I followed the exact repro steps.

Hi, I have also encountered a similar problem here. Does not occur in all phones, only in Huawei and Honor phones. And I also found that it was normal before version 3.10. I didn't do any further validation between version 3.10 and 3.16.
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.0 23A344 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.86.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Flutter 3.19.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision bae5e49bc2 (4 months ago) • 2024-02-13 17:46:18 -0800
Engine • revision 04817c99c9
Tools • Dart 3.3.0 • DevTools 2.31.1
My flutter version， I have also encountered a similar problem here in  Honor phones，but my Huawei has no problem。


How can i modify the train file to multiple gpu version

hello, i used the train_ucf file and modify it to multi-gpu according to your resnet-3d version, but do not success, can you provide a multi-gpu version for this model? thanks.

you are right, this code just for one gpu, the multi_gpu version will public in two days if you need

you are right, this code just for one gpu, the multi_gpu version will public in two days if you need

Yes, i implemented the multi-gpu version myself but there are still some problems, will be very grateful if you can release your version!

@LossNAN OK, thank you very much for your help, i will try it.

@LossNAN Can i ask how do you deal with the batch normalization items with saving the model?

Hello, I also tried to train multiple cpu and refer your last Dec codes.
I have seen the multi_gpu_train_kinetics_rgb.py file,
and there seems to be a non_local related code that is not in git.
I wonder if there was no change in the i3d internals. ex. share variable in i3d network........

Hi @LossNAN, thank you for sharing your work. Do you have the code for training a singular gpu as I am using 1 gpu? Also, while using trying the multi_gpu code, there is a NameError because the learning_rate is not defined, amI doing something wrong?


CD/Linkta 318 enable google analytics

Added basic setup to enable google analytics
Log events should be added later
This PR is branched off from the hosting PR: https://github.com/Linkta-org/landing-page/pull/34

Fixes # (issue)LINTKA-318
Type of change

[ ] 🐛 Bug fix (non-breaking change which fixes an issue)
[X] ✨ New feature (non-breaking change which adds functionality)
[ ] 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] 📝 Documentation update
[ ] Other 🗒 **__**

How Has This Been Tested?

[ ] Test A
[ ] Test B

Checklist:

[ ] I have performed a self-review of my own code.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[ ] Any dependent changes have been merged and published in downstream modules.
[ ] I have reviewed the Security Best Practices Document.
[ ] I have followed the Naming Conventions Guide for my changes.
[ ] I have ensured that my pull request title is descriptive.

Additional Information:

Closing this PR as analytics are deprioritized, will open a new branch to implement after launch


It is unclear what version of python standard is running

I was about to file an issue concerning missing 3.6 features when I discovered that it is impossible to figure out which version is supported.
rustpython -V outputs rather useless RustPython 0.0.1. Compare this to pypy's output:
Python 3.6.1 (de061d87e39c, Mar 24 2019, 22:18:21)
[PyPy 7.1.0-beta0 with GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1<IP_ADDRESS>)]

sys.version_info doesn't exist either.

I think you can assume current Python (hence Python 3.7) is targeted. Although so much is missing that it doesn't mean much.

I think we're sort of "officially" targeting Python 3.6, but yes, so much is missing that the actual standard version we're targeting doesn't matter very much.

I see, thanks! And keep it up with this great project!


Adding to AvailableItemName group causes item to appear in Solution Explorer

From a discussion here: https://github.com/dotnet/project-system/issues/7187

#sign-off

@j-martens: I'm sorry - only the author of this article, @ghogen, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Bump up proto files

Fixes https://github.com/apache/skywalking/issues/9761

[x] Update proto files
[x] Update related components
[ ] Update UTs
[ ] Update ITs

Signed-off-by: Gao Hongtao<EMAIL_ADDRESS>

There should be some README doc update, right? We have some breaking changes in 0.2.0 APIs


[docs] Remove caution text from Gradio Notebooks Getting Started for incompatible SDK version

[docs] Remove caution text from Gradio Notebooks Getting Started for incompatible SDK version
This is now resolved with https://github.com/lastmile-ai/gradio-notebook/pull/199 so we don't need this restriction anymore!
Before

Should we still mention this would be needed if the space is using gradio-notebook 0.0.15 or below?

Should we still mention this would be needed if the space is using gradio-notebook 0.0.15 or below?

Nah, I feel like that's nitty gritty. Most people if they create a new space, they will be copying from existing one and that will also copy the README.md too. If you are create a new space, you will be using the latest and greatest gradio-notebook package anyways


how can I get the tag to my list?

Ive tried  list.add(tag) in the onTap to get a string. But for some reason that didnt work and the app doesnt make a tag in textfield.  (the one you coded(print('onTag ' + tag)) worked well though)
To make it clear I did it on dartpad, in there It did well. I got no idea why it dosent perform it, also any error doesnt even show on debug..
Id like to get the value in my db. is that able?

Its good to go with setState. I tested it and worked well..

Its good to go with setState. I tested it and worked well..


Support

Updated. @panesofglass you may wish to suggest edits around mention of commercial support! We might want to discuss that in case anyone asks one day...


Request custome node: BrushNet

Could you please add this custom node:
https://github.com/nullquant/ComfyUI-BrushNet
The code is based on
BrushNet
PowerPaint
HiDiffusion
diffusers
Thank you!

BrushNet works great, I plan to add this soon.

Have you made a plan to add this node yet? @fofr

Taking a look at this now

I've added this:
https://github.com/fofr/cog-comfyui/commit/10fd26635930493cf91d4b6ca9eeb055a2cdac28
Examples:
https://github.com/fofr/cog-comfyui/commit/493c01c4665e879b1c1b9b2655627668114e2008
And it's now live on Replicate too.
Closing this, but please reopen if you have any issues.


improving the AST doc

I think a good way to improve the doc would be to provide examples at each level of the AST types with graphql doc snippets such as what I naively did in #145.
Something like:
#VariableDefinition -> a variable defined in a GraphQL query/mutation context like
myQuery($myVariable: MyVariableType)
# Field -> a Field takes place in a SelectionSet such as
myParentField { myField1 myField2 }
#Argument -> an argument is defined in front of a GraphQL Field such as
{ myField (myArgument: "literalString")}  or { myField (myArgument: $myVariable)}

I'm going to try to put together a PR for this.
I think it would be easier for new comers to grasp what is going on in the query parsing (which is half of the job), and helps a lot when it comes to contributing

It seems some type/data definitions in AST and API (e.g. here and here ), are very close.
Side by side example :
-- Schema
data ObjectTypeDefinition = ObjectTypeDefinition Name Interfaces (NonEmpty FieldDefinition)
deriving (Eq, Ord, Show)
-- AST
data ObjectTypeDefinition = ObjectTypeDefinition Name Interfaces [FieldDefinition]
deriving (Eq,Show)

Furthermore, I didn't find any occurence of the various TypeDefinition from the AST module. Besides, I don't see why anything defined in the user's schema would end up in the AST, because making the schema does not require any real "parsing" (in the sense of Text -> AST.Something)
Did I miss something or is it just old code ?

It seems some type/data definitions in AST and API are very close.

Yes! The AST represents the syntax. AST.ObjectTypeDefinition is designed to match ObjectTypeDefinition in the spec as closely as possible.
Schema.ObjectTypeDefinition has two key differences:

It has no type references. Any types that it might refer to have been inlined as definitions.
It forbids object definitions with no fields, which are allowed in the syntax but disallowed elsewhere (I can't recall exactly where—it might just be a restriction in our implementation)

Furthermore, I didn't find any occurence [sic] of the various TypeDefinition from the AST module

The parser can work just fine without an explicit AST.ObjectTypeDefinition type. To make other parts of our code more type safe, we provide an explicit Schema.ObjectTypeDefinition type.

Besides, I don't see why anything defined in the user's schema would end up in the AST

In a sense, it's just old code.
The AST, parser, and printer were all imported from a different GraphQL project (for which we're very grateful). You can see this reflected in the license and copyright.
I'd like graphql-api be able to work with parsed schema as well as our Servant-style type-level schema—certainly much of the code is re-usable—but I don't think that's the case now.


Visual revamp: second pass (pills, slider, more)

Summary

Addresses comments from the first pass and continues implementing the new design.
Relevant Technical Choices
N/A
To-do
In future PRs: Icons, masonry design, moving the toolbar, background media changes.
User-facing changes
Corrected colors
Corrected colors in multiple places to reflect Sam's comments

Switch + Slider

Pills + Tabs + Search

Outlined shapes

Text presets: more options

Testing Instructions
Visual changes should be present on the editor as well as on Storybook

Partial for #3641

Visually this looks good.

Controls have clear focus elements

@googlebot I consent.


filter getEvents union queries with checkpoint limits

Use checkpoint limits in getEvents nested queries to pre filter only the required checkpoint block range

This looks great! I wonder if we could just use checkpoint to filter down the subqueries before the unionAll instead of blockNumber?

Yes that could be possible as well indeed.
I though blockNumber would be nice as it is already used for the filter log, and will still be required in case the filter has smaller boundaries than the current checkpoint.


Fix 1529 ctx issue

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

v6.69.2
GitHub release

Your semantic-release bot :package::rocket:


Update Proxies.md

Edit Python initialization call doc to be the same func name / signature as the mock implementation contract example.

Thanks for doing this! 🎉
I know it's a small PR, but please follow our contributing guidelines even for small ones like this PR. For example, it's hard for us to organize our reviewing and releasing process without an associated issue, or maybe there's implementation details that need discussion (maybe not for this one), or someone else is already working on this.
For this PR it's ok, but please be mindful on next ones!

Thanks for doing this! 🎉
I know it's a small PR, but please follow our contributing guidelines even for small ones like this PR. For example, it's hard for us to organize our reviewing and releasing process without an associated issue, or maybe there's implementation details that need discussion (maybe not for this one), or someone else is already working on this, or the PR is simply not wanted for some reason.
For this PR it's ok, but please be mindful on next ones!

Apologies, will do that next time. Thanks for merging!


UIView subclass hook dealloc cause invocation BAD ACCESS

Using aspects to hook my UIView subclass's dealloc method with AspectPositionBefore option, it works fine as a before hook, callback get called.
And it gets BAD ACCESS when Aspects trying to invoke aliasSelector on Line 498:
https://github.com/steipete/Aspects/blob/master/Aspects.m#L498
My question is:

Why we need to invoke aliasSelector again when there's no instead hooks?
I test on UIViewController subclass and NSObject subclass, they works fine with out BAD ACCESS, do you have any idea why UIView subclass gets BAD ACCESS?

Found out that if baseClass is NSKVONotifying_ subclass will cause BAD ACCESS on invocation.

Indeed, that made problems before. KVO and Aspects don't always play well.

@steipete thank you for awesome Aspects!
https://github.com/steipete/Aspects/blob/master/Aspects.m#L364-L366
I saw you're trying to solve NSKVONotifying meta class swizzling.
But I can't figure it out what aspect_swizzleForwardInvocation going to do, can you give me some hints?
https://github.com/steipete/Aspects/blob/master/Aspects.m#L391-L399
btw, my originalImplementation is NULL inside aspect_swizzleForwardInvocation function

After reviewing the test cases and source code, I alternatively aspect my Class object, skipping KVO object method swizzling part ever since I realized pre-registeded KVO object is currently not support.
I'm trying to contribute, if you do have any hints, please inform me.
All in all, it works now, thank you.


Fix issues with array capacity

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@a57414c). Click here to learn what that means.
The diff coverage is 100%.

@@           Coverage Diff           @@
##             master   #116   +/-   ##
=======================================
  Coverage          ?    94%
=======================================
  Files             ?     91
  Lines             ?   7886
  Branches          ?      0
=======================================
  Hits              ?   7413
  Misses            ?    473
  Partials          ?      0

Impacted Files
Coverage Δ

immer/detail/arrays/node.hpp
92.1% <100%> (ø)

test/vector/generic.ipp
99.29% <100%> (ø)

immer/detail/arrays/with_capacity.hpp
88.88% <100%> (ø)

immer/detail/arrays/no_capacity.hpp
90.14% <100%> (ø)

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 a57414c...973a670. Read the comment docs.


Missing packages for mailserver (Amavis)

2017-03-05T12:39:41.935486+00:00 mail amavis[221]: No ext program for   .xz, tried: xzdec, xz -dc, unxz -c, xzcat
2017-03-05T12:39:41.935688+00:00 mail amavis[221]: No ext program for   .lzma, tried: lzmadec, xz -dc --format=lzma, lzma -dc, unlzma -c, lzcat, lzmadec
2017-03-05T12:39:41.935776+00:00 mail amavis[221]: No ext program for   .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
2017-03-05T12:39:41.935841+00:00 mail amavis[221]: No ext program for   .lzo, tried: lzop -d
2017-03-05T12:39:41.935903+00:00 mail amavis[221]: No ext program for   .lz4, tried: lz4c -d
2017-03-05T12:39:41.935999+00:00 mail amavis[221]: No ext program for   .rpm, tried: rpm2cpio.pl, rpm2cpio
2017-03-05T12:39:41.936075+00:00 mail amavis[221]: Found decoder for    .cpio at /bin/pax
2017-03-05T12:39:41.936093+00:00 mail amavis[221]: Found decoder for    .tar  at /bin/pax
2017-03-05T12:39:41.936158+00:00 mail amavis[221]: No ext program for   .deb, tried: ar
2017-03-05T12:39:41.936242+00:00 mail amavis[221]: No ext program for   .rar, tried: unrar-free
2017-03-05T12:39:41.936320+00:00 mail amavis[221]: No ext program for   .arj, tried: arj, unarj
2017-03-05T12:39:41.936403+00:00 mail amavis[221]: No ext program for   .arc, tried: nomarch, arc
2017-03-05T12:39:41.936460+00:00 mail amavis[221]: No ext program for   .zoo, tried: zoo
2017-03-05T12:39:41.936515+00:00 mail amavis[221]: No ext program for   .doc, tried: ripole
2017-03-05T12:39:41.936580+00:00 mail amavis[221]: No ext program for   .cab, tried: cabextract
2017-03-05T12:39:41.936608+00:00 mail amavis[221]: Internal decoder for .tnef
2017-03-05T12:39:41.936702+00:00 mail amavis[221]: No ext program for   .zip, tried: 7za, 7z
2017-03-05T12:39:41.936719+00:00 mail amavis[221]: No ext program for   .kmz, tried: 7za, 7z
2017-03-05T12:39:41.936737+00:00 mail amavis[221]: Internal decoder for .zip
2017-03-05T12:39:41.936751+00:00 mail amavis[221]: Internal decoder for .kmz
2017-03-05T12:39:41.936838+00:00 mail amavis[221]: No ext program for   .7z, tried: 7zr, 7za, 7z
2017-03-05T12:39:41.936916+00:00 mail amavis[221]: No ext program for   .xz, tried: 7z
2017-03-05T12:39:41.936932+00:00 mail amavis[221]: No ext program for   .lzma, tried: 7z
2017-03-05T12:39:41.936946+00:00 mail amavis[221]: No ext program for   .jar, tried: 7z
2017-03-05T12:39:41.936962+00:00 mail amavis[221]: No ext program for   .arj, tried: 7z
2017-03-05T12:39:41.936976+00:00 mail amavis[221]: No ext program for   .rar, tried: 7z
2017-03-05T12:39:41.936989+00:00 mail amavis[221]: No ext program for   .swf, tried: 7z
2017-03-05T12:39:41.937006+00:00 mail amavis[221]: No ext program for   .lha, tried: 7z
2017-03-05T12:39:41.937021+00:00 mail amavis[221]: No ext program for   .iso, tried: 7z
2017-03-05T12:39:41.937035+00:00 mail amavis[221]: No ext program for   .cab, tried: 7z
2017-03-05T12:39:41.937045+00:00 mail amavis[221]: No ext program for   .deb, tried: 7z
2017-03-05T12:39:41.937055+00:00 mail amavis[221]: No ext program for   .rpm, tried: 7z
2017-03-05T12:39:41.937134+00:00 mail amavis[221]: No ext program for   .exe, tried: unrar-free; arj, unarj

You can add external program by forking this repo. I want to keep a "small" docker image <100MB to reduce docker hub pull time and the amount of space being take up on the disk.


Fix issues with react-juce hot reload on recent npm versions

@nick-thompson , if you're happy to give this a final check I can do the necessary npm bumps and merge. Will run lint step. Things now working under both Duktape and Hermes

@JoshMarler looks like 0.2.15 is live on npm– should be good to merge here then, yea?

@JoshMarler looks like 0.2.15 is live on npm– should be good to merge here then, yea?

Hey,
It's working under Hermes but stupidly I'd not regenerated from cmake cache properly and something under Duktape is still broken. I'll guy this fixed over the weekend and then probably have to do a second bump. Apologies.

Ah got you, no problem! No rush


Kong Gateway Cert Manager Integration Bug

Hi, I'm currently using Kong Gateway 3.9.X and attempting to integrate Kong with cert-manager/HashiCorp Vault.  I've been following the examples and documentation: https://docs.konghq.com/gateway/latest/install/kubernetes/proxy/, https://docs.konghq.com/gateway/latest/production/deployment-topologies/hybrid-mode/setup/, and https://github.com/Kong/charts/tree/main/charts/kong/example-values/hybrid-cert-manager.
I am consistently getting the same error:
broken: ssl handshake failed: 2: unable to get issuer certificate (retrying after 6 seconds) [kong-cp-kong-cluster.kong.svc.cluster.local:8005], context: ngx.timer
I believe I've traced this down to Kong's requirement of TLS chains versus the way cert-manager implements the TLS-based Secret object in Kubernetes.
Cert Manager follows Kubernetes standards and adds the root certificate to the ca.crt file, whereas the intermediate chains and the final certificate are in the tls.crt file. The only difference I can see is that in the docs, only one certificate is being used (root CA without intermediate CAs).
I believe this to be a bug because I have set certificates.enabled=true and am using the appropriate definitions in certificates.cluster.*.  I would expect for these settings to "just work" out of the box and not require additional modifications.  I have set the appropriate environment variables:
  lua_ssl_trusted_certificate:  /etc/cert-manager/cluster/ca.crt   cluster_mtls: pki   cluster_cert:  /etc/cert-manager/cluster/tls.crt   cluster_cert_key:  /etc/cert-manager/cluster/tls.key   cluster_cert_ca:  /etc/cert-manager/cluster/ca.crt
and ensured that the certificates are mounted where expected.  I am also able to validate that the chains are correct with openssl after kubectl exec into the pod(s).

I was able to solve the issue by increasing the lua_ssl_verify_depth value, though I still think that in certificates.enabled, this shouldn't be necessary.


SafeSettings removes existing team permission for all the repos

Github Safesettings app removes the existing teams permissions for all existing repositories within the org when the following mentioned settings are enabled. On the other hand, documentation does not specify removal of any existing permission when controlled through safesettings app. Is this the expected behavior?
settings.yml
repository:
teams:
  - name: <team_name>
    permission: <team_permission>

Our goal is to add specific permissions/teams to all the existing/new repos without impacting existing team permission for all the repos.

I have discovered this issue as well and @decyjphr confirmed this here. It would be indeed good to update the existing settings instead of overriding them fully.

This fix has been released in 2.0.18

@decyjphr should we close this issue? Also worth to add a reference to the pull request solving this problem.

Isn't this contradicting to #251? In my situation, I want to remove all manually added collaborators because it should only be a single source of truth when using this for policy-as-code. Related to fixes in #382


More bound functions on form props

So I just saw the array functions redux-form passing into your form component. It made me start comparing those props to the action creators. I noticed most of them were there but a couple were missing. Notability the change function. I think it would be helpful to have change function passed in as well.
focus and blur are also left out, but those make be a bit trickier. Will calling those actually focus/blur the element or just sync their state in the store? I'm thinking the latter...

change is there nowadays.
The behavior of focus and blur is exactly what is documented:

blur(form:String, field:String, value:any)
Saves the value to the field.
focus(form:String, field:String)
Marks the given field as active and visited.

They won't touch the DOM.


Update default json.hpp

As noted in Issue #9 pbcopper currently uses an older json spec which causes build to fail on some systems. I've just run into this issue again when installing unanimity.
Suggest replacing default json.hpp with v2.0.1:
wget https://github.com/nlohmann/json/releases/download/v2.0.1/json.hpp -O pbcopper/include/pbcopper/json/internal/json.hpp

Fixed by updating to 3.1.2


PKG-8 not detected

Put extra filed in mimetype
Testing D:\ODS1\TestCorpusV2\PKG-8\ExtraFieldInMimeType.ods
APP-1: [INFO] Validating D:\ODS1\TestCorpusV2\PKG-8\ExtraFieldInMimeType.ods.
APP-4: [INFO] Validation report for D:\ODS1\TestCorpusV2\PKG-8\ExtraFieldInMimeType.ods.
DOC-1: D:\ODS1\TestCorpusV2\PKG-8\ExtraFieldInMimeType.ods [ERROR] An OpenDocument document SHALL be a single XML file or a Zip file.
XML-3: D:\ODS1\TestCorpusV2\PKG-8\ExtraFieldInMimeType.ods [ERROR] Not a well formed XML document. XML parsing exception at line 1 and column 1: Content is not allowed in prolog..
NOT VALID, 2 errors, 0 warnings and 0 info messages.

This now appears to be working for the latest builds and the corpus file in question:
APP-1: [INFO] Validating ExtraFieldInMimeType.ods.
APP-4: [INFO] Validation report for ExtraFieldInMimeType.ods.
PKG-6: mimetype [ERROR] The "mimetype" file SHALL NOT be compressed.
PKG-8: mimetype [ERROR] The “mimetype” file SHALL NOT use an 'extra field' in its header.
DOC-3: mimetype [INFO] OpenDocument MIMETYPE extrafield
application/vnd.oasis.opendocument.spreadsheet detected
PKG-12: META-INF/manifest.xml [ERROR] An OpenDocument package mimetype file content SHALL be equal to the manifest:media-type attribute of the manifest <manifest:file-entry> element whose manifest:full-path attribute has the value "/".
NOT VALID, 3 errors, 0 warnings and 1 info messages.

Please confirm and close @dewhattens


add disk Cache

add disk Cache.
In every time of network request will be based on the requested address URL to obtain the Content-Length parameter returns heads information to know the server returns the size of the data, to find the local disk whether there is the corresponding URL address cache, if the local cache size consistent expired and no data and server returns, do not read the network data and close request, reduce network traffic consumption. Or when the network request failure situation can also read the local cache returns data to trigger.

@wang00850023 would it be possible to give us pull request with only important modifications, and not reformatting the whole library code? this makes the code review and merge decision very hard to us. Thank you

I'm closing this PR, unless you could separate only the changes necessary to add Disk Cache, sorry, but I don't recognize it now .


Rewrite Boardroom contract

Updates reward distribution logic within the Boardroom contract.

@Dobrokhvalov It's passed lol


return_when=asyncio.FIRST_COMPLETED

What is the change?
A previous PR: https://github.com/sky-uk/mite/pull/254 Introduced a bug that will never allow a scenario test to finish running.
This PR fixed that by replacing the asyncio gather call with a wait call with the return_when=asyncio.FIRST_COMPLETED parameter.
This was tested by creating the following scenario and running the command:
$ mite scenario test a:scenario --log-level=WARN
Stopping Scenario

import asyncio

from mite.scenario import StopVolumeModel

def volume_model_factory(n):
    def vm(start, end):
        if start > 1:
            print("Stopping Scenario")
            raise StopVolumeModel
        return n

    vm.__name__ = f"volume model {n}"
    return vm

def scenario():
    return [
        ["a:j", None, volume_model_factory(1)],
    ]

async def j(ctx):
    await asyncio.sleep(1)

Does this change require a version increment:

[ ] Major
[ ] Minor
[x] Patch

Can we create an automated test of this code path?  It seems like a good idea now that it has been the source of one regression bug already...

Can we create an automated test of this code path? It seems like a good idea now that it has been the source of one regression bug already...

@aecay You read my mind. I was planning on introducing tests for all the individual mite components, and methods for running tests (individual journeys, scenario, etc)
When I have some time, I'll try and get them written.


Implement fsync()

We're having some problems seemingly with file syncing in postgres. We currently have been turning the fsync option off for it to be able to run, since we don't implement it. This seems like its most likely causing the problem.
Let's implement fsync(), we should add a syncing mechanism to file.rs in the interface and wrap it with a system call.

fdatasync and fsync syscalls are implemented.
#338

Thanks for that @kuzeyardabulut !
Apparently for postgres to work we also need to patch in sync_file_range. It seems like the easiest way to do that is to wrap the libc function.

This was completed by @kuzeyardabulut thanks!


Polish BERT example

Update some outdated code and description.

@ZhitingHu Yes, I reproduced the previous results.


will not complete test, says I did everything correct but will not advance

Challenge Build JavaScript Objects has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

// Example
var ourDog = {
  "name": "Camper",
  "legs": 4,
  "tails": 1,
  "friends": ["everything!"]
};

// Only change code below this line.

var myDog = {
  "name": "Tanooki",
  "legs": 4,
  "tails": 1,
  "friends": ["me"]

};

@phoenix1177 thanks for the issue. Sorry to hear you're having issue. Can you be more specific on how you're unable to advance after the challenge? Like are you able to get the success modal pop-up? Are all the challenge tests turning green? I am able to pass and advance the challenge using your code here.

I got green check marks after refreshing but I could never get the success
alert to advance.
On Apr 2, 2017 7:03 PM, "Eric Leung"<EMAIL_ADDRESS>wrote:

@phoenix1177 https://github.com/phoenix1177 thanks for the issue. Sorry
to hear you're having issue. Can you be more specific on how you're unable
to advance after the challenge? Like are you able to get the success modal
pop-up? Are all the challenge tests turning green? I am able to pass and
advance the challenge using your code here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/14217#issuecomment-291021495,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYrJcQM2PySpfO3V-GmtTwWnVGDVorcnks5rsClSgaJpZM4Mw8o-
.

Can you open the console (F12) and report any error message pls?

if left the array empty and it worked . So basically I tried to put something in earlier then it falied

@phoenix1177 Can you try with a different browser? I believe this might be an issue with Edge.

Looks like @phoenix1177 you are behind a network that is blocking some of the URL from being accessed. Also its possible that some browser plugins, like ad-blockers etc. can do this too.
Can you please check on a different browser like Google Chrome?

Please let us know in the comments if this does not work for you.