Add new setting to messaging-policies-in-teams.md

Closes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/8522.

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@dariomws could you please help on the copy review? Thanks!

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

File
Status
Preview URL
Details

:x:Error

Details

[Error: CannotMergeCommit] Cannot merge commit 0d9c18fad29ec9277aa367cb6be5b755c20947e8 in branch patch-207 of repository https://github.com/dariomws/OfficeDocs-SkypeForBusiness into branch live (commit edf68b7ac4f1861259a0990157ee6ae84f68ca42). Please follow this documentation: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ to use git.exe to resolve you content conflicts locally and then push to remote.

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

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

File
Status
Preview URL
Details

:x:Error

Details

[Error: CannotMergeCommit] Cannot merge commit bb828ee90c56d3bee43838142dcbfb3127e63538 in branch patch-207 of repository https://github.com/dariomws/OfficeDocs-SkypeForBusiness into branch live (commit edf68b7ac4f1861259a0990157ee6ae84f68ca42). Please follow this documentation: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ to use git.exe to resolve you content conflicts locally and then push to remote.

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


HSEARCH-1997 Avoid checking for Java8 time classes multiple times

https://hibernate.atlassian.net/browse/HSEARCH-1997

Would this work?

yes, nice. Rebased and merged


Translate abstraction.md into Korean

Signed-off-by: Seokho Son<EMAIL_ADDRESS>Describe your changes
Translate abstraction.md into Korean
Related issue number or link (ex: resolves #issue-number)
#1116
Checklist before opening this PR (put x in the checkboxes)

[x] This PR does not contain plagiarism

don’t copy other people’s work unless you are quoting and contributing it to them.

[x] I have signed off on all commits

signing off (ex: git commit -s) is to affirm that commits comply DCO.

@bconfiden2 리뷰 감사합니다. :) 업데이트하였습니다.

@yunkon-kim 제안대로 반영하였습니다. 감사합니다!
@jihoon-seo 살펴봐주실 수 있으실까요?

@jihoon-seo 추가 리뷰 의견 모두 그대로 수용하였습니다! 감사합니다.


Implement smelting

This PR implements smelting. (closes #499)
Issues/missing features:

[ ] Experience drops when taking output. (earned XP is already saved/loaded/calculated)

The smelting data is directly included in the item types instead of being loaded such as crafting recipes to include experience data and to avoid import cycles with the block and recipe packages.

This is ready for review aside from the missing experience drops implementation.

As discussed in Discord, I think for the XP we can use the packet sent by the client.

I think this is pretty much ready, but not sure about keeping smelting info inside items themselves. This avoids the recipe-><- block cycle but makes smelting recipes a lot less nice to deal with API wise and is inconsistent with crafting recipes which is not ideal. Thoughts? @Sandertv


ci: Split the install-tools into test/build groups

Resolves #4846
Refactor CI installation process: split install-tools into mockery/testing/build sub-targets, divide install-ci into install-test-tools and install-build-tools

Please make sure all commits are signed

Thanks!


Could we have lightweight template?

From @barrytang on June 30, 2016 2:52
Opened on behalf of @miloush.
Something between Empty and Web?
That wouldn't have any packages, javascript code or functional structure - just say one static view and one controller saying hello? Kind of minimum MVC...
Because currently when you want to create a new project, you either go with Empty and don't really know what you need, or you go with Web, deleting everything until it breaks...
The Web template is good for learning how to do things, but not to do them.
Copied from original issue: aspnet/Templates#642

From @sayedihashimi on July 1, 2016 16:43
Hi @miloush thanks for the suggestion.
I've discussed with @madskristensen and he is going to start looking at this along with @Ladynaggaga I believe. Once we get more details we can see if we have the right content, and then figure out in what release we may be able to include this.

From @miloush on July 28, 2016 19:50
That looks great, thanks Mads, I will give it a try!

From @madskristensen on July 28, 2016 19:47
2 new templates are now available here https://visualstudiogallery.msdn.microsoft.com/31a3eab5-e62b-4030-9226-b5e4c9e1ffb5

From @miloush on August 6, 2017 20:2
Well, same issue with ASP.NET Core 2.0 and Visual Studio 2017. This should really be part of the built-in templates.

From @ArgTang on August 23, 2016 12:16
These templates work great!

Closing because there are no plans to implement this. There is already a variety of templates, including the newer Razor Pages templates, which should cover most scenarios.


Importing cert step has become incorrect

Because of UI updates, "Import certificate into App Service" needs revise.
Now this chapter explains based on old UI.  Lots of users will confuse because they can't find such UI.

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

ID: cc2ee874-df45-1de2-1b30-1fd75c7fd709
Version Independent ID: ee181722-8386-9842-407f-d0549012d2e9
Content: Add and manage TLS/SSL certificates - Azure App Service
Content Source: articles/app-service/configure-ssl-certificate.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@kohei-miyoshi Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.


How to generalize more facial expressions and improve resolution?

hello good job, I would like to know how to have more expressions in the output of driver.py, I train with a variety of facial expressions, but it seems that it only uses some expressions, there is some parameter to adjust to make it generate more expressions.
also if it is possible to increase the output resolution, example 720p

Hello, as all of the checkpoints are lost , can you friendly upload the checkpoints?
It's a pity that the author's google drive is deleted.


tev: init at 1.13

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

Hey, this looks pretty cool! Compiled it with nix-review and ran the binary, seems to work well :smile:


Add a "Skip to content" link that's first in the tab order

Discussed in https://github.com/pradyunsg/furo/discussions/436

Resolved with 945014871d11bbef1c884a58931aa161b230e11b


[Tensor] Support source tensor allocation

In this PR, the float/half tensor can be allocated based on the source tensor.
Self-evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test:   [X]Passed [ ]Failed [ ]Skipped

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2389. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.


getting attribute error AttributeError: module 'ldm.modules.diffusionmodules.text_grounding_net' has no attribute 'PositionNet'

when I am trying to run inference script after following steps mentioned in ReadME.md I am getting the following error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 270, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 706, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 235, in app
    raw_response = await run_endpoint_function(
  File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
  File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
  File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
    return await future
  File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
  File "/root/inference.py", line 380, in main
    model, autoencoder, text_encoder, diffusion, config = load_model_ckpt(meta_list[0]["ckpt"], args, device)
  File "/root/utils/checkpoint.py", line 233, in load_model_ckpt
    model = instantiate_from_config(config['model']).to(device).eval()
  File "/root/ldm/util.py", line 78, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "/root/ldm/modules/diffusionmodules/openaimodel.py", line 467, in __init__
    self.position_net = instantiate_from_config(grounding_tokenizer)
  File "/root/ldm/util.py", line 78, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "/root/ldm/util.py", line 86, in get_obj_from_str
    return getattr(importlib.import_module(module, package=None), cls)
AttributeError: module 'ldm.modules.diffusionmodules.text_grounding_net' has no attribute 'PositionNet'

Closing for now. Please reopen it if you have more questions.


Attention: Please provide feedback on the new phantomjs rewrite

Hi folks,
After managing this npm package for over a year, I have seen a lot of issues that I have wanted to get fixed. @sgentle was the original author and he used dnode to communicate between phantomjs and node. dnode is great. But it is outdated and raises a lot of security issues.  Since then, there has been a lot of new documentation and new ways to do the same thing. As this page suggests, one of the ways is to use web sockets.
I am proposing a rewrite to use web sockets. I favor web sockets because it is the same way that https://github.com/teampoltergeist/poltergeist uses ruby to communicate with phantomjs. poltergeist is a very famous wrapper which is used for testing. A lot of credit to the author who wrote beautiful code. I have learned a lot by just reading the code.
I can use everybody's feedback on the issue. How does this idea sound? The API shouldn't change too much. I will propose v2-alpha sometime this month instead. I believe the following should be fixed:

Be able to use cluster in nodejs
Be able to use pm2
Performance improvement because web sockets are faster in my experience
No more nasty security hacks

Looking forward to hear your comments.

Related issues #280, #345, #354, #275.

Sounds great. https://github.com/peerigon/phridge uses stdin/stdout and it looks like it works well.
I'm testing that package now to see how it stacks up to using phantomjs-node. Phridge is a little different in that everything is a promise so you can't call callbacks on onResourceRequested and you have to keep some state on the PhantomJS page instead.

During my research, I ran in to phridge. I was looking for a way to read from stdin. It looks like phantomjs doesn't support blocking and you would have to do busy loop and check for messages. This is dirty. Probably not very performant. Let me know how your comparison goes.

Hmm yeah that's not great. Although, I have a phantomjs instance with phridge running on ec2 right now (m3.medium) and node is a 0.3% CPU and phantomjs is at 0.7% CPU when idle. So it doesn't seem like it's just spinning on the loop or anything.
I'll let you know how the performance is when I begin to use it for loading URLs.

@thoop little update. I did end up implementing sockets. I get the same error because the websocket server needs to listen on a server. I am going to try stdin to see if it's better. How did your testing come out?

Nice, that was quick.
After running millions of URLs through phridge, it performs very well (with phantomjs 2.1.1). No orphaned phantomjs instances and no surprises with regards to degraded performance or anything. Seems pretty solid but the API is quite different from this project. I've only been running some servers for a day now so I'd like to continue to see how it performs longer term.

@thoop yes I was able to get something working quickly just to see if it works. I am trying with sysin/out now. I found it interesting that phridge requires an instance to be launched. I played around a little with it and it seems to be working well with a some tests. It just feels dirty for an instance to be running long process. It runs the loop() function forever until the process gets killed. I am taking a different approach.
When I have something, could I work with you to test it?

Yeah just let me know.

@thoop so I was able to implement a naive proof of concept using sysin. I see the problem and the reason behind phridge's funky api. PhantomJs is single threaded. So when calling sysin.readLine() it blocks the whole thread. It blocks any callbacks from running. That's why phridge sends the whole block to be executed. Not sure how to fix it, but that's an interesting problem. :)
https://github.com/ariya/phantomjs/issues/10980

@thoop I have a working prototype. It's more "node-like" where you can use correct callbacks. Can you share your test with me via a gist please? I just want to implement the minimum functionality before sending it to you. I just need to know how you plan to use it. Thanks! Ps. this is looking much better already. I am excited!

Nice! My test is actually being run straight from a server that takes a URL and opens it in PhantomJS and then returns the content. The current version using phantomjs-node being:
https://github.com/prerender/prerender
And the test branch with phridge with modifications to support phridge at:
https://github.com/prerender/prerender/tree/phridge
The main PhantomJS usage file is lib/server.js in both of those repos.

Hi @thoop I went through your code extensively. At some point, I gave up because I wasn't really understanding all the different callbacks you had setup. I was also a little confused because it looked like you were passing objects which were out of your scope. phantom-node nor phridge support this. I am a little confused how what you have is working.
With a little more digging, I realized that the most important part of your code is in the evaluate function. So I rewrote it using the new version. You can find it here. My tests seem to be faster. My code is located at https://github.com/amir20/phantomjs-node/tree/v2. I haven't had a chance to deploy it yet. But if you want to try it out, you would have to bring it locally and use npm link or npm install path/to/phantom.
All in all, I noticed that way phridge was working was a little flawed. It forced the whole function to be sent to phantom. This might ok for some people, but I figure if you need quicker feedback between open, evaluate and render then this is the way to go.
A couple of notes. I use Promise now. So instead of writing foo(function(){...}) you should write foo().then(function(){...}). I haven't written a new readme file yet. That's my next task.
I think it supports everything you are doing. Look at https://github.com/amir20/phantomjs-node/blob/v2/src/spec/page_spec.js for more examples. I provide support for properties, evaluate, render, injectJs and open. Also because it uses sysin there is no need to worry about clustering. I do spawn a new instance every time. I found that to be safer then worrying about restarting a process.
Excited to hear back what you think. I have to figure out how to start rolling this out.

Yeah our Prerender server is pretty complex but it works very well for taking in URLs and returning the HTML. Everything in there is working as expected with regards to scope.
I'll check out your code soon!

@thoop do me a favor and let me know if there is something missing or if something can be improved. I want to release alpha version soon so other people can try it out.

2.0.0-alpha published.

I'll post back here once I'm able to test this even though it's closed just to update you. Sorry I haven't been able to get to this yet.

Thanks! If you want any other problems, let's just create a new ticket so I can fix it. I think I am still missing functionality to add cookies but otherwise if something doesn't work, it's a bug.

@thoop any update? It looks to be pretty solid now. I want to release v2 but like to get one more person to vet.

Sorry been swamped! I might not get some time until this weekend.

Hey @thoop no problem. It would be nice if you let me know so that I can release 2.0.0. I have a feeling everything should work. Given that four people have used it this week without any problems, it should work well. I am also feature complete.
Let me know!

Hi @amir20 can you please confirm addCookie function doesn't work with phantom? I've been trying calling addCookie  on page object without success. If it actual works can you please provide some example codes. Thanks

It works. There is a lot of issues you can find examples. There is also page_spec.js that has examples. I am traveling today and tomorrow and won't be able to get you examples. See if you can find tests.
Sent from my iPad

On Apr 26, 2016, at 8:31 PM, alienbat<EMAIL_ADDRESS>wrote:
Hi @amir20 can you please confirm addCookie function doesn't work with phantom? I've been trying calling addCookie on page object without success. If it actual works can you please provide some example codes. Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@amir20  I found page_spec.js and will have a read. Thanks very much for the fast response!


Calculation using select pressure levels

Hi @csyhuang,
I am wondering if it is possible to calculate the LWA and the other fields not using all of the 37 pressure levels, but just a select few. For example, I am curious how would the fields look just by using the 4 levels around the jet stream (200, 225, 250 and 300 hPa). I have made some adjustments to the kmax parameter, but I am bit confused about the height adjustments as the first and last height won't be at the surface and top of course.
I have modified kmax from 49 to 12 as that was the suggestion in the error after I started the code using the wind and temperature fields at these select 4 levels, but then I just got an error for a segmentation fault. Do you have any suggestions on how to adjust it?
I am using a script based on demo_script_for_nh2018.ipynb
Martin

I realized I forgot to post the reply to your email here. I'll do that and close this ticket:
This package is constructed based on the theory, which is derived in the global/hemispheric domain, so it assumes you are putting in data from the whole globe. Even if you are just only interested in signals in a certain region, you still have to fill in the whole globe of data (otherwise global/hemispheric reference state Qref cannot be computed).

If you really want to use the package to compute wave activity, you may consider filling in synthetic data (which does not affect Qref) for the remaining region if you don't have data for those grid points. However, in that case, you may not be able to use the flux results (since it is based on a global reference state).

Regarding the height interpolation (your previous email), the package assumed evenly spaced vertical grid points in pseudoheight, so the range of pseudoheight you could cover is kmax*dz, and you cannot omit lower-level vertical grid points.


Add Char Count Library and Integration in Plugin core

Adds & enlists js-Library for client-sided Char-Count
Adjust plugin for lntegration

Lets merge this for the time being. I'll replace it with something more efficient in version 2.


Seeded data always in the future

Description
Updated seeded data so that the test events will always be in the future when the data is reseeded. There is a lot of code changed from prettier updating, but my actual changes in the code include adding the dates defined in lines 129-208 and updates to the date variables in each of the 11 events in lines 210-687
Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist

[x] I have performed a self-review of my own code
[x] My code follows the style guidelines of this project
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings

Code looks good, would love this new update on master! No more old events when reseeded 👍


cv2.error when using demo.py

When I run demo.py I met this error.Can you give me some advices to deal with it?
python3 bin/demo.py test.jpg --lift_model sample/gen_epoch_500.npz --model pose_iter_440000.caffemodel --proto2d openpose_pose_coco.prototxt
MODEL: generator, N_OUT: 17, N_UNIT: 1024
[mjpeg @ 0x55f4839aa660] mjpeg: invalid TIFF header in EXIF data
[mjpeg @ 0x55f4839aa220] mjpeg: invalid TIFF header in EXIF data
[ INFO:0] Initialize OpenCL runtime...
OpenCV Error: Assertion failed (output_slice.isContinuous() && output_slice.size == curr_output.size) in fuseLayers, file /io/opencv/modules/dnn/src/dnn.cpp, line 1430
Traceback (most recent call last):
File "bin/demo.py", line 201, in
main(args)
File "bin/demo.py", line 163, in main
points = OpenPose(args).predict(args, frame)
File "bin/demo.py", line 122, in predict
out = self.net.forward()
cv2.error: /io/opencv/modules/dnn/src/dnn.cpp:1430: error: (-215) output_slice.isContinuous() && output_slice.size == curr_output.size in function fuseLayers

You have to re-build the openCV3.4 with python3.6 by yourself.
Please do not forget this.
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
https://qiita.com/clerk67/items/ef0ccd94a966284b2e6e

Thank you for your example.I have solved this problem.But there's another one.Do you know how to solve it?
MODEL: generator, N_OUT: 17, N_UNIT: 1024
[ INFO:0] Initialize OpenCL runtime...
Traceback (most recent call last):
File "/home/nanfei/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 52, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
TypeError: 'tuple' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bin/demo.py", line 203, in
main(args)
File "bin/demo.py", line 178, in main
img = evaluation_util.create_projection_img(pose, np.pi * float(2) * i / split)
File "/home/nanfei/3dpose_gan/bin/evaluation_util.py", line 58, in create_projection_img
fake = np.reshape(fake, (y.shape[:3], -1))
File "/home/nanfei/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 257, in reshape
return _wrapfunc(a, 'reshape', newshape, order=order)
File "/home/nanfei/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 62, in _wrapfunc
return _wrapit(obj, method, *args, **kwds)
File "/home/nanfei/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 42, in _wrapit
result = getattr(asarray(obj), method)(*args, **kwds)
TypeError: 'tuple' object cannot be interpreted as an integer

How did you solve the previous problem?


Nuke improvements, and a bonus refactor

... because I can't seem to touch old code without some refactoring.
The main functional improvements are:

Removing packages between killing processes and rebooting
Attempting a power cycle if the console is unresponsive
If the console is unresponsive after a power cycle, attempting to continue anyway by using SSH

This work was prompted by http://tracker.ceph.com/issues/17049

:thumbsup:  Waiting for tests

Just because it's been such an annoying couple of weeks, let's merge this first thing tomorrow


AttributeError: 'VehicleStatus' object has no attribute 'ARMING_STATE_DISARMED'

Hello,
Why am I getting this attribute error:
self.arming_state = vehicle_status.ARMING_STATE_DISARMED
AttributeError: 'VehicleStatus' object has no attribute 'ARMING_STATE_DISARMED'
Thank you in advance.

@Adeljc8 That is strange, since it exists: https://github.com/PX4/px4_msgs/blob/bd9dc0fae0162960a31af8f232a9e9f85522ae73/msg/VehicleStatus.msg#L9

Hey @Jaeyoung-Lim
I tried to launch you example and got the same error
I'm using PX4 main, should I revert to an older version?

@ciresimo This is not really related to the px4 version, but rather the px4_msgs you are using.(Which needs to be compatible with px4)
Could you check if the message field exists in the version you are using?

Ok solved it
As suggested in px4_msgs repo I checked out to release/1.14 since I was using px4 1.14.3
It was my fault  since I did not look at the readme
I tried an it works fine also on main (both px4 and px4_msgs) so probably yesterday I did not fetch/pull something
Thanks for the suggestion and for this cool example

@ciresimo Thanks for the update!


HW 6 documentation

So the task assignment does not include the documentation part. Do we have to do that? If yes, Whose role could be it?
@laserlab @Pranjal-Srivastava-2023 @s4il3sh

The results should be described in each individual task. Task 3 has the additional documentation task of comparing it to numpy

Oh that means under each task we have to create task wise documentation?

@laserlab Thank you for your explanation, dear professor.


Fix mixed content issue #309

That website is not setup for ssl, so I just downloaded and refactored the image size for your page.
#Hactoberfest

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

Hi @digikin , I'm sorry but I'm going to close this issue as someone else already fix this. Thanks for your contribution anyway. 🙇🏻♂


exec: Allow the use of commands not in the PATH

This extends brew bundle exec with the ability to run a command which isn't in the path, for example, my use case was running a ./configure script using the Brewfile magic, but this wasn't supported.
My patch basically just skips the storage of the path to the command in command_path as well as the related null if the command has a directory separator in it anywhere, and then uses exec as normal.
In effect, this brings it up to acting more like a shell would, meaning you can run a configure script via brew bundle exec as ./configure, but not as configure. On the other hand, you can now run something like brew bundle exec bin/setup, or pass an absolute path to an executable.
Specs have been added for the three types of paths this should interact with; absolute and relative paths, and relative paths which do not contain a . indicating the current directory.
Note that this branch does not have 100% code coverage as requested in CONTRIBUTING.md, but this is not due to this change, and in fact already the case on master: https://github.com/Homebrew/homebrew-bundle/runs/1976844086?check_suite_focus=true#step:9:47

Oh, and an additional note: I don't believe a documentation update is required, as the documentation for brew bundle exec already just says <command>, which is actually why I thought this would handle relative paths already!
https://github.com/Homebrew/homebrew-bundle/blob/ccdee2544f1ad5ca4e6862cca0107422bf51be0d/cmd/bundle.rb#L41-L42

This makes sense to me! One idea - what if, instead of checking for a /, we check if File.exist?(command)?

That would make the behaviour pretty different from the terminal norms; you can't run a bare file in the current directory without ./, but File.exist? will return true for that sort of path.

that brew style may flag on some of them

brew style is green already for me, but I'll look at updating with your feedback! ☺

Okay, this is updated with the style suggestions you proposed, and I've confirmed it's all still working.

Thanks so much for your first contribution!  You rock, @ticky!

This is awesome! Thank you so much, @ticky!


Reaction status is not applying

I love this module it is so helpful! I recently was testing the reaction status and it was not applying as expected. I have the apply and remove setting turned on.

NVM did not have the scene active


FAQ Section

Very important, need to cover up all the sections, can be plain text but it can be collapsable or in sections

Very important, need to cover up all the sections, can be plain text but it can be collapsable or in sections

okay i will look into it researching from various websites and complete it ASAP

Fixed


[go_router] Nested navigation limitation

Use case
The following was implemented using go_router:
  final _router = GoRouter(
    routes: [
      GoRoute(
        path: '/home/:tab',
        builder: (_, __) => const HomePage(),
        routes: [
          GoRoute(
            path: 'add_banana',
            builder: (_, __) => const AddBanana(),
          ),
          GoRoute(
            path: 'add_apple',
            builder: (_, __) => const AddApple(),
          ),
      ),
    ],
    urlPathStrategy: UrlPathStrategy.path,
  );

The home page has 2 tabs, Apples and Bananas and the following are all valid routes in the app:

/home/apples
/home/apples/add_apple
/home/bananas
/home/bananas/add_banana

Unfortunately, the way go_router handles nested navigation, there is no way to limit or introduce specificity on the routes under /home/:tab and as a consequence routes like:

/home/bananas/add_apple or
/home/apples/add_banana

are also valid, without a way to block that, despite the fact that they make no sense in the app and constitute maintainability issues in the long run.

@RaduGrama
Using your code sample, I came up with complete runnable one, but it is showing me Exception: no routes for location: /. Maybe I didn't implement correctly.

 runnable code sample

import 'package:animations/animations.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

void main() => runApp(const Application());

class Application extends StatefulWidget {
  const Application({Key? key}) : super(key: key);

  @override
  State<Application> createState() => _ApplicationState();
}

class _ApplicationState extends State<Application> {
  late final GoRouter _router;

  @override
  void initState() {
    _router = GoRouter(
      routes: [
        GoRoute(
          path: '/home/:tab',
          builder: (context, state) => HomePage(),
          routes: [
            GoRoute(
              path: 'add_banana',
              builder: (_, __) => AddBanana(),
            ),
            GoRoute(
              path: 'add_apple',
              builder: (_, __) => AddApple(),
            ),
          ]
        ),
      ],
      urlPathStrategy: UrlPathStrategy.path
    );
    super.initState();
  }

  @override
  void dispose() {
    _router.dispose();
    super.dispose();
  }

  @override
  Widget build(context) => MaterialApp.router(
    routeInformationParser: _router.routeInformationParser,
    routerDelegate: _router.routerDelegate,
  );
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: DefaultTabController(
        length: 3,
        child: Scaffold(
          appBar: AppBar(
            bottom: const TabBar(
              tabs: [
                Tab(icon: Icon(Icons.directions_car)),
                Tab(icon: Icon(Icons.directions_transit)),
                Tab(icon: Icon(Icons.directions_bike)),
              ],
            ),
            title: const Text('Tabs Demo'),
          ),
          body: const TabBarView(
            children: [
              Icon(Icons.directions_car),
              Icon(Icons.directions_transit),
              Icon(Icons.directions_bike),
            ],
          ),
        ),
      ),
    );
  }

}

class AddBanana extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('AddBanana'),
      ),
    );
  }

}

class AddApple extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('AddApple'),
      ),
    );
  }

}

Can you share what exactly is the issue you are facing along with expected behavior ?

@darshankawar cc @RaduGrama
code sample
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

abstract class Fruit {
  const Fruit();
  String get id;
  @override
  bool operator ==(other) => hashCode == other.hashCode;

  @override
  int get hashCode => hashValues(runtimeType, id);
}

class Banana extends Fruit {
  @override
  final id = 'banana';
  const Banana();
}

class Apple extends Fruit {
  @override
  final id = 'apple';

  const Apple();
}

abstract class FruitFamily {
  static const data = [Banana(), Apple()];
}

void main() => runApp(const Application());

class Application extends StatefulWidget {
  const Application({Key? key}) : super(key: key);

  @override
  State<Application> createState() => _ApplicationState();
}

class _ApplicationState extends State<Application> {
  late final GoRouter _router;

  @override
  void initState() {
    _router = GoRouter(
      initialLocation: '/fruits/${FruitFamily.data.first.id}',
      routes: [
        GoRoute(
          path: '/fruits/:fid',
          builder: (context, state) {
            final fid = state.params['fid']!;
            final fruit = FruitFamily.data.firstWhere(
              (f) => f.id == fid,
              orElse: () => throw Exception('family not found: $fid'),
            );
            return FruitTabsScreen(key: state.pageKey, fruit: fruit);
          },
          routes: [
            GoRoute(
              path: 'add_banana',
              builder: (context, state) => const AddBanana(),
            ),
            GoRoute(
              path: 'add_apple',
              builder: (context, state) => const AddApple(),
            ),
          ],
        ),
      ],
    );
    super.initState();
  }

  @override
  void dispose() {
    _router.dispose();
    super.dispose();
  }

  @override
  Widget build(context) => MaterialApp.router(
        routeInformationParser: _router.routeInformationParser,
        routerDelegate: _router.routerDelegate,
      );
}

class FruitTabsScreen extends StatefulWidget {
  final int index;
  FruitTabsScreen({required Fruit fruit, Key? key})
      : index = FruitFamily.data.indexWhere((f) => f.id == fruit.id),
        super(key: key);

  @override
  _FruitTabsScreenState createState() => _FruitTabsScreenState();
}

class _FruitTabsScreenState extends State<FruitTabsScreen>
    with TickerProviderStateMixin {
  late final TabController _controller;

  @override
  void initState() {
    super.initState();
    _controller = TabController(
      length: FruitFamily.data.length,
      vsync: this,
      initialIndex: widget.index,
    );
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  void didUpdateWidget(FruitTabsScreen oldWidget) {
    super.didUpdateWidget(oldWidget);
    _controller.index = widget.index;
  }

  @override
  Widget build(BuildContext context) => Scaffold(
        appBar: AppBar(
          title: const Text('fruits'),
          bottom: TabBar(
            controller: _controller,
            tabs: [for (final f in FruitFamily.data) Tab(text: f.id)],
            onTap: (index) => context.go(
              '/fruits/${FruitFamily.data[index].id}',
            ),
          ),
        ),
        body: TabBarView(
          controller: _controller,
          children: [
            for (final fruit in FruitFamily.data)
              Center(
                child: SizedBox(
                  width: MediaQuery.of(context).size.width * .3,
                  child: ListTile(
                    title: Text(fruit.id),
                    trailing: FloatingActionButton(
                      child: const Icon(Icons.add),
                      onPressed: () => context.go(
                        '/fruits/${fruit.id}/add_${fruit.id}',
                      ),
                    ),
                  ),
                ),
              )
          ],
        ),
      );
}

abstract class AddFruit extends StatelessWidget {
  final Fruit fruit;
  const AddFruit({
    required this.fruit,
    Key? key,
  }) : super(key: key);

  @override
  Widget build(context) => Scaffold(
        appBar: AppBar(title: Text('add ${fruit.id}')),
      );
}

class AddBanana extends AddFruit {
  const AddBanana({Key? key}) : super(fruit: const Banana(), key: key);
}

class AddApple extends AddFruit {
  const AddApple({Key? key}) : super(fruit: const Apple(), key: key);
}

Thanks for the code @iapicca.
Labeling this for further insights from the team.

 stable, master flutter doctor -v

[✓] Flutter (Channel stable, 2.10.4, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 2.10.4 at /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (3 days ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.13.0-0.0.pre.602, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 2.13.0-0.0.pre.602 at
      /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f4875ae865 (10 hours ago), 2022-04-17 15:19:07 -0400
    • Engine revision 3c6d4da868
    • Dart version 2.18.0 (build 2.18.0-24.0.dev)
    • DevTools version 2.12.2

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

In that case, should the parent route separated into two different goRoute one for /home/apple one for /home/banana. Is this a common feature for other routing framework too?

Reopening this issue as there's been similar issue reported: https://github.com/flutter/flutter/issues/106603
/cc @chunhtai


Allow @prisma/client to accept null values

Hi everyone !
First of all, thanks a lot for your amazing work on Prisma. I want to point a little issue on Typescript, when you try to use prisma client with Graphql-yoga and @nexus/schema resolvers args may be null (it seems :/) and so, when you try pass that args directly to prisma client the linter throw a type error.
Here an example from my Query definition
t.field('sitesCount', {
  type: 'Int',
  args: {
    where: 'SiteWhereInput',
  },
  resolve: (parent, { where }, { prisma }) => {
    return prisma.site.count({ where }); // <--- Cannot assign type 'null' to type 'SiteWhereInput | undefined'
  },
});

So could be possible to @prisma/client to handle null values ? (just like undefined values)
Here is my package dependencies :
"dependencies": {
  "@nexus/schema": "^0.13.1",
  "@prisma/client": "^2.0.0-beta.7",
  "bcryptjs": "2.4.3",
  "graphql": "^14.6.0",
  "graphql-shield": "^5.7.3",
  "graphql-yoga": "^1.18.3",
  "jsonwebtoken": "^8.5.1",
  "nexus-prisma": "^0.13.0",
  "request": "^2.88.2",
  "request-promise": "^4.2.5"
},
"devDependencies": {
  "@prisma/cli": "^2.0.0-beta.7",
  "@types/bcryptjs": "^2.4.2",
  "@types/jsonwebtoken": "^8.5.0",
  "@types/request-promise": "^4.1.45",
  "@typescript-eslint/eslint-plugin": "^3.1.0",
  "@typescript-eslint/parser": "^3.1.0",
  "eslint": "^7.1.0",
  "eslint-config-prettier": "^6.11.0",
  "eslint-plugin-prettier": "^3.1.3",
  "prettier": "^2.0.5",
  "ts-node": "^8.10.2",
  "ts-node-dev": "^1.0.0-pre.44",
  "typescript": "^3.9.3"
},

Thanks for the answer but the workaround seems to not work because of string filter (cannot associate 'null' to type 'string | StringFilter | undefined). The issue is the same as before but in deeper level and it may happen again with other params.
For now, I will use a as any workaround.

We are intentionally not accepting null as it has a different semantic meaning than undefined.
undefined means, that a value is not present, null means for Prisma Client, that a value should be set to an explicit null.
As this API works as intended, I'm closing this.
You can read more about it here: https://www.prisma.io/docs/concepts/components/prisma-client/null-and-undefined

As this is not fully compatible with crud middleware (it is but with ugly as any workaround). I think it would be a good idea to set strictNullCkecks to false in tsconfig file.


Error when trying to register a new user

Something broke in the registration process - Login still works fine.
Error screenshots

Issue has been resolved - it was actually an issue on the frontend when sending the request.


Anri — Option to Control Dark Theme

There has been a request to control whether the Anri dark theme is enabled or not. This will require three options:

Automatic (Based on the reader's browser preferences)
Always Dark
Always Light

In order to get this done, there will need to be some more info added to the SiteMeta table.

Done and done.
The theme can be controlled through the Settings page under the "Readability Settings" section.

Settings take place instantly, just as they should.
Update is part of 19K111 and will be deployed shortly.


ICS / Call log backup to calendar unavailable

After installing on Galaxy Nexus build ITL41F (stock) the Call Log calendar sync options are greyed out and inaccessible.
I've tried reauthorising and reinstalling / reauthorising without resolving this.
I noticed that when the Google authorise prompt (in browser) displays it does not list Calendar as a requirement (this may / may not be relevant).
A resolution for this would be great. I'm a long time user of the app and have come to rely on having a record of my calls in the calendar.

google has changed the calendar API in ICS. to make the not crash on startup i've disabled call log backups in ICS for now, when i get time i'll full support for it. see http://android-developers.blogspot.com/2011/10/ics-and-non-public-apis.html for more information

Ah ok.
Thanks for the quick response - I will wait patiently :-)

Closed with PR #206

EditDeleteHello Jberkel,
I did update your ICS version. the call log to calender got fixed but it shows all the calender list except the manualy added exchange calender.
On my Nexus S i9023 GB2.3.6 its working fine on exchange to log calls.


[Demo Purpose] fix 3913 by checking if dialog exists

Hope to close https://github.com/microsoft/botbuilder-dotnet/issues/3913
I create a new IssueTests in UT to test issues that can't be categorized.
If we put issue dialogs in TestBot.Json, they may be not tested and forgotten.

solved by https://github.com/microsoft/botbuilder-dotnet/pull/3918

DialogId could be null if not set


[BUG] Builder default for a field with an annotated generic type parameter throws Compiler exception in Java 14

Describe the bug
The build fails with a "compiler bug" when using @Builder.Default with an annotated generic type parameter on Java 14.  This bug does not occur in Java 11 (the latest LTS version), 13, or 15.
If the code is delomboked and then compiled, the code compiles successfully.
@Builder
public class Test {
    @Builder.Default
    private final List<@NotNull String> problematicProperty = List.of("A", "B", "C");
}

To Reproduce
Create a directory with the given Test.java file.  Ensure you are using Java 14 (This was tested using the Hotspot AdoptOpenJDK version 14.0.2 as installed by SDKMAN! per sdk install java 14.0.2.hs-adpt).
Test.java
import lombok.Builder;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.List;

@Builder
public class Test {
    @Builder.Default
    private final List<@NotNull String> problematicProperty = List.of("A", "B", "C"); // This causes the exception

    private final List<@NotNull String> workingPropertyNoDefault = List.of("A", "B", "C"); // No problems with this one

    @Builder.Default
    private final List<String> workingPropertyNoAnnotation = List.of("A", "B", "C"); // No problems with this one

    @Target({ElementType.TYPE_USE})
    @Retention(RetentionPolicy.RUNTIME)
    public @interface NotNull { }
}

Running Lombok against the test file throws an error.  Delomboking the test file and running that does not throw any error.
Test commands
$ javac -version
javac 14.0.2

$ java --version
openjdk 14.0.2 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.2+12)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.2+12, mixed mode, sharing)

$ javac -cp lombok-1.18.16.jar Test.java
An exception has occurred in the compiler (14.0.2). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
	at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writePosition(ClassWriter.java:671)
	at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeTypeAnnotation(ClassWriter.java:648)
	at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeTypeAnnotations(ClassWriter.java:552)
	at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeCode(ClassWriter.java:1104)
	at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeMethod(ClassWriter.java:972)
	at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeMethods(ClassWriter.java:1463)
	at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1568)
	at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1489)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:757)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1646)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1614)
	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:972)
	at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:316)
	at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:176)
	at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
	at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
printing javac parameters to: /path/to/javac.20210127_121326.args

$ java -jar lombok-1.18.16.jar delombok Test.java -d delombok

$ javac -cp lombok-1.18.16.jar delombok/Test.java

Expected behavior
The build should succeed, producing the same end result as when compiled on other versions of Java.
Version info (please complete the following information):

Lombok version: lombok-1.18.16.jar
javac: 14.0.2
java: openjdk 14.0.2 2020-07-14

Additional context
It's very possible this is a javac bug as reported in the output, and not a Lombok one.  However, as the delomboked code compiles I can't easily track down what that bug might be, as I'm not sure if it's reproducible with pure Java code, or what code would trigger the bug.
Furthermore, since Java 14 is not a LTS and it works in Java 15, even if this is an issue with Lombok and not javac, it may not be worth fixing.

Duplicate of #2539
I already spend some time debugging that but it is not that easy as it is something that happens at the very end of the compilation which is not covered by unit tests. Great news that this works in Java 15, if I can figure out what they changed lombok might be able to fix that in Java 14 too.

Duplicate of #2539
I already spend some time debugging that but it is not that easy as it is something that happens at the very end of the compilation which is not covered by unit tests. Great news that this works in Java 15, if I can figure out what they changed lombok might be able to fix that in Java 14 too.

Duplicate of #2539
I already spend some time debugging that but it is not that easy as it is something that happens at the very end of the compilation which is not covered by unit tests. Great news that this works in Java 15, if I can figure out what they changed lombok might be able to fix that in Java 14 too.

Thanks.  I missed it when searching for existing issues, I think mainly because I was looking for generics specifically in my search.

Duplicate of #2539
I already spend some time debugging that but it is not that easy as it is something that happens at the very end of the compilation which is not covered by unit tests. Great news that this works in Java 15, if I can figure out what they changed lombok might be able to fix that in Java 14 too.

Thanks.  I missed it when searching for existing issues, I think mainly because I was looking for generics specifically in my search.


Minor: Add examples of using TreeNode with Expr

Which issue does this PR close?
Part of #10121 and #7013
Rationale for this change
As @berkaysynnada says on @peter-toth 's amazing PR ' https://github.com/apache/datafusion/pull/10543

Our TreeNode API functionality has reached a very good level. You've done a great job. Perhaps we could add documentation with code snippets to exemplify the usage of methods and their purposes, to ease the experience for less experienced users.

What changes are included in this PR?
This PR adds examples to Expr and documentation to show how to use the TreeNode API

Are these changes tested?
Yes, new doc examples

Are there any user-facing changes?

Thanks for the review @jonahgao  🙏


Hotfix: Update Readme [ SpellingError ]

Instead of When it comes to RAG pipelines, it was written When is comes to RAG pipelines.
Rectified ✅

Thank you @MANISH007700 🤗


Added a secondary Cross (Blue) default at light level 1

I found this useful mainly for strip mining,  the blue cross is the correct position for a new torch in that case.
ModMenu:

This commit also includes a fix for Pre-2, if this collides with anything I can remove that.
It's only one change (getMaximum to getMax)
I developed the feature for 1.15 as well, but I didn't want to create two identical pull requests.
This is mainly something I did for private use, but I cleaned up my code, so in case there is interest in such a feature in LightOverlay I made this pull request

It can now be disabled by setting it to "-1".
I didn't name it Optimal placement Level, because of that being 2 for diagonals.
But as the light level can be changed this is something the user can change to his liking.
Should there be indication that the "Placement Level" is a "Light Level" as well?

maybe do Hint Light Level, also this should be disabled by default.
Also what is the optimal location?

It is light level 2 diagonally and 1 in a straight line.

Should I add an Info like that?
To the slider maybe:
Level: 1 (opt. straight)

maybe we could overhaul this whole feature to make it not user customizable for the level, but can display the optimal place to place torches and stuff?

That would probably be quite a complex.
For a plane simply placing diagonally every 7 places in a grid fits.
But for complex shapes there are more than one answer, and the calculation would probably make the whole thing lag.
An example with 1 torch behind a wall, the optimal solution would need to place one of the top torches 1 block to the center, so it is not even symmetrical even tho the setup it self is.

Here is a showing optimal torch placement, but it's also just a check for light level = 2

The only thing I could think of that could work, would be to check if a placement of the configured level is close enough to the current location, but even that would require to check for "line of sight" to all viable blocks close enough.

This is good enough then, I will merge this within a few hours

Well an algorithm probably working would be:
if(light_level > 7) return None;
for(int placement_level = 0; placement_level < light_level; placement_level++){
    foreach(block in getBlocksAirAboveBlockLessThen7BlocksAway()){
        block = torch;
        if(calculate_current_light > 7) return Red;
    }
}
return Blue

Should I make the pull request for 1.15 as well?

I have already done that, just didn't push


Generate Aliases

Can now generate aliases. I did previously have stuff there. But I made it a little cleaner.
I would like to clean up what we have. Ill probably rewrite some of the helper functions and remove any that can be generated. Some stuff needs updating as well with Kubernetes being further along.

Awesome. I created a PR: https://github.com/Dbz/kube-aliases/pull/20
I'm going to add some tests

How do you feel about del vs rm for delete? rm is a character less

Doesn't matter too much to me. Now that you can generate it. Just change the alias.yaml file. I've been using del for the past year so I'll just put it to that for myself. I will say that kubectl uses delete so that may feel more natural.


docs: fix shown command in minikube guide

The shown command get doesn't match the output, which is from
describe.

test-docs-please

Thanks @schu!


New components

I've added Resizable, Draggable, Slider, and ScrollView components, the former of which compose to create the latter. Examples of Draggable, Slider, and ScrollView components have also been added to the todoMVC.
I have left a note about an issue that I am having and have so far been unable to resolve with attempting to use the ScrollView component with Row flex_direction styling, and how bringing it more in line with ScrollView.re should be done. However after fiddling with it a lot, I'm afraid my lack of flexbox knowledge means that I'm not even sure if it should be working, or there are greater issues with my implementation (probably most likely) or Revery itself. If you are able to play with it and see if you can make any sense of it, it'd be awesome.

Looking around for clicking related issues I found this commit which fixed this issue. Seems suspiciously similar, and the fix involved the use of clipped bounding boxes in the UI_Components/Clickable.re at the time, but the current state of it looks a lot like clickable_box' in components.ml. Not sure if my issue could somehow still be related, but making note of it here in case.

On further testing, I've found that the core issue is the mouse being captured somewhere and not released sometimes while horizontally scrolling. Following the logs, a "Capture" message will appear without a corresponding "Release". Eventually with enough scanning / clicking around with the mouse, the release will finally occur (and appear in the log), and normal clickable button behaviour resumes.
       if not disabled
       then begin
         let capture () =
           if not !is_mouse_captured
           then (
             Log.info "Capture";
             is_mouse_captured_here := true;
             is_mouse_captured := true ) in
         let release_capture () =
           if !is_mouse_captured_here || !is_mouse_captured
           then (
             Log.info "Release";
             is_mouse_captured_here := false;
             is_mouse_captured := false ) in

To confirm, I added || !is_mouse_captured to the conditional in release_capture, and found that the problem goes away. Obviously this means that the check is no longer doing what it is supposed to, since any mouse leave event will now cause release, regardless of whether the source element was actually holding on to it.

Found the issue with lack of ability to click after horizontal scrolling by the way.  Wheel scrolling was causing capture on some unknown element. Removing the capture from the scroll handling block (included due to carelessly pasteing) in clickable_box' has remedied the issue.

Do you have an idea of how we should emulate Revery.Hooks.mouseCapture, as used here:
  let%hook (captureMouse, captureState) =
    Hooks.mouseCapture(
      ~onMouseMove=
        (origin, evt: NodeEvents.mouseMoveEventParams) => {
          sliderUpdate(
            availableWidth,
            origin,
            origin +. availableWidth,
            evt.mouseX,
            evt.mouseY,
          );
          Some(origin);
        },
      ~onMouseUp=(_, _) => None,
      (),
    );

  let onMouseDown = (evt: NodeEvents.mouseButtonEventParams) => {
    let (x0, y0, _, _) = BoundingBox2d.getBounds(sliderBoundingBox);
    let origin = vertical ? y0 : x0;
    sliderUpdate(
      availableWidth,
      origin,
      origin +. availableWidth,
      evt.mouseX,
      evt.mouseY,
    );
    captureMouse(origin);
  };

This capture hook is allowing the slider to continue receiving mouse move events as long as the button is still down. Right now, the Bonsai component Slider in this PR isn't super nice to use since once the cursor leaves the bounding box of the thumb, the events are no longer going to it.
Obviously capturing has to be registered somewhere and events need to be sent through to it, but I'm not sure what the most appropriate way to go about it is.

Figured out a solution based on Revery_UI.Hooks.mouseCapture (using Revery_UI.Mouse). Now the sliders aren't so painful to use!


Add NeosLinuxExportFix

@Frozenreflex your broken flags need to go onto the individual versions of the mod, not on the mod itself (even if that'd make more sense considering what it is)

@Frozenreflex your broken flags need to go onto the individual versions of the mod, not on the mod itself (even if that'd make more sense considering what it is)

did you read the resolved conversation


Updates for the bufr-query upgrade to version 0.0.4

Summary
This PR contains the configuration changes for moving bufr-query to version 0.0.4.
Testing
Describe the testing done for this PR.
Applications affected
List all known applications (UFS WM, JEDI, SRW, etc.) intentionally or unintentionally affected by this PR.
JEDI, UFS
Systems affected
List all systems intentionally or unintentionally affected by this PR.
HPCs, Mac
Dependencies

[x] waiting for jcsda/spack/pull/488

Issue(s) addressed
Fixes #1377
Checklist

[x] This PR addresses one issue/problem/enhancement, or has a very good reason for not doing so.
[ ] These changes have been tested on the affected systems and applications.
[ ] All dependency PRs/issues have been resolved and this PR can be merged.

This looks good. I merged the spack PR, please update this PR and I'll approve/merge. Thanks!

Done! Thanks @climbfuji!


use https for wunderground api

As https://github.com/liu044100/SmileWeather/issues/7 mentioned.

 Last update fb46009...4abf486


Codecov Report

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

@@            Coverage Diff            @@
##             master      #19   +/-   ##
=========================================
  Coverage     90.42%   90.42%
  Complexity       82       82
=========================================
  Files            18       18
  Lines           282      282
  Branches         13       13
=========================================
  Hits            255      255
  Misses           24       24
  Partials          3        3

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 acceefa...c79307c. Read the comment docs.


Use of abi.NamedTuple struct in getter get_asset_config

This PR removes the complex data struct that was using Tuple of Tuples to return a SmartASA configuration, in favor of a more elegant approach with the new abi type NamedTuple.

Is this comment still valid?

I would maybe just add a couple cases on the specific NamedTuple usage in the test suite.

Please ignore my previous comment, I just saw we already have a test for this (I got confused since I saw no test in diff).


refactoring: replace glob with fast-glob?

https://www.npmjs.com/package/glob
with
https://www.npmjs.com/package/fast-glob
?
would like a clean MIT license, and if possible less nested dependencies
or https://www.npmjs.com/package/micromatch ?
or https://www.npmjs.com/package/picomatch ?

will probably go for replacing it all together with picomatch, as it has zero dependencies

types are missing, https://github.com/micromatch/picomatch/issues/18

can use the @types package

https://www.npmjs.com/package/tiny-glob ?


Add Terraform library

Small to start.  Iterate from here.

Looks good to me for a first draft. Merging.


adjust styles for lists & quotes

Im rewriting the stylesheet. I'm not keeping the exact same proportions, but the overall look and feel should be similar. I already fixed the quotes.
That should also make the theme easier to customize (colors and fonts are all in _var for now). Expect a pull request in a few days.

I like this theme, but I know little about css. How could I adjust style of text, which inside the ``.


Add server API

This change is

#1715  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @yair-starkware and the rest of your teammates on  Graphite


feat(cli): add output format to describe

Closes #655
Fixes #655
Continues #673
📑 Description

This PR adds the feature of getting the output in the JSON and YAML formats.
✅ Checks

[ ] My code requires changes to the documentation
[ ] I have updated the documentation as required

ℹ Additional Information

Output in YAML format:

AutoUpdate: Disabled
Configuration: {}
Dependencies: []
Entrypoints:
- Local: http://localhost:3000/
  Name: ui
  Remote: cyclops-ui:3000
LongDescription: |-
  Welcome to Cyclops, a powerful user interface for managing and interacting with Kubernetes clusters.
  Cyclops is designed to simplify the management of containerized applications on Kubernetes,
  providing an intuitive and user-friendly experience for developers, system administrators, and DevOps professionals.
  Divide the responsibility between your infrastructure and your developer teams so everyone can play to their strengths.
  Automate your processes and shrink the window for deployment mistakes.
Package: cyclops — Developer friendly Kubernetes
References:
- Label: Github
  URL: https://github.com/cyclops-ui/cyclops
- Label: Website
  URL: https://cyclops-ui.com/
- Label: Glasskube Package Manifest
  URL: https://packages.dl.glasskube.dev/packages/cyclops/v0.5.0+1/package.yaml
Repositories:
- Installed: "true"
  Name: glasskube
Status: "\e[32mReady\e[0m"
Version: 'v0.5.0+1 (latest: v0.6.0+1)'

Output in JSON format:

{
  "AutoUpdate": "Disabled",
  "Configuration": {},
  "Dependencies": [],
  "Entrypoints": [
    {
      "Local": "http://localhost:3000/",
      "Name": "ui",
      "Remote": "cyclops-ui:3000"
    }
  ],
  "LongDescription": "Welcome to Cyclops, a powerful user interface for managing and interacting with Kubernetes clusters.\nCyclops is designed to simplify the management of containerized applications on Kubernetes,\nproviding an intuitive and user-friendly experience for developers, system administrators, and DevOps professionals.\nDivide the responsibility between your infrastructure and your developer teams so everyone can play to their strengths.\nAutomate your processes and shrink the window for deployment mistakes.",
  "Package": "cyclops — Developer friendly Kubernetes",
  "References": [
    {
      "Label": "Github",
      "URL": "https://github.com/cyclops-ui/cyclops"
    },
    {
      "Label": "Website",
      "URL": "https://cyclops-ui.com/"
    },
    {
      "Label": "Glasskube Package Manifest",
      "URL": "https://packages.dl.glasskube.dev/packages/cyclops/v0.5.0+1/package.yaml"
    }
  ],
  "Repositories": [
    {
      "Installed": "true",
      "Name": "glasskube"
    }
  ],
  "Status": "\u001b[32mReady\u001b[0m",
  "Version": "v0.5.0+1 (latest: v0.6.0+1)"
}

Description UPDATED !!!

So here my output is perfect when the package is installed. But when I try for the packages which are not installed it gives a nil pointer error.
Error:
goroutine 1 [running]:
github.com/glasskube/glasskube/cmd/glasskube/cmd.createOutputStructure({0x220e388, 0xc0004a1c80}, 0x0, 0xc00069e4e0, {0xc00046a520, 0xd}, {0xc0002ea640, 0x1, 0xc0005159c0?})
        H:/glasskube/cmd/glasskube/cmd/describe.go:324 +0x1fd
github.com/glasskube/glasskube/cmd/glasskube/cmd.printYAML({0x220e388?, 0xc0004a1c80?}, 0xc00000a0f0?, 0x5?, {0xc00046a520?, 0x5?}, {0xc0002ea640?, 0x0?, 0x0?})
        H:/glasskube/cmd/glasskube/cmd/describe.go:357 +0x37
github.com/glasskube/glasskube/cmd/glasskube/cmd.init.func2(0x3144a80?, {0xc00029ff50?, 0x4?, 0x1ec16ba?})
        H:/glasskube/cmd/glasskube/cmd/describe.go:75 +0x487
github.com/spf13/cobra.(*Command).execute(0x3144a80, {0xc00029fef0, 0x3, 0x3})
        C:/Users/hansh/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987 +0xab1
github.com/spf13/cobra.(*Command).ExecuteC(0x3143f00)
        C:/Users/hansh/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(0x0?)
        C:/Users/hansh/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039 +0x13
main.main()
        H:/glasskube/cmd/glasskube/main.go:11 +0x1a

While debugging this error I understood the createOutputStructure receives a nil package.
Couldn't really solve this.
NEED HELP!

So here my output is perfect when the package is installed. But when I try for the packages which are not installed it gives a nil pointer error. Error:
goroutine 1 [running]:
github.com/glasskube/glasskube/cmd/glasskube/cmd.createOutputStructure({0x220e388, 0xc0004a1c80}, 0x0, 0xc00069e4e0, {0xc00046a520, 0xd}, {0xc0002ea640, 0x1, 0xc0005159c0?})
        H:/glasskube/cmd/glasskube/cmd/describe.go:324 +0x1fd
github.com/glasskube/glasskube/cmd/glasskube/cmd.printYAML({0x220e388?, 0xc0004a1c80?}, 0xc00000a0f0?, 0x5?, {0xc00046a520?, 0x5?}, {0xc0002ea640?, 0x0?, 0x0?})
        H:/glasskube/cmd/glasskube/cmd/describe.go:357 +0x37
github.com/glasskube/glasskube/cmd/glasskube/cmd.init.func2(0x3144a80?, {0xc00029ff50?, 0x4?, 0x1ec16ba?})
        H:/glasskube/cmd/glasskube/cmd/describe.go:75 +0x487
github.com/spf13/cobra.(*Command).execute(0x3144a80, {0xc00029fef0, 0x3, 0x3})
        C:/Users/hansh/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987 +0xab1
github.com/spf13/cobra.(*Command).ExecuteC(0x3143f00)
        C:/Users/hansh/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(0x0?)
        C:/Users/hansh/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039 +0x13
main.main()
        H:/glasskube/cmd/glasskube/main.go:11 +0x1a

While debugging this error I understood the createOutputStructure receives a nil package. Couldn't really solve this. NEED HELP!

I think the reason for the package being nil in case it is not installed is obvious, and it's the expected behavior, so the createOutputStructure function has to be modified such that it can handle this case. What I would do is something like this:
data := map[string]any{
	"packageName":      manifest.Name,
	"shortDescription": manifest.ShortDescription,
        // ...
	// more stuff that does not depend on pkg != nil
}
if pkg != nil {
	data["desiredVersion"] = pkg.Spec.PackageInfo.Version
	// more stuff that does depend on pkg != nil
}
return data

But note that you don't have to do this for every occurrence of pkg, for example status(pkg) is OK, because the status function can already deal with pkg == nil.
Let me know if this helps with your problem.

Cool,, this works now !!


to convert DICOM image to .jpeg image.

Hi @Zaid-Safadi .
I need a help .
I want to show DICOM image in thumbnail size on the web page .I thought to convert a dicom image to jpeg  and then display it
Can you help in that.

What library are you using in your application to read the dicom file? As long as the library can decode the image you can use .NET GDI+ to resize and create your thumbnail

Currently I am using DWV dicom viewer to display the JPEG and DICOM images in that.
But before that I want to display the uploaded DICOM images on the webpage in thumbnail .In order to do that the option is to convert DICOM to JPEG.
I am trying different codes but I didnt find the right one.

You can use a server side library to decode the DICOM image and convert it into JPEG. Take a look at this .NET library which supports almost all DICOM transfer syntax: https://github.com/fo-dicom/fo-dicom


Jumphost not respecting server connection

When using the memfd injection function, everything works fine using connect --shell rssh://filename id after connecting to rssh.
But an error occurs when using ssh -J ip:port id rssh://filename
error: ssh rejected: administratively prohibited

Huh thats odd, it definitely should work.

Thanks for this, definitely a bug

This is on unstable branch now


[Question] Class tymon.jwt does not exist?

My familiarity with the project is as follows (check one):

[x] I have never used the project.
[ ] I have used the project briefly.
[ ] I have used the project extensively, but have not contributed previously.
[ ] I am an active contributor to the project.

My project stack details

Framework (Laravel / Lumen): Lumen
Framework Version: v5.4.6
JWT Auth Guard Version: v1.0.4
tymon/jwt-auth Version: v1.0.0-beta.3

Error: Class tymon.jwt does not exists
auth.php

<?php

return [

    'defaults' => [
        'guard' => env('AUTH_GUARD', 'api'),
        'passwords' => 'users',
    ],

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'jwt-auth',
            'provider' => 'users',
        ],
    ],

    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ],
    ],

    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],

];

web.php
very simple route
$app->get('users', ['middleware' => 'auth:api', 'uses' => 'App\Http\Controllers\UsersController@all' ]);
bootstrap/app.php
service provider
$app->register(Irazasyed\JwtAuthGuard\JwtAuthGuardServiceProvider::class);
Any Ideas?

https://github.com/irazasyed/jwt-auth-guard/issues/5


Add endpoint for gds.relationshipProperties.write

The integration test at would be failing since the corresponding server PR is still a draft

 [WriteRelationshipWithMultipleProperties] Implement the procedure


fix automation

Published PR with canary version: 0.9.3-canary.825.584.0

:rocket: PR was released in v0.9.3 :rocket:


Watch content example is broken

Operating System: OSX
Node Version: 10.7.0
NPM Version: 6.2.0
webpack Version: 4.16.5
webpack-serve Version: 2.0.2

Expected Behavior
The watch content example should work as described
Actual Behavior
It doesn't notify on file changed, it's caused by https://github.com/webpack-contrib/webpack-hot-client/issues/92, most likely an issue with ws.

DEPRECATED. Please use webpack-dev-server (he is in support and update mode again). Feel free to create a issue if some features are not implemented in webpack-dev-server.
Why deprecated webpack-serve ?

The author stopped developing the package.
Two development servers are misleading for developers.
Hard to maintain two packages with same purpose.
Some dependencies are not available to fixes/implement new features/etc (https://www.npmjs.com/package/webpack-hot-client and https://github.com/shellscape/koa-static) and there's nothing we can do here.
webpack-dev-server is stable.

Thanks for using webpack! We apologize for the inconvenience. In the future, we will avoid such situations.


Cross compile linking issue: cannot locate symbol "_Py_NoneStruct"

🐛 Bug Description
I need to cross compile a pyo3 library for android using kivy/buildozer. I've set the LD_LIBRARY_PATH, PYO3_CROSS_INCLUDE_DIR and PYO3_CROSS_LIB_DIR environment variables and am using cargo ndk for the build process and copying the .so to the site_packages directory.
 Did you use a virtualenv?: compiled from source
Your Rust version (rustc --version): 1.45.0
Your PyO3 version: 0.11.1
Have you tried using latest PyO3 master (replace version = "0.x.y" with git = "https://github.com/PyO3/pyo3")?: yes

💥 Reproducing
I have a repo for the minimal working example. The necessary commands are shown in the README.md

Thanks for posting. This looks like a packaging issue, possibly in kivy/python-for-android. Here's an example of a very similar looking upstream bug from 2016 which was closed. https://github.com/kivy/python-for-android/issues/887
As they will have much better knowledge than I for diagnosing the buildozer config, I suggest reporting upstream there before I attempt any debugging here.

I'll check that out, however I did have a similar issue when compiling the same project in termux I'm not sure if this constitutes a different issue, but it is the same target.
ImportError: dlopen failed: cannot locate symbol "PyExc_BaseException" referenced by "/data/data/com.termux/files/home/pyo3-buildozer/target/debug/my_lib.so"

After reading through the comments it seems what has fixed it was adding the LDFLAG+="-lpythonX.Ym" flag. I did get a linking issue when removing the extension-module where the linking flags had -lpython without the version. So it could not find the appropriate python library.

Thanks for the update! Perhaps not #1040 but definitely worth remembering in this area. Let's keep this issue open until we adjust build scripts accordingly.
To figure out what's going on here - so it sounds to me like libpython.so does not exist in the distribution you're compiling for, but presumably libpython3.8m.so does?

(I'm a bit confused because I thought the last python I'd seen where the library had the m suffix was 3.6, but I've never found documentation about what the suffix was for, so perhaps there's something else at play here...)

(I'm a bit confused because I thought the last python I'd seen where the library had the m suffix was 3.6, but I've never found documentation about what the suffix was for, so perhaps there's something else at play here...)

my guess is m is for minimal like in the python3-minimal debian package.

Aha looks like it's showing if the ABI has pymalloc support. We can check it with sys.abiflags. However, it was definitely removed in 3.8: https://docs.python.org/3/whatsnew/3.8.html#build-and-c-api-changes
We could fix build scripts to check this for Python 3.5-3.7.
@Progdrasil, you're definitely cross compiling against Python 3.8 when you have this m suffix?!

Thats really interesting because i am compiling against 3.8. and both the 'm' version and normal versions are available. Ive tried linking against both and only the 'm' version works at runtime. If i link against the normal version i get the symbol not found error at runtime
I am curious to try compiling against 3.7 now. I'll update you when I have

After exploring the python-for-android codebase it looks to me like they're generating this libpython3.8m.so name themselves, so I've opened an upstream patch.
There are probably still fixes we can introduce on Python 3.5-3.7 for this.

looks like we check sysconfig.get_config_var('LDVERSION') in build.rs, which (at least on my system) does include the m suffix for Python 3.7.
Yes but that is used for local compilation, not cross compilation as I am doing. Instead you parse the header files and apply the major and minor version. Is there a way to get the configuration of the cross compiled version to see if it is being compiled as the m variant?

Yes but that is used for local compilation, not cross compilation as I am doing. Instead you parse the header files and apply the major and minor version. Is there a way to get the configuration of the cross compiled version to see if it is being compiled as the m variant?

Indeed, you're correct and I was thinking about this this morning too. Actually I think that the cross compilation header parsing is both broken and brittle; I'm thinking about whether we need to try a solution using bindgen.
If I were to kick off a PR to use bindgen to detect cross-compile info, would you be willing to help test it? (And maybe even help finish it off, depending on how much time I can find for it...?)

Also I succeeded in compiling for 3.7 and running the sysconfig.get_config_var(LDVERSION) on the target for 3.7 it returned 3.7m and when running with 3.8 it returned 3.8. However I think your merge request helps because the issue on the target was the fact that I was linking against libpython3.8.so while the only object that was copied to the target was libpython3.8m.so.

Yeah I would be glad to help out! I can also help contribute to it as well

Great! I'll try to either get notes or a rough implementation written up tomorrow or soon after.

So I took a look at the bindgen approach this morning, but it looks like that's not the way to go about this either. A lot of the variables are set by the build system rather than configuration headers, so parsing the headers doesn't give us everything we want.
Instead, I started looking at the sysconfig module and saw that we might be able to take another approach. Instead of running the python interpreter to extract sysconfig, I think we might be able to parse the underlying data file. Some examples of the data file on my system:
/usr/lib/python3.8/_sysconfigdata__x86_64-linux-gnu.py
/usr/lib/python3.7/_sysconfigdata__m_linux_x86_64-linux-gnu.py

Also interesting to note that the name of the data file has that "m" abiflag again, so it might be possible to infer that from the name of the sysconfigdata script.
Afraid I've got a lot of other things to focus on at the moment, so I'm not sure I have time to write the implementation right now. However, I'd be very willing to help design and review the implmentation if you want to take this on?
If this is potentially nontrivial it could be worth factoring it out into a crate rather than inlining it all into pyo3's build.rs. I actually already started a crate which might be appropriate https://github.com/davidhewitt/python-config - perhaps if we can get a working draft of this in that crate then we can subsequently move this crate into the pyo3 organisation and update pyo3's build script to use it?

Sure I can start on this in my free time, might be able to do a bit tomorrow evening

👍 many thanks, and no rush at all. Any time you're willing to spend helping out is much appreciated, and I'll try to put some time in where I can! Hopefully over time we'll be able to put together a good cross-compiling support for pyo3 😄
Oh, also, while searching documentation this morning I came across another tidbit which would also contribute to the linking issues you're experiencing: #1082.

I'll keep that in mind with the cross compilation.

Closed by #1095. (Thanks very much again for your hard work!)


Org Type should be added for the "Org added by Individual user" just like we have for 'Sourced'

Open "https://staging.fightpandemics.work/"
Login using valid email/pwd
Navigate to profile -> Add Org -> Create Org Profile as "Type=Non-Profit" Org
Add a post from the new Org or view the profile

Issue: You will observe that there is "No Org type" is displayed with the Org added by the individual users.
Refer below GIF.
https://share.getcloudapp.com/nOukYv8D

Hi @rabbi08  this was added to the actual name by me in the script to import the "Sourced by FightPandemics" posts from AirTable - https://github.com/FightPandemics/FightPandemics/blob/8aa72aeafcdc1c82ca37174368aa88ca44e57494/backend/scripts/import-posts/init-sourced-by-fp-users.js#L93.
We needed one org per type due to the way we are filtering posts by "Providers" (org types) but actually I did discuss with   @vikjoshi & @manualzuru ways to make it one org so they would all be "Sourced by FightPandemics".
Still, I do feel since we can filter by type it would be useful to indicate this somewhere in the post as well as the public organisation profile page.


Use -a instead of ampersands in if statement

@kbsingh This should solve the
/tmp/jenkins3975016969912912461.sh: line 3: [: missing `]'

issue you found yesterday

LGTM


Zappa deployment does not work if the virtualenv name is the same as the app name

Context
When running Zappa in a virtualenv, I found that if the name of your Django app and the name of your virtualenv are the same, then you will get a
ModuleNotFoundError: No module named '<app-name>'

when deploying your app.
Expected Behavior
Zappa should deploy normally. e.g.
Your updated Zappa deployment is live!: https://api.com (https://...api.us-west-2.amazonaws.com/dev)

Actual Behavior
Zappa logs return:
[1570156390363] Instancing..
[1570156392032] No module named '<app>': ModuleNotFoundError
Traceback (most recent call last):
  File "/var/task/handler.py", line 580, in lambda_handler
  return LambdaHandler.lambda_handler(event, context)
  File "/var/task/handler.py", line 245, in lambda_handler
  handler = cls()
  File "/var/task/handler.py", line 151, in __init__
  wsgi_app_function = get_django_wsgi(self.settings.DJANGO_SETTINGS)
  File "/var/task/zappa/ext/django_zappa.py", line 20, in get_django_wsgi
  return get_wsgi_application()
  File "/var/task/django/core/wsgi.py", line 12, in get_wsgi_application
  django.setup(set_prefix=False)
  File "/var/task/django/__init__.py", line 19, in setup
  configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/var/task/django/conf/__init__.py", line 79, in __getattr__
  self._setup(name)
  File "/var/task/django/conf/__init__.py", line 66, in _setup
  self._wrapped = Settings(settings_module)
  File "/var/task/django/conf/__init__.py", line 157, in __init__
  mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named '<app>'

and the
zappa deploy <stage>`

command returns
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 500 response code.

Possible Fix
I'm unsure, but if someone could point me in the right direction I can take a look.
Steps to Reproduce
(Assuming you are using virtualenvwrapper)

mkvirtualenv <app>
Name the directory of your main Django app (where the settings.py and urls.py live) ''.
zappa deploy/update <stage>

Your Environment

Zappa version used: 0.47.0
Operating System and Python version: Ubuntu 18.04, Python 3.6
The output of pip freeze:

awscli==1.16.152
boto3==1.9.152
djangorestframework==3.10.3
django==2.2.5
django-allauth==0.38.0
django-cors-headers==3.1.0
django-extensions==2.1.6
django-filter==2.1.0
django-ranged-fileresponse==0.1.2
django-rest-auth==0.9.5
django-storages==1.7.1
django-environ==0.4.5
future==0.16.0
gunicorn==19.9.0
jmespath==0.9.3
pinax-badges==2.0.0
psycopg2-binary==2.8.2
python-dateutil==2.6.1
sentry-sdk==0.11.2
whoosh==2.7.4
zappa==0.47.0

Link to your project (optional):
Your zappa_settings.py:  Can't display.

@piraka9011 I don't think this is a problem, as this is addressed explicitly at the start of the README file: https://github.com/Miserlou/Zappa/blob/master/README.md#installation-and-configuration

The virtual environment name should not be the same as the Zappa project name, as this may cause errors.

Ahh I see, I think I missed that during my pass of the README. I though it was mentioned in an issue somewhere...
Thanks!


implement org.openintents.action.PICK_COLOR

I was looking for a color picker in F-Droid for an app I'm writing, and it would be perfect to use CameraColorPicker, so I implemented the OpenIntents PICK_COLOR action for the ColorPickerActivity. Hopefully this can be useful to others as well.
http://www.openintents.org/action/org-openintents-action-pick-color/

Hi @travisfw (=
Thanks a lot for your interest in this project!
It will be an awesome feature (: Could you squash your two commits so that we could merge your work?

Okay @tbarthel-fr how's that look?

LGTM 🐨

@travisfw wow great work! Did not know about the open-intents, sounds promissing =)

lgtm 🌔


How to include a specification test in the repo?

For a test to be included in the specification test repo, I am assuming:

It must be PRed as an “unreviewed” test.
Reviewed by appropriate personnel to confirm that it conforms to the Solid specification.
If appropriate, updated the test to be marked as “reviewed”

So some questions:

What is the process for reviewing the tests?
Who needs to review the test?
Is there a way of automatically setting newly PRed tests as “unreviewed”?

A proposed process has been defined here: https://github.com/solid/specification-tests/blob/main/CONTRIBUTING.md
It needs to evolve as we start to use it but further suggestions can be made as PRs on that file.


Streamlines.PrincipalMesh genericparameter input not read

Streamlines.PrincipalMesh is set to genericparameter output and input to transfer data between components. Latest version of GH package results in an error in components trying to read the PrincipalMesh data. Look into "GH_ObjectWrapper Class" to fix this.
https://developer.rhino3d.com/api/grasshopper/html/T_Grasshopper_Kernel_Types_GH_ObjectWrapper.htm
https://discourse.mcneel.com/t/datatypes-and-generic-data-component/140455/2

Fraser has made a nice guide to this:
https://frasergreenroyd.com/how-to-pass-custom-data-between-grasshopper-components/

Issue seems to be intermittent


MS Access Database (.accdb) Connection Error

Hi,
I'm new to Python and GitHub as well, then I'm actually posting a question.
I'm using Python 3.6 64-bit and I want to connect to an Access database (.accdb). I installed the ACE driver (x-64) to proceed the connection.
I'm using this code to perform the task:
import pyodbc
dbFile = r '''C:\0_ProjGC\smartID_P300_DNA.accdb'''
user = 'tiagos'
password = ''

odbc_conn_str = 'DRIVER={'Microsoft Access Driver (*.mdb, *.accdb)};DBQ=%s;UID=%s;PWD=%s'
conn=pyodbc.connect(odbc_conn_str)

Then I get the error message:
runfile('C:/0_Portolon/Estudos/python/msAccessOdbc.py', wdir='C:/0_Portolon/Estudos/python')
  File "C:/0_Portolon/Estudos/python/msAccessOdbc.py", line 12
    dbFile = r '''C:\0_ProjGC\smartID_P300_DNA.accdb'''
                                                      ^
SyntaxError: invalid syntax

It seems to be an error of mine, but I did not realize yet where or what it is.
Can someone give a hint on this?
Thanks in advance
Portolon

In Python, raw strings are of the form r'...'. There must be no space between the r and the initial quote (i.e., r', r", or r''').

Thanks for your help @gordthompson

Now I get a new error message:
Error: ('HY000', "[HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key Temporary (volatile) Ace DSN for process 0x2024 Thread 0x2028 DBC 0xb59d318                                                              Jet'. (63) (SQLDriverConnect)")
Did someone have a similar problem? How can I solve this?
Thanks in advance,
Portolon

See the Stack Overflow question here.

Hi @gordthompson, thanks for your help again.
In my case, the error was caused by restrictions in my user privileges within the IT infrastructure in my company. Then I asked to a System Administrator to fix the problem - allow the pyodbc library to access the ODBC key in HKEY_LM.
Since I'm the only one to use the pyodbc library to establish the connection (to the best I know), there is no problem. But I was warned that, to offer a solution to more users, it's a bad idea to make the same configuration to them all; anyway, my question on odbc connection is answered.
This said, I have a new question: Is there any library for Python that doesn't require access to HKEY_LM to proceed the connection?

Applications that use ODBC will need read access to HKLM so they can retrieve the location of the ODBC driver. If your environment prevents ordinary users from reading HKLM then I would expect a lot of other things to be broken, too.

Ok then. Thanks for your anwser.


Definitely agree the name should be shortened. Might be cool to come up with a creative name like some of our other repos. Here is a word cloud from the Dr. Strangelove transcript for ideas.

Or maybe something simple like lace as in lacing things together

Ha, I know it's boring but I like ibctest over the others. It's short and clear.
It's the old Go proverb:

Clear is better than clever.

Here is a word cloud from the Dr. Strangelove transcript for ideas.

Out of curiosity, how did you make this?

But, I do realize marketability has value, so a boring but clear name may not fit the bill.

I'm completely in favor of a clear and direct name. ibctest makes a lot of sense, but if we use that name, we may need to rename or rearrange the existing ibctest package in the module.

I think the files in the ibctest directory will just move to the new repository root, which will still be named ibctest.

This sounds great! Love the rename.