Problem on code running

Dear @yangqy916
When I run the code, I meet an error as the follow.

TextureCorrelation
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-4.

Error in slope_estimation (line 122)
Results_Compare(3,n) = k(index);
Error in TextureCorrelation (line 93)
[~,~,k_HTC] = slope_estimation(phase_ts_deramp,dem,MASK,W,r,N_ref); % **6
How to resolve it? Thank you.

The occurrence of this issue indicates that by changing the slope value within a discrete numerical interval, four values with the smallest absolute correlation were found. Generally, there is only one minimum value, and in slightly special cases, there might be two minimum values.
In your case (i.e., more than two minimum values): First, you need to output all the k values to check for any anomalies (such as all being 0 or Inf). If the k values are all normal numbers, you need to modify the step parameter in the sixth line of slope_estimation, setting it to a smaller value.
Since your situation is beyond what I can anticipate, if you can provide the values of na and nr, as well as the k vector values when slope_estimation throws an error, or provide your data contain the portion of the error occurs , I can further diagnose the issue.

@yangqy916 Thank you for the reply.
But when I change the step parameter in the sixth line of slope_estimation, it still does not work.
Now I upload the file for diagnosing.
链接：https://pan.baidu.com/s/14bsV0nu302lwspr3M14N-w?pwd=xgmr
提取码：xgmr

I tested your data, and the program ran without any bugs. I infer that you did not set the N_ref parameter according to the actual data. In your case, N_ref should be 11.
Additionally, please note that for your data, the window size parameter W should also be set larger, such as 251.
If the problem persists, feel free to continue communicating with me. If the program runs without bugs, please refer to the article to adjust the parameters that control the algorithm's performance.

@yangqy916 Thank you for the reply.
But when I change the following parameters:
N = 61;                                                                    % Number of time series SAR images
N_ref = 11;
W = 251;
the error still occurred.
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-4.
Error in slope_estimation (line 122)
Results_Compare(3,n) = k(index);
Error in TextureCorrelation (line 93)
[~,~,k_HTC] = slope_estimation(phase_ts_deramp,dem,MASK,W,r,N_ref); % **6
My matlab version is R2020a. I do not know what happen now.


fix(deps): update dependency graphql-tools to v4

This PR contains the following updates:

Package
Type
Update
Change

graphql-tools
dependencies
major
2.23.1 -> 4.0.6

Release Notes

apollographql/graphql-tools
v4.0.6
Compare Source

Use getIntrospectionQuery instead of deprecated introspectionQuery constant from graphql-js
@derek-miller in #1228

v4.0.5
Compare Source

Fixes a bug where schemas with scalars could not be merged when passed to
mergeSchemas as a string or GraphQLSchema.
@hayes in #1062
Make mergeSchemas optionally merge directive definitions.
@freiksenet in #1003
Allow user-provided buildSchema options.
@trevor-scheer in #1154

v4.0.4
Compare Source

Make WrapQuery work for non-root fields
@mdlavin in
#1007
Update resolvers.md to clarify array usage
@alvin777 in
#1005
Add missing property to mergeSchemas api reference.
@PlayMa256 in
#1014
Documentation updates for mockServer
@dougshamoo in #1012
Fix default merged resolver behavior
@mfix22 in #983
Use TArgs generic wherever IFieldResolver is used.
@brikou in #955
Include deprecations from string SDL in mergeSchemas.
@evans in #1041

v4.0.3
Compare Source

Replaced broken link in docs homepage with Launchpad example
@kriss1897 in
#965
Fix invalid query in schema delegation example.
@nico29 in
#980
Update package.json repository field.
@dlukeomalley in
#979
Add support for passing a parsed schema ast to mergeSchemas
@ganemone in
#977
Changes to extractExtensionDefinitions to support graphql-js union and enum extensions.
@jansuchy in #951
Add docs for mockServer (closes #951)
@mfix22 in PR #982
Fix regression where custom scalars were incorrectly replaced while recreating schema with visitSchema.
@tgriesser in #985

v4.0.2
Compare Source

Fix regression in enum input mapping.
@tgriesser in #974

v4.0.1
Compare Source

Fix regression in enum internal value mapping.
@tgriesser in #973

v4.0.0
Compare Source

Support graphql and @types/graphql 14.x.
NOTE: graphql 14 includes breaking changes. We're bumping the major version of graphql-tools to accommodate those breaking changes. If you're planning on using graphql 14 with graphql-tools 4.0.0, please make sure you've reviewed the graphql breaking changes list.
@hwillson in #953
Fix template strings usage in guessSchemaByRootField error message.
@nagelflorian in #936
Update IFieldResolver to allow typed input args.
@luk3thomas in #932
Changes to extractExtensionDefinitions to properly support graphql-js input extensions.
@jure in #948
Stop automatically shallow cloning (via object spread syntax) transformed subscription results. Transformed subscription results are not always objects, which means object spreading can lead to invalid results.
@ericlewis in #928
Re-use errors with an extensions property to make compatible with Apollo Server and it's built-in errors.
@edorsey in #925
Documentation updates.
@Amorites in #944
@trevor-scheer in #946
@dnalborczyk in #934
@zcei in #933

v3.1.1
Compare Source

Revert the added casual dependency for mocking, since it was causing issues for people using graphql-tools in the browser.

v3.1.0
Compare Source

Loosens the apollo-link dependency PR #765
Use getDescription from graphql-js package PR #672
Update IResolvers to use source & context generics and to support all resolver use cases. #896
WrapQuery's wrapper param can now return a SelectionSet. PR #902 Issue #901
Add null to return type of directive visitors in the TypeScript definition.
Make sure mergeSchemas keeps Enum descriptions and deprecation status. PR 898
Add inheritResolversFromInterfaces option to mergeSchemas PR #812
Added filtering of empty selection sets in FilterToSchema #827
Add support for overlapping fragments in ReplaceFieldWithFragment. #894
delegateToSchema now behaves like info.mergeInfo.delegateToSchema for fragment handling Issue #876 PR #885
Make schema transforms work with subscriptions, make it so that subscription errors don't disappear when using mergeSchemas #793 #780

v3.0.5
Compare Source

Update apollo-link to 1.2.2 #785

v3.0.4
Compare Source

Make sure dist/generate isn't excluded when published.

v3.0.3
Compare Source

Pass on operation name when stitching schemas.
Issue #522
PR #849
Fixed errors that occurred when a fragment field argument used a variable
defined in the parent query.
Issue #753
PR #806

v3.0.2
Compare Source

Fixed duplicate fragments getting added during transform in FilterToSchema #778
Fixed a visitType error printing the name of the variable typeName rather than its value due to a template string being incorrectly formatted. #783

v3.0.1
Compare Source

Fixed an array cloning bug in the RenameTypes transform
#756

Fixed a fragments bug in the ReplaceFieldWithFragment transform
#763

v3.0.0
Compare Source

Schema transforms and delegation

Substantial rewrite of internals of mergeSchemas and delegateToSchema
A new API for schema transforms has been introduced: Docs
delegateToSchema is now a public API: Docs
delegateToSchema now accepts an object of named parameters; positional arguments are deprecated
delegateToSchema no longer accepts fragmentReplacements; instead use transforms
info.mergeInfo.delegateToSchema is now the preferred delegation API, rather than info.mergeInfo.delegate

Other changes

Add commentDescription to printSchema call to match other uses PR #745
Add createResolver option to makeRemoteExecutableSchema PR #734

v2.24.0
Compare Source

Allow extend interface definitions in merged schemas PR #703
Fix typo in @deprecated example in schema-directives.md PR #706
Fix timezone bug in test for @date directive PR #686
Expose defaultMergedResolver for schema stitching PR #685
Add requireResolversForResolveType to resolver validation options PR #698
Add inheritResolversFromInterfaces option to makeExecutableSchema and addResolveFunctionsToSchema PR #720

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

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


Feature/enhance use of direct api

In a perspective to help solving issue #234 I propose a solution that implements a proper way to use translate.googleapis.com as url service.
This url service has following characteristics:

no need for a token
uses client gtx instead of webapp
I made a few modifications to mainly deal with these characteristics, preserving the possibility to use standard webapp calls.
The client should use 'translate.googleapis.com' as service url when instanciating Translator() object, adapted code will manage the valuation of client gtx in utils params.
Looking forward to reading your remarks for improvement is needed before final merge.

Coverage increased (+0.4%) to 91.727% when pulling 15b236f3b96fc9accbe427c0b39bbe1a05bc9338 on alainrouillon:feature/enhance-use-of-direct-api into 4f7c0798fe6b235164b47d4542536f562795a419 on ssut:master.

I can see travis went through. If one look at the errors this is due to gtoken.py test which cannot stably work anymore as it is the origin of the problem !!! This means no pull request at all can be done, we seem to be in a deadlock.
Please have a look at the changes this PR proposes, which could solve so many disastreous prod situation.
Thanks a lot

I'll take a look and consider remove that test if it doesn't work out.

I know you well know your job, no doubt, but just to mention here that the objective is to have a different way of working with the service url that adresses the api with the gtx client and no need for a token.
This service needs to be defined in the translator.
It is possible that this service can be less performant than the webapp which could have more updates (I honestly don't know).
My solution is a valuable workaround, but certainly not the ultimate solution which consists in reverse engineer the token valuation.
Thanks considering it ;-)

When I ran the code, at times I am getting same error once in 3 tries
error in result (AttributeError: 'NoneType' object has no attribute 'group')
But actually it solved my other problem, from yesterday where I raised an issue that Output from translator is same as Input. Here is the reference to issue #246.
This code actually when it is not giving error , gives me proper output like before. Not sure , how it had fixed , will check the code and try to figure out.
Thanks to @alainrouillon for this.

do you check it for multiple texts? I tried and get output the same as input after addition these fixes

@adkuln I used proxy for each request , at times it shows same error like NoneType object has no attribute group but while giving output it is giving me proper translated output .
Anyways , I ll check for couple of days and will notify the situation.

do you check it for multiple texts? I tried and get output the same as input after addition these fixes

@adkuln : Hi, not sure I understand 'multiple texts'. For sure this fix aims to have similar behaviour as existing code, just uses a different end client to do the job.

@mohamedniyaz1996 : glad it helped. But I'm surprised to read you got into error as I ran 100+ tests without any problem.

@mohamedniyaz1996 : glad it helped. But I'm surprised to read you got into error as I ran 100+ tests without any problem.

@alainrouillon , I have been using within Translator object which might have caused this issue, let me try without proxies and check.

@mohamedniyaz1996 : glad it helped. But I'm surprised to read you got into error as I ran 100+ tests without any problem.

@alainrouillon , I have been using within Translator object with proxies parameter which might have caused this issue, let me try without proxies and check.

@mohamedniyaz1996 : when creating Translator you have to define the service url as : translate.googleapis.com

i tried with proxies and after N trials, i got not-translations, but original texts from api

i tried with proxies and after N trials, i got not-translations, but original texts from api

@adkuln: Hi, as I said to Mohamed, please refer right service url (translate.googleapis.com).
Can you please give me code snippet to reproduce or analyse your pb ?

@mohamedniyaz1996 : glad it helped. But I'm surprised to read you got into error as I ran 100+ tests without any problem.

@alainrouillon , I have been using within Translator object with proxies parameter which might have caused this issue, let me try without proxies and check.

@mohamedniyaz1996 : when creating Translator you have to define the service url as : translate.googleapis.com

Below provided the code-block
from googletrans import Translator
translator = Translator(service_urls=['translate.google.com'])
translated_text = translator.translate("सभी एक में अश्वशक्ति रंग लेजर प्रिंटर",dest="en")
print(translated_text)
print(translated_text.text)

If I make service_urls to be translate.googleapis.com it is not working and moreover I am seeing for all cases, I again starting to get same input as output.

@mohamedniyaz1996 : glad it helped. But I'm surprised to read you got into error as I ran 100+ tests without any problem.

@alainrouillon , I have been using within Translator object with proxies parameter which might have caused this issue, let me try without proxies and check.

@mohamedniyaz1996 : when creating Translator you have to define the service url as : translate.googleapis.com

Below provided the code-block
from googletrans import Translator
translator = Translator(service_urls=['translate.google.com'])
translated_text = translator.translate("सभी एक में अश्वशक्ति रंग लेजर प्रिंटर",dest="en")
print(translated_text.text) <----- This turns out to be सभी एक में अश्वशक्ति रंग लेजर प्रिंटर

If I make service_urls to be translate.googleapis.com it is not working and moreover I am seeing for all cases, I again starting to get same input as output. Please correct me if I am not defining Traslator object properly.

@mohamedniyaz1996 : glad it helped. But I'm surprised to read you got into error as I ran 100+ tests without any problem.

@alainrouillon , I have been using within Translator object with proxies parameter which might have caused this issue, let me try without proxies and check.

@mohamedniyaz1996 : when creating Translator you have to define the service url as : translate.googleapis.com

Below provided the code-block
from googletrans import Translator
translator = Translator(service_urls=['translate.google.com'])
translated_text = translator.translate("सभी एक में अश्वशक्ति रंग लेजर प्रिंटर",dest="en")
print(translated_text.text) <----- This turns out to be सभी एक में अश्वशक्ति रंग लेजर प्रिंटर

If I make service_urls to be translate.googleapis.com it is not working and moreover I am seeing for all cases, I again starting to get same input as output. Please correct me if I am not using Translator() object in adherence.

Please ensure you have dowloaded the whole branch and replaced your local py-googletrans with this code. There are impacts to drive code execution properly considering the service url you choose. If translate.googleapis.com you don't use the same end client that does not required any token. Please ensure as well that your proxy allows to reach the endpoint.

@alainrouillon , Thanks for the suggestion, My local existing old googletrans didnt get replaced - Now it is working with no issues.
Let me test for 10-20 thousand small strings and will monitor if anything breaks.
For others, who are reading. I followed below steps to delete existing googletrans and replaced with new code from @alainrouillon :

pip uninstall googletrans
git clone https://github.com/alainrouillon/py-googletrans.git
git checkout feature/enhance-use-of-direct-api
python setup.py install

That's it! It works like a charm. To check if Updated code got installed, I executed below block:
from googletrans import Translator
translator = Translator(service_urls=['translate.googleapis.com'])
translated_text = translator.translate("सभी एक में अश्वशक्ति रंग लेजर प्रिंटर",dest="en")
print(translated_text.text)

Now, in-real it seems like solving the problem of #246.
Thanks @alainrouillon for this.

Thanks for your PR @alainrouillon , I have tested your PR it's working great, just in case someone it still having issue you can follow what @mohamedniyaz1996 wrote or can also do this way:
pip3 uninstall googletran
pip3 install git+https://github.com/alainrouillon/py-googletrans@feature/enhance-use-of-direct-api

And now the below code should work fine:
from googletrans import Translator
translator = Translator(service_urls=['translate.googleapis.com']) # At direct pip install,this service_url : translate.googleapis.com will not work , this is the indicator that new code had been installed
translated_text = translator.translate("सभी एक में अश्वशक्ति रंग लेजर प्रिंटर",dest="en")
print(translated_text.text)

Thanks

@ssut
Hi, as by now this feature works and starts to be used spreadwide. Maybe it could be a huge benefit for the community if we could fix this travis test not working as obviously it can not work anymore. How do you want to proceed ?

@alainrouillon , Thanks for the suggestion, My local existing old googletrans didnt get replaced - Now it is working with no issues.
Let me test for 10-20 thousand small strings and will monitor if anything breaks.
For others, who are reading, I followed below steps to delete existing googletrans and replaced with new code from @alainrouillon :

pip uninstall googletrans
git clone https://github.com/alainrouillon/py-googletrans.git
git checkout feature/enhance-use-of-direct-api
python setup.py install

That's it! It works like a charm. To check if Updated code got installed, I executed below block:
from googletrans import Translator
translator = Translator(service_urls=['translate.googleapis.com']) # At direct pip install,this service_url : translate.googleapis.com will not work , this is the indicator that new code had been installed
translated_text = translator.translate("सभी एक में अश्वशक्ति रंग लेजर प्रिंटर",dest="en")
print(translated_text.text)

Now, in-real it seems like solving the problem of #246.
Thanks @alainrouillon for this.

Hi, i repeat your steps for 700 steps:
After 250 steps I started get original text, not translation

@ssut
Hi, as by now this feature works and starts to be used spreadwide. Maybe it could be a huge benefit for the community if we could fix this travis test not working as obviously it can not work anymore. How do you want to proceed ?

I still debate on whether releasing this to PyPI is enough because this is a temporary workaround that can't help everyone suffering the same issue.
All I can say now and suggest at this point is: what do you think about releasing this as a beta for now?

@ssut
Hi, as by now this feature works and starts to be used spreadwide. Maybe it could be a huge benefit for the community if we could fix this travis test not working as obviously it can not work anymore. How do you want to proceed ?

I still debate on whether releasing this to PyPI is enough because this is a temporary workaround that can't help everyone suffering the same issue.
All I can say now and suggest at this point is: what do you think about releasing this as a beta for now?

Yes we can try this

@ssut
Hi, as by now this feature works and starts to be used spreadwide. Maybe it could be a huge benefit for the community if we could fix this travis test not working as obviously it can not work anymore. How do you want to proceed ?

I still debate on whether releasing this to PyPI is enough because this is a temporary workaround that can't help everyone suffering the same issue.
All I can say now and suggest at this point is: what do you think about releasing this as a beta for now?

Yes we can try this

I will try to do that tomorrow night (GMT+9 here.)

Good afternoon, What's wrong with the googletrans library? When calling the .translate function, an error occurs

@alainrouillon , Thanks for the suggestion, My local existing old googletrans didnt get replaced - Now it is working with no issues.
Let me test for 10-20 thousand small strings and will monitor if anything breaks.
For others, who are reading, I followed below steps to delete existing googletrans and replaced with new code from @alainrouillon :

pip uninstall googletrans
git clone https://github.com/alainrouillon/py-googletrans.git
git checkout feature/enhance-use-of-direct-api
python setup.py install

That's it! It works like a charm. To check if Updated code got installed, I executed below block:
from googletrans import Translator
translator = Translator(service_urls=['translate.googleapis.com']) # At direct pip install,this service_url : translate.googleapis.com will not work , this is the indicator that new code had been installed
translated_text = translator.translate("सभी एक में अश्वशक्ति रंग लेजर प्रिंटर",dest="en")
print(translated_text.text)

Now, in-real it seems like solving the problem of #246.
Thanks @alainrouillon for this.

Hi, i repeat your steps for 700 steps:
After 250 steps I started get original text, not translation

Please note that I used proxies to avoid such bottle-neck cases.

All the same, the same does not work, can I somehow do it wrong on the server?

Hi,  there is something still wrong in gtoken.py:
in function _update() in line 54  r = self.client.get(self.host), but str(r) ==<Response [404 Not Found]>
and later I get error:
code = self.RE_TKK.search(r.text).group(1).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'

Hi, there is something still wrong in gtoken.py:
in function _update() in line 54 r = self.client.get(self.host), but str(r) ==<Response [404 Not Found]>
and later I get error:
code = self.RE_TKK.search(r.text).group(1).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'

Sure the gtoken function cannot work anymore the way it was. If one still uses service url to point to usual translate.googletrans.xxx it will not work. This feature is a fix to be able to use safely another service url to point to a different end client, without any token.

:tada: New Alpha Version Release
I've released<EMAIL_ADDRESS>on PyPI and it seems to be working. Note that you all have to specify the package version like: pip install googletrans==3.1.0a0.

🎉 New Alpha Version Release
I've released<EMAIL_ADDRESS>on PyPI and it seems to be working. Note that you all have to specify the package version like: pip install googletrans==3.1.0a0.

Thank you Suhun. Hope people have good use of it and got the fact they have to use a specific service url.
Have a nice day !

hi i have used many method to over come this issue but result is negative , then i searched many and finally got this https://github.com/lushan88a/google_trans_new
this post may useful for you guys

Now it has stopped sending back translated text, it returns the original only.

Something that may be useful is to use a VPN while the program is running (I'm using the googletrans alpha version). That way it starts translating to the "dest" language again.
Hope it helps you guys!

Hello! I have put a new issue please refer here! Thank you guys! you guys are AWESOME!
Translation result returns the same text
https://github.com/ssut/py-googletrans/issues/254

Hello, I do not get any errors but my code does not translate either. It was translating at first, now it is not doing anymore, what should I do?

I used the git clone command with the given branch, and for me the api actually translates and works fine. I uninstalled it and reinstalled it multiple times and it keeps working fine for me, I'm using Python 3.7.x, maybe that does something with it

AttributeError: 'NoneType' object has no attribute 'translate'
Why I get this error?

AttributeError: 'NoneType' object has no attribute 'translate'
Why I get this error?

Okay, when I use 3.9 I get this error. If I down to 3.7 I get AttributeError: 'NoneType' object has no attribute 'group' error, it was worked fine yesterday I don't understand why it is not working again.
The code I tried is:
from googletrans import Translator
translator = Translator(service_urls=['translate.googleapis.com']) # At direct pip install,this service_url : translate.googleapis.com will not work , this is the indicator that new code had been installed
translated_text = translator.translate("cat", dest="tr")
print(translated_text.text)
Also, the people who suggest google_trans_new it does not work as well.

>>> tr.translate(["hallo", "freunde"], dest='en')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/workspaces/ivtranslator/.venv/lib/python3.8/site-packages/googletrans/client.py", line 219, in translate
    parsed = json.loads(data[0][2])
  File "/usr/local/lib/python3.8/json/__init__.py", line 341, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

Looks like with the rc-1 version the multiple-inputs use case is indeed broken?
Not sure if this is part of a release already, or already fixed.


Adding SCF college to repository

student.scf.edu
State College of Florida Manatee-Sarasota

@ficklative I am sorry, the domain student.scf.edu is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).

That's unfortunate! Thank you for your help, I followed your direction and
reapplied, all is well.
On Tue, Nov 19, 2024 at 3:25 AM Philip Torchinsky @.***>
wrote:

@ficklative https://github.com/ficklative I am sorry, the domain
student.scf.edu is removed from our trusted domains list because it was
abused in the past. If you are the student of this school, please enroll to GitHub
Student Developer Program
https://education.github.com/discount_requests/application. Then apply
for JetBrains educational subscription with your GitHub account (GitHub
tab at https://www.jetbrains.com/shop/eform/students).
—
Reply to this email directly, view it on GitHub
https://github.com/JetBrains/swot/pull/25287#issuecomment-2485013559,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BNBM5C6CYTWBGHE5RSCVL432BLYYRAVCNFSM6AAAAABSBC3FZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBVGAYTGNJVHE
.
You are receiving this because you were mentioned.Message ID:
@.***>


The calculator is not responsive

The calculator code currently is suitable for desktop devices, and not suitable for mobile view.
Try to make it better

Hi! Would it be okay to add vite to this project? With that we could add support for scss which would really help in writing responsive styles.

i can make it responsive. will you assign this to me ?

You can use anything which you are comfortable in doing @subhranshuchoudhury

Hi @DhanushNehru, I would like to work on this, Can I?

Hi @DhanushNehru, I would like to work on this, Can I?

I am already on this. And it is in final stage.

@subhranshuchoudhury are you adding npm and some build system?

@subhranshuchoudhury are you adding npm and a build system? Please dont just use the bootstrap cdn.
As i wrote some comments above, I already started on this.
If you like, I can push my build system and npm work and you can add the new responsible bootstrap layout.
@DhanushNehru please dont assign multiple people on the same issue.

I already raised PR. i just used bootstrap for the Accordion. I didn't use npm.

Hi @subhranshuchoudhury the calculator viewed on mobile is fine
But in desktop view it should be viewed
like this

and not like this

Ok i will fix it


Sometimes Resume Fetches Old Changes And Then Latest Changes are Lost

Is there an existing issue for this?

[X] Yes, I have searched the existing issues and none of them match my problem.

Product Variant
Cloud (http://rxresu.me)
Current Behavior
It is very irritating when u visit the web and see that last changes were not there , instead resume are showing .. previous to previous changes ..
It is happening not very frequently , but whenever this happen .. It feels like not worth it at all to do the changes again
Here is the proof ..
this is my dashboard  showing changes  ( and the main thing is , updatedAt showing correctly but not showing the correct updated changes)
https://rxresu.me/anubhav.rashit/web-dev
And this is the pdf I've downloaded when i did the changes at the same time
Resume.pdf

Please match the projects section in bottom of resume at both the places
I've updated the sections from 3 projects to 4 .. but still dashboard showing very old changes

Let me know any other details required regarding this ...
Expected Behavior
Needs to show the latest changes . not only previous changes
Steps To Reproduce
Not sure how to reproduce the behavior . But this happened with me many times
What browsers are you seeing the problem on?
Chrome
What template are you using?
None
Anything else?
No response

Should be fixed now.


feature: show quick diff on hover

Is it possible to show a diff when hovering/clicking on a changed file in the side panel?
Doesn't have to be comprehensive though (especially for big changes) - first 10-15 lines is enough. May also add arrow buttons to go to previous/next change.  Can be useful to have some idea of what's changed when you've made changes to many files over a long period.

There's already a hover effect, when holding CTRL key, but it shows the file content and not the diff. I use Obsidian's internal features to show a preview of files, but I'm unsure how to implement that for my custom view. So I think it will stay with previewing the file content and not diff.

I currently don't plan on implementing this, because I think it's enough to just click on the different files and see the diff in the diff view.


Feat Req: Instance Normalization

Feature description
Implementation of Instance Normalization from the paper Instance Normalization: The Missing Ingredient for Fast Stylization.
Pytorch Docs-

InstanceNorm1D
InstanceNorm2D

Feature motivation
Nice to have and a commonly used normalization layer.

Hey there, may I work on this one?

@tushushu please go ahead!

In pytorch, the inheritance levels are: Module -> _NormBase -> _InstanceNorm -> (InstanceNorm1d, InstanceNorm2d), let me try to figure out if we can do it this way in Burn.

In pytorch, the inheritance levels are: Module -> _NormBase -> _InstanceNorm -> (InstanceNorm1d, InstanceNorm2d), let me try to figure out if we can do it this way in Burn.

Inheritance does not exist in rust, and moreover not required. Check out the batch norm files in this repo to see how it is done without any base classes

According to the doc of Tensorflow: Instance Normalization is special case of group normalization where the group size is the same size as the channel size (or the axis size).
Shall we implement the InstanceNormalization based on GroupNormalization?
@Arjun31415 @antimora

In addition, the layer Normalization is also a special case of group normalization where the group size is 1. Does it make sense to reimplement LN based GN, too?

@louisfd and @nathanielsimard will be more knowledgable to suggest which route we should take.

Hi @tushushu
For InstanceNorm it seems right. Since GroupNorm is
pub struct GroupNorm<B: Backend> {
    num_groups: usize,
    num_channels: usize,
    gamma: Option<Param<Tensor<B, 1>>>,
    beta: Option<Param<Tensor<B, 1>>>,
    epsilon: f64,
    affine: bool,
}

Then InstanceNorm could just be a group norm constructed with num_groups == num_channels. Would be interesting to offer it with the right name.
For reimplementing LayerNorm, I think it could help adding cohesion instead of duplication, but first I'd like to know why LayerNorm's forward is 6 lines while GroupNorm is 88 lines... if using the same forward makes LayerNorm less efficient then not sure we should do it.

Hi @tushushu For InstanceNorm it seems right. Since GroupNorm is
pub struct GroupNorm<B: Backend> {
    num_groups: usize,
    num_channels: usize,
    gamma: Option<Param<Tensor<B, 1>>>,
    beta: Option<Param<Tensor<B, 1>>>,
    epsilon: f64,
    affine: bool,
}

Then InstanceNorm could just be a group norm constructed with num_groups == num_channels. Would be interesting to offer it with the right name.
For reimplementing LayerNorm, I think it could help adding cohesion instead of duplication, but first I'd like to know why LayerNorm's forward is 6 lines while GroupNorm is 88 lines... if using the same forward makes LayerNorm less efficient then not sure we should do it.

Hey Louis,
After reading the codes of GroupNorm and LayerNorm, I found that:

LayerNorm does not check the input shape, but GroupNorm does.
LayerNorm has not implemented the affine feature.
LayerNorm uses var_mean_bias to calculate the mean and var.

Maybe let me tests the performance of LayerNorm and GroupNorm with group size=1 first.

@louisfd @nathanielsimard  After testing the benchmark, the result of gn with n_group = 1 and ln is the same, but the gn's performance is better. The test and result are as below:
 #[test]
    fn compare_gn_ln() {
        const N: usize = 100;
        let arr = [(); N].map(|_| thread_rng().gen_range(0.0..1.0));
        let device = Default::default();
        let input = Tensor::from_data(Data::from([arr]), &device);

        let start = Instant::now();
        let module_ln = LayerNormConfig::new(N).init::<TestBackend>(&device);
        let output_ln = module_ln.forward(input.clone());
        let duration = start.elapsed();
        println!("Time elapsed in ln.forward is: {:?}", duration);

        let start = Instant::now();
        let module_gn = GroupNormConfig::new(1, N).init::<TestBackend>(&device);
        let output_gn = module_gn.forward(input.clone());
        let duration = start.elapsed();
        println!("Time elapsed in gn.forward is: {:?}", duration);

        // The output of the layer norm and group norm should be the same
        output_gn
            .to_data()
            .assert_approx_eq(&output_ln.to_data(), 3);
    }

    cargo test --release --package burn-core --lib -- nn::norm::layer::tests::compare_gn_ln --exact --nocapture

    const N: usize = 100;
    Time elapsed in ln.forward is: 364µs
    Time elapsed in gn.forward is: 49.75µs

    const N: usize = 1000;
    Time elapsed in ln.forward is: 424.542µs
    Time elapsed in gn.forward is: 61µs

    const N: usize = 10000;
    Time elapsed in ln.forward is: 588.875µs
    Time elapsed in gn.forward is: 202.458µs

I've submitted a PR for you guys to review.

Completed in PR #1321


BinaryFormatter security updates

See https://github.com/dotnet/docs/issues/19460
@gewarren does this look like the right approach? How do I preview the build?

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

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

See dotnet/docs#19460
@gewarren does this look like the right approach? How do I preview the build?

Hey Rick, you want to submit your PR to the visualstudio-docs-pr repo.

Hi @Rick-Anderson - This pull request was opened in the public repo. Would you submit these updates in the private repo? We'll close this PR. Thanks.

Related links in the internal Microsoft Docs contributor guide:
Public vs. private repos | Move a commit to a different repo (public -> private) | GitHub for content reviews
Quick reference for contributing to the docs | Make changes to a Docs article | PR review quality criteria

@ktoliver
$ git clone https://github.com/MicrosoftDocs/visualstudio-docs-pr.git
Cloning into 'visualstudio-docs-pr'...
remote: The `MicrosoftDocs' organization has enabled or enforced SAML SSO. To access
remote: this repository, visit https://github.com/enterprises/microsoftopensource/sso?authorization_request=AA3QG5GWXN4A2PB3BLMVTMK7BY4E7A5PN5ZGOYLONF5GC5DJN5XF62LEZYAVOASZVVRXEZLEMVXHI2LBNRPWSZGODG2D5ZFPMNZGKZDFNZ2GSYLML52HS4DFVNHWC5LUNBAWGY3FONZQ
remote: and try your request again.
fatal: unable to access 'https://github.com/MicrosoftDocs/visualstudio-docs-pr.git/': The requested URL returned error: 403


Fix 35198678 a little better

This picks up where #12763 left off, killing off TypeChecker::addImplicitDestructor by moving the relevant work it's doing at the types-and-attributes level to ClassDecl::addImplicitDestructor. Also directs clients to use the ClassDecl variant.
rdar://35198678

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - c1794317243befc14c9249db2b0e3511bc7f2551

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - c1794317243befc14c9249db2b0e3511bc7f2551

Build failed
Swift Test Linux Platform
Git Sha - c1794317243befc14c9249db2b0e3511bc7f2551

Build failed
Swift Test OS X Platform
Git Sha - c1794317243befc14c9249db2b0e3511bc7f2551

Looks like this might fix rdar://problem/35375615 too. Going to check now.

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 798f1e19b02673ba1e1d71d38b53d084886b5bd4

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 7c1203ac2222ee7c9e57a9405d411c5bb6d96c02

@swift-ci please test and merge

@swift-ci please test and merge

@swift-ci please test OS X platform

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 3d4c8db1407e6edcc3bb42b7b614891a6a909a6f

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 3d4c8db1407e6edcc3bb42b7b614891a6a909a6f


Shrink Cats-interop dependency scope

I'm in the process of totally removing CE dependencies for my ZIO projects but I have ZIO Metrics Prometheus that pulls ZIO Cats interop (and CE for that), but turns out is not needed.
Only Dropwizard implementation uses it for http4s interaction. So this PR reduces it's scope to be declared only when needed.

Great ctach, thx!


Leb7/object detect

Merging object detect src

Why are there infinite commits for all the files LOL You might need to make a new branch and create a new PR for this one

Yeah you right. But for the sake of time. Ima just merge this.


Fix GOROOT in lint

@nmiyake did you close this intentionally?

Yes -- this PR was meant to be against my fork, so I closed this one (equivalent PR has already merged on my fork).
-Nick

On Sep 13, 2016, at 6:34 PM, David Tolnay<EMAIL_ADDRESS>wrote:
@nmiyake did you close this intentionally?
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Added article for MySQL

NOTE:

Please fill out the template below

Did you read the instructions in the README?

Y

Have you read the instructions in CONTRIBUTING?

Y

Have you written this article by yourself? Have you taken inspiration from anywhere and then written it in your words?

Yes, I ahve tken inspiration from tutorials point and w3schools

Great article!Merging it!


Microsoft Sentinel - JIRA connector not working

Describe the bug
The Atlassian Jira Audit (using REST API) (Preview) fails to connect.
To Reproduce
Steps to reproduce the behavior:

Go to the Atlassian Jira Audit (using REST API) (Preview) connector in Sentinel.
Click on add organization button
Fill the required information.
See error

Expected behavior
The connection to establish and the data to start flowing.
Screenshots

Desktop (please complete the following information):

OS: Windows OS 2011
Browser: Chrome
Version : 127.0.6533.120 (Official Build) (64-bit) (cohort: Stable)

Additional context
The user who created the API is a platform admin, and their credential was used to establish this connection.

Hi @pratikghogre8cap, Thanks for flagging this issue, we will investigate this issue and get back to you with some updates. Thanks!

Looks like Sentinel's Content Hub still has the buggy previous version (3.0.2) up, any information when the fixed 3.0.3 will be published there?

Tried the new connector manually, worked.
The connector needs to be updated in Content-Hub. @v-sudkharat

Looks like Sentinel's Content Hub still has the buggy previous version (3.0.2) up, any information when the fixed 3.0.3 will be published there?

Hi @Latsis, The new 3.0.3 has been published. Thanks!

Tried the new connector manually, worked. The connector needs to be updated in Content-Hub. @v-sudkharat

Thanks @pratikghogre8cap, for the update. The new 3.0.3 has been published, could you please check and let us know it fixed you issue.

I'm still getting the 401: Unauthorized, even though I've updated the solution (connector is still v1.0.0). What am I doing wrong?
Cheers,
Tom

Tried the new connector manually, worked. The connector needs to be updated in Content-Hub. @v-sudkharat

@pratikghogre8cap, could you help us to understand how you configured manually? if possible could you please share screenshots as well.

Hi @TomicaKaniski / @Latsis,
We will update the template and will raise PR with correct changes. Meantime, could you please custom deploy the Solution MainTemplate and check whether your issue get resolved.
Sharing the MainTemplate and Custom deployment steps-
Custom Deployment - CustomDeploymentSteps.docx
Main template - Fix.txt
Thanks!

Thank you, @v-sudkharat! Removed, deployed the fix, but still having the same issue, unfortunately.

Hi @TomicaKaniski, Coud you please check once by using below file :-
https://raw.githubusercontent.com/Azure/Azure-Sentinel/af1e2a30e4d3b8d57c09a1cd7f82825fd6f1c882/Solutions/AtlassianJiraAudit/Package/mainTemplate.json
Maybe the Data connector is not gets overwrite correctly after custom deployment, please check it in different workspace.
And if you still get same error, We can connect via a call to resolve this issue. Thanks!

@v-sudkharat, thank you! This one works!
Connected successfully to both - new workspace and an existing one (which was previously failing):

Thank you!
Cheers,
Tom

Thanks @TomicaKaniski, for update. This fix will also get updated into upcoming solution version. Thanks!
So, closing this issue. If you still need support for this issue, feel free to re-open it any time. Thank you for your co-operation.


Added FAQ.md

Added FAQ page with a list of common pitfalls.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


'Image already exists' fails the push

Description
If an image already exists in the registry, the 'push' fails due to 'Image already exists' and results in retry pushing and finally a maven build failure.
d1358d793d2f: Pushed
dc13f11841f7: Pushed
70fa39f3c5b1: Pushed
b00ca73cbdde: Pushed
2e82ca87ee2d: Image already exists
3667a1481f9c: Image already exists
401f6712926f: Image already exists
b6b59ba2b1e5: Image already exists
1.0-SNAPSHOT: digest: sha256:3bd8dddf8429c68f111dad7d51d3b23f37ead8f36c053f31bca340c39449c314 size: 11230
[WARNING] Failed to push xxxx/reactor-zookeeper:1.0-SNAPSHOT, retrying in 10 seconds (1/5).
How to reproduce
Repeatedly run a same maven job to push.
What do you expect
'Image already exists' should be a warning. It should not fail the maven job.
What happened instead
It fails the maven job
Software:

docker version: 1.9.1
docker-maven-plugin version: 0.4.11
maven version: 3.0.5

I think that "image already exists" is a red herring and not the true reason why your image failed to push. What output do you see if you let the retry loop run until completion? Please run your build with -e and attach the output.

Sorry I cannot reproduce it anymore.
I guess the problem is related to the the repository server since it seems have been patched.
Anyway it runs very well now.
I will close this entry now.
Thank you.

We met similar issue. The error said 'cannot temporarily tag while target image already exist.' And after checked, found the code as below:
       if (!name.hasRegistry() && registry != null) {             if (hasImage(targetImage)) {                 throw new DockerAccessException(                     String.format("Cannot temporarily tag %s with %s because target image already exists. " +                                   "Please remove this and retry.",                                   name.getFullName(), targetImage));             }
I guess it's abnormal to interrupt the docker push in this way. Is it possible to remove the exception? Or maybe add a parameter to toggle on/off the exception?
Thanks.

By the way, we can fix the issue by remove the existing tags. But it's not a good way for us to do that.


Added mock protobuf generator for Python

This is a general mock protobuf generator in Python for unittest.

Looks good!


Don't Merge! PR real time test for source branch full build

Docs Build status updates of commit 8bc5aca:
:clock10: Pending: waiting for processors (23 builds ahead of you)
:warning: Docs Build is busy, currently there are 23 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 8bc5aca:
:clock10: Full build: the average full build time is 7 min(s) 52 sec(s), this is based on the last 30 build(s) for this repository.

Docs Build status updates of commit 8bc5aca:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docfx.json
:white_check_mark:Succeeded

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


Cleanup: Abstract the Analysis Outcome Logic

abstract the createOutcomeFrom function into the BaseAnalysis class for reusability across the different analysis features
refactor the features classes by extending them from the BaseAnalysis class
remove unneeded static functions from the AnalysisOutcome class.

LGTM


fix help icon

tbh, i would simply replace the thing we now have and use in other places with a button/image

the annoying part is that it moves when one scrolls

replaced by simple hyperlink


Publish tree action?

Is your feature request related to a problem? Please describe.
Do you have a plan to add a publish tree option to pages and assets?
Describe the solution you'd like
Right now when you have a lot of pages publishing them one by one takes time. And republishing a site takes even longer.
Are you planning to add Publish all feature to this menu?

If not soon, is there an official way to add items to this menu?

I've implemented this already.
https://github.com/typerefinery-ai/typerefinery-websight/issues/323


Object interface

_dbObject is not the base class of all db objects, that is dbObject.  For example:
class _dbNet : public dbObject
class _dbBlock : public dbObject
etc.

Ok, my mistake.
On Sat, Dec 28, 2019 at 7:19 PM Matt Liberty<EMAIL_ADDRESS>wrote:

_dbObject is not the base class of all db objects, that is dbObject. For
example:
class _dbNet : public dbObject
class _dbBlock : public dbObject
etc.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/The-OpenROAD-Project/OpenDB/pull/94?email_source=notifications&email_token=AIJDZFMQHY7JUZ2HR3RRIRTQ3AJMPA5CNFSM4J7UCAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYWZVA#issuecomment-569470164,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIJDZFPX733CBTDRRJIRPYTQ3AJMPANCNFSM4J7UCAWA
.


Error when I use python setup.py

This is my computer display. What should I do ? Thank for help
(sfm) D:\manhinh\Ki2Nam4\code\OpenSfM>python setup.py build
Configuring for python 3.7...
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- A library with LAPACK API found.
-- Found AMD library: C:/Users/ADMIN/anaconda3/envs/sfm/Library/lib/amd.lib
-- Failed to find SuiteSparse - Did not find AMD header (required SuiteSparse component).
-- Found CAMD library: C:/Users/ADMIN/anaconda3/envs/sfm/Library/lib/camd.lib
-- Failed to find SuiteSparse - Did not find CAMD header (required SuiteSparse component).
-- Found COLAMD library: C:/Users/ADMIN/anaconda3/envs/sfm/Library/lib/colamd.lib
-- Failed to find SuiteSparse - Did not find COLAMD header (required SuiteSparse component).
-- Found CCOLAMD library: C:/Users/ADMIN/anaconda3/envs/sfm/Library/lib/ccolamd.lib
-- Failed to find SuiteSparse - Did not find CCOLAMD header (required SuiteSparse component).
-- Found CHOLMOD library: C:/Users/ADMIN/anaconda3/envs/sfm/Library/lib/cholmod.lib
-- Failed to find SuiteSparse - Did not find CHOLMOD header (required SuiteSparse component).
-- Found CXSPARSE library: C:/Users/ADMIN/anaconda3/envs/sfm/Library/lib/cxsparse.lib
-- Found SuiteSparseQR library: C:/Users/ADMIN/anaconda3/envs/sfm/Library/lib/spqr.lib
-- Failed to find SuiteSparse - Did not find SUITESPARSEQR header (required SuiteSparse component).
-- Found SuiteSparse_config library: C:/Users/ADMIN/anaconda3/envs/sfm/Library/lib/suitesparseconfig.lib
-- Failed to find SuiteSparse - Failed to find either: SuiteSparse_config header & library (should be present in all SuiteSparse >= v4 installs), or UFconfig header (should be present in all SuiteSparse < v4 installs).
-- Did not find METIS library (optional SuiteSparse dependency)
-- Failed to find some/all required components of SuiteSparse. (missing: AMD_FOUND CAMD_FOUND COLAMD_FOUND CCOLAMD_FOUND CHOLMOD_FOUND SUITESPARSEQR_FOUND SUITESPARSE_VERSION)
CMake Error at cmake/FindEigen.cmake:77 (MESSAGE):
Failed to find Eigen - Could not find eigen3 include directory, set
EIGEN_INCLUDE_DIR to path to eigen3 include directory, e.g.
/usr/local/include/eigen3.
Call Stack (most recent call first):
cmake/FindEigen.cmake:103 (EIGEN_REPORT_NOT_FOUND)
CMakeLists.txt:37 (find_package)
-- Configuring incomplete, errors occurred!
See also "D:/manhinh/Ki2Nam4/code/OpenSfM/cmake_build/CMakeFiles/CMakeOutput.log".
See also "D:/manhinh/Ki2Nam4/code/OpenSfM/cmake_build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "setup.py", line 46, in
configure_c_extension()
File "setup.py", line 37, in configure_c_extension
subprocess.check_call(cmake_command, cwd="cmake_build")
File "C:\Users\ADMIN\anaconda3\envs\sfm\lib\subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '../opensfm/src', '-DPYTHON_EXECUTABLE=C:\Users\ADMIN\anaconda3\envs\sfm\python.exe']' returned non-zero exit status 1.

Hi @tranvanha1508 ,
It seems that either Eigen is not installed on your system or the paths are not set correctly.
I don't use Windows and can't reproduce the issue but maybe this helps.
Good luck :D


jinja-statements-delimiter doesn't appear to be in the AVD docs

We're getting errors from using {%- as delimiter in our jinja templates, which from i can understand is valid jinja. I've looked through the AVD docs and can't seem to find any errors relating to this error. Can someone provide some evidence, or maybe we can go ahead an remove this rule?

Hello, thanks for reaching out.
You are perfectly right that it is valid Jinja syntax - it is part of the core rules of this library as j2lint was created to serve the needs of AVD and we are relying on the ansible behavior (trim_blocks True / lstrip_blocks False - https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html#ansible-collections-ansible-builtin-template-module).
And as such we don't expect to have the {%- syntax in AVD for many of the templates. The AVD docs however do not mention this rule as you noticed..
We do use it in some places and in that case are using j2lint ignore feature as in https://github.com/aristanetworks/ansible-avd/blob/devel/ansible_collections/arista/avd/roles/eos_snapshot/templates/fabric_json_output.j2#L1:
{# j2lint: disable=jinja-statements-delimiter #}

You can decide to remove the rule for your own usage of course.
j2lint <FILES> -i jinja-statements-delimiter

(Be mindful of this issue with -i currently: https://github.com/aristanetworks/j2lint/issues/40)

I realized the same by using {%-. We have to use it because for example in Fortinet FMG trim_blocks is not enabled and we don't have influence on how templates are rendered. We'll use comment ignore. Thanks for the tips! Would be nice to have a config file :P

Thanks for the feedback @viktorkertesz - opened an issue to track this! I will close this issue for now.


Reply SMS doesn't work for at least one US carrier

When a reply SMS is sent to Twilio, with this provider the original SMS is not found in the Database.
At the moment we have been able to reproduce it with only one phone number (but probably it is failing for all numbers for that provider).
Note: Twilio seems to be sending for this provider the local number instead of the standard E164

@jonjomckay  could you please review this code?

LGTM :package:


Apollol 6.0 Camera perception

Is camera perception working in apollo 6.0? I am getting following error
[motion ]  WARNING: Logging before InitGoogleLogging() is written to STDERR
[camera ]  WARNING: Logging before InitGoogleLogging() is written to STDERR
[motion ]  I1104 14:53:30.016518 72935 module_argument.cc:81] []command: mainboard -d /apollo/modules/perception/production/dag/dag_motion_service.dag -p motion -s CYBER_DEFAULT
[camera ]  I1104 14:53:30.016619 72933 module_argument.cc:81] []command: mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag -p camera -s CYBER_DEFAULT
[motion ]  I1104 14:53:30.017052 72935 global_data.cc:153] []host ip: <IP_ADDRESS>
[camera ]  I1104 14:53:30.017071 72933 global_data.cc:153] []host ip: <IP_ADDRESS>
[motion ]  I1104 14:53:30.017208 72935 module_argument.cc:57] []binary_name_ is mainboard, process_group_ is motion, has 1 dag conf
[camera ]  I1104 14:53:30.017220 72933 module_argument.cc:57] []binary_name_ is mainboard, process_group_ is camera, has 1 dag conf
[motion ]  I1104 14:53:30.017213 72935 module_argument.cc:60] []dag_conf: /apollo/modules/perception/production/dag/dag_motion_service.dag
[camera ]  I1104 14:53:30.017225 72933 module_argument.cc:60] []dag_conf: /apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag
[motion ]  E1104 14:53:30.018187 72935 module_controller.cc:87] [mainboard]Path does not exist: /apollo/bazel-bin/modules/perception/camera/lib/motion_service/libmotion_service.so
[motion ]  E1104 14:53:30.018203 72935 module_controller.cc:67] [mainboard]Failed to load module: /apollo/modules/perception/production/dag/dag_motion_service.dag
[motion ]  E1104 14:53:30.018206 72935 mainboard.cc:39] [mainboard]module start error.
[motion ]
[camera ]  E1104 14:53:30.385419 72933 class_loader_manager.h:70] [mainboard]Invalid class name: FusionCameraDetectionComponent
[camera ]  E1104 14:53:30.385435 72933 module_controller.cc:67] [mainboard]Failed to load module: /apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag
[camera ]  E1104 14:53:30.387018 72933 mainboard.cc:39] [mainboard]module start error.
[camera ]
[cyber_launch_72926] ERROR Process [camera] has died [pid 72933, exit code 255, cmd mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag -p camera -s CYBER_DEFAULT].
[cyber_launch_72926] ERROR Process [motion] has died [pid 72935, exit code 255, cmd mainboard -d /apollo/modules/perception/production/dag/dag_motion_service.dag -p motion -s CYBER_DEFAULT].

@chinnikrishna55 Camera perception is in process of refactoring, so it is not available in Apollo 6.0 yet. Please use our former versions if you need camera perception, or look forward to our future releases. Thank you for your interest in Apollo.

Hi, is there any update on this? will the camera perception available??

Is Camera perception available now in master branch? Thank you! @jeroldchen

Hi, is camera perception available now in the master branch?

Hi, is camera perception available now in the master branch?

Yes

Hi, is camera perception available now in the master branch?

Yes

Thank you.


Error

I am running the simulation and I am facing the following errors:
mv: cannot stat 'baseprice_clearedprice_clearedquantity.csv': No such file or directory
mv: cannot stat 'totalload.csv': No such file or directory

Hello,
Unfortunately your description doesn't help me understand the issue you are facing. I suggest you check again that you have followed all the steps in the documentation for setting up the GridAttackSim system, then try again.
If the simulation still doesn't run, please describe in details your setup and actions, so that we can try to diagnose the problem.
Best wishes,
Razvan

Thank you very much for your prompt reply.
Actually, I run the simulations with 13 nodes, 73 houses, Demand and Response application, Nefarious activity Attack, and 1- Channel Jamming-Cluster.  The results appears as following:
You selected Attack ID: 1

Category Name:  Nefarious Activity
Attack Type: Channel Jamming - Cluster
Description:  Since smart grid uses IP protocol and TCP/IP stack, it becomes subject to DoS attacks and to the vulnerabilities inherent in the TCP/IP stack. DoS attacks might attempt to delay, block, or corrupt information transmission in order to make smart grid resources unavailable
Attack Component:  Network
Start Time:  12:00:00
End Time: 18:00:00
Affected Value:

delay_cluster = 100
data_rate_cluster = 1000000
The Simulation is running!
Process PID: 38419
Finished!
mv: cannot stat 'baseprice_clearedprice_clearedquantity.csv': No such file or directory
mv: cannot stat 'totalload.csv': No such file or directory

Hi,
Thank you for your question,
Please simply add 2 blank csv file name "baseprice_clearedprice_clearedquantity.csv" and 'totalload.csv' under the folder Database/Grid_Database_Name. For example, Database/13_Nodes_15_Houses.
Then the program can be executed normally.
Good luck!


Fix webpack warnings

@jessevanmuijden There's a minor conflict here - we’ll leave it to you to resolve, and we're ready to merge once it's done. Thanks!

@pstamatop ✅ . FYI: new == operators and unused were introduced in master after I opened my PR. Perhaps we can add a github action that enforces code style guidelines.


Benchmark siglip

https://twitter.com/giffmana/status/1707327094982672666?t=5L0oyEbDB1wrHfV0yZSSyA&s=19

I'm excited to see these results. I noticed that while authors claim amazing results:

OpenCLIP and OpenAI B16 224 models are typically 512 hidden dimensions, not 768 like in SigLIP:

This suggests to me that the base models far more comparable to OpenCLIP and OpenAI L14 models, which would place them closer to EVA-CLIP results, but with fewer hidden layers, as hidden and projection sizes have a significant impact on recall performance.

@rom1504 @marcusinthesky Here is a notebook with ImageNet zero-shot classification evals: https://colab.research.google.com/drive/1IadaMQk4m7DQSkUuCCsviRHomnFRqGSr?usp=sharing, based on SigCLIP  notebook.
For ViT-B/16 224 res (196 patches), I don't fin the same results as in Table 3 (https://arxiv.org/pdf/2303.15343.pdf), I obtain 74.4 whereas it is reported 76.2 in the paper, not sure what I am missing. @xiaohuazhai @lucasb-eyer do you do anything specific on zero-shot evaluation that is not in the SigCLIP notebook, e.g. different pre-preprocessing ? for classnames/templates I am using openai ones, I suppose it was the same there?

Also, above is simply wrapping the Jax model. Once I reproduce the results, I can integrate it directly to clip benchmark, although ideallyI think we should support SigCLIP models directly in openclip with PyTorch, @rwightman do you think it's doable ? I guess it would similar to what you did in timm with other big_vision models.

@mehdidc I've got SigLIP weights working in OpenCLIP, BUT, the merge with CLIPA a and cleaning up the combo of pooling options, and tokenizer configs is a bit of a mess... so taking much longer than I'd hoped (SigLIP itself was verified over a week ago now).

Closing as now SigLIP models are supported in OpenCLIP


policy: un-escape $$ to $

Un-escape $$ to $ in container command args.

Minor question, no answer expected: Is there any chance the input could be 3 or more dollar signs, i.e., something we haven't seen yet and which this conversion could inadvertently change?

I am not sure. I didn't know about the double $$ until yesterday either.


MUMUP-1890 : Cleanup unit tests

Removed old setup
Added grunt setup to new setup
Added README.md to webapps dir
Moved main_controller_spec.js to main module under portal
Fixed the main controller spec test
added 3 more tests

:+1:


Financial Expenses - View expenses on the Campaign Details page

Which area(s) of Podkrepi.bg are affected? (leave empty if unsure)
Campaigns
Describe the feature you'd like to request
Normal users should be able to view campaign expenses that are approved by admins on the page.
Describe the solution you'd like
There should be a list of expenses categorized based on the type of the expense, with a way to download the files that are attached and view the description of the expense (design to be added)
We can have a nice pie chart (design to be added) showing how much of the expenses went for what and how much is still unspent.
Describe alternatives you've considered
No response

The pie chart is pending.

The pie chart is pending.

@slavcho could we close this one as the main functionality is implemented? We can create a separate ticket for the pie chart or actually a simple progress bar that won't take much space and will deliver the same info :)

Sure - we can close it.

Closing this as done.
The pie chart is not an urgent issue as of now.


[release-1.4] auto mTLS: Change label name to tlsMode

This is an automated cherry-pick of #18310

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gencheck_istio_release-1.4
0486f5d5168d1e49b1b25cf07a5bf0a4d98ca6cc
link
/test gencheck_istio_release-1.4

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

@googlebot I consent


Adds Google Analytics Support (closes #12)

I finally found the time to create the PR.
I changed the dependency, because I found it easier to implement it with react-ga.
The Google Analytics Id has to be declared in the config file.

Many thanks! This code looks great


Resolve syncing conflicts from from-prod-staging to staging

Pull request opened by Docs to resolve syncing conflicts from from-prod-staging to staging.

Docs Build status updates of commit e79e67b:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-PullRequestMergeConflict] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/OPS-E2E-Prod/PowerShell-Docs, working directory: W:\x04m-s, target branch: staging, target branch commit: db1a5226953928afb8a2b5624934c17eb224ec3e, source commit: e79e67b4ce6e577c2a40a8af3817fd219ef7553e.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit a5b6dd7:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-PullRequestMergeConflict] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/OPS-E2E-Prod/PowerShell-Docs, working directory: W:\kc2q-s, target branch: staging, target branch commit: db1a5226953928afb8a2b5624934c17eb224ec3e, source commit: a5b6dd7e1a94d3fa5768652bfe3e2ea3a476b63c.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 0d116c7:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-PullRequestMergeConflict] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/OPS-E2E-Prod/PowerShell-Docs, working directory: W:\yxv3-s, target branch: staging, target branch commit: db1a5226953928afb8a2b5624934c17eb224ec3e, source commit: 0d116c7ee042649177cb67ae7fa753d708a918d9.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit eba02fc:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-PullRequestMergeConflict] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/OPS-E2E-Prod/PowerShell-Docs, working directory: W:\e0em-s, target branch: staging, target branch commit: db1a5226953928afb8a2b5624934c17eb224ec3e, source commit: eba02fcb3571511a8893c522043b5b49deefcef6.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit ab6bbf9:
:warning: Validation status: warnings

File
Status
Preview URL
Details

:warning:Warning

Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

reference/5.1/Microsoft.PowerShell.Management/Stop-Process.md
:white_check_mark:Succeeded
View (powershell-5.1)

reference/6/Microsoft.PowerShell.Management/Stop-Process.md
:white_check_mark:Succeeded
View (powershell-6)

reference/7.0/Microsoft.PowerShell.Management/Stop-Process.md
:white_check_mark:Succeeded
View (powershell-7)

reference/7.1/Microsoft.PowerShell.Management/Stop-Process.md
:white_check_mark:Succeeded
View (powershell-7.1)

reference/docfx.json
:white_check_mark:Succeeded

reference/docs-conceptual/community/2020-Q3.md
:white_check_mark:Succeeded
View (>=powershell-5.1)

reference/mapping/monikerMapping.json
:white_check_mark:Succeeded

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Core.Debug-Job' is defined with different summarys: '
Debugs a running background, remote, or PowerShell Workflow job.

', '
Debugs a running background, remote, or Windows PowerShell Workflow job.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Core.Wait-Job' is defined with different summarys: '
Suppresses the command prompt until one or all of the PowerShell background jobs running in the session are completed.

', '
Suppresses the command prompt until one or all of the Windows PowerShell background jobs running in the session are completed.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Management.Get-Service' is defined with different summarys: '
Gets the services on a local or remote computer.

', '
Gets the services on the computer.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Management.Get-Clipboard' is defined with different summarys: '
Gets the contents of the clipboard.

[!NOTE]

On Linux, this cmdlet requires the xclip utility to be in the path.

', '
Gets the current Windows clipboard entry.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Management.Get-Process' is defined with different summarys: '
Gets the processes that are running on the local computer or a remote computer.

', '
Gets the processes that are running on the local computer.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Management.Get-PSProvider' is defined with different summarys: '
Gets information about the specified PowerShell provider.

', '
Gets information about the specified Windows PowerShell provider.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Management.Set-Clipboard' is defined with different summarys: '
Sets the contents of the clipboard.

', '
Sets the current Windows clipboard entry.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Utility.ConvertFrom-Json' is defined with different summarys: '
Converts a JSON-formatted string to a custom object or a hash table.

', '
Converts a JSON-formatted string to a custom object.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Utility.ConvertTo-Csv' is defined with different summarys: '
Converts .NET objects into a series of character-separated value (CSV) strings.

', '
Converts .NET objects into a series of comma-separated value (CSV) strings.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Utility.Add-Type' is defined with different summarys: '
Adds a Microsoft .NET Core class to a PowerShell session.

', '
Adds a Microsoft .NET Framework class to a PowerShell session.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Utility.Write-Information' is defined with different summarys: '
Specifies how PowerShell handles information stream data for a command.

', '
Specifies how Windows PowerShell handles information stream data for a command.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'PSDesiredStateConfiguration.Invoke-DscResource' is defined with different summarys: '
Runs a method of a specified DSC resource.

', '
Runs a method of a specified PowerShell Desired State Configuration (DSC) resource.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'PSReadLine.Get-PSReadLineKeyHandler' is defined with different summarys: '
Gets the bound key functions for the PSReadLine module.

', '
Gets the key bindings for the PSReadLine module.

'.

Line 0, Column 0: [Warning-xref-property-conflict]

UID 'Microsoft.PowerShell.Utility.Invoke-WebRequest' is defined with different summarys: '
Gets content from a web page on the Internet.

', '
Gets content from a web page on the internet.

'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


WIP: External model provider architecture, OpenRouter integration

This PR:

adds externally authenticated configs, starting with OpenRouter
simplifies configs overall and moves more logic to the configManager
resolves #46 : returns the full result at the end of the streaming promise

Window.AI Interface changes:

Output now has an isPartial attr indicating whether it's a partial stream
BETA_updateModelProvider: a method for updating external model providers. Not expected to be the final interface, but more of a working one for demoing.

Smaller changes:

changes Local models into APIKey models with no ModelID set

@alexanderatallah Added some comments - overall looking good 👍


'No' button of consent window does not work

The consent window does not disappear

fixed in YASGUI utils, which rejected setting '0' values in local storage https://github.com/YASGUI/Utils/commit/18c6e66e79c2d6be0397be046ad551e268f12959


Use AnyIO instead of AsyncIO

Is your feature request related to a problem? Please describe.
I'd like to use uamqp with trio. trio is another event loop implementation for Python which uses structured concurrency concepts.
Describe the solution you'd like
Instead of implementing asynchronous operations using asyncio the async_ops module should instead be implemented with AnyIO.
AnyIO abstracts the underlying event loop and allows you to choose which one you want to use.
Furthermore, it will save you from maintaining the asyncio implementation itself.
For example, currently the implementation uses the keyword argument loop when calling asyncio.shield. This will be deprecated in Python 3.10.
By using AnyIO, you will offload this maintenance burden.
Describe alternatives you've considered
I can already use this library with trio-asyncio but native support would be nicer.
Additional context
None.

I'm not going to work on this until we have a consensus on what needs to be done.
Please address this issue as quickly as possible. Thanks :).

Thanks @thedrow!
We wanted to make these changes about a year ago, but at the time it wasn't easy because we were using some very asyncio-specific features like run_in_executor for which we needed to pass through the event loop.
However I think our dependency on the asyncio loop has now been refactored out, in which case it would be awesome to make this change as you've proposed.
Though I know we're using asyncio.sleep - is trio compatible with that?

Of course it does. Trio also supports running tasks in threads.
AnyIO abstracts sleep as well as most other mechanisms.
Is there any chance you'll refactor this on your own?
If not, where are the tests for the asynchronous code?

Thanks @thedrow - yes it is likely we will refactor this imminently.
We're already seeing warnings about the passing around of loop, so I would like to get that cleaned up - although we may not get to it within a given timeframe.
I will do my best to scope out the needed work within the next few days.

@annatisch Any updates?

Hi @thedrow - I've taken a look and I don't think there's too much work involved.
However we're are currently discussing internally whether we want to invest further in the C-binding-based project, or whether we want to remove the C layer and replace with a pure-python based implementation (prototype currently ongoing in the pyproto branch).
If we opt for the latter - we could build in AnyIO support from the ground-up.
We are also cautious about taking a direct dependency on the lib - so we we're working through what the implementation look like if it were both fully-compatible with AnyIO as well as standalone.
Will keep this thread updated :)

@annatisch Pinging you once more, with feeling ;)

Hi @annatisch, did you land on anything? :blush:

Hi @JonasKs!
We are currently rewriting this library in pure Python, with the first preview targeted for early 2022.
Development is progressing in this branch: https://github.com/Azure/azure-uamqp-python/tree/pyproto
Given that we are currently rebuilding from scratch - we will not be making these changes to the C-based implementation of uamqp.
So then the question becomes, will the pure Python version of the library use AnyIO. The first preview will not unfortunately - we wanted to focus our efforts on correct end-to-end implementation of the protocol. In subsequent releases we plan to drop the hard dependency on AsyncIO to allow more flexibility here.
My earlier tests with AnyIO (albeit 2 years ago now) introduced a significant perf regression that prevented us from quickly making the shift earlier and needed deeper investigation.

Awesome! Thanks for the quick reply. Good luck with the release 🚀


Modify OCSP to use alt MD for cert IDs in responses

Modify openssl OCSP utility to produce certIDs in responses using other
hash algorithms (e.g. SHA256).
Added option -rcid for this purpose.

Checklist

[x] documentation is added or updated
[ ] tests are added or updated

This might duplicate functionality added in commit 4dd21a7b8b850a39b0f610fceca21557853c943
so it might not be necessary..?

Actual link to commit
https://github.com/openssl/openssl/commit/b4dd21a7b8b850a39b0f610fceca21557853c943

According to our internal tester, this does not duplicate functionality of commit b4dd21a.

The -rsigopt does not change the hash algorithm for Certificate ID in the response. -rcid changes the hash algorithm for Certificate ID in the response in addition to changing response signature algorithm.

So the two options are complementary, but only if -rcid does not change the signature algorithm (i.e. only changes the Certificate ID).

The default signing algorithm since 1.0.2 is SHA256. Our tester didn't realize that, and thought that the -rcid option updated the signing algorithm as well.

@richsalz are you still looking for changes to be made?
@mattcaswell this has not been labeled for a release.

This is important for interop testing.
Ping @openssl

ping?

ping @openssl ?

ping @openssl ?

ping?

@mattcaswell I made the necessary changes

[ @mattcaswell I reviewed a previous version of this patch internally and could re-review the final version if you think that's appropriate for the second review]

@kaduk - I'd be ok with that.

This is good to go?

Pushed. Thanks.


Could Mosby be utilized with viewpager?

Thanks for awesome helper library and even more awesome blog post explaining the LCE pattern. It surely reflects the experience of 3 years digested into one well thought out library !
Your current examples are focused around displaying a lists ( they are common ), in general it is hard for android newbies to wrap their head around viewpager best practices.
Can you create a sample in your repo with dagger1,retrofit,lce that utilizes LCE pattern with view pager ?
--> "A layout that would have pull to refresh functionality and a view pager with one member displayed at at time instead of list..."" <--
For you it might be trivial task being a Mosby author but for others like me it would be a valuable starting point to pickup Mosby with viewpager !

I can do that.
I'm not sure what exactly you mean with:

one member displayed at time instead of list...

The view pager should display fragments containing a ListView with pull to refresh support, right?

List comes nowhere in picture, actually.
A pull to refresh layout with viewpager with adapter. Each time the pull to refresh is done, the adapter data is refreshed.
Each time the pull to refresh is done, the viewpager data would be refreshed by calling an API,
And =viewpager page would display one item at a time.
I would request you to build the example upon following third party API,
See following free API, it returns motivational news items at givesmehope.com
http://api.givesmehope.com/
Out viewpager exmaple would consume the response and display news items in a viewpager leveraging  Mosby framework , one news item at a time.
http://api.givesmehope.com/v1/posts/all.json?page=1
Grab "headline" and "image_src" from json responses to display in viewpager.

So the swiperefreshlayout should refresh the view pager?

Yup, swiperefreshlayout  should refresh the pager !

ok, pretty strange app navigation, but here it is:
https://github.com/sockeqwe/MosbyViewPagerDemo
Took about 20 minutes to code it thanks to mosby and some annotation processors.
Btw. I expect from you that you offer me a beer whenever you see me next time for doing your job ;)
:beers:

Come over to Mumbai/India buddy, I'll host you with authentic Indian curries and sweets  :)

Your comment "pretty strange app navigation" is legit and the culprit is swiprefreshlayout mechanism.
The layout is so sensitive that is breaks letft/right swipe UX of viewpager.
http://stackoverflow.com/questions/25978462/swiperefreshlayout-viewpager-limit-horizontal-scroll-only
The solution is there in the answers , but I'm curious where that fits into mosby framework code base for applying that solution.

it's not mosby related at all, so yes,  why not?

Ok tested the following solution, and it has improved the pager swipe.
Pull to refresh works as expected.
http://stackoverflow.com/a/27934705/861454


Component creation failed without custom resources

version:
Version: 1.1.6
GitRevision: git-844f479f
GolangVersion: go1.17.2
yaml:
stateless: {
    annotations: {}
    attributes: workload: definition: {
        apiVersion: "argoproj.io/v1alpha1"
        kind:       "Rollout"
    }
    description: ""
    labels: {}
    type: "component"
}

template: {
    output: {
        spec: {
            selector: matchLabels: "app.oam.dev/component": "name"
            template: {
                metadata: labels: "app.oam.dev/component": "name"
                spec: containers: [{
                    name:  "name"
                    image: "image"
                }]
            }
        }
        apiVersion: "argoproj.io/v1alpha1"
        kind:       "Rollout"
    }
    outputs: {}
    parameters: {}
}

error message:
Error: failed to update existing definition in kubernetes: admission webhook "mutating.core.oam-dev.v1beta1.componentdefinitions" denied the request: no matches for kind "Rollout" in version "argoproj.io/v1alpha1"
This resource is not customized in the management cluster ，but the target cluster is defined
I think the component can be created normally in this case

Just a reminder, it's three "`" in markdown to wrap a long code.
You can edit the issue for a better looking.

If one CRD doesn't exist in managed cluster, the CR creation (by vela-core) will fail.
Consider turn ArgoRollout as an addon whose CRD can be dispatched in managed cluster then.
ping @wangyikewxgm

This CR may be submitted to the target cluster.
As long as the target cluster has it, there is no problem.
In this case, it is normal for the control cluster to have no CR, and it should not fail.

If one CRD doesn't exist in managed cluster, the corresponding CR creation (by vela-core) will fail.
Consider turn ArgoRollout as an addon whose CRD can be dispatched in managed cluster then. That's what we done with fluxcd.
Or you can simply install Argo rollout in managedCluster.
ping @wangyikewxgm

This CR may be submitted to the target cluster.
As long as the target cluster has it, there is no problem.
In this case, it is normal for the control cluster to have no CR, and it should not fail.

Got you. You won't use Argo in Control plane and didn't install it.
That's a case we didn't consider before. Thanks for reporting. You can track this issue for more progress.

There's a workaround for this case. You can use this defintion instead.
stateless: {
    annotations: {}
        attributes: workload: type: "autodetects.core.oam.dev"
    description: ""
    labels: {}
    type: "component"
}

template: {
    output: {
        spec: {
            selector: matchLabels: "app.oam.dev/component": "name"
            template: {
                metadata: labels: "app.oam.dev/component": "name"
                spec: containers: [{
                    name:  "name"
                    image: "image"
                }]
            }
        }
        apiVersion: "argoproj.io/v1alpha1"
        kind:       "Rollout"
    }
    outputs: {}
    parameters: {}
}

The difference is use "autodetects.core.oam.dev" in the workload field. Now this field is only for validate and this will work for most case.

Let me know if this works for you.

This can be solved  .
If you define a lot of components, there will be a lot of "autodetects.core.oam.dev" , which cannot intuitively reflect the workload.


"Could not find executable" error with multiple-bibliographies.lua

Hi. I've git cloned the lua-filters repo to ~/.local/share/pandoc/filters on my system.  I try to run multiple-bibliographies.lua as a filter using this command:
pandoc ~/documents/notes/2020-10-23-20201023230707.md -o ~/documents/output/bibliography.pdf --citeproc \
--pdf-engine=lualatex --filter=multiple-bibliographies/multiple-bibliographies.lua

I get the following error:
Error running filter /home/sol/.local/share/pandoc/filters/multiple-bibliographies/multiple-bibliographies.lua:
Could not find executable /home/sol/.local/share/pandoc/filters/multiple-bibliographies/multiple-bibliographies.lua

I try ls -al, and it shows the file is very much present:
ls -al /home/sol/.local/share/pandoc/filters/multiple-bibliographies/multiple-bibliographies.lua
-rw-rw-r-- 1 sol sol 4590 Oct 26 02:00 /home/sol/.local/share/pandoc/filters/multiple-bibliographies/multiple-bibliographies.lua

If I make the file executable (which I shouldn't need to do), I get this error instead:
Error running filter /home/sol/.local/share/pandoc/filters/multiple-bibliographies/multiple-bibliographies.lua:
/home/sol/.local/share/pandoc/filters/multiple-bibliographies/multiple-bibliographies.lua: createProcess: runInteractiveProcess: exec: invalid argument (Exec format error)

Try --lua-filter instead of --filter. The latter is for JSON filters only.

Sorry for the hassle!  Momentary lapse of thinking on my part.  Because in defaults files the field filters: can be used — with the assumption that it is lua if the extension is .lua — and I kinda got used to that. :confused:


Using Jetpack compose Image in KMP project facing DiskReadViolation on StrictMode policy

Describe the problem
Explain the performance issue you're experiencing, including the following details:
When I'm loading image into Image component through painter from common main resource folder.
In android i enabled Strictmode policy at that point getting DiskReadViolation error.

What specific issue did you encounter? (e.g. missing frames, high CPU usage, memory leaks)
Thread issue, Taking read operation longer than expected by Android system.
Have you noticed any patterns or specific circumstances under which the problem occurs?
No

Affected platforms
Select one of the platforms below:

Android

If the problem is Android-only, report it in the Jetpack Compose tracker
Versions

Kotlin version:  1.8.10
Compose Multiplatform version: 1.5.0
OS version(s) (required for Desktop and iOS issues):
OS architecture (x86 or arm64):
JDK (for desktop issues): JDK 17

Error:
StrictMode policy violation; ~duration=855 ms: android.os.strictmode.DiskReadViolation                                                                                at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1504)                                                                                at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:241)                                                                                at java.io.File.isDirectory(File.java:845)                                                                                at dalvik.system.DexPathList$Element.maybeInit(DexPathList.java:696)                                                                                at dalvik.system.DexPathList$Element.findResource(DexPathList.java:729)                                                                                at dalvik.system.DexPathList.findResource(DexPathList.java:508)                                                                                at dalvik.system.BaseDexClassLoader.findResource(BaseDexClassLoader.java:169)                                                                                at java.lang.ClassLoader.getResource(ClassLoader.java:793)                                                                                at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:987)                                                                                at org.jetbrains.compose.resources.AndroidResourceImpl.readBytes(Resource.android.kt:17)                                                                                at                                                                                org.jetbrains.compose.resources.Resource_commonbutjsKt$readBytesSync$1.invokeSuspend(Resource.commonbutjs.kt:13)                                                                                at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)                                                                                at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)                                                                                at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)                                                                                at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)                                                                                at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)                                                                                at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)                                                                                at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)                                                                                at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1)                                                                                at org.jetbrains.compose.resources.Resource_commonbutjsKt.readBytesSync(Resource.commonbutjs.kt:13)                                                                                at                                                                                org.jetbrains.compose.resources.ComposeResource_commonKt.rememberImageBitmapSync(ComposeResource.common.kt:82)                                                                                at                                                                                org.jetbrains.compose.resources.ComposeResource_commonKt.access$rememberImageBitmapSync(ComposeResource.common.kt:1)                                                                                at                                                                                org.jetbrains.compose.resources.ComposeResource_commonKt$painterResource$1.invoke(ComposeResource.common.kt:120)                                                                                at                                                                                org.jetbrains.compose.resources.ComposeResource_commonKt$painterResource$1.invoke(ComposeResource.common.kt:120)                                                                                at org.jetbrains.compose.resources.ComposeResource_commonKt.painterResource(ComposeResource.common.kt:102)                                                                                at org.jetbrains.compose.resources.ComposeResource_commonKt.painterResource(ComposeResource.common.kt:120) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)                                                                                at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)                                                                                at androidx.compose.material3.SurfaceKt$Surface$1.invoke(Surface.kt:132)                                                                                at androidx.compose.material3.SurfaceKt$Surface$1.invoke(Surface.kt:114)                                                                                at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)                                                                                at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)                                                                                at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228)                                                                                at androidx.compose.material3.SurfaceKt.Surface-T9BRK9s(Surface.kt:111) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:108)                                                                                at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)                                                                                at androidx.compose.ui.layout.LayoutKt.MultiMeasureLayout(Layout.kt:443)

This issue is caused by a "DiskReadViolation" due to synchronous disk reads on the main thread, which can lead to UI unresponsiveness.To resolve this, you should perform disk operations asynchronously. Here's a suggested approach:
1)Move Disk Operations Off the Main Thread:

Use coroutines or background threads to handle disk I/O operations.

Use Asynchronous APIs:

Look for asynchronous versions of the APIs being used for disk reads.

This is fine. Resource files are being read on the MainThread (there is no difference for standard and compose resources).
The reason of the error is the android AssetManager is semi native implemented class. And, I guess, it is excluded from the StrictMode policy. You may ignore it but follow a rule: resources should be small enough. If you need to read big files then put them to the files directory and read them asynchronously.

After https://github.com/JetBrains/compose-multiplatform/pull/4965 the issue was fixed

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.