fix : Migrate tags configuration feature to use python-gitlab library

fixes : #632
changes made :

Deleted gitlabform/gitlab/tags.py as it shouldn't be needed anymore
Updated gitlabform/processors/project/tags_processor.py
To use the python-gitlab library, used self.gl instead of self.gitlab.

Hey @subhadeepbanerjee2003, thank you for the contribution! However this PR is not enough. To migrate from gitlabform's own API to python-gitlab you need to use different API methods, see this code fragment and the whole PR as an example. Also please make sure that tests pass on your localhosts before you push the code. Thanks!

@gdubicki ok thanks for your review but  I think I will not be able to do further as per my knowledge currently. So you can close it.


XIVY-11751 fix: support multi config editors in vscode

do not error if last key/value pair gets deleted

👍


ESP32 Build Failure: cmake: Permission denied (Makefile Error 127)

when i build the AtomVM esp32
i got this:
make[1]: cmake: Permission denied
make[1]: *** [/home/barba/Development/AtomVM/src/platforms/esp32/components/libatomvm/component.mk:52: Makefile] Error 127
make: *** [/home/barba/esp/esp-idf/make/project.mk:649: component-libatomvm-build] Error 2
make: *** Waiting for unfinished jobs....

there is a stable branch?

Sorry to hear you are experiencing problems... It looks like you are the victim of a rare bug we are trying to track down.  We still are not certain why it only exhibits itself on some systems but not others, but I have a work around you can try.
If you cd into your esp-idf installation and edit the CMake entry in tools/tools.json to:
...
      "description": "CMake build system",
      "export_paths": [
        [
          "bin"
        ]
      ],
      "export_vars": {},
      "info_url": "https://github.com/Kitware/CMake",
      "install": "always",
      "license": "BSD-3-Clause",
      "name": "cmake",
...

The line that need to be changed is the "install" line, it will say "on-demand", but if you change that to "always", save the file and then run ./install.sh again you should see the correct version of cmake being installed, and then after sourcing export.sh again (. ./export.sh) again you should have no problems building AtomVM.
If that does not work please report back and we will see if we can help get to the bottom of it.

oh thanks @UncleGrumpy now build succeed.
but next when i flash the esp nor work properly,
there is way to easy flash the esp32 with AtomVM and the standard library?
i try using the img from download page, but when i try to run the hello_world example its breaks beause it dont find the IO module

Glad to here that the workaround took care of the build problem! Since you found us in the Telegram AtomVM Chat we can sort out your next issue with you there.
Until the true source of this bug has been found, can you change the title to something like "ESP32 Build Failure: cmake: Permission denied (Makefile Error 127)" that gives a little more description of the error? That way anyone else having the same problem can recognize the issue and find this temporary workaround.

I think things changed quite a lot and this issue doesn't happen anymore.


Number to Words Converter in Java

Implement a Java program that converts a numeric input into its word representation (e.g., 123 as "one hundred twenty-three").

Hi @tangorishi Can you assign me this issue?

@Janani-Balasooriya  go ahead

@Janani-Balasooriya go ahead

@tangorishi could you please tell me to which folder I should add the answer to this issue?


Any interest in a utility to retrieve messages & images from the Messages app?

I've been digging around, and a friend wanted to have a way of retrieving messages from the Message app (only on OSX) in a date range, subject, or message source.
I've got something running now that allows for a date range for messages; it also downloads all images in the Messages app in a given date range. The destination of the download(s) can be specified.
I figured out the format(s) of the Sqlite database that underlies the Message app repository.
Anyone interested in this capability?
CyberchuckTX

@cyberchucktx Thanks for the suggestion! This feature would definitely boost macpymessenger's capabilities.
I'm interested, and your work on message retrieval and image downloading sounds great. A few questions:

Are you planning to contribute this feature yourself? I'd love to collaborate!
Can you share more about your current implementation? Any challenges or insights?
What specific use cases are you or your friend targeting?
Any preferences on how this should integrate with the existing API?

Privacy and Apple's guidelines should be considered to some degree as we explore this feature. Based on your feedback, we can discuss the next steps for possibly integrating this functionality.

Ethan:
@cyberchucktx Thanks for the suggestion! This feature would definitely boost macpymessenger's capabilities.

I'm interested, and your work on message retrieval and image downloading sounds great. A few questions:

Are you planning to contribute this feature yourself? I'd love to collaborate!Was planning on implementing it myself. Collaboration welcome ... wasn't sure if I should open my
own repository or tag on to the existing one (macpymessenger).

Can you share more about your current implementation? Any challenges or insights?I'm targetting the search/retrieval of the existing iMessage threads, not sending texts out; yourpackage seems to be set up pretty well for that functionality.

I'm using the python API to sqlite3 directly and have figured out (with the help of online resources) howto query the tables to get my desired effect. The iMessage db is "chat.db" in a standardplace per user.

What specific use cases are you or your friend targeting?Specifically my friend does a lot of her correspondence(s) via text messages which often includes a set of images.

I plan to give her the capability of executing a Python script (or design a native UI with Python) that wouldlet her request messages with various parameters, like date range and/or sender information.
So, for example,she could ask for all messages from user X in the last week,and dump all the texts & images to a specified output directory.

Any preferences on how this should integrate with the existing API?Not sure if it needs to use the existing API, as all I'm doing is sqlite3 operations from Python.

Here's one of my major sources for this information:
Using SQL and Your Chat.db File to Look Through All of Your iMessages
https://spin.atomicobject.com/search-imessage-sql/
From my brief look at your API I'm not sure how it would "fit". I note that you have a "chat_history" that
isn't implemented yet.
I also note that you're using Applescript to talk to iMessage app.
I really like the sqlite3 direct access, although that could (probably will) change if Applechanges the database format (table names, etc). But as far as I can tell the chat.db format(s) have been pretty stable over the last few releases of the OS.
And the script could check for a specific OS and sqlite version.

Privacy and Apple's guidelines should be considered to some degree as we explore this > feature. Based on your feedback, we can discuss the next steps for possibly integrating this functionality.Agreed. But since this would be a local utility (running totally on the user's machine) would it needto worry about privacy or Apple guidelines?

I'm curious. Let's talk some more about this. I'm going to hack something together (already have inrough CLI script form) but may end up generating an app (maybe electron or some Python-based UIapp).  I have ZOOM & Google Meet and whatever to be able to discuss at your leisure.
This is a personal project that I thought might be of interest to you and your users.
Charlie aka CyberchuckTX
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Other interesting references / packages:

SqliteFlow: SSQLite editor for Mac & iOS which is intuitive, stable and reliable to use.
https://www.sqliteflow.com/

iMessage Database: provides interfaces to interact with iMessage Databases.
https://crates.io/crates/imessage-database
C====================================Charlie aka X┴ʞɔnɥɔɹǝqʎƆ
On Wednesday, October 16, 2024 at 03:35:28 PM CDT, Ethan Wickstrom @.***> wrote:

@cyberchucktx Thanks for the suggestion! This feature would definitely boost macpymessenger's capabilities.
I'm interested, and your work on message retrieval and image downloading sounds great. A few questions:

Are you planning to contribute this feature yourself? I'd love to collaborate!
Can you share more about your current implementation? Any challenges or insights?
What specific use cases are you or your friend targeting?
Any preferences on how this should integrate with the existing API?

Privacy and Apple's guidelines should be considered to some degree as we explore this feature. Based on your feedback, we can discuss the next steps for possibly integrating this functionality.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Ethan:
Did you receive/respond to the EMAIL below in October?
I am officially RETIRED as of this Friday, Nov 1, so I'll have freetime to work on this project with you.
After Friday ...
C
====================================Charlie aka X┴ʞɔnɥɔɹǝqʎƆ
On Wednesday, October 16, 2024 at 04:20:15 PM CDT, Charlie Lindahl<EMAIL_ADDRESS>wrote:

Other interesting references / packages:

SqliteFlow: SSQLite editor for Mac & iOS which is intuitive, stable and reliable to use.
https://www.sqliteflow.com/

iMessage Database: provides interfaces to interact with iMessage Databases.
https://crates.io/crates/imessage-database
C====================================Charlie aka X┴ʞɔnɥɔɹǝqʎƆ
On Wednesday, October 16, 2024 at 03:35:28 PM CDT, Ethan Wickstrom @.***> wrote:

@cyberchucktx Thanks for the suggestion! This feature would definitely boost macpymessenger's capabilities.
I'm interested, and your work on message retrieval and image downloading sounds great. A few questions:

Are you planning to contribute this feature yourself? I'd love to collaborate!
Can you share more about your current implementation? Any challenges or insights?
What specific use cases are you or your friend targeting?
Any preferences on how this should integrate with the existing API?

Privacy and Apple's guidelines should be considered to some degree as we explore this feature. Based on your feedback, we can discuss the next steps for possibly integrating this functionality.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Few Queries Regarding GoRedis

Hi,
We are running redis v4.0.10 on elastic cache. Does this matter for redis-client ? Also I would like to know if MSet  has limitation on keys or size ? We are setting approximately 600 keys at once and we observed that last few keys were not set and no errors were thrown. We are using go-redis v6.14.2.

go-redis does not limit MSet. I don't have any experience with Elastic Cache.


Participant content model - clean-up

The data displayed in the participation tab of country pages is derived from the Contentful participant content type linked via a directory ID. The content model is similar to all other content types, but only a few fields are actually used. Can you please help me confirm which fields are used and which aren't?
This is my rough diagnosis:

Which is used in contentful differs from which the website looks for and would show if present.
Primary image for example. It is possible to add a header image to all participant pages. But since none (?) of the contenful entities does so it is not shown.
Subtitle on the other hand, I imagine that we do not show either way.
Perhaps we should rather do the  opposite exercise: which information would you like to use/show? We added most of the information with the intention to show it I assume. Perhaps we are showing too little?

I have filled all info in dev for australia and a none country participant:
https://www.gbif-dev.org/country/AU/participation
https://www.gbif-dev.org/participant/363
Those fields that do not show we never show (for participants we apparently ignore everything). I do not believe the Contentful entity isn used anywhere else but on these 2 types of pages page.

Thanks Morten, that's helpful.
Correct me if I'm wrong, but I don't believe we have 'participation' tab to show for non-countries, right?

No those are just as the one above. Single page. But we can change that of course if we want richer associate participant pages.

Not for now, but perhaps in the future. Thanks.

You can assign this one back to me...


Cannot install library using composer

Hi
I am trying to install this package/library using composer but it gives me below error:
Problem 1
- The requested package google/apiclient No version set (parsed as 1.0.0) is satisfiable by google/apiclient[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
Problem 2
- Installation request for google/apiclient ^2.0 -> satisfiable by google/apiclient[v2.0.0].
- google/apiclient v2.0.0 requires google/auth 0.8 -> satisfiable by google/auth[v0.8] but these conflict with your requirements or minimum-stability.
Any fix?
Thanks,
Manoj M

@manojmilani123 have you tried adding this dependency directly to your composer file and running composer update? i.e.:
{
  "require": {
    //...
    "google/apiclient": "^2.0",
  }
}

And now run composer update. This should install the library successfully.

see this duplicate issue

any solution for this issue?

Try adding "google/apiclient": "^2.0" directly to composer.json and running composer update and you'll have a better time.
Composer won't update your existing deps unless you run composer update, so it behaves differently when you simply use composer require, and in this case, throws an error.

@bshaffer  : Still facing the same issue ! What to do ?

Did you ever find a solution?

Install Composer (PHP Package manager like NPM).
Create a new folder "GoogleAPI".
Create a new file composer.json with the following content.

{
  "require": {
    "google/apiclient": "^2.0"
  }
}

Open CMD from this folder (GoogleAPI)
Run following command in CMD
composer update

Then it will start loading files....


Hot Reload No constructor 'StatefulWidget.' with matching arguments declared in class 'StatefulWidget'.

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building
ComponentWidget-[](dirty, state:
ComponentState#f00b4):
No constructor 'StatefulWidget.' with matching arguments declared in class 'StatefulWidget'.
Receiver: StatefulWidget
Tried calling: new StatefulWidget.()
Found: new StatefulWidget.({Key? key}) => StatefulWidget
Widget creation tracking is currently disabled. Enabling it enables improved error messages. It can
be enabled by passing --track-widget-creation to flutter run or flutter test.

@XcodeSheng
Can you provide complete minimal reproducible code sample that shows this issue ?
Thanks.

example.zip
你可以使用这个demo
1、 flutter pub get
2、cd  example/iOS   pod install
3、 run and HotReload  it will be  repeat

@XcodeSheng
From your code, I see that you are using flutter_boost which is 3rd party:
flutter_boost:
    git:
        url: 'https://github.com/alibaba/flutter_boost.git'
        ref: 'v3.0-beta.11'

Can you remove that and try again to see if issue persists ?

I'm sorry, our project depends on it；Is this situation caused by flutter_boost?

@XcodeSheng
I am not completely sure, but since you are using that plugin heavily, I suggest you to open this issue in plugin's dedicated repo: https://github.com/alibaba/flutter_boost/issues
If they comeback saying it's a framework issue and not the plugin, please write in comments here and I'll reopen.
Closing for now.


Feature request: Mask R-CNN support on TensorFlow Lite

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux openSUSE Leap 42.3
TensorFlow installed from (source or binary): Binary
TensorFlow version (use command below): 1.8.0
Python version:
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:
Exact command to reproduce:

Describe the problem
This is a feature request about supporting Mask R-CNN on TensorFlow Lite. Thanks.
Source code / logs
Currently, the following operators are not supported by TensorFlow Lite: ResizeNearestNeighbor, Stack, and TensorFlowShape.
Some of the operators in the model are not supported by the standard TensorFlow Lite runtime. If you have a custom implementation for them you can disable this error with --allow_custom_ops. Here is a list of operators for which you will need custom implementations: ResizeNearestNeighbor, Stack, TensorFlowShape.

Nagging Assignee @rohan100jain: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @rohan100jain: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

The Stack op is now supported in nightly and we are looking into adding more op support however RNNs introduce other challenges and we are hoping to provide examples to make this easier.

@anitha-v This is a CNN..It will work if we have the operations in Tensorflow Lite

@JaviBonilla Stack and Shape are supported in Tensorflow Lite now. We are looking in to ResizeNearestNeighbor

@achowdhery Great! Thanks for letting me know, I’ll stay tuned for the remaining operator

Nagging Assignees @rohan100jain, @achowdhery: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Still working on prioritizing the ResizeNearestNeighbor op, though it might be a number of weeks until it's ready.

Nagging Assignee @achowdhery: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @achowdhery: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @achowdhery: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @achowdhery: It has been 59 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Is there any update on the ResizeNearestNeighbor op? Thanks!

Yes! This op was added in https://github.com/tensorflow/tensorflow/commit/86a7867840d290f6d80b20765b4635c217700bd4. It's available either by building from head or in the next TensorFlow release (though there's no ETA for the latter yet).

Nagging Assignee @achowdhery: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@JaviBonilla Please let us know if you are successfully able to convert the model to Tensorflow Lite now.

@achowdhery I will check in the next week and let you know how it goes :-), thanks a lot!

Hi it seems that ResizeNearestNeighbor still not work? thanks!

Hi it seems that ResizeNearestNeighbor still not work? thanks!

What version of TensorFlow(Lite) are you using? You'll need to be on the latest nightly to use this TensorFlow Lite op.

Hi it seems that ResizeNearestNeighbor still not work? thanks!

What version of TensorFlow(Lite) are you using? You'll need to be on the latest nightly to use this TensorFlow Lite op.

I am on 1.12.0. So shall I use 1.13.0, 1.14.0 or 2.0? Thanks!

I would give 1.14.0 a try and let me know how it goes, thanks.

I would give 1.14.0 a try and let me know how it goes, thanks.

OK I will try that, thanks! (btw, yesterday I use another workaround, change nearest neighbor to bilinear upsampling and it works)

does anyone already know how to make it work?

Hi @jdduke
It is not working for me with tf-nightly 1.14.1.dev20190405.
tflite_convert \   --graph_def_file=./mask_rcnn_inception_v2_coco_2018_01_28/frozen_inference_graph.pb \   --output_file=./mask_rcnn_inception.tflite \   --input_arrays=image_tensor \   --input_shapes=1,224,224,3 \   --output_arrays=detection_masks,detection_classes,detection_boxes,detection_scores,num_detections \   --target_ops=TFLITE_BUILTINS,SELECT_TF_OPS
Error message:
 ........... 2019-04-05 16:05:57.074330: I tensorflow/lite/toco/import_tensorflow.cc:1336] Converting unsupported operation: TensorArrayWriteV3 2019-04-05 16:05:58.130320: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 6566 operators, 12219 arrays (0 quantized) 2019-04-05 16:05:59.072672: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After Removing unused ops pass 1: 6529 operators, 12161 arrays (0 quantized) 2019-04-05 16:06:00.249379: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 6529 operators, 12161 arrays (0 quantized) 2019-04-05 16:06:01.669340: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 1: 6100 operators, 11326 arrays (0 quantized) 2019-04-05 16:06:03.167713: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 2: 6099 operators, 11325 arrays (0 quantized) 2019-04-05 16:06:04.447879: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 3: 6098 operators, 11323 arrays (0 quantized) 2019-04-05 16:06:05.733437: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Group bidirectional sequence lstm/rnn: 6098 operators, 11323 arrays (0 quantized) 2019-04-05 16:06:06.712519: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before dequantization graph transformations: 6098 operators, 11323 arrays (0 quantized) 2019-04-05 16:06:07.448395: F tensorflow/lite/toco/tooling_util.cc:641] Check failed: dim >= 1 (0 vs. 1) Fatal Python error: Aborted

See https://www.tensorflow.org/lite/models/segmentation/overview for a more detailed overview of using the DeepLab segmentation, for which we have a .tflite model available. We'll take a look at the MaskRCNN conversion failure.

Oh, that’s great! Thanks for the info @jdduke, I am going to check it 😊

@JaviBonilla @jdduke
Hi Guys, just checking back any updates on this thread?
Million thanks!

No updates, we're still investigating.

Hi @JaviBonilla @jdduke , any updates? Thanks!

Hi @jdduke,
I've tested with tf-nightly 1.14.1.dev20190612
tflite_convert \
  --graph_def_file=./mask_rcnn_inception_v2_coco_2018_01_28/frozen_inference_graph.pb \
  --output_file=./mask_rcnn_inception.tflite \
  --input_arrays=image_tensor \
  --input_shapes=1,224,224,3 \
  --output_arrays=detection_masks,detection_classes,detection_boxes,detection_scores,num_detections \
  --target_ops=TFLITE_BUILTINS,SELECT_TF_OPS

and I get a different error.
..........
2019-06-14 11:43:28.172266: I tensorflow/lite/toco/import_tensorflow.cc:1336] Converting unsupported operation: NonMaxSuppressionV2
2019-06-14 11:43:28.172790: I tensorflow/lite/toco/import_tensorflow.cc:1336] Converting unsupported operation: Size
2019-06-14 11:43:28.173179: I tensorflow/lite/toco/import_tensorflow.cc:1336] Converting unsupported operation: TensorArrayWriteV3
2019-06-14 11:43:28.173452: I tensorflow/lite/toco/import_tensorflow.cc:1336] Converting unsupported operation: TensorArrayWriteV3
2019-06-14 11:43:28.173469: I tensorflow/lite/toco/import_tensorflow.cc:1336] Converting unsupported operation: TensorArrayWriteV3
2019-06-14 11:43:28.173483: I tensorflow/lite/toco/import_tensorflow.cc:1336] Converting unsupported operation: TensorArrayWriteV3
2019-06-14 11:43:29.230199: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 6800 operators, 13059 arrays (0 quantized)
2019-06-14 11:43:30.278421: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After Removing unused ops pass 1: 6750 operators, 12970 arrays (0 quantized)
2019-06-14 11:43:32.153509: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 6750 operators, 12970 arrays (0 quantized)
2019-06-14 11:43:32.539125: F tensorflow/lite/toco/graph_transformations/resolve_tensorflow_switch.cc:98] Check failed: other_op->type == OperatorType::kMerge Found Sub as non-selected output from Switch, but only Merge supported.
Fatal Python error: Aborted

I am reporting in case this helps.

Any updates yet? Currently working on a project and I need to convert or find a way to run on my TPU.

@mali30 did u solve it. I tried freezing the graph and converting to .pb to convert into .tflite. Didnt work. Im also trying to deploy on edge tpu.

no I could not get it to work. I am sorry my friend @NicholaiStaalung

@mali30 ok, thx for letting me know! Good luck

@mali30 sorry, somehow I missed your comment. I didn’t have luck yet, I will inform here if I make any progress.

Hi all,
Just wanted to check if any progress has been made here since August? Just tried locally converting a Mask RCNN network to TFLite format and unfortunately, no luck.
Thank you,
Edgars

While it is possible to convert a MaskRCNN model to TFLite using our new converter, there are some major drawbacks:

It requires using the Select TF ops in TFLite feature, as not all ops in MaskRCNN are supported on TFLite (Size, CropandResize, LinSpace). This adds binary size & latency.
The latency is very high (read: >8s), mainly because MaskRCNN uses heavy convolutions and the pre-trained models available on our model zoo have large inputs (1365*800). Since the graph has dynamic tensors, acceleration on NNAPI/GPU isn't currently supported. If I modify the inference parameters in pipeline.config to make inference faster, it degrades the high accuracies of MaskRCNN.

So to keep things feasible, I would like to understand the requirements here - is it bounding boxes (in that case, our SSD/SSDLite models are much better) or is it segmentation (we have some decent models for that). Otherwise, we could also try to convert research-y (not supported by the object detection team) models like these, but the mAP/latency tradeoff doesn't seem that good, considering we might get comparable accuracy with the SSD floating point models.

Hi @srjoglekar246,
Thanks for the effort and the information. It is great that it is already working. For our use case, a latency of seconds is probably enough.
We are doing research in solar tracking for concentrating solar power, so basically we have a Raspberry Pi and a camera on each mirror (called heliostat) to automatically track the Sun and detect a receiver (at the top of a tower) to reflect and concentrate the solar irradiance onto the receiver, where high temperature is reached to produce high-pressure steam, move a turbine and produce electricity.
We have a mobile app to do manual tests in the solar field, a 3D-printed mockup for preliminary tests and a prototype for testing in the real plant. Some pictures are in these articles.
https://aip.scitation.org/doi/pdf/10.1063/1.5117524?class=pdf (Figure 6, mobile app example, Figure 5 real plant example).
https://arxiv.org/pdf/1809.07048.pdf (Figure 6, prototype at the real plant).
https://lanochedelosinvestigadores.fundaciondescubre.es/actividades/heliostato-inteligente/ (Pictures of the 3D-printed mockup, we are using here the Coral USB accelerator to have a really fast response).
We are already testing with retrained SSD models, but we would also like to test if Mask R-CNN can better frame the objects and achieve a higher accuracy. A latency of seconds is probably ok because the heliostats commonly move in minutes to cope with the apparent Sun trajectory in the sky.
Do you think it is a good idea to test Mask R-CNN? Are there other models that would be better for this use case? Thanks!

@JaviBonilla If better bounding-box based tracking is your goal, you could try ssd_resnet_50_fpn_coco from our detection page. It gives a COCO mAP value of 35 at a relatively lower latency (while still being pretty good with the TFLite infra) - the latency is ~14s on a Pixel 2, to give some context.
To squeeze the maximum accuracy from the model, use 'regular' NMS (which does one round of NMS per class instead of combining all classes into one NMS round) by using --use_regular_nms=true with the export_tflite_ssd_graph script. This should yield a good TF graphdef suitable for TFLite.
Then proceed to convert as per the instructions for floating-point models here.
If latency is too high, you could go without regular NMS :-).
Let me know how it goes!

@srjoglekar246 thanks a lot for the info! We will do some experiments in our solar field with the model you mentioned and Mask RCNN to compare and evaluate accuracy and latency.
I keep you inform about the results :-).

@srjoglekar246 another thanks for the info! I'm also trying to squeeze as much performance out of a model that can be compiled to tflite, which FasterRCNN and the like are not supported for. Your tips should be pretty useful for us so cheers!

@srjoglekar246 Is there any updates on this issue? I'm also exploring the possibility of using MaskRCNN on Android with TFLite. I checked Running TF2 Detection API Models on mobile and Running on mobile with TensorFlow Lite. Both docs still says TF Lite only support SSD models.

@Yu-Hang Are you interested in the masks output from MaskRCNN? If its bounding boxes, is it on your own dataset?

@srjoglekar246 Yes, I'm interested in the object masks. Right now I just want to convert a pre-trained model, and run inference on Android and see the performance. We have a trained MaskRCNN model with our own dataset. The goal is to run inference with this model on Android.

@srjoglekar246 Our app does not process images in real-time. The accuracy of MaskRCNN is appealing to us even though it is computationally expensive compared to SSD.

Did you train the MaskRCNN from the detection zoo? Or did you use some other code?
In any case, you can probably try converting the model with Select TF ops to check whether it converts, and report back errors?

@srjoglekar246 No, we trained using the matterport code base. Does this make a difference since that codebase is using TF1? Do you suggest we retrain using the one from the TF2 model zoo?
Okay, I will try converting the MaskRCNN model from TF2 model zoo using Select TF ops.

TF1 support can be messy, if it contains control flow etc (MaskRCNN most probably does, but you can check)
Trying the one from the detection zoo makes more sense, we can debug the errors if they arise :-)

@srjoglekar246 I tried to convert the model, but failed at generating the intermediate SavedModel.
code:
tensorflow@3e9a683ad236:~/models/research$ python object_detection/export_tflite_graph_tf2.py --pipeline_config_path ~/data/mask_rcnn_inception_resnet_v2_1024x1024_coco17_gpu-8/pipeline.config --trained_checkpoint_dir ~/data/mask_rcnn_inception_resnet_v2_1024x1024_coco17_gpu-8/checkpoint --output_directory ~/data/mask_rcnn_inception_resnet_v2_1024x1024_coco17_gpu-8/output
Error message:
Traceback (most recent call last):   File "object_detection/export_tflite_graph_tf2.py", line 161, in <module>     app.run(main)   File "/home/tensorflow/.local/lib/python3.6/site-packages/absl/app.py", line 300, in run     _run_main(main, args)   File "/home/tensorflow/.local/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main     sys.exit(main(argv))   File "object_detection/export_tflite_graph_tf2.py", line 149, in main     text_format.Parse(f.read(), pipeline_config)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 699, in Parse     allow_unknown_field=allow_unknown_field)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 771, in ParseLines     return parser.ParseLines(lines, message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 824, in ParseLines     self._ParseOrMerge(lines, message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 852, in _ParseOrMerge     self._MergeField(tokenizer, message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 982, in _MergeField     merger(tokenizer, message, field)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 1057, in _MergeMessageField     self._MergeField(tokenizer, sub_message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 982, in _MergeField     merger(tokenizer, message, field)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 1057, in _MergeMessageField     self._MergeField(tokenizer, sub_message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 949, in _MergeField     (message_descriptor.full_name, name)) google.protobuf.text_format.ParseError: 153:40 : Message type "object_detection.protos.TFRecordInputReader" has no field named "s".

Oh yeah.. the TFLite tools don't work on MaskRCNN, you need to use export_inference_graph instead.

@srjoglekar246 I changed command to:
python object_detection/export_inference_graph.py --input_type image_tensor --pipeline_config_path ~/data/mask_rcnn_inception_resnet_v2_1024x1024_coco17_gpu-8/pipeline.config --trained_checkpoint_prefix ~/data/mask_rcnn_inception_resnet_v2_1024x1024_coco17_gpu-8/checkpoint --output_directory ~/data/mask_rcnn_inception_resnet_v2_1024x1024_coco17_gpu-8/output/
Seems like the same error:
Traceback (most recent call last):   File "object_detection/export_inference_graph.py", line 206, in <module>     tf.app.run()   File "/home/tensorflow/.local/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40, in run     _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)   File "/home/tensorflow/.local/lib/python3.6/site-packages/absl/app.py", line 300, in run     _run_main(main, args)   File "/home/tensorflow/.local/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main     sys.exit(main(argv))   File "object_detection/export_inference_graph.py", line 170, in main     text_format.Merge(f.read(), pipeline_config)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 737, in Merge     allow_unknown_field=allow_unknown_field)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 805, in MergeLines     return parser.MergeLines(lines, message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 830, in MergeLines     self._ParseOrMerge(lines, message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 852, in _ParseOrMerge     self._MergeField(tokenizer, message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 982, in _MergeField     merger(tokenizer, message, field)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 1057, in _MergeMessageField     self._MergeField(tokenizer, sub_message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 982, in _MergeField     merger(tokenizer, message, field)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 1057, in _MergeMessageField     self._MergeField(tokenizer, sub_message)   File "/home/tensorflow/.local/lib/python3.6/site-packages/google/protobuf/text_format.py", line 949, in _MergeField     (message_descriptor.full_name, name)) google.protobuf.text_format.ParseError: 153:40 : Message type "object_detection.protos.TFRecordInputReader" has no field named "s".
Not sure if I have setup checkpoint path correctly. The example for export_inference_graph.py has the following for checkpoint path:
"--trained_checkpoint_prefix path/to/model.ckpt ". However, the checkpoint files for TF 2 models look a bit different. Please explain on how to set checkpoint path here.

It should be ~/data/mask_rcnn_inception_resnet_v2_1024x1024_coco17_gpu-8/checkpoint/ckpt, I believe.

@srjoglekar246 hmmm...looks like checkpoint path is not the cause of the error. I still have the same error:
google.protobuf.text_format.ParseError: 153:40 : Message type "object_detection.protos.TFRecordInputReader" has no field named "s".

@JaviBonilla @noah003 @mali30 Hi fellas, did any of you had any luck getting this to work?

@srjoglekar246 @tombstone I found out from this issue that the above error is because

In the pipeline.config file of the Mask R-CNN Inception ResNet V2 1024x1024 there is an extra 's' placed

@srjoglekar246 Can you convert models that are not from the the model hub? I tried convert my own MaskRCNN model, but the output tensors of the model seems to be wrong. It would be nice if you can take a look my issuehttps://github.com/tensorflow/tensorflow/issues/48025#issue-839067869

Hi @JaviBonilla ! Have you checked this thread on M-RCNN to TFlite yet? Thank you!

@mohantym Thanks for the link! I think this issue can be closed.

Ok @JaviBonilla ! Thanks for confirmation. Moving this issue to closed status then. Thank you!


Can localization module run without RTK account?

I've been wondering if there is a possibility to use only the IMU device without RTK account to bring up localization module.
System information

OS Platform and Distribution: Linux Ubuntu 18.04
Apollo installed from: source
Apollo version: 5.5

Steps to reproduce the issue:
follow all the instruction from D-kit user manual until the step 循迹搭建--定位模块配置
Supporting materials (screenshots, command lines, code/script snippets):

What is your use case? No RTK output will result in inaccurate localization. Therefore, accurate localization is the premise, If you just want to validate the flow, you can use mock localization instead.

My objective is to render point cloud and obstacle perception in dreamview by using VLP16. However, it seems not to be working due to the transformation from novetal to world being missing(from the log of lidar compensator by using static transform publisher).  Currently, I am working on setting up a whole localization system without an RTK account. Is there exist a method to mock localization module and publish valid /tf topic for compensator? please let me know, thanks.

As mentioned before, you can mock the location and tf, just send the corresponding message

Closed due to inactivity. If the problem persists, pls feel free to reopen it or create a new one and refer to it.


ListView does not seem to refresh its data

Hello! First I want to thank you for making such an awesome library! 👍  Today, I was trying out the ListView control and making a Todo-like application in Asp.Net.Core. However, when I press the "Add" button which adds the new "item" to the ObservableCollection the list does not refresh and I see a screen with an only input field and a button at the bottom.
This is what I have in my HomeController Index Auction:
public class HomeController : Controller
    {
        public IActionResult Index()
        {
            var page = new MainPage();

            var element = page.GetOouiElement();
            return new ElementResult(element, "Hello from XAML!");
        }
    }

MainPage.xaml:

    <StackLayout>
        <ListView x:Name="MyListView"
                  ItemsSource="{Binding Data}"
                  HeightRequest="200">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <Label Text="{Binding .}" />
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>

        <StackLayout>
            <Entry x:Name="input"
                   Text="{Binding Input}" />
            <Button Text="Add Item"
                    Command="{Binding AddCmd}" />
        </StackLayout>
    </StackLayout>

</ContentPage>

MainPage.cs:
public partial class MainPage : ContentPage
    {
        public MainPage()
        {
            InitializeComponent();

            BindingContext = new MainPageVM();
        }
    }

MainPageVM.cs:
public class MainPageVM : INotifyPropertyChanged
    {
        public ICommand AddCmd => new Command(() =>
        {
            Data.Add(Input);
            OnPropertyChanged(nameof(Data));
        });

        private string _input;

        public string Input
        {
            get => _input;
            set
            {
                _input = value;
                OnPropertyChanged();
            }
        }

        private ObservableCollection<string> _data = new ObservableCollection<string>();

        public ObservableCollection<string> Data
        {
            get => _data;
            set
            {
                _data = value;
                OnPropertyChanged();
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }

What am I missing something or this is a bug? Thank you in advance!

Yeah some thing is going on. Sorry I can't identify what exactly right now, but I'll take a look.

Wanted to write some similar report. Removing items of ListView.ItemsSource or clearing source (ListView.ItemsSource = null) is not clearing HTML list.
https://github.com/praeclarum/Ooui/blob/master/Ooui.Forms/Renderers/ListViewRenderer.cs#L72 is clearing _cells (rows) but not HTML list children.
HTML list is only appending children at https://github.com/praeclarum/Ooui/blob/master/Ooui.Forms/Renderers/ListViewRenderer.cs#L103.

I think this bug is actually around bindings not updating with the initial get value when called on the binded value.
I was able to reproduce this very easily with the following code. It runs as expected in iOS, but in web assembly shows no text in the button unless you remove the binding.
class Program
{
    static void Main(string[] args)
    {
        Xamarin.Forms.Forms.Init();

        // Create the UI
        var homePage = new MyPage();

        // Publish a root element to be displayed
        UI.Publish("/", homePage.GetOouiElement());
    }
}

public class MyViewModel : INotifyPropertyChanged
{
    string buttonText = "ViewModel Initial Text";
    public string ButtonText
    {
        get => buttonText;
        set
        {
            buttonText = value;
            OnPropertyChanged();
        }
    }

    public event PropertyChangedEventHandler PropertyChanged;
    protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
    {
        PropertyChangedEventHandler handler = PropertyChanged;
        if (handler != null)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}

public class MyPage : ContentPage
{
    public MyPage()
    {
        BindingContext = new MyViewModel();

        var button = new Xamarin.Forms.Button { Text = "Constructed Text", VerticalOptions = LayoutOptions.FillAndExpand };
        Content = new StackLayout
        {
            Padding = 50,
            Children = { button },
        };

        button.SetBinding(Xamarin.Forms.Button.TextProperty, nameof(MyViewModel.ButtonText));
    }

    protected override void OnAppearing()
    {
        base.OnAppearing();

        ((MyViewModel)BindingContext).ButtonText = "New ViewModel Text";
    }
}

It is not complex to fix. I'll send PR :)

I have it ready. I will take advantage to add some small improvement more :). I will send PR very soon!.

@jsuarezruiz, amazing! Thank you! :)

The PR has been merged. It will be in 0.9.

Fantastic!


Add yocto support

(this is never to be merged here, this is for book-keeping)
connects to allenh1/superflore#42

@tfoote can you look at this and tell me if this seems okay? I'm not sure if this is finished or not, and it's hard to tell if this will break anything atm.

Does yocto support installation at runtime? I think not, and as such the installer should raise a runtime error. For Yocto we will want to be able to query the database to list dependencies but not actually run it.

Does yocto support installation at runtime?

No, it certainly does not.

For Yocto we will want to be able to query the database to list dependencies but not actually run it.

Yep, this is the goal.
Thanks for peeking at this. I'll adjust it as suggested above.


feature: allow server configuration, plugin configuration, defaults and samples to be separate from the server install

How about

some documentation
option to use an environment variable  to specify the directory

https://github.com/SignalK/signalk-server-node/#environment-variables


Make HIP functional again with HCC from ROCm 1.9.x

@yxsamliu I have updated the code. Hopefully this should address HIP/VDI concerns.


AudioEndpointVolume.OnVolumeNotification event should know which device it's attached to

Typically, when you have an event, you get passed the sender object so that you can operate on it.
I want to be able to do something like:
      foreach (MMDevice d in devices)
      {
        d.AudioEndpointVolume.OnVolumeNotification += delegate (AudioVolumeNotificationData data) { Console.Write(d.ID); };
      }

but when it comes to the event handler I can't get to the device ID, because I don't know which device is receiving the event. Perhaps something like:
        d.AudioEndpointVolume.OnVolumeNotification += delegate (object sender, AudioVolumeNotificationData data) { Console.Write((MMDevice)sender.ID); };

would be better?

Wow, such an old request....
Currently I have exactly the same problem.
Is there some info when it could be implemented or at least an answer that it will never be implemented.
Thanks!

However, I have a workaround...
Create a class like this:
public class DeviceVolumeNotificationHandler
{
  private readonly string _deviceId;
  private Action<string, AudioVolumeNotificationData>? _handleAction;

  public DeviceVolumeNotificationHandler(string deviceId)
  {
    _deviceId = deviceId;
  }

  public void Handle(AudioVolumeNotificationData data)
  {
    _handleAction?.Invoke(_deviceId, data);
  }

  public void SetHandleAction(Action<string, AudioVolumeNotificationData> action)
  {
    _handleAction = action;
  }
}

Then in the devices loop:
foreach (MMDevice d in devices)
{
  var handler = new DeviceVolumeNotificationHandler(d.ID);
  handler.SetHandleAction((deviceId, data) => Console.Write(deviceId));
  d.AudioEndpointVolume.OnVolumeNotification += handler.Handle;
}

great, thanks for sharing your workaround


Attempting to push unchanged connected app metadata fails

Summary
If you create a connected app in a scratch org and pull it, then attempt to push that pulled metadata to a different scratch org the push fails. I discovered from this forum post that the problem is the pulled metadata includes a consumer key and this isn't allowed to be pushed:
https://salesforce.stackexchange.com/a/236246
The error is a little opaque, especially if you're new to sfdx, and are still getting the hang of what the different commands are actually doing. It took a couple of rounds of internet research to interpret it:
So, you can workaround this bug by simply removing the consumerkey from the metadata.
Steps To Reproduce:

Create a connected app in a scratch org
Pull changes: $ sfdx force:source:pull
Make a new scratch org: $ sfdx force:org:create -s -f config/project-scratch-def.json -a testconsumerkeybug
Push unchanged metadata to new org: $ sfdx force:source:push

Expected result
Either (1) pull the connected app metadata without the consumer key or (2) if there's a user story for keeping the consumer key in the pulled metadata, then a more action oriented error would be helpful. Something like: "You are trying to push a connected app with the consumerkey specified, but that's not allowed. Remove the consumerkey field from the xml file before pushing."
In short, its pretty confusing that unchanged metadata you've pulled isn't allowed to be pushed, so some kind of additional clues in the error handling would be really great, if that's on purpose.
Actual result
See screenshot of terminal output

Additional information
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
$ sfdx --version
sfdx-cli/7.48.0-a71f8c6899 linux-x64 node-v10.15.3
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
$ sfdx plugins --core
@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.2.3 (core)
@oclif/plugin-help 2.2.3 (core)
@oclif/plugin-not-found 1.2.3 (core)
@oclif/plugin-plugins 1.7.9 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.7 (core)
analytics 1.7.1 (core)
generator 1.1.2 (core)
salesforcedx 48.3.1 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.5 (core)
├─ salesforcedx-templates 48.4.0 (core)
└─ salesforce-alm 48.4.0 (core)
sfdx-cli 7.48.0 (core)
OS and version:
Ubuntu PopOS 19.10

@laurakolker, thank you for the feedback. Sounds like the documentation on connected apps needs to be improved. I am going to take that back to our doc team.

We've added a troubleshooting topic about this to the SFDX Dev Guide -- it should be published soon!  Thx.


Allow capture of payments when receiving a shipnotify notification.

This PR does two things:

Uses Spree::Config.require_payment_to_ship to decide which shipments to export.
Adds Spree::Config.shipstation_capture_at_notification flag to enable capture of payments when we receive a notification of the creation of a shipment label.

Work for https://boomerdigital.atlassian.net/browse/TEES-32

:+1:  It's great! Just squash it all, and it's good to go!


Unable to open HTTP urls with xdg-open in the container

When using VSCode in the container and clicking to to sign in to GitHub, it tries to open a browser window with xdg-open, but it fails to do so.
Installing gvfs-backends fixes it. It increases the container size by 58.3 MB.

I'm not sure what gvfs-backends would do.
One solution is having a browser inside of the container. Previously I tried using the portal to open URLs on the host, which works fine for http, but not for file. Maybe we should just have a script that splits their handling.

There's epiphany installed in the container already, but VSCode is unable to launch it without gvfs-backends installed.

FWIW, Toolbx is able to handle this by launching a Flatpak on the host system that handles the URL. This has mixed success. For example, it opens the URL with Chromium now that I have Chromium as a Flatpak. Before that, it opened the URL with GNOME Builder.

@TingPing any news on this?

This is still a problem, and makes git webkit setup not work, as it relies on it to open a page in the browser.


Add static_files attribute to ts_web_test & ts_web_test_suite

Allows re-enabling packages/upgrade/test:test_web test in angular/angular: https://github.com/gregmagolan/angular/tree/ts-web-test-static-files (based off of https://github.com/angular/angular/pull/23845)

Resolves #131


Remove shutdown_complete_rx from the Listner

Fix #88 remove unused field from the Listner struct

I think this change has been merged in https://github.com/tokio-rs/mini-redis/pull/117


Keep the cluster-agent auth token in cache

What does this PR do?
ValidateDCARequest used to query the auto_token from viper for every request. This PR makes the token cached in the util.dcaToken package variable.
This can provide a significant speedup on heavy workloads.

Reworked the PR to keep the existing security.GetClusterAgentAuthToken() logic, allowing the DCA to create it's own token.
SetDCAAuthToken is called by api.StartServer when starting the api listener, so the dcaToken variable is populated, either from viper or with a new generated token. No need to call viper in ValidateDCARequest


Synchronous wrapping of asynchronous code

The AI codebase uses several synchronous wrappers for async code and exposes those APIs.
All flavors of Task.Wait, Task.WaitAll, GetAwaiter().GetResult(), .Result, etc.
Repro Steps

Take a ASP.NET Core web application (no SynchronizationContext)
Use Application Insights
Put very high load on the application

Actual Behavior
Massive ThreadPool starvation until the application stops responding at all.
Expected Behavior
No ThreadPool starvation.
Version Info
SDK Version : any
.NET Version : ASP.NET Core
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS : any
Hosting Info (IIS/Azure WebApps/ etc) : any

@dennisbappert : Does this repro without using the Nito.AsyncEx library?

Yes it does.

Do we have a self-contained repro? One where the app runs successfully until Application Insights is added?
If so, could we get a dump of the process at the point of "massive ThreadPool starvation"? From that we should be able to see where the tasks are blocked.


The changelog contains not merged PRs

Details
Chagelog http://docs.readthedocs.io/en/latest/changelog.html#version-2-1-4
Not merged PRs:

#3444
#3463
#3377
#2699

How is the changelog  generated?

There is an option for that already https://github.com/agjohnson/github-changelog/blob/1915b5b24d1b0840eb15f5e07bcce0cd8c5e08a7/index.js#L31, we only need to modify how the script is called

And we already pass that option https://github.com/rtfd/common/blob/ae892294342da555c90f69c6594277b0c546ede3/tasks.py#L89... @agjohnson how we really run the script?

The current changelog contains PRs that just were closed too.

@stsewd the script is called via invoke prepare $RELEASE_VERSION and that prepare function is executed.


Style assets deployment

I have been using RWR successfully on Heroku for a while. I started using require('some_stylesheet.scss') in my .js code, and all was fine in development environment. Then I pushed to Heroku, but saw that the styles I had defined in some_stylesheet.scss were missing. Indeed I am getting an error in my Browser console :
Failed to load resource: the server responded with a status of 404 (Not Found) https://instant-job-staging.herokuapp.com/tmp/build_a868f0dbfc615be088fe227fa3cbb765/app/assets/stylesheets/react_bundle.css
I can see this is coming from one of the first lines in my application-7ad1407724e47...88a06.css file :
@import url(/tmp/build_a868f0dbfc615be088fe227fa3cbb765/app/assets/stylesheets/react_bundle.css);
If my understanding is correct, this file is only present during precompile, so it's not a surprise that I should get a 404 error.
Maybe this error could come from the fact that I had included require react_bundle in my app/assets/stylesheets/application.scss file initially, but I have now removed it and it doesn't solve my problem.
Thanks for your help.

So I found the solution :
You have to edit config/initializers/assets.rb, and add the following line :
Rails.application.config.assets.precompile += %w( react_bundle.css )

then in the head of your html layout add :
<%= stylesheet_link_tag 'react_bundle', media: 'all', 'data-turbolinks-track' => true %>

and it works on Heroku :)

Maybe it could be worth it to document that trick in the deployment readme.

@aymericbouzy defentely.
Just one question, Did you have @import react_bundle somewhere in your assets? for eg in application.scss?

Indeed, I had @import "*";


ObjectName by date or by hash?

Since #32, a past date may be shown to user in the getUrl, which contains the objectName of a potentially old resource.
Option 1 : who cares about the getUrl details.
Option 2 : store files in intermediate folder hash instead of yyyy-mm-dd

If files retention policy is a few hours only, then the date in the objectName will be right most of the time. Making the problem even innocuous.

Since #158, there is no date anymore.


React to aspnet/BuildTools#611

This should fix the travis linux builds.
aspnet/BuildTools#611

@pranavkm So it seems that environment variables are not retained between travis script sections, so I change this just look into the repo root for the .dotnet directory.


"gfx by example" docs

There is a nice site for the Metal API called "Metal By Example". It would be nice to create some docs similar to that. Perhaps we could look at @sebcrozet's awesome ncollide docs for inspiration too.

related to #942

No longer needed: pre-ll is fading away, and for ll there is a ton of Vulkan examples out there.


Nested Dictionary Rejected by Pantry

I have a multiple-nested dictionary of type:
Dictionary<String, Dictionary<String, Dictionary<String, Int>>>
and when I call Pantry.pack on it this is the error message I get this error message
Cannot invoke 'pack' with an argument list of type (Dictionary<String, Dictionary<String, Dictionary<String, Int>>>, key: String)

Hey @SikandAlex, I think you're being too specific for Pantry here. We need to specify pack for each specific type that we can pack/unpack and I don't think the type system will automatically downcast to the Dictionary<String, AnyObject> that we support.
Try one of two suggestions:

Try it with the Dictionary<String, AnyObject> type and then optionally cast back to your expected type
Replace your object with a struct and write your own init method (this will probably still be an issue if one of your properties is still of type Dictionary<String, Dictionary<String, Dictionary<String, Int>>>)
Create a Pantry extension which specifies pack and unpack for your specific type? I haven't tried this yet but I suspect it could work.

Ok I just tried it with Dictionary<String, AnyObject> but it gave me the same issue
Cannot invoke pack with an argument list of type (Dictionary<String, AnyObject>, key: String)

I've tried making custom structs to get around having to have so many layers of nesting but Swift is not recognizing Warehousable as a type even after installing the pod?

@SikandAlex The Warehousable issue is a separate thing - use master via cocoapods rather than the versioned release for the fix right now.


Random command ID

Hi,
do you accept issues/PRs at this point?
If so, in CDP.Runtime:
randomGen      <- newMVar . mkStdGen $ 42
(...)

randomCommandId :: Handle -> IO CommandId
randomCommandId handle = modifyMVar (randomGen handle) $ \g -> do
    let (id, g2) = uniformR (0 :: Int, 1000 :: Int) g
    pure (g2, CommandId id)

This isn't very randomy and repeats within the first 10 elements: [560,663,95,783,208,466,913,535,651,95]
However, instead of making it properly random, reading this:

Every command that is sent over to CDP must have a unique 'id' parameter. Message responses will be delivered over websocket and will have the same 'id'.

I'm wondering why have random ids at all? Maybe an MVar Int that starts at 1 and increments for each new command?
Puppeteer seems to do just that.

Thanks for pointing this out. A PR would be welcome!
Subscription ids for events are already implemented similarly, starting at 0 and incremented thereafter
https://github.com/arsalan0c/cdp-hs/blob/1346d4e70c97513716a6535d54ee8879f887645a/src/CDP/Internal/Utils.hs#L52


[docs] New, email automation for apache releases

CATEGORY
Choose one

[ ] Bug Fix
[ ] Enhancement (new features, refinement)
[ ] Refactor
[ ] Add tests
[ ] Build / Development Environment
[X] Documentation

SUMMARY
Facilitate all the email process related with the Apache voting process.
Simple python script (with no dependencies) that generates and sends all the required emails during the voting process
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

REVIEWERS

Awesome! 🎉

Codecov Report

Merging #8612 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #8612      +/-   ##
==========================================
+ Coverage   65.77%   65.78%   +0.01%
==========================================
  Files         482      482
  Lines       23794    23805      +11
  Branches     2587     2589       +2
==========================================
+ Hits        15651    15661      +10
- Misses       7974     7975       +1
  Partials      169      169

Impacted Files
Coverage Δ

...t/assets/src/dashboard/reducers/getInitialState.js
0% <0%> (ø)
:arrow_up:

superset/db_engine_specs/presto.py
22.64% <0%> (ø)
:arrow_up:

superset/jinja_context.py
76.69% <0%> (ø)
:arrow_up:

superset/models/core.py
83.21% <0%> (ø)
:arrow_up:

...ets/src/SqlLab/components/TemplateParamsEditor.jsx
85.29% <0%> (ø)
:arrow_up:

superset/connectors/sqla/models.py
84.81% <0%> (ø)
:arrow_up:

superset/db_engine_specs/hive.py
27.98% <0%> (ø)
:arrow_up:

superset/views/core.py
71.85% <0%> (+0.05%)
:arrow_up:

superset/utils/core.py
88.08% <0%> (+0.06%)
:arrow_up:

superset/db_engine_specs/base.py
81.12% <0%> (+0.18%)
:arrow_up:

... and 1 more

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 e490414...338c629. Read the comment docs.

This looks good, but let me digest this for a while. My initial feeling is that sending the emails from a script feels slightly dangerous, and could perhaps just be done by rendering the message to stdout and sent manually, but sending from CLI might OTOH might be a pretty good solution (less manual steps -> less risk for errors). Would be curious to hear other people's thoughts on this approach.

@villebro I could easily add an extra argument to override the SMTP To:, that way we can first send to our private email and check if everything is ok, then rerun without the override.
btw I sent my last 2 emails regarding 0.35.1 using this

Added an option to override the default receiver email, this way one can send a preview email to his personal mail box first
Note also that before sending any email the full SMTP message is displayed for the user to confirm

Thanks @villebro. True it would be a nice to have, yet there is the challenge to send the reminder email attached to the email thread

You're right @dpgaspar, didn't come to think of that. Perhaps we can live with writing manual reminders.. 😆


i3 module refresh

Maybe related to https://github.com/jaagr/polybar/issues/304
I setted a click event on wlan module
label-connected = "%{A1:connman-gtk:}%essid%%{A}"
label-disconnected = "%{A1:connman-gtk:}%{A}"

in my .i3/config, i have
set $tag10 "10:"
assign [class="Connman-gtk"] $tag10

If i'm not on this $tag10 workspace and i click on the module to run connman, it works
but i3 module focus the right workspace without updating the "workspace selector".
1° i'm on term workspace

2° i click on module : right workpace is focus but still showing term workspace in i3 module
And then i3 module is completly frozen, switching workspace keep showing term workspace, until i close connman.

3° close connman window : i3 module refresh and show right workspace

This is because you are blocking it when you run the command.
You need to append & to  the command to allow async execution. For example:
%{A1:myprogram &:}...%{A}

it doesn't fix it

Can you post your full configuration


wayne-detroit-mi

hey y'all, here's a decent resource for addresses in Detroit directly from the city's GIS portal  line shapefile
Additionally, if you'd just like a flat file - I cut that up into a csv that's available here Here

Hey @dexterslu! Looks like that page fell victim to the website update, but the parcel file is now on the Open Data Portal under a Public Domain license. I opened #933 to get it added.

I was wondering what happened, thanks for following up @hampelm


Update link_credential_phishing_voicemail_language.yml

Description
remove solicited logic to avoid FNs, results will be compared to #2161
Associated samples
N/A
Associated hunts
N/A

results of this will be compared to #2161

/update-test-rules


Help Setting up conda environment with CUDA<11

I'm following the instructions mentioned here, and creating a conda environment to run this project.
I installed python 3.5.4 and tensorflow 2.0.0 (cuda 10.0).
Since I don't have sudo access on the server, I did pip install protobuf-compiler and was able to run the protoc command.
But I ran into some compatibility issues witht the library GRPCIO. Tensorflow<2.5 requires a specific grpcio version not compatible with the protobuf-compiler being installed. (am I isntalling the protobuf-compiler the right way? I wan't very confident on compiling the packages from source, hence I tried this)
I can use CUDA 10.0, 10.1, 10.2.
If anyone else was successful setting up this project on a CUDA<11 system, kindly share the conda .yaml file or the packages with the specific version, that didn't give any version clashes.
TIA

Hi @varungupta31,
Sorry to hear your issue.
Unfortunately, it may be hard for us to help resolve it, since it is not related to the code/model.
I am closing the issue, and maybe you could ask for help at some other forums (e.g, stackoverflow).
Cheers,


web ktor unable to make requests

api request works for android, iOS and desktop. Im able to receive a response but its not working for web and im receiving the error below
[Error] WebGL: INVALID_ENUM: getParameter: invalid parameter name, WEBGL_debug_renderer_info not enabled
	getParameter
	_glGetString (skiko.js:5776)
	wasm-stub
	<?>.wasm-function[14055]
	<?>.wasm-function[14514]
	<?>.wasm-function[14187]
	<?>.wasm-function[14221]
	<?>.wasm-function[11263]
	<?>.wasm-function[11264]
	<?>.wasm-function[1134]
	wasm-stub
	(anonymous function) (skiko.js:705)
	(anonymous function) (quranhouse-app.js:94238)
	CanvasRenderer (quranhouse-app.js:114250)
	SkiaLayer$attachTo$1 (quranhouse-app.js:114560)
	(anonymous function) (quranhouse-app.js:114750)
	(anonymous function) (quranhouse-app.js:114767)
	ComposeWindow (quranhouse-app.js:184901)
	CanvasBasedWindow$composable (quranhouse-app.js:184724)
	preComposeWindow$composable (quranhouse-app.js:249354)
	main$lambda (quranhouse-app.js:419678)

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (sql-wasm.wasm, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (sql-wasm.wasm, line 0)
[Warning] wasm streaming compile failed: TypeError: Unexpected response MIME type. Expected 'application/wasm'
[Warning] falling back to ArrayBuffer instantiation
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (sql-wasm.wasm, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (sql-wasm.wasm, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (sql-wasm.wasm, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (sql-wasm.wasm, line 0)
[Warning] failed to asynchronously prepare wasm: CompileError: WebAssembly.Module doesn't parse at byte 0: module doesn't start with '\0asm'
[Warning] Aborted(CompileError: WebAssembly.Module doesn't parse at byte 0: module doesn't start with '\0asm')
[Error] Unhandled Promise Rejection: RuntimeError: Aborted(CompileError: WebAssembly.Module doesn't parse at byte 0: module doesn't start with '\0asm'). Build with -sASSERTIONS for more info.
[Error] Unhandled Promise Rejection: DataCloneError: The object can not be cloned.
	postMessage
	onError

As this is with the Ktor Client, I would raise this ticket with the Ktor Tracker. Sounds like the Ktor client wasm issue vs Compose Multiplatform (unless this issue goes away when just on a pure wasm project no compose)

Please, create an issue in https://youtrack.jetbrains.com/newIssue?project=KTOR, with a reproducer code

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


Update WorkshopURL to use fixed project

ROKS cluster will use always workshop project, this will fill the upper menu form in the lab guide

I've created a new PR with the same change + updated tests: https://github.com/codeready-toolchain/devcluster/pull/36


Question: StreamProvider to RAM

Hello,
I am wondering whether it would be possible/make sense to have a way to keep the stream in memory instead of on disk. The API would define the cache size for the stream (say 200MB) and dispose/download the relevant torrent parts as the stream plays, for example.
Does that make sense?

It does make sense.
The issue with this approach is that it can lead to a scenario where leechers will rarely be able to share data with each other as they don't retain enough of the pieces they downloaded. This would put the burden of uploading on first seeder, which would then result in very poor torrent performance.
Why do you want to avoid writing pieces to disk, and why do you want to discard pieces in the middle of a download session? Maybe there's another way to achieve the task you want to achieve?

leechers will rarely be able to share data with each other as they don't retain enough of the pieces they downloaded

Yes, that's a valid concern. How much % of the total size would allow for reasonable sharing in your opinion?

Why do you want to avoid writing pieces to disk, and why do you want to discard pieces in the middle of a download session?

I'm just wondering how someone who would go about implementing a media streaming client with monotorrent on devices that have little to no storage space available (mobile I guess) or high security constraints.

Yes, that's a valid concern. How much % of the total size would allow for reasonable sharing in your opinion?

That's a hard one to judge as it depends on how many seeds there are and where they are in the stream. If they're all more or less in sync it won't be a problem. If they are essentially random then one way to calculate it is that if each peer retains 10% of the data then you need 10 leechers to act like 1 seeder.

I'm just wondering how someone who would go about implementing a media streaming client with monotorrent on devices that have little to no storage space available (mobile I guess) or high security constraints.

It'd be relatively easy, though it would require a more complete implementiom of the DoNotHave message to properly advertise a piece is no longer available.
At the simplest level all you'd need to do would be to make DiskManager use a MemoryWriter instead of a DiskWriter. Extra logic would be needed to ensure pieces which are discarded do cause a "DoNotHave" message to be sent.
One tweak to ensure randomised picking is disabled, and also that the manager only downloads data in the HighPrioity set. Currently it downloads pieces in the high priority set first, then it does random piece picking across the entire range of pieces.

Cool, thanks for the info 👍

I'd definitely be interested in taking patches to support this usecase, and could contribute a bit towards it to if you wanted to try implement it!

if you wanted to try implement it

I might :-) Will keep you posted if I do!
For now just playing with a sample https://github.com/mfkl/libvlcsharp/blob/da97c430f5bbd14b92b9c9e8cb203c49bd594016/Samples/LibVLCSharp.NetCore.Sample/Program.cs


Paginate overview

Paginates the overview page.

keeps toggles
continuous numbering across pages

I tried resolving the merge conflict. @mastoffel maybe you can have a look if that all looks reasonable and otherwise we can go and merge I think!

Thanks Bastian! Yes, agree with url, let's see whether this automatically getting fixed with the all toggle.
I tried it again and things are looking good, thanks for doing the merge!


Use PyPI tarball as source

Using the official PyPI source tarball is preferred since Git tags can be changed
https://pypi.org/project/tiledb-vector-search/
Note: I purposefully didn't bump the build number since I don't think this edit warrants uploading a new conda binary

This won't work at the moment. The PyPI source tarball only includes the Python package
wget https://files.pythonhosted.org/packages/38/e7/b41844291e142ec8b6a47183fa8478365d3f2d0d559b2531bf45860f6557/tiledb-vector-search-0.0.19.tar.gz
tar xzf tiledb-vector-search-0.0.19.tar.gz
ls tiledb-vector-search-0.0.19/src/tiledb/vector_search/
## __init__.py    index.py      ivf_flat_index.py  storage_formats.py  version.py
## flat_index.py  ingestion.py  module.py          utils.py

What is the longer-term plan for this recipe? Both tiledb-vcf-feedstock and tiledbsoma-feedstock follow the paradigm of:

Pull from GitHub archive tarball
Separate outputs for C++ library and Python client package

This isn't fool proof (eg the VCF shasum can change due to setuptools Git feature), but at least it is consistent. Is the plan to migrate the tiledb-vector-search recipe to this layout?

The PyPI source tarball only includes the Python package

I'm closing this PR since it doesn't make sense to use PyPI as the source for this repository. Only tiledb-py-feedstock does this because it is purely a client of libtiledb
https://github.com/conda-forge/tiledb-py-feedstock/blob/809136b2aa779821288ca379a9c5a2746cb1cbb5/recipe/meta.yaml#L11
In contrast, the other recipes for building a combined repo with the C++ library and Python client all use GitHub releases in order to also download the C++ source code
https://github.com/TileDB-Inc/tiledb-vcf-feedstock/blob/6eef8ee5b8fef52e25f7f5455080bf454ee638a2/recipe/meta.yaml#L10
https://github.com/TileDB-Inc/tiledbsoma-feedstock/blob/603c0dad0c7bd1162b191ccbc0739676bdb26cab/recipe/meta.yaml#L17

What is the longer-term plan for this recipe?

I'm still unsure about the long term plan for this recipe. Is there any motivation to create a separate output for the C++ library? If it is purely for use by the Python client, then it's probably fine to simply leave it as is

Superseded by #26


Support nested custom roots

Tests taken from https://github.com/stoplightio/json-schema-ref-parser/pull/18
@domagojk feel free to update tests / port them over from your branch.
I took the tests from your branch and made a few subtle changes, but I didn't sync them with the latest changes you pushed onto your branch, thus perhaps there's some valuable scenario missing.

Resolved in #19

Oops, I closed wrong PR 😄


Removed duplicate type property

Resolves elasticfence/kaae#24

Removed duplicate type property.

 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.

Thanks for spotting and fixing this @itayw


Advance to "Repo.aggregate" commit.

Coverage remained the same at 86.098% when pulling 3af21cbf9eab793ba2b1b3561b6be35adf49e7b1 on repo-aggregate into ec840611e47346500b496006914db9a10e861714 on master.


Fix addSource allowing custom credentials

This fixes issues when dealing with sources for OAuth authenticated contents, where apiKey must be overriden by token (custom credentials in the payload).

I have tested this linked locally and it fixes the issue on UserDatasets, so I'm moving on to release a beta.4 patch


visibility (hidden) is problematic in certain circumstances

I use volk through an FFI interface, so my only option is to build it as a shared library. At least on linux this doesn't work because of the pragma at https://github.com/zeux/volk/blob/master/volk.c#L1262, which makes all vk* functions hidden such that they can't be dynamically linked.
I understand there's probably some advantage to this if you're statically linking, but perhaps it could be configurable via a preprocessor option? Locally I just patched it so that it says "default" instead and it works for me.

So this is interesting because I think Linux is exactly why the hidden visibility was chosen.
Please refer to https://github.com/zeux/volk/issues/1#issuecomment-372388723 for motivation and some discussion.
I'd be reluctant to change this by default, but I'm happy to accept a PR with a CMake option (or if you don't use CMake, just a define) along the lines of VOLK_DEFAULT_VISIBILITY.

Fixed by #52 - thanks!

I would suggest warning about this issue and mentioning the VOLK_DEFAULT_VISIBILITY define in the Readme. This might have saved me some time, since I got pretty confused about why I was getting undefined references to Vulkan functions in some code that uses another shared library where volk is included, but not in that shared library itself, until I found this issue here.

It turned out that using VOLK_DEFAULT_VISIBILITY did not work in my case. Although the undefined references were resolved then, as mentioned in #1, it seemed that the vkGetInstanceProcAddr function would then incorrectly return the addresses of the function pointers in volk, rather than of the actual functions in the Vulkan library. I am not sure how this mechanism works exactly, thus the only solution I saw was to change volk to use different names for the exported functions (which worked). To do so, I used the following small adjustment to generate.py:
diff --git a/generate.py b/generate.py
index b4c044e..cfe7c16 100755
--- a/generate.py
+++ b/generate.py
@@ -146,17 +146,19 @@ if __name__ == "__main__":
                        if name == 'vkGetDeviceProcAddr':
                                type = 'VkInstance'

+                       export_name = 'l' + name
+
                        if is_descendant_type(types, type, 'VkDevice') and name not in instance_commands:
-                               blocks['LOAD_DEVICE'] += '\t' + name + ' = (PFN_' + name + ')load(context, "' + name + '");\n'
-                               blocks['DEVICE_TABLE'] += '\tPFN_' + name + ' ' + name + ';\n'
-                               blocks['LOAD_DEVICE_TABLE'] += '\ttable->' + name + ' = (PFN_' + name + ')load(context, "' + name + '");\n'
+                               blocks['LOAD_DEVICE'] += '\t' + export_name + ' = (PFN_' + name + ')load(context, "' + name + '");\n'
+                               blocks['DEVICE_TABLE'] += '\tPFN_' + name + ' ' + export_name + ';\n'
+                               blocks['LOAD_DEVICE_TABLE'] += '\ttable->' + export_name + ' = (PFN_' + name + ')load(context, "' + name + '");\n'
                        elif is_descendant_type(types, type, 'VkInstance'):
-                               blocks['LOAD_INSTANCE'] += '\t' + name + ' = (PFN_' + name + ')load(context, "' + name + '");\n'
+                               blocks['LOAD_INSTANCE'] += '\t' + export_name + ' = (PFN_' + name + ')load(context, "' + name + '");\n'
                        elif type != '':
-                               blocks['LOAD_LOADER'] += '\t' + name + ' = (PFN_' + name + ')load(context, "' + name + '");\n'
+                               blocks['LOAD_LOADER'] += '\t' + export_name + ' = (PFN_' + name + ')load(context, "' + name + '");\n'

-                       blocks['PROTOTYPES_H'] += 'extern PFN_' + name + ' ' + name + ';\n'
-                       blocks['PROTOTYPES_C'] += 'PFN_' + name + ' ' + name + ';\n'
+                       blocks['PROTOTYPES_H'] += 'extern PFN_' + name + ' ' + export_name + ';\n'
+                       blocks['PROTOTYPES_C'] += 'PFN_' + name + ' ' + export_name + ';\n'

                for key in block_keys:
                        if blocks[key].endswith(ifdef):

Also, a few calls in volk.c needed to be trivially updated to use the new names:
diff --git a/volk.c b/volk.c
index e2c9e02..734830d 100644
--- a/volk.c
+++ b/volk.c
@@ -34,12 +34,12 @@ static void volkGenLoadDeviceTable(struct VolkDeviceTable* table, void* context,

 static PFN_vkVoidFunction vkGetInstanceProcAddrStub(void* context, const char* name)
 {
-       return vkGetInstanceProcAddr((VkInstance)context, name);
+       return lvkGetInstanceProcAddr((VkInstance)context, name);
 }

 static PFN_vkVoidFunction vkGetDeviceProcAddrStub(void* context, const char* name)
 {
-       return vkGetDeviceProcAddr((VkDevice)context, name);
+       return lvkGetDeviceProcAddr((VkDevice)context, name);
 }

 VkResult volkInitialize(void)
@@ -50,7 +50,7 @@ VkResult volkInitialize(void)
                return VK_ERROR_INITIALIZATION_FAILED;

        // note: function pointer is cast through void function pointer to silence cast-function-type warning on gcc
8
-       vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)(void(*)(void))GetProcAddress(module, "vkGetInstanceProcA
ddr");
+       lvkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)(void(*)(void))GetProcAddress(module, "vkGetInstanceProc
Addr");
 #elif defined(__APPLE__)
        void* module = dlopen("libvulkan.dylib", RTLD_NOW | RTLD_LOCAL);
        if (!module)
@@ -60,7 +60,7 @@ VkResult volkInitialize(void)
        if (!module)
                return VK_ERROR_INITIALIZATION_FAILED;

-       vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)dlsym(module, "vkGetInstanceProcAddr");
+       lvkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)dlsym(module, "vkGetInstanceProcAddr");
 #else
        void* module = dlopen("libvulkan.so.1", RTLD_NOW | RTLD_LOCAL);
        if (!module)
@@ -68,7 +68,7 @@ VkResult volkInitialize(void)
        if (!module)
                return VK_ERROR_INITIALIZATION_FAILED;

-       vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)dlsym(module, "vkGetInstanceProcAddr");
+       lvkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)dlsym(module, "vkGetInstanceProcAddr");
 #endif

        volkGenLoadLoader(NULL, vkGetInstanceProcAddrStub);
@@ -78,7 +78,7 @@ VkResult volkInitialize(void)

 void volkInitializeCustom(PFN_vkGetInstanceProcAddr handler)
 {
-       vkGetInstanceProcAddr = handler;
+       lvkGetInstanceProcAddr = handler;

        volkGenLoadLoader(NULL, vkGetInstanceProcAddrStub);
 }
@@ -87,11 +87,11 @@ uint32_t volkGetInstanceVersion(void)
 {
 #if defined(VK_VERSION_1_1)
        uint32_t apiVersion = 0;
-       if (vkEnumerateInstanceVersion && vkEnumerateInstanceVersion(&apiVersion) == VK_SUCCESS)
+       if (lvkEnumerateInstanceVersion && lvkEnumerateInstanceVersion(&apiVersion) == VK_SUCCESS)
                return apiVersion;
 #endif

-       if (vkCreateInstance)
+       if (lvkCreateInstance)
                return VK_API_VERSION_1_0;

        return 0;

Thanks for reporting, this seems to be exactly the kind of problem that justified introducing the pragma in the first case. I haven't faced it but I can't be sure whether it is due to my toolset or my machine, so if it does happen I'll use your fix.

Hello from the future in 3 years. Recently I tried using volk again (same situation, still need it to be a dynamic library for FFI), but this time it segfaulted on init, presumably from this issue. Confirmed it by making a basic C program with dynamic and static linking. I mentioned this to paniq (who makes the language using the bindings) and he pointed me to the RTLD_DEEPBIND flag for dlopen. Documentation says:

Place the lookup scope of the symbols in this library ahead of the global scope. This means that a self-contained library will use its own symbols in preference to global symbols with the same name contained in libraries that have already been loaded.

So I changed the two dlopen calls to use this flag as well and lo and behold, the problem went away. @zeux I'd be happy to make a PR for this fix as well, if it doesn't sound like it will break anything else in horrible ways.


Backlash-escape double quotes

Otherwise, Haddock thinks this is a module name.

Belated thanks!

@batterseapower Good to see you back. :)


Does the "UserAgentApplication" method exist in MSAL.js 2.30.0?

[Enter feedback here]
An error occurs on the first line of the sample code below.
https://learn.microsoft.com/en-us/entra/identity-platform/tutorial-v2-javascript-spa#use-the-msal-to-sign-in-the-user
I checked the contents of msal-browser.js on the CDN below that is referenced by the sample application, but the method "UserAgentApplication" was not found.
https://https://alcdn.msauth.net/browser/2.30.0/js/msal-browser.js
Shouldn't we be calling "PublicClientApplication" here?

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

ID: 4c6d2219-cb28-5527-1079-6e3195cad282
Version Independent ID: 70c2aad0-6883-51a9-fed7-01be62302483
Content: Tutorial: Create a JavaScript single-page application that uses the Microsoft identity platform for authentication - Microsoft identity platform
Content Source: docs/identity-platform/tutorial-v2-javascript-spa.md
Service: identity-platform
GitHub Login: @OwenRichards1
Microsoft Alias: owenrichards

Thanks for the feedback @osamum - it looks like you're using an outdated article, which is currently in the process of being deprecated.
Alternatively, you can use our following quickstart to use a newer sample:
Quickstart: Sign in users in a single-page app (SPA) and call the Microsoft Graph API using JavaScript
The full range of JavaScript samples available for identity can be found here.
I will close this issue for now, but feel free to let us know if you require further assistance.
Thanks!

#pleaseclose

Answered by Author


Added Binary Tree Preorder Traversal in C++

Please assign me this issue.

Hello, Please assign me this issue

Hello, Please assign me this issue
This issue is already assigned to me and I have already solved this issue.

PR merged
@yash509 you can work on any other issue or create your own issue for code contribution


Improves the muting of parse args + appends history with gestures

Instead of redirecting the sys.stderr when parsing args, I mute the error message. Also made it so shell gestures are appended to the history.

Codecov Report

Merging #3434 into master will decrease coverage by 0.01%.
The diff coverage is 36.36%.

@@            Coverage Diff             @@
##           master    #3434      +/-   ##
==========================================
- Coverage   70.78%   70.76%   -0.02%
==========================================
  Files         394      394
  Lines       25579    25584       +5
  Branches     3899     3899
==========================================
  Hits        18105    18105
- Misses       6328     6333       +5
  Partials     1146     1146

Impacted Files
Coverage Δ

...s/azure-cli-interactive/azclishell/az_completer.py
59.9% <25%> (-1.42%)
:arrow_down:

src/azure-cli-core/azure/cli/core/parser.py
82.24% <66.66%> (ø)
:arrow_up:

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 e1f79fd...1b9e304. Read the comment docs.


Disable canary weekly tests for keyvault

This is primarily driven by a perceived lack of managed HSM support in the Canary region, but also given the expense of keyvault test resources, we don't necessarily need to be running them in Canary.

/check-enforcer override


getValue always returns 0

getValue() function is always returning 0 because conversion variable is not updated.

Thanks for your comment. If you've solved it, feel free to make a pull request and I will include it.

@DraXus thanks for your contribution.


19-implement-role-based-auth-for-delete-user-endpoint

also added debugger within vscode (inside docker container)


Split AI resource from the other resources?

Another sample project has options to separately place the OpenAI resource and the remaining resources. We're only approved for OpenAI in Canada East, but the deployment fails because some of the other resources aren't available in the region. Similarly, we can't deploy to US East because we aren't approved for OpenAI there yet.

Hi @schraepf you can point your app to any Azure OpenAI resource (across regions and subscriptions) by providing the right resource endpoint and key. Just update the AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY environment variables on the app service.

Hi Sarah,
Thanks for the quick response on this. We have research POCs for the Air Force and Department of Defense that require data stay in the US, so the Canada East deployment doesn’t fit.
I’m also running into issues with sample projects from Microsoft that don’t require the OpenAI resource and cosmos DB resources be in the same region, and that’s not possible in Canada east. This is impacting our ability to demonstrate these concepts to our commercial customers.
Is there any availability in US East or US East 2 region for GPT-4 access?
Mike

From: Sarah Widder @.>
Sent: Thursday, September 14, 2023 4:07:27 PM
To: microsoft/sample-app-aoai-chatGPT @.>
Cc: Michael Schraepfer @.>; Mention @.>
Subject: Re: [microsoft/sample-app-aoai-chatGPT] Split AI resource from the other resources? (Issue #242)
Hi @schraepfhttps://github.com/schraepf you can point your app to any Azure OpenAI resource (across regions and subscriptions) by providing the right resource endpoint and key. Just update the AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY environment variables on the app service.
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/sample-app-aoai-chatGPT/issues/242#issuecomment-1720071490, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AELTAJLUK4RIQ6I6CYU52FDX2NPX7ANCNFSM6AAAAAA4UYNHRM.
You are receiving this because you were mentioned.Message ID: @.***>

Hi Mike, GPT4 is available in East US and East US 2, please refer to the documentation here https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-4-models

Hello,
In the link you sent it states that I must request access, which is the purpose of this email thread. Please see screenshot below:
[A screenshot of a black screen  Description automatically generated]
Can we please have access to GPT-4-32k in East US or East US 2?
Mike
Michael Schraepfer, CISSP, ITIL, AWS SAA, MCITP, MCSE, MCSA
Partner, CTO
Essendis
31 East Bridge Street | Suite 304 | Berea, OH 44017
440.202.9074
www.essendis.comhttp://www.essendis.com/
SBC ID: 002263271 | UEI: GZEHUQR13DE7 | CAGE: 9DX02
From: Linda Li @.>
Date: Thursday, September 14, 2023 at 7:53 PM
To: microsoft/sample-app-aoai-chatGPT @.>
Cc: Michael Schraepfer @.>, Mention @.>
Subject: Re: [microsoft/sample-app-aoai-chatGPT] Split AI resource from the other resources? (Issue #242)
Hi Mike, GPT4 is available in East US and East US 2, please refer to the documentation here https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-4-models
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/sample-app-aoai-chatGPT/issues/242#issuecomment-1720297883, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AELTAJJOIWCSKYWWQVEWSSDX2OKFTANCNFSM6AAAAAA4UYNHRM.
You are receiving this because you were mentioned.Message ID: @.***>


[RFE] local-gadget: Add --watch option to the list-containers command

Current situation
Currently, the list-containers command shows the containers currently running in the system. However, there is no option to know when a given container is created/deleted.
Impact
It is not possible to debug the creation/deletion of containers using local-gadget.
Ideal future situation
local-gadget should provide an option like --watch to trace the containers events:
$ sudo local-gadget list-containers --watch
TIME                 EVENT   RUNTIME    ID                                                               NAME
2022-10-10T18:33:04Z CREATED containerd 942ed1e839818822794247a5b3f55356c33cb72c6332fa66c008e4a99b3aec4e coredns
2022-10-10T18:33:04Z CREATED containerd c8a65cf1c8650cf25427774494d45f00f81b243e3842142d41d4417c7892fc0d etcd
2022-10-10T18:33:04Z CREATED containerd ac36877bb8acf26ebd5186d747b83d2c12304a5cbc16a73e09e6beebbc424960 gadget
2022-10-10T18:33:04Z CREATED containerd e03544daba437aecbe23efc4df791d9ee1c2a07a5a121f6d6686f33b70a56454 kindnet-cni
2022-10-10T18:33:04Z CREATED containerd eaeef87de99228e97f87f06bcec023d54242363cf11a22bb76a78acc193ddc78 kube-apiserver
2022-10-10T18:33:04Z CREATED containerd 598e2c3d1a58524c08a7c5e45c1b38424b7c2d03789528c85b313788e9904197 kube-controller-manager
2022-10-10T18:33:04Z CREATED containerd c18d844a8c0b57024205687595dc921ba99e9b2e0880a3f9dac6ee8afadf2949 kube-proxy
2022-10-10T18:33:04Z CREATED containerd 53d749a30929eb76b4a53857001431b5579d916101b507b05098ce6c79beee7e kube-scheduler
2022-10-10T18:33:04Z CREATED containerd f032e55c72bc0a88dd72fa6d17c0f5ead70037dd97b4462a0b85416e36b3ac16 storage-provisioner
# Create a container in another terminal
2022-10-10T18:34:00Z CREATED containerd b8e94b0e5297cb6d3f8a86b01c4fd8221628cadd9156036ca81e72accd95d01d myContainer
# Delete a container in another terminal
2022-10-10T18:35:02Z DELETED containerd b8e94b0e5297cb6d3f8a86b01c4fd8221628cadd9156036ca81e72accd95d01d myContainer

Implementation options
diff --git a/cmd/local-gadget/containers/containers.go b/cmd/local-gadget/containers/containers.go
index 4dd645f7afce..3829cf808cd4 100644
--- a/cmd/local-gadget/containers/containers.go
+++ b/cmd/local-gadget/containers/containers.go
@@ -44,9 +44,20 @@ func NewListContainersCmd() *cobra.Command {
                                return commonutils.WrapInErrParserCreate(err)
                        }

-                       containers := localGadgetManager.GetContainersBySelector(&containercollection.ContainerSelector{
-                               Name: commonFlags.Containername,
-                       })
+                       containers := localGadgetManager.ContainerCollection.Subscribe(
+                               "local-gadget-key",
+                               containercollection.ContainerSelector{
+                                       Name: commonFlags.Containername,
+                               },
+                               func(event containercollection.PubSubEvent) {
+                                       switch event.Type {
+                                       case containercollection.EventTypeAddContainer:
+                                               // Print container created
+                                       case containercollection.EventTypeRemoveContainer:
+                                               // Print container deleted
+                                       }
+                               },
+                       )

                        parser.Sort(containers, []string{"runtime", "name"})

Fixed by https://github.com/inspektor-gadget/inspektor-gadget/pull/1084.

Actually, there is still missing the delete event. So, I think this task should not be closed yet.

Right, reopening then


[Issue 8382][Pulsar Function] Enable e2e encryption for Pulsar Function

(If this PR fixes a github issue, please add Fixes #<xyz>.)
Fixes #8382
Motivation
Add the e2e encryption support for Pulsar Functions
Modifications

Add CryptoConfig the encapsulate all the crypto related configs set by user
Add CryptoSpec to Function protobuf to container crypto information internally
Add CryptoUtils to help create instance, convert between CryptoConfig and CryptoSpec
Add crypto validation method in ValidatorUtils to ensure the provided CryptoKeyReader Class has a ctor with Map arg
Updated the cli to allow user set crypto for consumer/producer when submitting the function
Update PulsarSource, PulsarSink to use the crypto config if provided

Verifying this change

[x] Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): Added pulsar-client-messagecrypto-bc into puslar-function instance
The admin cli options: Added --producer-config to allow setting crypto related configs.

Documentation

Does this pull request introduce a new feature? Yes
If yes, how is the feature documented? not documented
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation: #8431

Now user can enable e2e encryption as follows:
./bin/pulsar-admin functions create --jar pulsar-functions/java-examples/target/pulsar-functions-api-examples.jar \
--classname org.apache.pulsar.functions.api.examples.ExclamationFunction  \
--inputs "persistent://public/default/input" --output persistent://public/default/output --producer-config '{"cryptoConfig": {"cryptoKeyReaderClassName": "org.apache.pulsar.functions.api.examples.RawFileKeyReader", "cryptoKeyReaderConfig": {"PUBLIC": "/Users/nlu/workspace/stream-native/pulsar/keys/test_ecdsa_pubkey.pem", "PRIVATE":"/Users/nlu/workspace/stream-native/pulsar/keys/test_ecdsa_privkey.pem"}, "producerCryptoFailureAction": "FAIL", "encryptionKeys":["myapp1"]}}'

./bin/pulsar-admin functions create --jar pulsar-functions/java-examples/target/pulsar-functions-api-examples.jar \
--classname org.apache.pulsar.functions.api.examples.ExclamationFunction  \
--input-specs '{"persistent://public/default/output": {"cryptoConfig": {"cryptoKeyReaderClassName": "org.apache.pulsar.functions.api.examples.RawFileKeyReader", "cryptoKeyReaderConfig": {"PUBLIC": "/Users/nlu/workspace/stream-native/pulsar/keys/test_ecdsa_pubkey.pem", "PRIVATE":"/Users/nlu/workspace/stream-native/pulsar/keys/test_ecdsa_privkey_2.pem"}, "consumerCryptoFailureAction": "FAIL"}}}' \
--output persistent://public/default/output-2

One requirement is the provided cryptoKeyReaderClass must has a constructor with Map<String, Object> parameter for initialization. And the argument is provided via cryptoKeyReaderConfig in the cli

ping @sijie @srkukarni Could you please help review this PR?

@nlu90 great contribution!

Doc has been added in https://github.com/apache/pulsar/pull/8648/files


Scaffold crate and CI

Add empty cargo lib with baseline tests and crate meta config.
Add README.
Add GitHub Actions CI and repository labels.
Add @dependabot config.

markdown link check is known broken:

FILE: ./vendor/README.md
2 links checked.
FILE: ./README.md
[✖] https://docs.rs/strftime-ruby → Status: 404
[✖] https://artichoke.github.io/strftime-ruby/strftime-ruby/ → Status: 404
17 links checked.
ERROR: 2 dead links found!
[✖] https://docs.rs/strftime-ruby → Status: 404
[✖] https://artichoke.github.io/strftime-ruby/strftime-ruby/ → Status: 404

Filed this ticket in project-infrastructure to get this repository managed:

https://github.com/artichoke/project-infrastructure/issues/297