[osgearth] Fix osgearth vcpkg build failures and linking/compilation failures from installed bits

Describe the pull request

What does your PR fix?
Fixes #20440

Which triplets are supported/not supported? Have you updated the CI baseline?

No

Does your PR follow the maintainer guide?
Your answer

If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?
<Yes / I am still working on this PR>

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

Don't think I fully understand the suggestion but it seems it'll require a major refactoring of the osgearth cmake (and maybe even gdal's)

Port gdal in vcpkg already already does take care of finding gdal's dependencies (hdf5 szip and more) when a consuming project uses   find_package(GDAL) and target GDAL::GDAL. I assume this pattern is missing in this consuming port, so I kindly ask to verify this assumption and try this approach first. I think the gdal stuff should be done after the foreach loop which handles explicit stuff, for static linkage order.

I'm simply following an established pattern.
The list I'm extending already contains the a lot of gdal dependencies. I'm extending that list to include a few more to resolve linker errors

The point is that port gdal becomes unmaintainable by the "established pattern" of consuming ports listing explicitly what they believe to be the dependencies of gdal. The poor maintainer of gdal will have to update all those ports for any improvement of gdal. She/he should focus on the export wrapper, config or pc file instead. With regard to improving gdal, there is a demand for

control over gdal features,
fix feature parity between dynamic and static linkage,
get rid of unusal debug postfixes.

And of course gdal depends on a huge set of incoming dependencies, equally affected by the "established pattern".

Please run the command "./vcpkg x-add-version osgearth --overwrite-version" then commit again

@JonLiu1993 , Can you help me figure out why osgearth:x64-windows-static-md is getting skipped in the pipeline test runs
It says "cascade" but not quite sure it cascades
The port compiles successfully on my box and i would like to add it as a baseline

Thanks for the fix :)

In CI we are seeing:
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blContextInitAs referenced in function "public: __cdecl BLContext::BLContext(struct BLImageCore &)" (??0BLContext@@QEAA@AEAUBLImageCore@@@Z)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blContextDestroy referenced in function "public: __cdecl BLContext::~BLContext(void)" (??1BLContext@@QEAA@XZ)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blContextEnd referenced in function "public: unsigned int __cdecl BLContext::end(void)" (?end@BLContext@@QEAAIXZ)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blFontDestroy referenced in function "public: __cdecl BLFont::~BLFont(void)" (??1BLFont@@QEAA@XZ)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blFontCreateFromFace referenced in function "public: unsigned int __cdecl BLFont::createFromFace(struct BLFontFaceCore const &,float)" (?createFromFace@BLFont@@QEAAIAEBUBLFontFaceCore@@M@Z)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blFontFaceDestroy referenced in function "public: __cdecl BLFontFace::~BLFontFace(void)" (??1BLFontFace@@QEAA@XZ)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blFontFaceCreateFromFile referenced in function "public: unsigned int __cdecl BLFontFace::createFromFile(char const *,unsigned int)" (?createFromFile@BLFontFace@@QEAAIPEBDI@Z)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blImageDestroy referenced in function "public: __cdecl BLImage::~BLImage(void)" (??1BLImage@@QEAA@XZ)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blImageCreateFromData referenced in function "public: unsigned int __cdecl BLImage::createFromData(int,int,unsigned int,void *,__int64,void (__cdecl*)(void *,void *),void *)" (?createFromData@BLImage@@QEAAIHHIPEAX_JP6AX00@Z0@Z)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blPathDestroy referenced in function "public: __cdecl BLPath::~BLPath(void)" (??1BLPath@@QEAA@XZ)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blPathMoveTo referenced in function "public: unsigned int __cdecl BLPath::moveTo(double,double)" (?moveTo@BLPath@@QEAAINN@Z)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blPathLineTo referenced in function "public: unsigned int __cdecl BLPath::lineTo(double,double)" (?lineTo@BLPath@@QEAAINN@Z)
osgEarthd.lib(FeatureRasterizer.cpp.obj) : error LNK2019: unresolved external symbol __imp_blNone referenced in function "public: static class BLFont const & __cdecl BLFont::none(void)" (?none@BLFont@@SAAEBV1@XZ)

which seems likely to be caused by this change. Do you have any ideas @ankurverma85 ?

Seems due to this.
https://github.com/gwaldron/osgearth/blob/master/src/osgEarth/FeatureRasterizer.cpp#L30-L34
I'm not seeing this locally, probab because cmake auto turns it off for me if I don't have blend2d in my vcpkg installed libs
Perhaps a good fix is to turn off the BLEND2D support by explicitly passing it off to cmake during configure

Perhaps a good fix is to turn off the BLEND2D support by explicitly passing it off to cmake during configure

Would you be willing to prepare a PR that does that? This project's optional dependencies are the source of so much pain :(

Perhaps a good fix is to turn off the BLEND2D support by explicitly passing it off to cmake during configure

Would you be willing to prepare a PR that does that? This project's optional dependencies are the source of so much pain :(

I took care of it, except I made the blend2d dependency actually work. Knowing that blXxx was supposed to be blend2d was the hint I needed: https://github.com/microsoft/vcpkg/pull/21977


[FIX-3900][server] kill multi yarn app in one job

What is the purpose of the pull request
fix #3900 kill multi yarn app in one job
Brief change log

modify server/utils/ProcessUtils.java  cancelApplication method

Verify this pull request

server/utils/ProcessUtilsTest to verify this pr

Codecov Report

Merging #4042 (cb669b5) into dev (1eecbb1) will increase coverage by 0.17%.
The diff coverage is 48.29%.

@@             Coverage Diff              @@
##                dev    #4042      +/-   ##
============================================
+ Coverage     39.24%   39.42%   +0.17%
- Complexity     2962     2980      +18
============================================
  Files           467      467
  Lines         22107    22116       +9
  Branches       2713     2715       +2
============================================
+ Hits           8676     8719      +43
+ Misses        12629    12590      -39
- Partials        802      807       +5

Impacted Files
Coverage Δ
Complexity Δ

...he/dolphinscheduler/server/utils/ProcessUtils.java
48.34% <48.29%> (+29.33%)
25.00 <25.00> (+17.00)

...er/master/processor/queue/TaskResponseService.java
32.39% <0.00%> (-7.05%)
5.00% <0.00%> (ø%)

...er/master/dispatch/host/assign/RandomSelector.java
77.77% <0.00%> (-5.56%)
3.00% <0.00%> (-1.00%)

...eduler/server/worker/runner/TaskExecuteThread.java
57.02% <0.00%> (+0.82%)
13.00% <0.00%> (+1.00%)

...inscheduler/service/zk/CuratorZookeeperClient.java
65.85% <0.00%> (+4.87%)
8.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

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

don't use Runtime.getRuntime().exec directly, replace with OSUtils.exeCmd, thx
please review this pr~


ResizeObserver Polyfill creates errors with Webpack & UglifyJS

New dev on the team tried to npm install our package.json and got the following error:
ERROR in bundle.js from UglifyJs
SyntaxError: Unexpected token: punc ()) [bundle.js:33478,18]

We had react-measure: "^1.3.1" in package.json and the caret made it upgrade to 1.4.x when that was released.
Looks like 1.4.x uses ResizeObserver polyfill which created the above error when webpack & uglifyjs are bundling. Technically you would be okay if you were to use uglifyjs harmony branch but since I don't want to fork webpack and subsequently modify the fork's package json, it's easier to just pin react-measure to 1.3.1 to solve this.
Putting this here in case anyone else comes across it and something that you might want to think about since lotsa ppl use react with webpack and uglify in production.

Sorry about that 😞  Is there anything we can do to fix this? Or maybe it is an issue in the polyfill library?

Might be because I'm using webpack 2 beta?

Also getting a ResizeObserver error - Running Webpack 2:
scripts/0-d1a73d3a1dcc35893472.chunk.js from UglifyJs
SyntaxError: Unexpected token: name (ResizeObserver) [./~/resize-observer-polyfill/index.js:3,0][scripts/0-d1a73d3a1dcc35893472.chunk.js:2526,4]

Sorry, I'm not sure what is causing this 😞  I wish I could help. Please feel free to create a PR if you find a solution.

I got the first guy's error (SyntaxError: Unexpected token: punc ())), then I changed by babel-loader to not exclude node-modules, and then I got the second guy's error (SyntaxError: Unexpected token: name (ResizeObserver)).

I was able to get around this by not using exclude or include with my Webpack babel-loader. I have no idea why that makes a difference, as I happened upon this solution by accident.

This and #27 issues were caused by the module field in the package file which pointed to a es6 version of the polyfill. I've removed it and now Webpack 2 takes the es5 umd bundle which always exports the ResizeObserver constructor instead of an object with the default property.
I've also added a fallback for a non-browser environment and it fixes the server rendering problem described in #24.
These changes are available in v 1.3.1 and I believe that now you can remove all of those conditions.
Guys, I'm really sorry about this mess. Why you didn't tell me about those problems in the first place?

Out in the latest release. Thanks @que-etc! I appreciate the help. I was unaware it was your library that was causing the issue. I thought it had something to do with what I was doing.
Please feel free to re-open this if the issue is not solved.

I am trying to use<EMAIL_ADDRESS>with<EMAIL_ADDRESS>and I am getting the following error:
Uncaught (in promise) TypeError: _resizeObserverPolyfill2.default is not a constructor
    at Measure.componentDidMount (eval at ./node_modules/react-measure/lib/Measure.js (0.chunk.js:278), <anonymous>:105:29)
    at eval (ReactCompositeComponent.js:264)
    at measureLifeCyclePerf (ReactCompositeComponent.js:74)
    at eval (ReactCompositeComponent.js:263)
    at CallbackQueue.notifyAll (CallbackQueue.js:67)
    at ReactReconcileTransaction.close (ReactReconcileTransaction.js:81)
    at ReactReconcileTransaction.closeAll (Transaction.js:204)
    at ReactReconcileTransaction.perform (Transaction.js:151)
    at ReactUpdatesFlushTransaction.perform (Transaction.js:138)
    at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:90)

Is this error related to this issue?
Sorry, I'm still new to React/Babel/Webpack, but is there any additional information you need to help me solve this issue?

@que-etc any idea on the above?

Still tackling this problem but for now I found that v. 3.4.0 works fine. My take is that it has something to do with<EMAIL_ADDRESS>which is used in the earlier version of react-boilerplate.

@marcandrews would you please try updating to webpack 2.2?

@que-etc @souporserious giving it a try now and will report back. Thanks.

Updated to<EMAIL_ADDRESS>and seems like everything is working. Thanks for the help!

Thanks for the help @que-etc 🎉

Was running Webpack 2.1.0-beta.25. Updating to ^2.2.0 (2.2.1 at the time of writing) fixed my problem.


Fix full screen repainting correctly

Fix full screen repainting referred in https://github.com/google/material-design-lite/issues/560 correctly.
The commit https://github.com/google/material-design-lite/commit/afab807463d6e4ebffd773bf66bf6fa3b0216df5 doesn't fix the issue but causes the missing head.jpg error in web browser's console.

|I signed it!|
On 2015/07/12 15:03, googlebot wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project, in which case you'll
need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. |I signed it!|) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check
your existing CLA data https://cla.developers.google.com/clas
and verify that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the
company's name.

—
Reply to this email directly or view it on GitHub
https://github.com/google/material-design-lite/pull/982#issuecomment-120690720.

--
武田 修平(Shuhei Takeda)
筑波大学大学院 システム情報工学研究科
コンピュータサイエンス専攻 博士前期課程
Visualization and Interactive Systems Laboratory (VisLab)
mail<EMAIL_ADDRESS>

@surma will you have a chance to take a look at this one?

Sorry for the delay!
Changes LGTM, performance looks great. Thank you very much, @Sesta. Merging.


Implement proper email verification system

Currently we don't have a proper email verification system on sign up. This should be fixed.

Done.


Add xml navigate expression parsing

Purpose

Add xml navigate expression support

Fixes #23542
Approach

N/A

Samples

N/A

Remarks

N/A

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

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

@@           Coverage Diff           @@
##           master   #23581   +/-   ##
=======================================
  Coverage   14.59%   14.59%
=======================================
  Files          51       51
  Lines        1411     1411
  Branches      219      219
=======================================
  Hits          206      206
  Misses       1189     1189
  Partials       16       16

Continue to review full report at Codecov.

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


add unified jna test + add nio filechannel test

This PR adds unified JNA solution + an alternative NIO solution. The NIO solution is basically the JNA solution with the JNA system calls replaced by NIO FileChannel operations.

Sysfs2 is currently broken + there's the bug in the benchmark code itself. I can fix this too, if necessary.

I forgot -- both JNA and NIO solutions now use UTF-8, the encoding choice might not matter much.

rationale for that opinion: if the non-cached JNA to cached JNA time ratio is about 3, the majority of the time is probably spend doing the native call and not the encoding operation itself.

hmmm, also: SysfsNIO2 is not using the API called NIO2, it's just a way of differentiating from Sysfs2 (I would call that "SysfsNIO1").

I replaced the obsolete JNA implementations with a single NIO-based one presented in https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/748#issuecomment-743859055.

After few days with no changes in the NIO solution, I am going to close the PR.
I will clean manually the JNA files and associated changes in branch sysfs_perf
I will add the .py script to review with current NIO solution.

I don't understand, the NIO alternative is a replacement for the JNA1/2/3 proposals.


Simplify use of ebs_optimized

Currently we have a long list of instance types and their corresponding status of EBS optimization in local.tf. When new instance types are released then this list needs updating. e.g. https://github.com/terraform-aws-modules/terraform-aws-eks/pull/384
I think we should just keep a list of the instance types that are NOT EBS optimized and default to true otherwise.
e.g.
ebs_optimized = "${lookup(var.worker_groups[count.index], "ebs_optimized", lookup(local.ebs_optimized, lookup(var.worker_groups[count.index], "instance_type", local.workers_group_defaults["instance_type"]), true))}"

This would also solve issues like https://github.com/terraform-aws-modules/terraform-aws-eks/issues/325

Resolved in https://github.com/terraform-aws-modules/terraform-aws-eks/pull/561


Implement Batch DAG cancel and retries

Implement cancel() and retry_all() DAG calls for Batch taskgraphs.
This is using the server side API calls to stop and retry the taskgraph as well as update the client side states accordingly.

The tests should succeed after https://github.com/TileDB-Inc/TileDB-Cloud-REST/pull/3576 is released in production

This is ready for review


Error.. At Team Mode

No Leaderboard at TeamMode?

Refer to #482.
@Megabyte918, you need to fix this lmao


Proposal: compatible with arbitrary java classes

For example, user may use java.lang.Object or java.util.Date in method request/response, but it's not a valid Thrift type.
To be compatible with arbitrary java classes, a new feature should be implemented to allow specifying an external type (user-defined, not Thrift native types).
If this type has implemented hessian.Serializer (by dubbo-go-hessian2), it can be registered with hessian.SetSerializer(javaClassName, serializer)
Before that, there's a workaround, please refer to: https://bytedance.sg.feishu.cn/docx/Q8XOdfxsCorkPYxcWiSlu9ITgEc

Implemented in https://github.com/cloudwego/kitex/pull/1167 and https://github.com/cloudwego/kitex/pull/1168


Move Branding into common props

Yes, this is why default terminal didn't work in Preview.

@msftbot merge this in -2 minutes


FormBuilderDateTimePicker onChanged callback returns incorrect date

Bug
When using the callback onChanged with FormBuilderDateTimePicker it returns dates from 1970, rather than the date the user selected!
Steps to reproduce

Create a form
Add this form and use it

 FormBuilderDateTimePicker(
                initialDate: DateTime.now(),
                onChanged: (DateTime d){
                  print("SELECTED DATETIME: $d");
                },
                attribute: "startTime",
                inputType: InputType.both,
                format: DateFormat("EEEE MMM d kk:mm"),
                decoration:
                    InputDecoration(labelText: "Enter a time and view logs"),
              ),

Hi @opringle,
Thanks for bringing this to my attention. I'll test and work on a fix ASAP.

Seems this bug is caused by the underlying library, datetime_picker_formfield, which when submitting it tries to parse the string in the TextField back to a DateTime. But since your DateFormat lacks the year field, it is substituted by 1970.
This issue has already been reported in the library.
I'll try to do a workaround for the benefit of our library.

Hi @opringle,
Kindly check out v3.6.0. It contains a fix for this.


Fix OSGi metadata

Set the correct version range for Import-Package declarations to org.apache.pekko packages.
Fixes #1479.

Thanks. I guess this makes sense. Pekko 1.0 and Pekko 1.1 are very compatible in binary terms but we have the version checking at runtime that checks that the core pekko jars match version wise. So, in the end, I think we need this change.
I've marked this as for v1.1.2 because v1.1.1 is due to be released (probably tomorrow).


Updating dependencies without CVEs

Discuss how to keep up with Dependabot's recommendations around package updates, when versions are pinned.
We need to understand when it is safe to allow merges of Dependabot PRs, without breaking the working code.
When Snyk findings bubble up, App teams owning the code will need to review the PR it creates and come up with path forward to resolve within the time window mandated to resolve security findings of corresponding severity.
Backward compatibility vs updated and secure components/libraries.
DoD: Formal process and decision tree to determine how to proceed when security issues are found in app dependencies that are pinned to exploitable versions, that have been fixed in newer version.

@arnejduranovic @victor-chaparro  FYI - will need your input here.  I'll set up a meeting to discuss

V1 of the patch mgmt document is almost complete


feat: support polling the same IP address using multiple profiles

Codecov Report

Merging #90 (d4c4792) into develop (975b330) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop      #90      +/-   ##
===========================================
- Coverage    31.57%   31.47%   -0.11%
===========================================
  Files           15       15
  Lines          627      629       +2
===========================================
  Hits           198      198
- Misses         429      431       +2

Impacted Files
Coverage Δ

splunk_connect_for_snmp_poller/manager/poller.py
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

I have read the CLA Document and I hereby sign the CLA


Much faster with logging disabled

When the logger is disabled the strings to be logged were still being constructed. The speed difference mainly noticeable with reads, are due to each read byte being logged. Should not adversely affect logging or consistency. On the left is the speed before, while right is the speed after the patch.

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

Hi @PoeticDeath, and thanks for this PR ;-)
I can see there is two different things there:

remove logging overhead when it is not needed
improve handling of buffers used in get_reparse_point

Can you explain the performance gain comes from 1), 2) or both
Also what is the need for 2) (it seems like get_reparse_point only raises NotImplementedError right now
Finally while better performances is always good, from what I understand here your PR only improve the performances of the memfs demo

I've been developing my own filesystem currently open source, named SpaceFS. Refuse, another module for use of WinFsp in Python, is great for compatibility between major OSs. But I wanted Windows specific functions to be supported where possible. Thus I looked for another solution and found your winfspy.
However almost immediately had found some performance issues. Using kernprof, a line by line profiler. I narrowed down a good chunk to the creation of debug strings even when it is disabled. To avoid this I added a simple if check of logging.root.level seen with in the first commit. This improvement will help any code or filesystem that uses your logging function.
Since then I have focused on properly implementing features, I managed to get pretty much everything to work correctly testable through WinFsp's winfsp-test. However when I got to reparse handing it was not implemented nearly at all, neither was GetStreamInfo. So I have worked on properly implementing them as well, GetStreamInfo needs some work still, many filenames will be reported correctly while a few others will not, but reparse seems to be complete. This should have little or no affect to performance, just completeness.
Sorry it took so long to respond for whatever reason GitHub did not notify me to your comment. Looking forward to working with you.


Windows Phone 8.1

Is Windows Phone 8.1 (8.10.14219.341) supported by this plugin?

@gustter Yes, WP8.1 is supported by using the cordova-windows platform not cordova-wp8.

@gustter: Yes Windows Phone 8.1 is supported.


[AIConfig 2.0] Chat History

Problem
AIConfig currently unnecessarily couples conversation / multi-turn chat history with the config itself. It uses 'remember_chat_context' and extracts the conversation history from previous prompts/outputs in the config.
This is a confusing UX and also counterproductive with respect to aiconfig's intention of storing prompts and model settings.
The following is a high-level proposal for an improved implementation which will be translated into a github issue for them to pick up.
Proposal
AIConfig SDK
Pull multi-turn chat history into a separate abstraction above the core aiconfig layer as follows:
Implement a ChatHistory class which maintains an array of messages in openai spec (excluding deprecated function messages) to provide a common interface for model parsers to serialize/deserialize messages to/form.
Expose get_messages and add_message(s) method for getting and adding to the messages list.
Note - for now, management of chat sessions can be left to the end user, e.g. by maintaining a map of session id to ChatHistory instances.
Implement a ChatModelParser class which extends ParameterizedModelParser and whose deserialize and run methods have optional chat_history: Optional[ChatHistory] = None param.
The class should have the following additional methods:

(abstract) get_prompt_messages: given an aiconfig and prompt, serialize new message(s) to add to chat_history. These will essentially be the user (and possibly system) message(s) associated with the prompt being run
get_output_messages: given prompt outputs, serialize to assistant or tool call message

The run implementation should be something like:
async def run(
       self,
       prompt: Prompt,
       aiconfig: AIConfig,
       options: Optional[InferenceOptions] = None,
       parameters: Dict = {},
       run_with_dependencies: Optional[bool] = False,
       chat_history: Optional[ChatHistory] = None,
   ) -> List[Output]:
       if run_with_dependencies:
           return await self.run_with_dependencies(
               prompt, aiconfig, options, parameters
           )
       else:
           # Add user and possibly system messages from the prompt/config
           chat_history.add_messages(
               self.get_prompt_messages(
                   prompt, aiconfig, options, parameters, chat_history
               )
           )

           completion_params = await self.deserialize(
               prompt, aiconfig, parameters, chat_history
           )

           outputs = await self.run_inference(
               prompt, aiconfig, options, parameters, completion_params
           )

           # Only add output messages to chat history on successful completion
           chat_history.add_messages(self.get_output_messages(outputs))

           return outputs

The idea for now is that any ModelParser which extends ChatModelParser will implement their deserialize implementation to construct the completion params they need to pass to their underlying model API. Within deserialize, the ChatHistory messages can be serialized to the correct messages format for completion. Then, these completion_params are passed through to run_inference so that deserialization and chat history are all taken into account and the run_inference implementation mainly needs to concern itself with calling the API.
Update Config.py run method to take chat_history: Optional[ChatHistory] = None param and pass it through to the model_provider.run (may need to do explicit checking that the model_provider is a ChatModelParser here first).
Update each of the chat-based model parsers to extend this new parser implementation and implement the deserialization function to construct the messages for their completion.

gemini.py
llama.py
openai_vision.py
openai.py
palm.py

Notably, when testing, a config with a single prompt should produce different outputs based on provide ChatHistory and the ChatHistory should not be serialized to the config.
AIConfig Local Editor Server (Includes VS Code)
Add chat_history to ServerState in server_utils.py and pass it through to the aiconfig.run call in the run function for /api/run route.

Talked through this a bit with @rossdanlm and instead of passing ChatHistory through the Config.py run implementation, it would be cleaner to expose get_chat_history and update_chat_history methods from the AIConfigRuntime that is already passed in to the .run call


Actionsheet causes App to crash

Following the example code from docs, the ActionSheet will cause the App to crash. I've also created a snack to demo the problem, this happened to both iOS and Android:
https://snack.expo.io/BJJlKy4LX

For ActionSheet to work, you need to wrap your topmost component inside <Root> from native-base. See docs here
Add this to your code and change the default export
export default () =>
  <Root>
    <App />
  </Root>;

Ahh miss out the Root part, sorry about it. Thank you very much for this awesome library!


libobjc.A.dylib`objc_retain + 16, name = 'com.squareup.SocketRocket.NetworkThread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

Running a react native application in simulator. I saw this after a few hours:
* thread #18: tid = 0x201272c, 0x0000000108103d10 libobjc.A.dylib`objc_retain + 16, name = 'com.squareup.SocketRocket.NetworkThread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x0000000108103d10 libobjc.A.dylib`objc_retain + 16
    frame #1: 0x0000000108103d4a libobjc.A.dylib`objc_storeStrong + 32
    frame #2: 0x0000000106be4731 my_app`__copy_helper_block_((null)=0x00007f8948b0e7b0, (null)=0x000000011c563ae8) + 113 at RCTSRWebSocket.m:0
    frame #3: 0x000000010bfdb59d libsystem_blocks.dylib`_Block_copy_internal + 325
    frame #4: 0x000000010bf43e45 libdispatch.dylib`_dispatch_Block_copy + 43
    frame #5: 0x000000010bf47b4a libdispatch.dylib`dispatch_async + 57
  * frame #6: 0x0000000106be3a6b my_app`-[RCTSRWebSocket stream:handleEvent:](self=0x00007f8948979250, _cmd="stream:handleEvent:", aStream=0x00007f8948979bb0, eventCode=NSStreamEventErrorOccurred) + 1611 at RCTSRWebSocket.m:1351
    frame #7: 0x0000000109211024 CoreFoundation`_signalEventSync + 180
    frame #8: 0x000000010924532e CoreFoundation`_cfstream_shared_signalEventSync + 478
    frame #9: 0x00000001091d3011 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #10: 0x00000001091c8f3c CoreFoundation`__CFRunLoopDoSources0 + 556
    frame #11: 0x00000001091c83f3 CoreFoundation`__CFRunLoopRun + 867
    frame #12: 0x00000001091c7e08 CoreFoundation`CFRunLoopRunSpecific + 488
    frame #13: 0x0000000107cdd3a1 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
    frame #14: 0x0000000106be5958 my_app`-[_RCTSRRunLoopThread main](self=0x00007f894841e000, _cmd="main") + 376 at RCTSRWebSocket.m:1620
    frame #15: 0x0000000107d7aeab Foundation`__NSThread__start__ + 1198
    frame #16: 0x000000010c29605a libsystem_pthread.dylib`_pthread_body + 131
    frame #17: 0x000000010c295fd7 libsystem_pthread.dylib`_pthread_start + 176
    frame #18: 0x000000010c2933ed libsystem_pthread.dylib`thread_start + 13

Not sure if it's related. Sometimes I get this error when I run the app on the simulator. It's after I let the simulator sit for a while. The error doesn't immediately pop up.

@cancan101 I have the problems too!

@cancan101 Do you have some warning in application? like Warning: Each child in an array or iterator should have a unique "key" prop.  Fix it and will be ok. This work for me.

Similar to what @JakeRawr, @deju, and @cancan101 have reported: After running the simulator for a while, this error popped up for me as well. @deju has posted a Stack Overflow question here (no answers so far though).

Same experience here after app is running in the simulator for several hours.

Has anyone seen these crashes on a live, production version of their app? Not sure if I should be worried about submitting to the App Store.

@danleveille I have not deployed a production version yet. This error has been appearing for me during development.

hello, in url address append "&dev=false" . This error has not appear.

@danleveille 👍 I think you're good. I deployed a production version of a React Native app last week (My IP), and I haven't had any crashes. Also, when I bypassed Xcode (with either react-native-nurse or Fk Xcode), the issue did not seem to present itself.

@joshbuchea Yep, same here. No crashes on the App Store version. :)

If it's the same problem (looks like it is), it's best to upvote the issue at Product Pains: https://productpains.com/post/react-native/crash-in-rctsrwebsocketm

I didn't fix the underlying issue here, but it seems it was exacerbate by a really short timeout in React devtools. I increased the timeout in v25 https://github.com/facebook/react-native/commit/b00c77af8066cf74f05ccaca2b08c8952e1ae8a6

Since there hasn't been any activity since that last comment improving the timeout, it seems like in practice this is no longer an issue. I'm going to close this issue but folks should feel free to open a new one if a problem like this exists in newer RN versions.


Broadcast errors

Need to get more helpful error messaging to bubble up to the surface in Freewallet... so errors are not a black hole.

Started writing signed transactions to the console to make debugging easier
added in 2f4f9c1ddf8055262aee54ceeef144c2c0824bfc

after some additional looking into broadcast errors apparently bitcoins sendrawtransaction is returning NULL when transaction fails to broadcast... not very helpful... need to figure out way to extract helpful error message on broadcast failure


Provider verification error message unhelpful when using regex matchers

If you use an eachLike matcher, when the diff is displayed for a provider verification failure, instead of the expected value it shows a diff against the matcher - which is a bit unhelpful!
Example output:
npm run test:provider

><EMAIL_ADDRESS>test:provider /Users/mfellows/development/public/pact-js/examples/e2e
> mocha test/provider.spec.js

Animal Profile Service listening on http://localhost:8081
  Pact Verification
    1) should validate the expectations of Matching Service

  0 passing (2s)
  1 failing

  1) Pact Verification should validate the expectations of Matching Service:
     Error: WARN: Ignoring unsupported matching rules {"min"=>2} for path $['body']
WARN: Only the first item will be used to match the items in the array at $['body']
WARN: Ignoring unsupported matching rules {"min"=>1} for path $['body'][*]['interests']
WARN: Ignoring unsupported matching rules {"min"=>1} for path $['body']['interests']
Reading pact at<EMAIL_ADDRESS>
Verifying a pact between Matching Service and Animal Profile Service
  Given Has some animals
    a request for all animals
      with GET /animals/available
        returns a response which
          has status code 200
          has a matching body (FAILED - 1)
          includes headers
            "Content-Type" with value "application/json; charset=utf-8"
  Given Has an animal with ID 1
    a request for an animal with ID 1
      with GET /animals/1
        returns a response which
          has status code 200
          has a matching body (FAILED - 2)
          includes headers
            "Content-Type" with value "application/json; charset=utf-8"
  Given Has no animals
    a request for an animal with ID 100
      with GET /animals/100
        returns a response which
          has status code 404
Publishing verification result {"success":false,"providerApplicationVersion":"1.0.0"} to<EMAIL_ADDRESS>
Failures:

  1) Verifying a pact between Matching Service and Animal Profile Service Given Has some animals a request for all animals with GET /animals/available returns a response which has a matching body
     Failure/Error: expect(response_body).to match_term expected_response_body, diff_options

       Actual: []

       @@ -1,107 +1,4 @@
       -[
       -  {
       -    "id": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": 1
       -    },
       -    "first_name": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": "Billy"
       -    },
       -    "last_name": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": "Goat"
       -    },
       -    "animal": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": "goat"
       -    },
       -    "age": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": 21
       -    },
       -    "gender": /F|M/,
       -    "location": {
       -      "description": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": "Melbourne Zoo"
       -      },
       -      "country": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": "Australia"
       -      },
       -      "post_code": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": 3000
       -      }
       -    },
       -    "eligibility": {
       -      "available": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": true
       -      },
       -      "previously_married": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": false
       -      }
       -    },
       -    "interests": {
       -      "json_class": "Pact::ArrayLike",
       -      "contents": "walks in the garden/meadow",
       -      "min": 1
       -    }
       -  },
       -  {
       -    "id": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": 1
       -    },
       -    "first_name": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": "Billy"
       -    },
       -    "last_name": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": "Goat"
       -    },
       -    "animal": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": "goat"
       -    },
       -    "age": {
       -      "json_class": "Pact::SomethingLike",
       -      "contents": 21
       -    },
       -    "gender": /F|M/,
       -    "location": {
       -      "description": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": "Melbourne Zoo"
       -      },
       -      "country": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": "Australia"
       -      },
       -      "post_code": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": 3000
       -      }
       -    },
       -    "eligibility": {
       -      "available": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": true
       -      },
       -      "previously_married": {
       -        "json_class": "Pact::SomethingLike",
       -        "contents": false
       -      }
       -    },
       -    "interests": {
       -      "json_class": "Pact::ArrayLike",
       -      "contents": "walks in the garden/meadow",
       -      "min": 1
       -    }
       -  },
       +[,
       +
        ]

       Key: - means "expected, but was not found".
            + means "actual, should not be found".
            Values where the expected matches the actual are not shown.

  2) Verifying a pact between Matching Service and Animal Profile Service Given Has an animal with ID 1 a request for an animal with ID 1 with GET /animals/1 returns a response which has a matching body
     Failure/Error: expect(response_body).to match_term expected_response_body, diff_options

       Actual: {"first_name":"Billy","last_name":"Goat","animal":"goat","age":21,"gender":"M","location":{"description":"Melbourne Zoo","country":"Australia","post_code":3000},"eligibility":{"availabl":true,"previously_married":false},"interests":["walks in the garden/meadow","munching on a paddock bomb","parkour"],"id":1}

       @@ -1,6 +1,5 @@
        {
          "eligibility": {
       -    "available": TrueClass
          }
        }

       Key: - means "expected, but was not found".
            + means "actual, should not be found".
            Values where the expected matches the actual are not shown.

3 interactions, 2 failures

pact file:
{
  "consumer": {
    "name": "Matching Service"
  },
  "provider": {
    "name": "Animal Profile Service"
  },
  "interactions": [
    {
      "description": "a request for all animals",
      "providerState": "Has some animals",
      "request": {
        "method": "GET",
        "path": "/animals/available"
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json; charset=utf-8"
        },
        "body": [
          {
            "id": 1,
            "first_name": "Billy",
            "last_name": "Goat",
            "animal": "goat",
            "age": 21,
            "gender": "M",
            "location": {
              "description": "Melbourne Zoo",
              "country": "Australia",
              "post_code": 3000
            },
            "eligibility": {
              "available": true,
              "previously_married": false
            },
            "interests": [
              "walks in the garden/meadow"
            ]
          },
          {
            "id": 1,
            "first_name": "Billy",
            "last_name": "Goat",
            "animal": "goat",
            "age": 21,
            "gender": "M",
            "location": {
              "description": "Melbourne Zoo",
              "country": "Australia",
              "post_code": 3000
            },
            "eligibility": {
              "available": true,
              "previously_married": false
            },
            "interests": [
              "walks in the garden/meadow"
            ]
          }
        ],
        "matchingRules": {
          "$.body": {
            "min": 2
          },
          "$.body[*].*": {
            "match": "type"
          },
          "$.body[*].id": {
            "match": "type"
          },
          "$.body[*].first_name": {
            "match": "type"
          },
          "$.body[*].last_name": {
            "match": "type"
          },
          "$.body[*].animal": {
            "match": "type"
          },
          "$.body[*].age": {
            "match": "type"
          },
          "$.body[*].gender": {
            "match": "regex",
            "regex": "F|M"
          },
          "$.body[*].location.description": {
            "match": "type"
          },
          "$.body[*].location.country": {
            "match": "type"
          },
          "$.body[*].location.post_code": {
            "match": "type"
          },
          "$.body[*].eligibility.available": {
            "match": "type"
          },
          "$.body[*].eligibility.previously_married": {
            "match": "type"
          },
          "$.body[*].interests": {
            "min": 1
          },
          "$.body[*].interests[*].*": {
            "match": "type"
          }
        }
      }
    },
    {
      "description": "a request for an animal with ID 1",
      "providerState": "Has an animal with ID 1",
      "request": {
        "method": "GET",
        "path": "/animals/1"
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json; charset=utf-8"
        },
        "body": {
          "id": 1,
          "first_name": "Billy",
          "last_name": "Goat",
          "animal": "goat",
          "age": 21,
          "gender": "M",
          "location": {
            "description": "Melbourne Zoo",
            "country": "Australia",
            "post_code": 3000
          },
          "eligibility": {
            "available": true,
            "previously_married": false
          },
          "interests": [
            "walks in the garden/meadow"
          ]
        },
        "matchingRules": {
          "$.body.id": {
            "match": "type"
          },
          "$.body.first_name": {
            "match": "type"
          },
          "$.body.last_name": {
            "match": "type"
          },
          "$.body.animal": {
            "match": "type"
          },
          "$.body.age": {
            "match": "type"
          },
          "$.body.gender": {
            "match": "regex",
            "regex": "F|M"
          },
          "$.body.location.description": {
            "match": "type"
          },
          "$.body.location.country": {
            "match": "type"
          },
          "$.body.location.post_code": {
            "match": "type"
          },
          "$.body.eligibility.available": {
            "match": "type"
          },
          "$.body.eligibility.previously_married": {
            "match": "type"
          },
          "$.body.interests": {
            "min": 1
          },
          "$.body.interests[*].*": {
            "match": "type"
          }
        }
      }
    },
    {
      "description": "a request for an animal with ID 100",
      "providerState": "Has no animals",
      "request": {
        "method": "GET",
        "path": "/animals/100"
      },
      "response": {
        "status": 404,
        "headers": {
        }
      }
    }
  ],
  "metadata": {
    "pactSpecification": {
      "version": "2.0.0"
    }
  }
}

Reproducable build:
Check out https://github.com/pact-foundation/pact-js/tree/fix/pact-141 and run the following:
npm i
cd examples/e2e/
npm run test:pact:provider

I'm confused as to why you would want the generated value. The generated value is used when mocking the service, back in the consumer project. When validating a pact, the generated value is irrelevant. You apply the regular expression to the response value to see if it matches what you expect. If it doesn't, you need to see the actual response value and the regular expression that didn't match.

Actually sorry that's the wrong example! I'll get you an updated one.
The problem I had was it dumping out the internals of the data structure. When I find it I'll update this or close it (maybe it's been fixed?).

I've found that in some recent work I've been doing. It should be fixed in the next release, but if you can put your example here, I can test it to make sure.

OK, have a repro for you (updated description).

This should be fixed now. You'll need to update to the latest release of pact-support.

Thanks, I'll upgrade Pact JS to latest verifier.


make Libra RPC available as soon as possible

Once you make RPC available, we can develop dapp with libra.

there is already gRPC implementation. Ppl are using it to create wrappers like this one https://community.libra.org/t/libra-grpc-the-libra-client-for-javascript-lovers/691?u=lucas

Or like this one https://github.com/egorsmkv/libra-grpc-py

Please take a look at the gRPC interfaces provided.  I believe those should meet the needs you require

Or you could also check this one out: https://www.npmjs.com/package/libra-core

Or for Go: https://github.com/philippgille/libra-sdk-go
Which also includes the Go code generated by Libra's proto files in the rpc subpackage.


Correct issue #623 where references from proir runs may remain.

Pull request to address an issue where references from prior runs might be incorporated into following runs.
Added these two lines and a comment 'conduct_research()':
async def conduct_research(self):
"""
Runs the GPT Researcher to conduct research
"""
# Reset visited_urls and source_urls at the start of each research task
self.visited_urls.clear()
self.source_urls = []

Thanks for your time to review and merge the changes.


Experimental--- Exact Voigt profiles instead of pseudoVoigts, plus Emission lines

Two neat things--- Exact voigts and emission lines.  Both highly experimental, but they appear to be working mostly.  Needs calibration, testing, spot-checking.

Exact voigts appear to be working and anecdotally feel better than the Pseudo-Voigts.  I haven't benchmarked them, but speed doesn't seem to be an issue, still near 1000 epochs in under a minute for an echelle order with 100 pixel wing cut and hundreds of lines.


Realm freezes CFRunLoopRun

Goals
We have legacy project in ObjC and wanted to use Realm as additional database inside iOS application and our application uses SOAP and NSURLConnection as network transport but Realm makes livelock inside CFRunLoopRun.

app has serial queue for running NSURLConnection
app is subscribed to connectionDidFinishLoading: event
app makes simple 'ping' to site and runs CFRunLoopRun in queue to enable events
app closes connection after receiving connectionDidFinishLoading: event
on CFRunLoopRun exit we log it and after exit from queue's task yet another task will receive slot for execution
but if we add Realm then CFRunLoopRun will run indefinitely and now our queue is locked

Expected Results
RLMRealm (1) doesn't affect runloop
Actual Results
CFRunLoopRun() is frozen in step (2) when [Realm defaultRealm] is invoked in line (1).
I see a sequence of steps of (1), (2), (5) but queue's internal runloop runs indefinitely in step (2) so I never see steps (3) and (4) and as result my queue is not valid anymore, i.e. I can dispatch tasks to this queue but they will not be processed . If I remove realm then everything is fine, I see as closing connection stops runloop.
Steps to Reproduce

create single view's iOS project
cocoapods pod init
add pod 'Realm', '~> 2.4' to target
pod install
add my code to initial view controller
set breakpoints to steps
run

OR open attached xcworkspace
Code Sample
realm_conn.zip
#import "Realm/Realm.h"

@interface ViewController () <NSURLConnectionDataDelegate>
@end

@implementation ViewController {
  dispatch_queue_t my_queue;
  NSURLConnection *_connection;
}

- (void)viewDidLoad {
  [super viewDidLoad];

  my_queue = dispatch_queue_create("my queue", NULL);

  dispatch_async(my_queue, ^{

    [RLMRealm defaultRealm];      // (1) // comment me make it running
    NSURLRequest *req = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://google.com"]];
    _connection = [[NSURLConnection alloc] initWithRequest:req delegate:self startImmediately:YES];
    CFRunLoopRun();               // (2) infinite loop inside ios so (3) and (4) as result never been called
    NSLog(@"done");               // (3)

  });
}

- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
  dispatch_async(my_queue, ^{
    NSLog(@"test");               // (4) // never been called when realm is used in the same queue
  });
  _connection = nil;              // (5) // without (1) this line stops runloop so (2) and (3) will be called
}

@end

Version of Realm and Tooling
ProductName:	Mac OS X
ProductVersion:	10.11.6
BuildVersion:	15G1217

/Applications/Xcode.app/Contents/Developer
Xcode 8.1
Build version 8B62

/usr/local/bin/pod
1.2.0
Realm (2.4.4)
Realm (~> 2.4)

/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)

(not in use here)

/usr/bin/git
git version 2.9.3 (Apple Git-75)

@autoreleasepool {
  [RLMRealm defaultRealm];      // workaround, but I don't understand why
}

Log of Runloop events
With Realm
kCFRunLoopEntry
kCFRunLoopBeforeTimers
kCFRunLoopBeforeSources
kCFRunLoopBeforeWaiting
kCFRunLoopAfterWaiting
kCFRunLoopBeforeTimers
kCFRunLoopBeforeSources
kCFRunLoopBeforeTimers
kCFRunLoopBeforeSources
kCFRunLoopBeforeWaiting
kCFRunLoopAfterWaiting
kCFRunLoopBeforeTimers
kCFRunLoopBeforeSources
kCFRunLoopBeforeWaiting <-- and that's all, no more after it

Without Realm
kCFRunLoopEntry
kCFRunLoopBeforeTimers
kCFRunLoopBeforeSources
kCFRunLoopBeforeWaiting
kCFRunLoopAfterWaiting
kCFRunLoopBeforeTimers
kCFRunLoopBeforeSources
kCFRunLoopBeforeTimers
kCFRunLoopBeforeSources
kCFRunLoopBeforeWaiting
kCFRunLoopAfterWaiting
kCFRunLoopExit

or I need to stop runloop by this way
if (dispatch_get_current_queue() != dispatch_get_main_queue()) {
    CFRunLoopStop(CFRunLoopGetCurrent());
}

CFRunLoopRun runs the runloop in the default mode until all sources and timers are removed, or CFRunLoopStop is called. Your code appears to be operating under the assumption that no-one else will ever add a runloop source or register a timer on that runloop, and that all runloop sources will be removed when your network request concludes. I don't think it's safe to make assumptions about the behavior of any third-party code you call into, whether it be Realm's or Apple's.
Furthermore, I'd advise against running a runloop on a dispatch queue. Dispatch queues a serviced by a limited number of system-owned threads, and it's frowned upon to block them for indeterminate amounts of time such as while waiting for a network request. NSURLConnection will happily let you schedule the connection on a different runloop, such as the main thread's runloop, or even schedule delegate callbacks to happen on a dispatch queue.
If you absolutely must continue to run a runloop on a dispatch queue like this, you should use some explicit signal to determine when to stop running the runloop and then invoke CFRunLoopStop. Note that dispatch_get_current_queue has been deprecated for a number of years now so shouldn't be relied upon in new code.

Yes, it looks like it my mistake. Realm uses runloop sources.
external_commit_helpder.cpp:
// When a RLMRealm instance is created, we add a CFRunLoopSource to the current
// thread's runloop. On each cycle of the run loop, the run loop checks each of
// its sources for work to do, which in the case of CFRunLoopSource is just
// checking if CFRunLoopSourceSignal has been called since the last time it ran,
// and if so invokes the function pointer supplied when the source is created,
// which in our case just invokes `[realm handleExternalChange]`.

and event_loop_signal.hpp:
CFRunLoopGetCurrent
CFRunLoopSourceCreate
CFRunLoopAddSource


C.free requires // #include <stdlib.h>

On Windows, every time you use C.free you require // #include <stdlib.h>.

Can we reopne this issue. Currently go-sdl2 does not build in windows because #include <stdlib.h> is needed by below files
$ grep -R "C.free" go-sdl2/
go-sdl2/sdl/audio.go:   defer C.free(unsafe.Pointer(_driverName))
go-sdl2/sdl/audio.go:   defer C.free(unsafe.Pointer(_device))
go-sdl2/sdl/audio.go:   defer C.free(unsafe.Pointer(_file))
go-sdl2/sdl/audio.go:   defer C.free(unsafe.Pointer(_rb))
go-sdl2/sdl/clipboard.go:       defer C.free(unsafe.Pointer(_text))
go-sdl2/sdl/filesystem.go:      defer C.free(unsafe.Pointer(_org))
go-sdl2/sdl/filesystem.go:      defer C.free(unsafe.Pointer(_app))
go-sdl2/sdl/gamecontroller.go:  defer C.free(unsafe.Pointer(_mappingString))
go-sdl2/sdl/gamecontroller.go:  defer C.free(unsafe.Pointer(_pchString))
go-sdl2/sdl/gamecontroller.go:  defer C.free(unsafe.Pointer(_pchString))
go-sdl2/sdl/hints.go:   defer C.free(unsafe.Pointer(_name))
go-sdl2/sdl/hints.go:   defer C.free(unsafe.Pointer(_value))
go-sdl2/sdl/hints.go:   defer C.free(unsafe.Pointer(_name))
go-sdl2/sdl/hints.go:   defer C.free(unsafe.Pointer(_value))
go-sdl2/sdl/hints.go:   defer C.free(unsafe.Pointer(_name))
go-sdl2/sdl/joystick.go:        defer C.free(unsafe.Pointer(_pszGUID))
go-sdl2/sdl/joystick.go:        defer C.free(unsafe.Pointer(_pchGUID))
go-sdl2/sdl/keyboard.go:        defer C.free(unsafe.Pointer(_name))
go-sdl2/sdl/keyboard.go:        defer C.free(unsafe.Pointer(_name))
go-sdl2/sdl/loadso.go:  defer C.free(unsafe.Pointer(_sofile))
go-sdl2/sdl/loadso.go:  defer C.free(unsafe.Pointer(_name))
go-sdl2/sdl/log.go:     defer C.free(unsafe.Pointer(cstr))
go-sdl2/sdl/log.go:     defer C.free(unsafe.Pointer(cstr))
go-sdl2/sdl/log.go:     defer C.free(unsafe.Pointer(cstr))
go-sdl2/sdl/log.go:     defer C.free(unsafe.Pointer(cstr))
go-sdl2/sdl/log.go:     defer C.free(unsafe.Pointer(cstr))
go-sdl2/sdl/log.go:     defer C.free(unsafe.Pointer(cstr))
go-sdl2/sdl/log.go:     defer C.free(unsafe.Pointer(cstr))
go-sdl2/sdl/log.go:     defer C.free(unsafe.Pointer(cstr))
go-sdl2/sdl/rwops.go:   defer C.free(unsafe.Pointer(_file))
go-sdl2/sdl/rwops.go:   defer C.free(unsafe.Pointer(_mode))
go-sdl2/sdl_image/sdl_image.go: defer C.free(unsafe.Pointer(_type))
go-sdl2/sdl_image/sdl_image.go: defer C.free(unsafe.Pointer(_file))
go-sdl2/sdl_image/sdl_image.go: defer C.free(unsafe.Pointer(_file))
go-sdl2/sdl_image/sdl_image.go: C.free(unsafe.Pointer(_xpm))
go-sdl2/sdl_image/sdl_image.go: C.free(unsafe.Pointer(_file))
go-sdl2/sdl_mixer/sdl_mixer.go: defer C.free(unsafe.Pointer(_file))
go-sdl2/sdl_mixer/sdl_mixer.go: defer C.free(unsafe.Pointer(_rb))
go-sdl2/sdl_mixer/sdl_mixer.go: defer C.free(unsafe.Pointer(_file))
go-sdl2/sdl_mixer/sdl_mixer.go: defer C.free(unsafe.Pointer(_command))
go-sdl2/sdl_mixer/sdl_mixer.go: defer C.free(unsafe.Pointer(_paths))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_err))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_file))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_file))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_text))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_text))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_text))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_text))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_text))
go-sdl2/sdl_ttf/sdl_ttf.go:     defer C.free(unsafe.Pointer(_text))

Or we can just put it in "sdl_*_wrapper.h" files.

I put #include <stdlib.h> on the wrapper files. Does it work?

:+1:

Cool, I'll be closing this issue again then!


[hotfix] [docs][FLINK-9581] Typo: extra spaces removed to make COLLECT left aligned

Brief change log
extra spaces removed
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): ( no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: ( no )
The runtime per-record code paths (performance sensitive): ( no )
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: ( no )
The S3 file system connector: ( no )

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

Thanks @snuyanzin!
+1 to merge

@fhueske thank you for review
@tillrohrmann if you took #6258 and @fhueske reviewed this may be it also makes sense to take into 1.5.1?

Documentation fixes are usually not critical to include in a release because the docs are always built from the most recent release branch. So also documentation changes that are not included in a release will be published shortly after being committed.
I'll merge this PR.
Btw. it is OK to create a hotfix (i.e., a PR without creating a JIRA issue) for minor fixes like this.
Thanks, Fabian


Create kubeconfig from GCP container model's MasterAuth for kube-api authentication

https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke

Because of changes we should simulate the behaviour of gke-gcloud-auth-plugin and aquire Token for credentials used in a tool and populate that to kubeconfig's user.


feat: add pr check action

Describe what this PR does / why we need it

For https://github.com/alibaba/spring-cloud-alibaba/issues/3557

Planned to do later, now closed!


Suggested promisifying of a contract factory.

Notice how it resolves to an array with both returned contracts.
Only contracts[1] has the address, presumably.

The constructor callback is called twice, once when the transaction is accepted into the node's transaction pool, and once when it's mined. For these purposes, it'd be sufficient to ignore the first callback and only fulfill the promise on the second.
It might be more convenient to just take the ABI, too, and do the web3.eth.contract call in the function.

I can change to only return on the second time.
But you are saying we should go with a synchronous .new? Wouldn't that be a problem with a future Web3, or a NodeJs that forbids synchronous calls?

No, not at all - definitely use the asynchronous new. But there's no need to return an array in the promise - just return the value passed to the callback once contract.address is populated.


Bind to <IP_ADDRESS>

Let jetty to bind to every network interface and any host name

Using <IP_ADDRESS> as proposed in several sites, requires a hostname of <IP_ADDRESS>
Maybe updating jetty will solve the issue?

@atd Commited in master 0.4.0-alpha (not tagged)

Awesome!! :clap: :clap:
@pablojan note that if the version is changed but not tagged, the docker image will be built
Maybe we want to change for the tag to build the docker image
If so, please let me know

I would prefer to test the feature (you to test it) before tagging it.
With which version the docker image is built?

It is built from the first commit that changes build-swellrt.properties
In this case, it is been built from https://github.com/P2Pvalue/swellrt/commit/b1c20d18d3ee5b46cd3489a7265484118fffa4c3
We should change the behavior then, shouldn't we?


Demo

Create a demo that shows off a similar UI to mailchimp or facebooks Login/Signup/Forgot feels.
The key in this demo is to have both SSR and client hydrated components using multiple frameworks while keeping it simple and manageable:

Header (Svelte, Astro, etc.)
Language selector (Svelte)
Hero Image (Astro?)
Login (Vue)
newsletter + Newsletter Dialog(Astro, etc.)

We can even have a Kanban board to show how different teams might work on these sub-apps:

Need to figure out why the signup form is no longer working and also go verify the old signup examples still work


docs(style-guide): remove rule about aliasing inputs

Closes #2891

I disagree. I personally revised this rule in order to satisfy #2896 while keeping its original intent which was to discourage spurious aliasing.
Instead, you just removed it all together. Please explain.

I think we agreed to close this PR


issue #2524 student manager api added

Title and Issue number
Student Manager API added made using Node Js and Express Js
Close issue #2524
Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy-to-understand README.md

@MohitGupta121 please merge this ... I made a clean PR this time ...

@MohitGupta121 please merge this pr


Hello, this is a good project

I hope the author can continue to update, I will always use this project, please do not give up this project!

I would like to have more sample projects, or be able to support some frameworks for animation

Thank you.


uninitialized constant Sprockets::DirectiveProcessor

if I try to install
rails g polymer:install
I got this error
.rvm/gems/ruby-2.0.0-p451/gems/polymer-rails-0.1.9/lib/polymer-rails/processors/directive_processor.rb:3:in `module:Rails': uninitialized constant Sprockets::DirectiveProcessor (NameError)

UPDATE for the newer version, you can run bundle update polymer-rails, it'll automatically choose the older version for sprocket gem. Current version of sprocket is 3.2.0, but polymer-rails use 2.12.4
:100:


refresh Token is Empty String when renewAccessToken is called when tokenExpired

switch error {
        case OAuthSwiftError.tokenExpired:
            _ = self.renewAccessToken(withRefreshToken: self.client.credential.oauthRefreshToken, headers: renewHeaders ?? headers, success: { (credential, _, _) in
                // Ommit response parameters so they don't override the original ones
                // We have successfully renewed the access token.

                // If provided, fire the onRenewal closure
                if let renewalCallBack = onTokenRenewal {
                    renewalCallBack(credential)
                }

in this function when error is tokenExpired it goes into renewAccessToken function but self.client.credential.oauthRefreshToken = "".Please Help

if you can debug the connection this can help
a breakpoint here
https://github.com/OAuthSwift/OAuthSwift/blob/1ba85d0837fa052ea556acd925a7c4ae8beec42a/Sources/OAuth2Swift.swift#L227
if let refreshToken = responseParameters["refresh_token"] as? String {
                this.client.credential.oauthRefreshToken = refreshToken.safeStringByRemovingPercentEncoding
            }

to see if there is in responseParameters the "refresh_token" or not, or maybe named
You remove all issue template with many questions I ask, next time I close the issue without helping
Because I need to know the oauth provider for instance

fileprivate func requestOAuthAccessToken(withParameters parameters: OAuthSwift.Parameters, headers: OAuthSwift.Headers? = nil, success: @escaping TokenSuccessHandler, failure: FailureHandler?) -> OAuthSwiftRequestHandle? {
    let successHandler: OAuthSwiftHTTPRequest.SuccessHandler = { [weak self] response in
        guard let this = self else {
            OAuthSwift.retainError(failure)
            return
        }

here self is nil every time it goes into else only i added refresh token.please help

if you can debug the connection this can help
a breakpoint here
OAuthSwift/Sources/OAuth2Swift.swift
Line 227 in 1ba85d0
if let refreshToken = responseParameters["refresh_token"] as? String {
if let refreshToken = responseParameters["refresh_token"] as? String {
                this.client.credential.oauthRefreshToken = refreshToken.safeStringByRemovingPercentEncoding
            }

to see if there is in responseParameters the "refresh_token" or not, or maybe named
You remove all issue template with many questions I ask, next time I close the issue without helping
Because I need to know the oauth provider for instance

i kept a break point here its not executing this part of code

not executing the line 227 because of this retainerror self is nil.please help.\
fileprivate func requestOAuthAccessToken(withParameters parameters: OAuthSwift.Parameters, headers: OAuthSwift.Headers? = nil, success: @escaping TokenSuccessHandler, failure: FailureHandler?) -> OAuthSwiftRequestHandle? {
let successHandler: OAuthSwiftHTTPRequest.SuccessHandler = { [weak self] response in
guard let this = self else {
OAuthSwift.retainError(failure)
return
}

please explain how can i retain and close this issue

you call authorize to login
then the url handler (browser etc.. open an url and you log)
the callback is called after that
https://github.com/OAuthSwift/OAuthSwift/blob/1ba85d0837fa052ea556acd925a7c4ae8beec42a/Sources/OAuth2Swift.swift#L89
did you receive access token directly?
https://github.com/OAuthSwift/OAuthSwift/blob/1ba85d0837fa052ea556acd925a7c4ae8beec42a/Sources/OAuth2Swift.swift#L101
I think some is missing here
if not post function is called
https://github.com/OAuthSwift/OAuthSwift/blob/1ba85d0837fa052ea556acd925a7c4ae8beec42a/Sources/OAuth2Swift.swift#L123
which call the method I ask to add debug point
https://github.com/OAuthSwift/OAuthSwift/blob/1ba85d0837fa052ea556acd925a7c4ae8beec42a/Sources/OAuth2Swift.swift#L205

yo retain do not do
var oauthswift = ... or let oauthswift = ...
but create a var oauthswift: OAuthSwift?  in your controller
and do
self.oauthswift = OAuth....

sir, i dont want to login with browser
so i didnt use authorize method
Instead i used startAuthorizedRequest and passed token url parameters
so in this case oauthRefreshToken is not getting assigned in your library

i got refresh token now but not able to solve this retain error
fileprivate func requestOAuthAccessToken(withParameters parameters: OAuthSwift.Parameters, headers: OAuthSwift.Headers? = nil, success: @escaping TokenSuccessHandler, failure: FailureHandler?) -> OAuthSwiftRequestHandle? {
let successHandler: OAuthSwiftHTTPRequest.SuccessHandler = { [weak self] response in
guard let this = self else {
OAuthSwift.retainError(failure)
return
}
every time this self is becoming nil.please help with this

yo retain do not do
var oauthswift = ... or let oauthswift = ...
but create a var oauthswift: OAuthSwift? in your controller
and do
self.oauthswift = OAuth....

tried this do you want me to add weak or anything while declaring?

i think problem is

yes you can keep in your manager class, it is better!
if your cloud manager is not released in memory (there is an instance somewhere, singleton or controller or app delelegate or anywhere)

i kept in cloud manager class retain error is still coming please help.should i share screen

little tip: avoid using ! (see force_cast in swiftlint)
I cannot help without the code and do want to do share screen
your cloud manager is retained by what?
where did you create it and where did you affect it
did you make for instance a singleton and use CloudManager.instance.auth() like that
class CloudManager {
 static let instance = CloudManager()

 func auth() {
  self.oauthswift = OAth()...

  oauth.authorize()
}

}

little tip: avoid using ! (see force_cast in swiftlint)
I cannot help without the code and do want to do share screen
your cloud manager is retained by what?
where did you create it and where did you affect it
did you make for instance a singleton and use CloudManager.instance.auth() like that
class CloudManager {
 static let instance = CloudManager()

 func auth() {
  self.oauthswift = OAth()...

  oauth.authorize()
}

}

see these two screeen shots self is becoming nil

little tip: avoid using ! (see force_cast in swiftlint)
I cannot help without the code and do want to do share screen
your cloud manager is retained by what?
where did you create it and where did you affect it
did you make for instance a singleton and use CloudManager.instance.auth() like that
class CloudManager {
 static let instance = CloudManager()

 func auth() {
  self.oauthswift = OAth()...

  oauth.authorize()
}

}

without ! getting error

My Cloud MAnager class is like this
import OAuthSwift
import ObjectMapper
class CloudManager {
let errorResponse:DataResponse<Any>? = nil
let stringErrorResponse: DataResponse<String>? = nil

var accessToken: String?
var oauthswift: OAuth2Swift?
func makeCloudRequest(url:String,parameter:[String:Any],headers:[String:String],requestType:HTTPMethod ,completionHandler: @escaping (DataResponse<Any>?) -> Void ){
    var method:OAuthSwiftHTTPRequest.Method?
    var parameters:[String:Any] = parameter
    if requestType == .post{
        method = .POST
    }else if requestType == .get{
        method = .GET
        parameters = [:]
    }else if requestType == .put{
        method = .PUT
    }
    self.oauthswift = OAuth2Swift(
        consumerKey: StringConstant.oauth_client_id,         // [1] Enter google app settings
        consumerSecret: KeychainService.shared[KEY_GOOGLE.KEY_NAME_OAUTH_CLIENT_SECRET]!,        // No secret required
        authorizeUrl: RequestURL.URL_OAUTH_ACCESS_TOKEN.rawValue,
        accessTokenUrl: RequestURL.URL_OAUTH_ACCESS_TOKEN.rawValue,
        responseType: StringConstant.token
    )
    if NetworkCheck.isNetwork() {
        let queue = DispatchQueue(label: "com.test.api", qos: .background, attributes: .concurrent)
        queue.async {
            self.oauthswift!.client.credential.oauthRefreshToken = MyDefaults.getData(key: DefaultKeys.KEY_REFRESH_TOKEN) as! String
            self.oauthswift!.startAuthorizedRequest(url, method: method!, parameters: parameters,headers:headers,onTokenRenewal: { (credential) in
                    print(credential)
                    MyDefaults.setData(value: credential.oauthToken, key: DefaultKeys.KEY_TOKEN)
                    MyDefaults.setData(value:credential.oauthRefreshToken,key:DefaultKeys.KEY_REFRESH_TOKEN)
                }, success: { (response) in
                    try? completionHandler(DataResponse(request: response.request, response: response.response, data: response.data, result: .success(try response.jsonObject())))
                    if url == RequestURL.URL_OAUTH_ACCESS_TOKEN.rawValue{

//                            if let responseParameters = try? response.jsonObject() as! [String:Any]{
//                                if let expiresIn = responseParameters["expires_in"] as? String, let offset = Double(expiresIn) {
//                                    self.oauthswift.client.credential.oauthTokenExpiresAt = Date(timeInterval: offset, since: Date())
//                                } else if let expiresIn = responseParameters["expires_in"] as? Double {
//                                    self.oauthswift.client.credential.oauthTokenExpiresAt = Date(timeInterval: expiresIn, since: Date())
//                                }
//                            }
                        self.oauthswift!.renewAccessToken(withRefreshToken: MyDefaults.getData(key: DefaultKeys.KEY_REFRESH_TOKEN) as! String,
                            success: { (OAuthSwiftCredential, OAuthSwiftResponse, OAuthSwiftParameters) in
                            MyDefaults.setData(value: OAuthSwiftCredential.oauthToken, key: DefaultKeys.KEY_TOKEN)
                        },
                            failure: { (OAuthSwiftError) in

                        })
                    }
                }, failure: { (OAuthSwiftError) in
                    do{
                        let error = (OAuthSwiftError.errorUserInfo["error"] as! NSError).userInfo as! [String:Any]
                        if let data = error[StringConstant.responseDataKey]{
                            let response = try JSONSerialization.jsonObject(with: data  as! Data, options: [])
                            completionHandler(DataResponse(request: OAuthSwiftError.errorUserInfo[StringConstant.request] as? URLRequest, response: error[StringConstant.responseKey] as? HTTPURLResponse, data: data as? Data, result: .success(response)))
                        }else{
                            completionHandler(self.errorResponse)
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                })
        }
    }else{

        if let view = Constants.appDelegate?.window?.rootView(){
            ToastPopUp.showNetworkPOPup(message:ToastMsgConstant.network ,view: view)
        }
        completionHandler(errorResponse)
    }
}

Please help

please help

see these two screeen shots self is becoming nil

i am getting request response also but self is becoming nil

No I didn't use instance of cloud manager like what I told but when I make request I am calling like Cloud manager().makeRequest()
On 05-Mar-2019 10:15 PM, Eric Marchand<EMAIL_ADDRESS>wrote:
little tip: avoid using ! (see force_cast in swiftlint)
I cannot help without the code and do want to do share screen
your cloud manager is retained by what?
where did you create it and where did you affect it
did you make for instance a singleton and use CloudManager.instance.auth() like that
class CloudManager {
static let instance = CloudManager()
func auth() {
self.oauthswift = OAth()...
oauth.authorize()
}
}

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOAuthSwift%2FOAuthSwift%2Fissues%2F519%23issuecomment-469755860&data=02|01|Kunusoth.Sandeep%40kpit.com|0cb49dab636f4845f58d08d6a18a013a|3539451eb46e4a26a242ff61502855c7|0|1|636874011434967296&sdata=TXSA6iF4U2elvKXEMVOfUV17c5YYOvBPcmEmztJtwaE%3D&reserved=0, or mute the threadhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAsEbGYBA6Xngz48G9fxUt-FYAnw1vOveks5vTp8zgaJpZM4be289&data=02|01|Kunusoth.Sandeep%40kpit.com|0cb49dab636f4845f58d08d6a18a013a|3539451eb46e4a26a242ff61502855c7|0|1|636874011434977303&sdata=cvsqT1w%2FqeIDL4olJ%2BVsxNdp2loRHNzED%2B9QKfqqtJI%3D&reserved=0.
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.

Please help
On 06-Mar-2019 12:33 AM<EMAIL_ADDRESS>wrote:
No I didn't use instance of cloud manager like what I told but when I make request I am calling like Cloud manager().makeRequest()
On 05-Mar-2019 10:15 PM, Eric Marchand<EMAIL_ADDRESS>wrote:
little tip: avoid using ! (see force_cast in swiftlint)
I cannot help without the code and do want to do share screen
your cloud manager is retained by what?
where did you create it and where did you affect it
did you make for instance a singleton and use CloudManager.instance.auth() like that
class CloudManager {
static let instance = CloudManager()
func auth() {
self.oauthswift = OAth()...
oauth.authorize()
}
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOAuthSwift%2FOAuthSwift%2Fissues%2F519%23issuecomment-469755860&data=02|01|Kunusoth.Sandeep%40kpit.com|0cb49dab636f4845f58d08d6a18a013a|3539451eb46e4a26a242ff61502855c7|0|1|636874011434967296&sdata=TXSA6iF4U2elvKXEMVOfUV17c5YYOvBPcmEmztJtwaE%3D&reserved=0, or mute the threadhttps://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAsEbGYBA6Xngz48G9fxUt-FYAnw1vOveks5vTp8zgaJpZM4be289&data=02|01|Kunusoth.Sandeep%40kpit.com|0cb49dab636f4845f58d08d6a18a013a|3539451eb46e4a26a242ff61502855c7|0|1|636874011434977303&sdata=cvsqT1w%2FqeIDL4olJ%2BVsxNdp2loRHNzED%2B9QKfqqtJI%3D&reserved=0.
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.

No I didn't use instance of cloud manager like what I told but when I make request I am calling like Cloud manager().makeRequest()

so you do not retain any information, do not create the classe and lose it
please learn iOS memory management or do like I say with a singleton (event if it is not a good architecture)


Demo down

Link not working https://sb-clean-blog.startbootstrap.com/

Now working

Now working


Sinytra Connector crashing launcher on game start when "Special AI" mod is enabled.

Mod Name
Special AI
Mod Homepage
https://www.curseforge.com/minecraft/mc-mods/special-ai
Minecraft version
1.20.1
Describe the bug
Sintrya Connector crashes with Special AI mod enabled.
Steps to reproduce

Add and enable "Special AI".
Add and enable "Sintrya Connector" and "Forgified Fabric API".
Launch the game.

Logs
https://mclo.gs/dH8s47q
Additional context
Special AI is a native Forge mod.
I only installed Sintrya Connector to acquire "Enhanced Block Entities" and "Concurrent Chunk Management Engine", and as such, the two are my only installed and enabled Fabric mods.
Most of my mods were disabled for diagnosing this issue, so I implore the case reviewer to ignore all disabled mods if possible. (I can whittle my modlist down to just Sinytra Connector, Forgified Fabric API and Special AI being enabled if my case reviewer requests it).

could you try again with just connector, ffapi and special ai?

I'll try it.
Edit: Still didn't work.

As our LTS support target, 1.20.1 now only receives critical fixes related to Connector bugs. Please upgrade to the latest version for mod compatibility support.


Upgrade to Go 1.15.1

https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs/m/UccMwBPUBAAJ

/assign @jeremyfaller
Note: we'll need to wait for the official Docker containers and Homebrew to be updated.

Looks like the container is out, but Homebrew is waiting on https://github.com/Homebrew/homebrew-core/pull/60495  to be merge.d

I think Jeremy is out this week, so I'll pick this up.
/assign


util: fix align_power2_* macros' shift operation.

We must cast 1 to the proper type.
Bug spotted by american fuzzy lop.
Signed-off-by: Gustavo Lima Chaves<EMAIL_ADDRESS>

LGTM.

ok, merging. thanks.


Retrieve All Secrets

Using an asterisk to retrieve all secrets only seems to return the first page of secrets in Secrets Manager.

Nice catch! Would you like to submit a PR to handle this?

Is there any plan to make this?

If not I'm going to do that


Display an error message in the "type form" component

Right now the spinner keeps spinning even after the request failed.

A snackbar component might be useful for general-purpose error handling and reusability.


Payment promise resolves successfully after network error

It seems that the payment request promise in the content script resolve successfully after a network error in the background script.
This is likely because error: undefined is assuming there is no error

@bumi  Sir, please provide steps about reproducing this error.

@bumi Did you ever experience that again? I've never seen that before :thinking:


NumericalSolution gives unboundLocalError in notebooks

Hello,
after the presentation I decided to tidy up and move my code to github. It now resides here and is divided more logically. Also I removed the source for the presentation as it only made the repository unneccessary bulky.
Notebooks are now stored in notebooks directory and I am redoing them presently. I just added full description and sympy calculation for the coefficients of gPC. However, I cannot make the example to run in ipython notebook. The cell containing
ns = NumericalSolution.NS_base(so, [p], [n], so.sList, opts)

Resolves to a following error:
---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
<ipython-input-7-95d4da4e0387> in <module>()
----> 1 ns = NumericalSolution.NS_base(so, [p], [n], so.sList, opts)

/home/c111269/projects/proteus/linux2/lib/python2.7/site-packages/proteus/NumericalSolution.pyc in __init__(self, so, pList, nList, sList, opts, simFlagsList)
    374             log("Setting up MultilevelTransport for "+p.name)
    375
--> 376             model = Transport.MultilevelTransport(p,n,mlMesh,OneLevelTransportType=p.LevelModelType)
    377             self.modelList.append(model)
    378             model.name = p.name

/home/c111269/projects/proteus/linux2/lib/python2.7/site-packages/proteus/Transport.pyc in __init__(self, problem, numerics, mlMesh, OneLevelTransportType)
   5845             problem.sd,
   5846             problem.movingDomain,
-> 5847             PhiSpaceTypeDict=phiSpaces)
   5848     def initialize(self,
   5849                    nd,

/home/c111269/projects/proteus/linux2/lib/python2.7/site-packages/proteus/Transport.pyc in initialize(self, nd, mlMesh, TrialSpaceTypeDict, TestSpaceTypeDict, matType, dirichletConditionsSetterDict, coefficients, quadratureDict, elementBoundaryQuadratureDict, fluxBoundaryConditionsDict, advectiveFluxBoundaryConditionsSetterDict, diffusiveFluxBoundaryConditionsSetterDictDict, stressFluxBoundaryConditionsSetterDict, stabilization, shockCapturing, conservativeFlux, numericalFluxType, TimeIntegrationClass, massLumping, reactionLumping, weakDirichletConditions, options, useSparseDiffusion, movingDomain, PhiSpaceTypeDict)
   6063                                             self.name + str(len(self.levelModelList)),
   6064                                             sd = useSparseDiffusion,
-> 6065                                             movingDomain=movingDomain)
   6066             self.offsetListList.append(transport.offset)
   6067             self.strideListList.append(transport.stride)

/home/c111269/projects/proteus/linux2/lib/python2.7/site-packages/proteus/Transport.pyc in __init__(self, uDict, phiDict, testSpaceDict, matType, dofBoundaryConditionsDict, dofBoundaryConditionsSetterDict, coefficients, elementQuadrature, elementBoundaryQuadrature, fluxBoundaryConditionsDict, advectiveFluxBoundaryConditionsSetterDict, diffusiveFluxBoundaryConditionsSetterDictDict, stressFluxBoundaryConditionsSetterDict, stabilization, shockCapturing, conservativeFluxDict, numericalFluxType, TimeIntegrationClass, massLumping, reactionLumping, options, name, reuse_trial_and_test_quadrature, sd, movingDomain)
    180                 for cj in cjDict.keys():
    181                     if not self.dphi.has_key((ck,cj)):
--> 182                         self.dphi[(ck,cj)] = FiniteElementFunction(phi.femSpace)
    183         self.matType = matType
    184         #try to reuse test and trial information across components if spaces are the same

UnboundLocalError: local variable 'phi' referenced before assignment

The same example runs with parun (gpc directory) and a nearly identical Riemann problem notebook runs fine. I am probably doing something wrong, but I cannot figure it out just diffing the files. Please let me know.

Hi @robertsawko . Here a are a couple of minor issues with the notebook. Let me know if this resolves things
In[3]:
n.x -> x
In[5]:
femSpaces -> n.femSpaces

Ooops. Thanks, that resolved the issue. I copied it over from a working example and didn't modify everything properly it seems. I should be able to finish the gPC notebook today then.


Build a driver program in C++ to run dppy.kernel generated SPIR-V

The arguments to dppy-kernel are flattened out. We need to convert C++ arrays into the flattened representation prior to submitting the numba-dppy generated SPIR-V kernel to a device.
It will be good to have a script that generates the driver function to call a numba-dppy generate kernel.

Such a driver program should technically be part of a tools directory in numba-dpex rather than dpbench. Closing this issue here and we will track it with numba-dpex.


Coface Lifting (Simplicial to Combinatorial)

Add a lift to 3-cells from the co-faces for 2-cells in a simplicial complex. This technique is mentioned in
Hajij et al, 2023 where the proof that this lift is a Combinatorial Complex is also described.
Additionally added some code to make the SimplicialLoader work and actually return a Dataset and not a Data object.
Tags:
Existing lift from literature | connectivity-based | deterministic

Hello @martin-carrasco! Thank you for your submission. As we near the end of the challenge, I am collecting participant info for the purpose of selecting and announcing winners. Please email me (or have one member of your team email me) at<EMAIL_ADDRESS>so I can share access to the voting form. In your email, please include:

your first and last name (as well as any other team members)
the title of the method you implemented
the input domain of the method you implemented
the output domain of the method you implemented
your pull request number (#29)

Before July 12, make sure that your submission respects all Submission Requirements laid out on the challenge page. Any submission that fails to meet this criteria will be automatically disqualified.

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

Please upload report for BASE (main@497947b). Learn more about missing BASE report.

Files
Patch %
Lines

modules/data/utils/utils.py
93.75%
2 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage        ?   71.50%
=======================================
  Files           ?       18
  Lines           ?      600
  Branches        ?        0
=======================================
  Hits            ?      429
  Misses          ?      171
  Partials        ?        0

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


memory games made through html, css and javascript

Tech Stack used :
HTML/ CSS
JavaScript
Simple memory game in which the user simply selects each card in first attempt , observes its position initially and so on.. , then the user simply clicks in any random card and tries to get another identical card in the game, provided that card position unchanged. The game returns the number of steps taken by the user to complete the game .

Please attach screenshots in PR.

@pranjay-poddar  I will again do this PR with proper Screenshots


Examples of options and script file names? (readme needs more detail)

I have everything installed and make completed successfully. The readme notes that I can use:
./start.sh [options] [script file name]

But does not provide any examples of options or scripts which I should use, what will be tested, or how to interpret results.

Thanks for Justin's question. This is also confusing me, I have found options by running ./start.sh --help, but looks too simple to have a specified test. Could you offer more wiki info or give more detailed instructions? Suggest that include a demo with one of  test case.

@justinjdickow,
For options values call ./start -h.
Also we have a article in confluence with this parameters description.
Scripts are provided in scripts repository. These scripts need some preconditions, and for sample SDL testing could be used a sample.lua script.
$ ./start.sh --sdl_core=<path_to_SDL_build>/bin/ sample.lua