The docker images cannot run on ARM

The following is run log:
# docker compose logs
pentaract  | exec /pentaract: exec format error
pentaract  | exec /pentaract: exec format error
pentaract  | exec /pentaract: exec format error
pentaract  | exec /pentaract: exec format error
pentaract  | exec /pentaract: exec format error
pentaract  | exec /pentaract: exec format error
pentaract  | exec /pentaract: exec format error
pentaract  | exec /pentaract: exec format error

Is the server or yours ARM based?

yes

Is the server of yours ARM based?

yes

How bad man


Confusing "call answering options" description

The text in "Select the call answering options" section says:
"You can select up to 200 call agents belonging to specified mailing lists or groups. Call agents must be either:

An Online user with a Phone System license and enabled for Enterprise Voice or with a Calling Plan.
Online users with a Phone System license and a Calling Plan that are added to ... a ... Group."

It is slighly better than it was before, but still very confusing.
Please refer to https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/1553

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

ID: b755d9ae-13ac-019f-f5f4-a95b1eee2989
Version Independent ID: f7afd8ad-e6e0-6c79-aed1-4ee87d48ba12
Content: Create a call queue
Content Source: Teams/create-a-phone-system-call-queue.md
Service: msteams
GitHub Login: @jambirk
Microsoft Alias: jambirk

@shivtorov
Thank you for submitting this feedback.
I will get this over to for investigation. Thank you for reporting and making the docs better. Much appreciated.

@officedocsbot assign @scanum

@shivtorov Thank you for reaching out, I'm looking into it.

Hello @shivtorov and thank you for contacting the GitHub team!  I agree that the wording in that section could be a lot better.  I will sort out the wording to not only flow a lot smoother, but also make a lot more sense.  If you have any other questions regarding this, feel free to comment them below, thanks!

hi @TokyoScarab
I suggest to further clarify your phrase "mailing lists or groups" with more specific list:

Office 365 group
security group
distribution list

@TokyoScarab

@scanum I have made all the suggested edits.  Everything should be in place

@shivtorov Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

@officedocsbot close


Add sensor “lidar.ray_cast_semantic”

Hi.
I need to add the sensor "sensor.lidar.ray_cast_semantic" in Carla, I have a script where I spawn the sensor. But when I run the bridge it gives the error "CarlaIssue: 'sensor not exists'". I don't need to use it in autoware so I don't need to pass any data to autoware, just into Carla. I also tried editing sensor bridge files like world.py or lidar.py but the error did not resolve. To add this sensor do I need to edit any particular files or do anything else?

I think there is a bug here
https://github.com/evshary/zenoh_carla_bridge/blob/ea2c19861caeded9ff44109f2403c6b955975e96/src/autoware.rs#L134
This should be modified as list_lidar_semantics.
However, you can just comment the SensorType::LidarRayCastSemantic part and compile again if you don't need to bridge this to the Autoware.

I'll close the issue. Feel free to reopen it if there is any further problem.


proposal: Add a "what is the edge" section to the docs.

Hello.
For laymen reading the documentation, the concept of "the edge" might sound a bit obscure.
Currently, there are two distinct mentions of "the edge" in the documentation, but, as this article elaborates, it might be a bit difficult to get a full-fledged idea of the edge from reading them.
I'm hereby suggesting, if that's ok, the addition of a "what is the edge" section to the documentation.
Warm wishes to all of you. You're doing a great work. Cheers!

The official Deno youtube channel has videos like (Kitson Kelly's "Deno on the Edge" at MelbJS Meetup)[https://www.youtube.com/watch?v=G_2AgdgEbkI] and (Ryan Dahl's "My Dream Stack" at RemixConf 2022)[https://www.youtube.com/watch?v=3NR9Spj0DmQ] which explains it well.

@About7Sharks Thanks a lot for your reply!
After watching the videos, I better understand the reletionship between Fresh, the edge, and Deno Deploy. Still, I think that the documentation could make some clarifications.
In one part of the talk, Ryan Dahl says that "running at the edge" means that the server infrastructure should respond to the user with a geographically close data center.
I find it confusing that the documentation says that "[Fresh] is intended to be deployed to an edge runtime like Deno Deploy." That suggests that Deno Deploy is an "edge runtime" among many others, which is not the case.
I think a better way to put it could be to say that Fresh can run on any server with "deno" (belonging to an edge infrastructure or not.) But actually, Fresh is meant to run on Deno Deploy, which is far more than a simple "edge runtime"; It is a particular runtime infrastructure that also includes concepts like "serverless," "post-Unix," "V8 isolates," and "JIT rendering."
Calling Deno Deploy just "the edge" seems to sell it short and generate confusion.


add Official Home Edition pybricks programs

@dlech @laurensvalk I have managed use PyBricks 2.0 to program certain Home-Edition robots, and I must say it's a fabulous programming experience! :) Thank you for initiating and driving this Pythonic API.
I notice that this PyBricks demo/example programs repo has got the Education Edition programs populated, but no Home Edition ones yet. Would you welcome contribution from community members like me to complete those? If yes, do you have certain standards for pull requests?
I have pushed a folder for Ev3rstorm here for your consideration and further guidance.
Many thanks again. :)

Thank you for your contributions so far!
We're still in the process of establishing standards for projects - see also https://github.com/pybricks/support/issues/94, so it may take a bit of time before we review and merge this.

@laurensvalk  thank you. Yes, having standards defined for the official LEGO Education / PyBricks tutorials would provide very helpful clarity to community contributors. :)
My son @AntoniLuongPham and I are having a summer-long endeavor of building and programming all of the Home Edition core & fan robots with Python. This month or by early August, we would likely be done with the 5 core ones, the PyBricks code for which will be in this PR for your review and feedback. After that, we plan to embark on the more complex fan robots and contribute our PyBricks code in a separate PR, since we don't know how long those 12 robots will take us.
Btw, @AntoniLuongPham is 6-year old and he declares PyBricks to be his favorite textual API for EV3 (over the Swift Playground EV3 Sandbox and EV3Dev2), which speaks to the friendliness and ease of use of PyBricks. :) Since he has enjoyed this excellent tool, I encourage him to contribute back the code for the robots he builds -- obviously with lots of my help for directory layouts and docstrings.

Thanks for the continued work on this. I haven't looked at it in detail yet, but one high-level comment I have is that multiple-inheritance is quite tricky in MicroPython, so it would be nice if we could avoid using it.

@dlech that's interesting, we were unaware of that. May we have some links to this MicroPython issue so that I can understand it a bit better? Actually @AntoniLuongPham and I have used multiple inheritance in many micropython (EV3Dev2) and pybricks-micropython programs and have not encountered any notable problems.
Regarding this PR, there are 3 instances of multiple inheritance:

class Ev3rstorm(RemoteControlledTank, EV3Brick)
class Gripp3r(RemoteControlledTank, EV3Brick)
class Track3r(RemoteControlledTank, EV3Brick)

Since PyBricks doesn't have a utility RemoteControlledTank, we have coded such a class and coped-and-pasted it across these programs.
Do you prefer fixing the multiple-inheritance usage by:

moving the RemoteControlledTank code into the robot classes; or
use self.ev3_brick = EV3Brick() ("has a") instead of inheriting EV3Brick ("is a")?

Thank you @dlech!

May we have some links to this MicroPython issue so that I can understand it a bit better?

Some of the differences from CPython are documented here: https://docs.micropython.org/en/latest/genrst/core_language.html#classes.
Open issues related to multiple inheritance are here: https://github.com/micropython/micropython/search?q="multiple+inheritance"&state=open&type=Issues

Basic usage works as you have seen, but there are hidden surprises that can cause problems for the unsuspecting user.

1. moving the `RemoteControlledTank` code into the robot classes; or

Since the code is already duplicated this might make more sense.

First of all, thanks for the contributions. I hope you and your son have had a lot of fun working on this!
A few notes and questions at first glance:

It appears that the project settings are missing. Our intention with this repository is that each project can be used independently. Perhaps you can have a look at how the education robot projects are structured.
In the same vain, having if __name__ == '__main__': is not required. It can certainly be useful if you want to make the classes reuable. But if that's the goal, it would be nice to demonstrate it by having, for example, a gripper.py with the class. And then a main.py that imports, initializes and calls it. Here is one example of such a multi-file project (in this case with a function instead of a class, but the same applies.)

Do you prefer fixing the multiple-inheritance usage by:
moving the RemoteControlledTank code into the robot classes; or
use self.ev3_brick = EV3Brick() ("has a") instead of inheriting EV3Brick ("is a")?

I suppose both could work. In general, though, EV3STORM isn't an EV3 Brick. It is a robot that has an EV3 Brick, but there's definitely multiple styles to achieve the same goal :)
Once you're happy with your final code, would you mind if we made some changes to the commits to match the style of this repository?

@laurensvalk I fully agree that "has-a" is a much more natural and understandable way for each Robot to declare the EV3Brick. We have hence revised the code to use self.ev3_brick = EV3Brick() instead of inheriting EV3Brick.
Regarding the projects' directory layouts:

We shall work on the VSCode project settings, following the Education project settings, as you recommended

We notice that each of the Education robots at https://github.com/pybricks/pybricks-projects/tree/master/official_models/ev3/education_core seems to have only one main.py file, whose contents is rendered on the documentation site at, say, https://pybricks.github.io/ev3-micropython/examples/color_sorter.html. Do we need to comply with this pattern as well to make it easy for you to render the docs? We initially planned to write code in a more modularized manner, but after noticing this everything-in-main.py pattern we have attempted to match it. Please let us know. :)

P.S.: @AntoniLuongPham has enjoyed his EV3 programming activity tremendously throughout the 2nd half of his Kindergarten year (learned-from-home because of Covid) as well as the whole summer (without our usual road trips). You can see he how excited he is when sharing about his programmed creations on YouTube, including the official models as well as some weird stuff he thought up! :) @AntoniLuongPham really wants to rush through all the robots as quickly as possible, but I've made him slow down and take the necessary time to try out all the various APIs (PyBricks, EV3Dev, Swift Playground) to learn deeper programming patterns.
@dlech @laurensvalk you can also see that the EV3Dev Browser on VSCode is a fantastic medium that's very easy to use even for young programmers -- huge, huge thanks to you and other leaders in the community!!

Thanks for the updates!
On this branch I've squashed some of the commits together to leave one commit per model (and so both of you will still be in the main git history).
Could you verify that this looks allright to you? All the files should be there, but let me know if I missed anything.

 To follow up, we have done the following:

Refactor the 5 programs to fix the linters' warnings

To make it easy for the Official Models' examples to render on your doc site, we are following how you've done the Education Edition programs and hence still keeping the code for each robot in one single main.py file (instead of modularizing the code into, say, for Ev3rstorm, rc_tank_util.py, ev3rstorm.py and main.py)

We have the following questions re: the VSCode project settings checked into GitHub:

Should be set the python.linting.enabled config as true instead of false, given that you want consistency across the submitted programs' styles? If yes, which linter(s) should we enable?
Maybe we can add editor.rulers: [79] as well to show the line-length-limit ruler in the editor.

Great, thanks!

To make it easy for the Official Models' examples to render on your doc site,

Note that the documentation does not render any programs, it just links to the projects repository, so there is no objection against multi-file projects. Single programs are fine too though.

We have the following questions re: the VSCode project settings checked into GitHub:

Let's keep them at the default values for new projects. Perhaps we need to update the settings for the Education models too, then.

@laurensvalk re: the doc site, I'm a little confused whether https://pybricks.github.io/ev3-micropython (which is linked from https://education.lego.com/en-us/support/mindstorms-ev3/python-for-ev3, and which renders the main.py code, e.g. https://pybricks.github.io/ev3-micropython/examples/color_sorter.html) or https://docs.pybricks.com is the site to go to. Is one of them going to be deprecated/removed?

The former documentation is only for EV3. LEGO education has tested and approved it for their use case. This includes the EV3 education programs. That documentation version will probably stay the same for a long time, providing a consistent experience for teachers and students. It gets updated only if errors are found.
The second link is the main open source Pybricks documentation. This includes EV3 as well as all the other programmable hubs. It continues to evolve as we add more features to Pybricks over time and work towards the next release.

@laurensvalk ah, I understand now, thanks for the clarification.
If that's the case, let us refactor these programs a bit further to make them more modularized. Will let you know when done.

@laurensvalk we have completed the refactoring. :)

for those robots with a drive base, we've created rc_tank_util.py, which can be copied and pasted for use in other cases
for Track3r, we've created 1 file for each variant, e.g. track3r_with_biblade_spinner.py, track3r_with_heavy_hammer.py
we've also updated the VSCode settings to enable linting (which is the default)

I just merged it. Thanks for the hard work!

@laurensvalk @dlech thank you very much for your review and merge!
@AntoniLuongPham and I have already started on the Home Bonus robots and shall submit new PRs -- the first one being for Dinor3x -- soon. :)
Many thanks again, looking forward to new PyBricks developments!


Improve styling of comments-template

The comments.php is certainly something that can be improved upon. Maybe you have ideas about this yourself?

Yes, I have some ideas


fix:Typo and make content more consistent

First change, zk is not indicating it is zksync era or lite, therefore we should make it more clear in the description.
Second change, Consistency in Terminology: Ensure consistency in how you refer to similar items. For example, if you refer to "front end" in one place and "frontend" in another, choose one and stick with it.
Since we use front end multiple times in line 19-21, we would better to change line 10 to front end as well.
What ❔

Why ❔

Checklist

[ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.
[ ] Code has been formatted via zk fmt and zk lint.
[ ] Spellcheck has been run via zk spellcheck.
[ ] Linkcheck has been run via zk linkcheck.

wrong commit format


cli: fixed command line usages

Currently, it is these two usages don't result in the same output:
$ flynn --something a
$ flynn --something=a

This PR fixes this.

Note, writing --input ARG (opposed to --input=ARG) is ambiguous, meaning it is not possible to tell whether ARG is option's argument or positional argument. In usage patterns this will be interpreted as option with argument only if option's description (covered below) for that option is provided. Otherwise it will be interpreted as separate option and positional argument.
Source

Notes:

This is the follow-up to #1153
I wasn't able to test it on my environment, please check if nothing got broken

not sure why tests fail

This looks good! One minor note: would you please amend the sign off in the commit message to have your name instead of your username? Thanks!

Sure :)

Thanks!


Feature/batch get items fix

bug fix batchGetItems: relaunch method if not all elements have been returned

bug fix batchWriteItems: relaunch method if not all elements have been written

feat: add putTransactionItems: transactionnal putItems in DynamoDB

feat: add getTransactionItems: transacionnal   getItems in DynamoDB

Codecov Report

Merging #6 (3aacef6) into master (952012a) will decrease coverage by 7.44%.
The diff coverage is 58.42%.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   91.35%   83.91%   -7.45%
==========================================
  Files           4        4
  Lines         324      404      +80
  Branches       81      101      +20
==========================================
+ Hits          296      339      +43
- Misses         21       51      +30
- Partials        7       14       +7

Impacted Files
Coverage Δ

src/DynamoTools.js
81.93% <58.42%> (-9.81%)
:arrow_down:

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 952012a...3aacef6. Read the comment docs.


feature:make cli better

Signed-off-by: yunfeiyangbuaa<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

fixes #908
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
supernode:
yunfeiyang@buaa:~/go/src/github.com/dragonflyoss/Dragonfly/cmd/supernode$ sudo go run main.go -h
Usage:
  Dragonfly Supernode [flags]
  Dragonfly [command]

Available Commands:
  help        Help about any command
  version     Show the current version of supernode

Flags:
      --advertise-ip string             the supernode ip is the ip we advertise to other peers in the p2p-network
      --config string                   the path of supernode's configuration file (default "/etc/dragonfly/supernode.yml")
  -D, --debug                           switch daemon log level to DEBUG mode
      --down-limit int                  download limit for supernode to serve download tasks (default 5)
      --download-path string            download path specifies the path where to store downloaded filed from source address (default "/home/admin/supernode/repo/download")
      --download-port int               downloadPort is the port for download files from supernode (default 8001)
      --fail-access-interval duration   fail access interval is the interval time after failed to access the URL (default 3m0s)
      --gc-initial-delay duration       gc initial delay is the delay time from the start to the first GC execution (default 6s)
      --gc-meta-interval duration       gc meta interval is the interval time to execute the GC meta (default 2m0s)
  -h, --help                            help for Dragonfly
      --home-dir string                 homeDir is the working directory of supernode (default "/home/admin/supernode")
      --max-bandwidth int               max bandwidth is the max network rate that supernode can use (unit: MB/s) (default 200)
      --peer-gc-delay duration          peer gc delay is the delay time to execute the GC after the peer has reported the offline (default 3m0s)
      --pool-size int                   pool size is the core pool size of ScheduledExecutorService (default 10)
      --port int                        listenPort is the port that supernode server listens on (default 8002)
      --profiler                        profiler sets whether supernode HTTP server setups profiler
      --system-bandwidth int            system bandwidth is the network rate reserved for system (unit: MB/s) (default 20)
      --task-expire-time duration       task expire time is the time that a task is treated expired if the task is not accessed within the time (default 3m0s)
      --up-limit int                    upload limit for a peer to serve download tasks (default 5)

Use "Dragonfly [command] --help" for more information about a command.

dfget:
yunfeiyang@buaa:~/go/src/github.com/dragonflyoss/Dragonfly/cmd/dfget$ sudo go run main.go -h
dfget is the client of Dragonfly which takes a role of peer in a P2P network.
When user triggers a file downloading task, dfget will download the pieces of
file from other peers. Meanwhile, it will act as an uploader to support other
peers to download pieces from it if it owns them. In addition, dfget has the
abilities to provide more advanced functionality, such as network bandwidth
limit, transmission encryption and so on.

Usage:
  dfget [flags]
  dfget [command]

Examples:

$ dfget -u https://www.taobao.com -o /tmp/test/b.test --notbs --expiretime 20s
--2019-02-02 18:56:34--  https://www.taobao.com
dfget version:0.3.0
workspace:/root/.small-dragonfly
sign:96414-1549104994.143
client:<IP_ADDRESS> connected to node:<IP_ADDRESS>
start download by dragonfly...
download SUCCESS cost:0.026s length:141898 reason:0

Available Commands:
  gen-doc     Generate Document for dfget command line tool with MarkDown format
  help        Help about any command
  server      Launch a peer server for uploading files.
  version     Show the current version of dfget

Flags:
      --alivetime duration    alive duration for which uploader keeps no accessing by any uploading requests, after this period uploader will automatically exit (default 5m0s)
      --cacerts strings       the cacert file which is used to verify remote server when supernode interact with the source.
      --callsystem string     the name of dfget caller which is for debugging. Once set, it will be passed to all components around the request to make debugging easy
      --clientqueue int       specify the size of client queue which controls the number of pieces that can be processed simultaneously (default 6)
      --console               show log on console, it's conflict with '--showbar'
      --dfdaemon              identify whether the request is from dfdaemon
      --expiretime duration   caching duration for which cached file keeps no accessed by any process, after this period cache file will be deleted (default 3m0s)
  -f, --filter string         filter some query params of URL, use char '&' to separate different params
                              eg: -f 'key&sign' will filter 'key' and 'sign' query param
                              in this way, different but actually the same URLs can reuse the same downloading task
      --header strings        http header, eg: --header='Accept: *' --header='Host: abc'
  -h, --help                  help for dfget
  -i, --identifier string     the usage of identifier is making different downloading tasks generate different downloading task IDs even if they have the same URLs. conflict with --md5.
      --insecure              identify whether supernode should skip secure verify when interact with the source.
      --ip string             ip address that server will listen on
  -s, --locallimit string     network bandwidth rate limit for single download task, in format of 20M/m/K/k
  -m, --md5 string            md5 value input from user for the requested downloading file to enhance security
      --minrate string        minimal network bandwidth rate for downloading a file, in format of 20M/m/K/k
  -n, --node strings          specify the addresses(host:port) of supernodes
      --notbs                 disable back source downloading for requested file when p2p fails to download it
  -o, --output string         destination path which is used to store the requested downloading file. It must contain detailed directory and specific filename, for example, '/tmp/file.mp4'
  -p, --pattern string        download pattern, must be p2p/cdn/source, cdn and source do not support flag --totallimit (default "p2p")
      --port int              port number that server will listen on
  -b, --showbar               show progress bar, it is conflict with '--console'
  -e, --timeout int           timeout set for file downloading task. If dfget has not finished downloading all pieces of file before --timeout, the dfget will throw an error and exit
      --totallimit string     network bandwidth rate limit for the whole host, in format of 20M/m/K/k
  -u, --url string            url of user requested downloading file(only HTTP/HTTPs supported)
      --verbose               be verbose

Use "dfget [command] --help" for more information about a command.
yunfeiyang@buaa:~/go/src/github.com/dragonflyoss/Dragonfly/cmd/dfget$

Ⅴ. Special notes for reviews

Codecov Report

Merging #909 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #909      +/-   ##
==========================================
- Coverage   46.65%   46.63%   -0.02%
==========================================
  Files         111      111
  Lines        6602     6602
==========================================
- Hits         3080     3079       -1
  Misses       3278     3278
- Partials      244      245       +1

Impacted Files
Coverage Δ

cmd/supernode/app/root.go
57.93% <100%> (ø)
:arrow_up:

cmd/dfget/app/server.go
51.21% <100%> (ø)
:arrow_up:

cmd/dfget/app/gen_doc.go
59.09% <100%> (ø)
:arrow_up:

cmd/dfget/app/root.go
64.28% <100%> (ø)
:arrow_up:

supernode/daemon/mgr/scheduler/manager.go
21.91% <0%> (-0.69%)
:arrow_down:

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 d28e8f8...8e983a8. Read the comment docs.

https://github.com/dragonflyoss/Dragonfly/pull/852

The files in docs/cli_reference are generated automatically. It's unnecessary to modify them manually.

get

@Starnop  Done

LGTM>

Could you please rebase your code and push it again.

Any update on this?  @yunfeiyanggzq
If you have confirmed to have rebased to the latest master, we can merge this now. Thanks

Sorry,I ignored the email,I will rebase it today @Starnop @allencloud

done  @Starnop @allencloud


Я плохо умею быть администратором

У нас проблема, если я дам правильный ID, я не смогу зайти в администрацию.

Hi, first of all check if you have entered the correct telegram id. You can find your ID at this bot
Next, check how the ADMINS_IDS variable is specified in the data/.env file. Let's say your ID is 123456. The variable should look like ADMINS_IDS = '123456,'. There is no admin panel as such, the commands available to the administrator can be found here.

Да, уже работает, можно ли добавить больше серверов? Или только один?

There is no way to create a network of servers right now, maybe this feature will come later.

well thank you

Is there a way to translate this script? I translated the keyboard and the keyboard doesn't work and neither do the commands.

Did you change handlers registration rules in handlers/__init__.py ?

We need to change the text in handlers/__init__.py so that it matches what is in the keyboard. In fact, the keyboard that is not bound to a message (inline) is the buttons for sending messages. Handlers are set to specific messages, by changing the buttons on the keyboard - you have not changed the conditions for the script to trigger.

reply keyboards (buttons with text under textarea): keyboards/reply.py
inline keyboars: keyboards/inline.py

bro payments with stripe not work...


Adds more candidate info from Civic Information API to database.

What is a quick description of the change?
{This change adds to the info compiler so that it draws more candidate information from the Civic Information API}
Is this fixing an issue?
{}
Are there more details that are relevant?
{Fill in here or 'none'}
Check lists (check x in [ ] of list items)

[ x ] Test written/updating
[ x ] Tests passing
[  ] Coding style (indentation, etc)

Please explain why any are not present, if any.
Any additional comments?
Not ready for review

LGTM pending other comments!


fix(mixin): refactor test cases related to pr 108

refactor test cases related to pr 108
gh-107
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Intermediate change (work in progress)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

[ ] Performed a self-review of my own code
[ ] npm test passes on your machine
[ ] New tests added or existing tests modified to cover all changes
[ ] Code conforms with the style guide
[ ] API Documentation in code was updated
[ ] Any dependent changes have been merged and published in downstream modules

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


iCloud Keychain

Hi, thanks for the great extension!
I'm using iOS Safari + Snort + Nostore which works very well. However, I would like to store my private key in a more secure way.
Is it possible to access iCloud Keychain (or similar one) from the Safari extension? It would be great if the extension would store the private key in an encrypted area.

Thank you for your interest!
Currently, the browser APIs for extensions do not allow access to keychain (as far as I can tell since they are a bit of a mess). However, all Safari extensions come packaged with a native application wrapper. It is possible, I believe, through native messaging, to access those native services through the application wrapper.
It is my plan for the next major release, whenever that is, to move key management into the native portion of the app, utilizing the Apple keychain. Also, potentially make use of other OS security features like biometrics, where applicable.
I am currently exploring options for this.
I will keep this open as a tracking issue. Thanks again!


Convert to Python3

Not including Python2 compatibility, as it is now officially deprecated.

does this work as expected? any reason to not merge this?


i18n(zh-cn): Update imports.mdx

Description (required)
Update imports.mdx
Related issues & labels (optional)

#8981
Suggested label: i18n

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

zh-cn
guides/imports.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Updated KEYCODE.md

Changed the error in line 4 from 'leacy' to 'deprecated'

Can you please create an issue for it @Tejesh18 ?

Can you please create an issue for it @Tejesh18 ?

I think its already there with an issue 'Typo in KEYCODE.md'

This is been fixed, hence closing.


coord TypeError in coord_genotypes.py

Hi, I'm currently running this command:
python3 ldpred/LDpred.py coord --gf=chr1_plink.AllDuplicatesRemoved --ssf=GWAS_COMBO_hg38_chr1_noNaN.tsv --N=2504 --out=COORD_OUT_CONGEN_chr1 --ssf-format STANDARD
But I ran into this error:
Traceback (most recent call last):   File "ldpred/LDpred.py", line 245, in <module>     main()   File "ldpred/LDpred.py", line 230, in main     coord_genotypes.main(p_dict)   File "/u/project/arboleda/joshuazh/GWAS_recode_VCF/ldpred/ldpred/coord_genotypes.py", line 728, in main     debug=p_dict['debug'])   File "/u/project/arboleda/joshuazh/GWAS_recode_VCF/ldpred/ldpred/coord_genotypes.py", line 263, in coordinate_genot_ss     ok_freq_snps = sp.negative(freq_discrepancy_snp) TypeError: The numpy boolean negative, the -operator, is not supported, use the~ operator or the logical_not function instead.
From googling, it seems like this has happened before for other programs, and the solution has always been to update one of the following: numpy, scipy, h5py, and pandas. I've updated all of them, however, and it hasn't resolved the issue.
I know this might not be related to your code exactly, but I would appreciate any help you could offer. For now I'll just try to simply do as the error says and edit my local version of LDpred to use ~.
Best,
Josh
EDIT: If it helps, simply changing sp.negative to ~ seems to work fine.

Thanks, it seems that we should use logical_not instead. What version of numpy and python are you using?  I believe this could be a numpy v. 1.16.x issue.

I'm using numpy 1.16.1 and python 3.7.2.

I fixed this now.


Blazor demo project only shows "Loading..." page on some browsers

Describe the bug
I've tried the Blazor demo project for an evaluation in my company and only see the "Loading..." page on Microsoft Edge and IE11, but everything works fine on all other browsers.
To Reproduce
Steps to reproduce the behavior:

Use higher security settings on used browsers.
Install according to this guide: https://docs.microsoft.com/de-de/aspnet/core/blazor/get-started?view=aspnetcore-3.0&tabs=visual-studio
Run from Visual Studio in Edge or IE11 --> stuck on "Loading..." screen
Run in every other Browser --> works fine

Expected behavior
Same behavior in every browser
Additional context
This issue is only on my company device with higher security settings in every browser. If the same template runs on my private machine, everything works fine.
But if Blazor is (randomly?) blocked by some browsers with higher security settings, it is not acceptable even for a test application, because I don't know if it works for some users and for some users not.
Unfortunately I don't have permissions on my company device to see the exact security settings, but, are there any know issues which settings might affect Blazor?

Thanks for contacting us, @Gogglehead.
Your repro steps aren't clean enough. Can you provide the full list of granular policies you've set for those two browsers?
In the meantime, we're going to create a docs article or a wiki page as part of https://github.com/aspnet/AspNetCore/issues/10237 to create a Browser support matrix.

Hi. We're closing this issue as we have heard no response from you for some time now. If you have more details and are encountering this issue please add a new reply and re-open the issue.


Feature/app config support

Initial Support for Web.config and App.Config files.

Looks good, once the #if discussion is concluded.


[BUG]: Hi there I am trying to the Mac app and its give me "Document Processor Unavailable" and don't let me upload any file

How are you running AnythingLLM?
AnythingLLM desktop app
What happened?

Are there known steps to reproduce?
No response

got the same problem with you;
i reinstalled the latest dmg from official website and still not working.

If you uploaded an audio / video file, what's happening is that it's transcribing the file & that takes a while. On my PC it takes ~1m for every 1m of audio.
For some reason it pauses the queuing function while it's working. When the transcription is finished, the document processor will come back online.
You can read my documentation of the issue here: https://github.com/Mintplex-Labs/anything-llm/issues/849

no its not letting to upload any file from start, like I made the workflow and when I press upload file I got this msg.

@ub1979
What OS are you on for mac?
What chip are you running (intel/M-series)
Can you open the Terminal application and run this - make sure the currently running app is fully quit:
/Applications/AnythingLLM.app/Contents/MacOS/AnythingLLM  (then press enter)
It will start the app like usual but all logs will be dumped to terminal. Can you paste that output into here? We have seen this issue on Windows but never on Mac and it will be easier to debug this way.
If you can do this we can fully squash this issue as others have not been able to provide us these logs and we cannot replicate it on any machine we get our hands on.

Hi @timothycarambat I'm having the same issue on M1 Mac, here are the logs:
Seems like a permission issue and a missing Prisma module. Are there any additional steps after installation I might've missed?
`Already in sync, no schema change or pending migration was found.
EPERM: operation not permitted, open '/Applications/AnythingLLM.app/Contents/Res
ources/backend/node_modules/.prisma/client/index.js'
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error:
EPERM: operation not permitted, open '/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/.prisma/client/index.js'
node:internal/modules/cjs/loader:1087
throw err;
^
Error: Cannot find module '.prisma/client/index'
Require stack:

<EMAIL_ADDRESS>/Applications/AnythingLLM.app/Contents/Resources/backend/server.js
at node:internal/modules/cjs/loader:1084:15
at Function._resolveFilename (node:electron/js2c/utility_init:2:3040)
at node:internal/modules/cjs/loader:929:27
at Function._load (node:electron/js2c/asar_bundle:2:13327)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@prisma/client/index.js:2:6)
at Module._compile (node:internal/modules/cjs/loader:1271:14)
at Object..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
<EMAIL_ADDRESS>'/Applications/AnythingLLM.app/Contents/Resources/backend/server.js',
undefined
]
}

Node.js v18.16.1
Collector hot directory and tmp storage wiped!
[production] AnythingLLM Standalone Document processor listening on port 59647
`

Solved it, the problem is due to System Integrity Protection (SIP) on macOS. To solve you just need to install it inside the Applications folder of the current user and not in the root application folder.
Hope it helps!

@PieroPicc THANK YOU. This is almost certainly the case as well for multi-user Windows systems that are encountering this issue. The app should only be installed as the current user as the global /Applications will fail due to perms.
Ping me in Discord if you want a contributor badge, this headache is worthy of one. In the meantime I will see if there is a way to prevent that kind of install error from occuring.

Terminal run /Applications/AnythingLLM.app/Contents/MacOS/AnythingLLM is working, for me;
don't know how to 'install it inside the Applications folder of the current user and not in the root application folder.',
i only can see ONE application folder, and open in folder or Dock is not working.

@luoluoter In Finder click in Go -> "Go to Folder" -> ~/Applications and drag the app from the root application folder and into that one. The dock shows both I believe.

Also related #875 if this does not solve your issue

Same issue on MacOS.
Working fine on Intel MacBook, but getting Document Processor Unavailable on M1
Here is M1 log
Applications/AnythingLLM.app/Contents/MacOS/AnythingLLM
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "anythingllm.db" at "file:/Users/Melanj/Library/Application Support/anythingllm-desktop/storage/anythingllm.db"
Already in sync, no schema change or pending migration was found.
✔ Generated Prisma Client (v5.3.1) to ./node_modules/@prisma/client in 86ms
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v5.3.1) to ./node_modules/@prisma/client in 89ms
Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()
See other ways of importing Prisma Client: http://pris.ly/d/importing-client
[OllamaProcessManager] Ollama will bind on port 11434 when booted.
[TELEMETRY ENABLED] Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM.
Collector hot directory and tmp storage wiped!
[production] AnythingLLM Standalone Document processor listening on port 8888
prisma:info Starting a sqlite pool with 17 connections.
[TELEMETRY SENT] {
event: 'server_boot',
distinctId: '...',
properties: { runtime: 'desktop' }
}
Skipping preloading of AnythingLLMOllama - LLM_PROVIDER is lmstudio.
[production] AnythingLLM Standalone Backend listening on port 3001

Its been pointed out before that moving the App from /Applications to /User/Applications will solve this. This may be the issue

@timothycarambat just tried that, but it did not not help

same prob on the hosted trial


Flexible ENV configuration - Dotenv-webpack integration

Is your feature request related to a problem? Please describe.
React Slingshot should be more versatile when dealing with multiple environments and their configuration.
Dotenv should be supported via Dotenv-Webpack.
Describe the solution you'd like
Dotenv-webpack plugin should be integrated into the  webpack.config.dev.js and  webpack.config.prod.js
// webpack.config.dev.js

// omitted
plugins: [
    new Dotenv({systemvars: true}),
    new HardSourceWebpackPlugin(),
    new webpack.HotModuleReplacementPlugin(),
// omitted

// webpack.config.prod.js

// DefinePlugin and GLOBALS is no longer needed

// const GLOBALS = {
//   'process.env.NODE_ENV': JSON.stringify('production'),
//   __DEV__: false
// };

// omitted
plugins: [
    // new webpack.DefinePlugin(GLOBALS),
    new Dotenv({systemvars: true}),
// omitted

Remove the following from tools/build.js. This should be controlled by the .env file not hard coded.
// tools/build.js

process.env.NODE_ENV = 'production';

A new .env.default file should be provided in the root directory, out of the box, with a similar approach:
// .env.default

NODE_ENV=
APP_NAME=
APP_RESOURCE_URL=

The src package should contain a new config directory, out of the box, with a similar approach:
// src/config/appConfig.js

import axios from "axios";

export default {
  site: {
    name: process.env.APP_NAME,
  },
  axiosClients: {
    resourceClient: {
      client: axios.create({
        baseURL: process.env.APP_RESOURCE_URL,
        responseType: 'json',
      })
    }
  }
};

Recommended: An .env entry should be added to the .gitignore file, out of the box.
To use the configuration simply import from the config file:
import config from "../config/appConfig";

console.log(config.site.name);

Describe alternatives you've considered

https://github.com/kentcdodds/cross-env
https://github.com/motdotla/dotenv

Additional context
When a user clones React Slingshot he/she will need to create a .env file. A stretch goal, the setup.js could generate one.
A deployment should work as follows:

Clone the git repo
Create a .env file for that environment or set the ENV variables manually.
Run npm install & npm run build (a new command should do with without opening)
Copy the dist folder to the hosting directory
Nginx points to that.

Overall, this is not perfect but gives a lot more flexibility when deploying to multiple ENVS.

PR https://github.com/coryhouse/react-slingshot/pull/590 attempts to implement this.


Change CI to only build on main branch

I would argue it is better to build on all commits, that is the point of CI: to inform you ASAP if your code breaks.
As a bonus, it also produces build artefacts, so you can beta-test without needing to build yourself.


Reject scope settings in config-only network

Signed-off-by: Alessandro Boch<EMAIL_ADDRESS>

LGTM


Add more commands

you should definitely add more commands

add a command to describe who you are and what you do
add a command to link to your portfolio (which is a website for all of your publications while you are on the IB, like the essays)

donezo


feat: use showInCreationDialog instead of multiple definitions

Cleaner Code and easier to extend @rolandschuetz

@paavo Thanks for the contribution.
Actually with the experience of the last 3 years I'm planing to change more things in the widget. I'll ping you when the PR is ready for feedback :)

@paavo Thanks for the contribution.
Actually with the experience of the last 3 years I'm planing to change more things in the widget. I'll ping you when the PR is ready for feedback :)

I'll drop you "our" modified version for inspiration via Slack.


V6/improvement/reduce rpc calls

Description
Added listener for Parameters storage contract. Implemented caching for functions inside parameters storage.
Type of change

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

How Has This Been Tested?
Tested in the local env, creating assets locally.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

One more idea we should consider, what if we use MySQL as a key-value store instead of caching in memory?


Tuya IR AC Controller showing as unsupported

Device Infomation JSON File
Hi

Can add support for MOES Smart AC Controller?

Its getting detected as hwktwkq category when starting up homebridge.

[9/29/2023, 10:41:19 PM] [Tuya] [TuyaDeviceManager] Get device specification failed. devId = bfbffa9d6e1ae777a0dapp, code = 2009, msg = not support this device

[9/29/2023, 10:41:23 PM] [Tuya] [TuyaDeviceManager] Get device specification failed. devId = bfaedc56357c98a272xgol, code = 2009, msg = not support this device

It gets detected as unsupported in homekit.

Thanks

Detail Informations

Hi Any update on this? thanks!
More info on the devices below from tuya IOT account

Ever figure it out?

Hey guys I figured it out, have a look at my comment here: https://github.com/0x5e/homebridge-tuya-platform/issues/489#issuecomment-2336529107
I have EXACT same Moes Smart AC Controller.

Alright, an updated comment here: https://github.com/0x5e/homebridge-tuya-platform/issues/489#issuecomment-2347634441


Avoid .Trash

Hi,
I really like the program but the issue I have with it is the .Trash folder. No matter what sub folders I select to mount, /.Trash is always in there.
In my case it contains over 1000 files, that I don't need in google-drive anymore but also don't want to throw into the void forever yet. I imagine, connecting this folder takes the most amount of time when trying to access the directory, which is especially noticeable when on a slow connection.
I figured, excluding the .Trash folder would greatly improve the usability and takes away the time to load the many file names and properties.
Now, I've searched a lot but I just cannot figure out how to archive this. There is 'delete_forever_in_trash_folder=true' but turning that on does not stop /.Trash from appearing.
Any ideas?
I am okay with files being gone forever if I delete them when working on the ocamlfuse mount.

In version 0.7.4, I've added the option disable_trash, to turn off trash bin fetching. I'm publishing this new version to the beta ppa and opam.

Could you update https://github.com/astrada/google-drive-ocamlfuse/wiki/What's-new ?

OK!


How set itemTemplate based on other field

Hi,
how can I handle itemTemplate of a field based on other field values?
Actually I have:
    {
         name: "RejectOrder",
                    itemTemplate: function (value, item) {
                        var $i1 = $("<i>").addClass("fa fa-times iconGrid").prop('aria-hidden', 'true').prop('title', 'Reject order').click(function (e) {
                            item.Operation = "reject";
                            alert(item.StoreOrder);
                            Solution.Common.showModal("Reject Order", ...

In other words I dinamically add a link that open a modal popup... now I need to disable the link if field "Accept", that is a bool value, is true... could you help me?
Thanks

in itemTemplate you get item with all the fields. So you can add any condition to the renderer depending on different item fields.


Updated Navbar Design

Related Issue
Navbar's Design Improvement #140
Proposed Changes

Alignment of navbar logo and other options
Navbar's color change when user scroll from homepage

Checklist

[x] ✅ My code follows the code style of this project.
[ ] 📝 My change requires a change to the documentation.
[ ] 🎀 I have updated the documentation accordingly.
[x] 🌟 ed the repo

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)

Output Screenshots
Website's Homepage with updated Navbar in Light mode

When User scrolls, Navbar color changes to white to go consistent with the theme

@agamjotsingh18


UI-Update/Query-API-Modification

Greetings,
I have implemented the following features and cleared bugs in the Lettuce Codebase which was mentioned below:

Imformal Names are Queried first using OMOP Database.

Made changes in the User Interface that user's will get results directly from the OMOP if they entered the formal name which matches correctly with the database.

Updated GUI so that all the results are shown to the human in the loop as well.

If no output was returned from the user's input, an option was provided where the user can select whether to use LLM or Not. If the user choose "yes", the LLM is used to get the formal name and then Queried first for OMOP Database.

Optimised the API when fetching results for multiple informal names (as API was called every time for each informal names. For eg: if the user provied 3 informal names, the API called for 3 times and results were fetched).
As a solution, I made the API to take the informal names as a list and called once which results in avoiding the API calls for multiple times.

I have also added logics if the user selects "No", then they will given an option to end the session and it returns a thank you messgae.

I have also tested the code multiple times and it works very well. Kindly review the code and do the needful.

As you can see, we have implemented the logic of fixing multiple queries in this commit.

If you could review #41 , you'll see a refactor. If it passes review, we can merge it and work from there. Also, if you recall, we discussed the fact we can't rely on users having database credentials, so calling omop directly from the UI isn't how we want to do this

In this commit, I've solved multiple bugs and added new features. Most of my logic still relied on app.py. In this commit, I've just added some new variables to fetch the results in GUI.
But as we can see,  you've moved everything to the router. Can I implement the same solution in the router's logic because I've not made any changes or used (OMOP_Matcher) to control the logic as I did earlier in #30.

OK so I've had a look.
The run endpoint now has the logic:

Query OMOP
If use_llm then try the LLM, then query OMOP for the LLM's guess

When I tried it, when I sent the use_llm request, the whole thing ran, so I ended up querying OMOP twice with the input.
Why not just make a request to run_db, then collect all the ones that want LLM queries in the UI, then make another request to the full pipeline?

Hi James,
I have updated the scripts and it works fine now. You can check once and push it on the main.


[JAX] Debug distributed attention tests

Description
We have been experiencing test failures in tests/jax/test_distributed_fused_attn.py. They seem related to https://github.com/NVIDIA/TransformerEngine/pull/964.
Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[ ] Code refractor

Changes

Remove unnecessary args from call to fused_attn

Checklist:

[x] I have read and followed the contributing guidelines
[x] The functionality is complete
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Pipeline 16856313

Pipeline 16894263


fix(layers_in_area): 14718, 14900 - smart city layers display and focus geometry style wasn't shown properly

Codecov Report

Merging #453 (fb3892a) into main (fad5cf6) will increase coverage by 0.11%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #453      +/-   ##
==========================================
+ Coverage   11.70%   11.81%   +0.11%
==========================================
  Files         554      561       +7
  Lines       39665    40221     +556
  Branches     1184     1198      +14
==========================================
+ Hits         4642     4753     +111
- Misses      34579    35019     +440
- Partials      444      449       +5

Impacted Files
Coverage Δ

...geometry_editor/atoms/focusedGeometryEditorAtom.ts
0.00% <0.00%> (ø)

...yersDetailsResource/areaLayersDetailsParamsAtom.ts
0.00% <0.00%> (ø)

...ayers_in_area/atoms/areaLayersLegendsAndSources.ts
0.00% <0.00%> (ø)

src/features/layers_in_area/types.ts
0.00% <0.00%> (ø)

...c/features/layers_in_area/utils/legendFormatter.ts
0.00% <0.00%> (ø)

src/core/notifications/NotificationService.ts
53.70% <0.00%> (-5.00%)
:arrow_down:

src/views/Map/Map.tsx
0.00% <0.00%> (ø)

...r_profile/components/SettingsForm/SettingsForm.tsx
0.00% <0.00%> (ø)

src/features/live_sensor/index.tsx
0.00% <0.00%> (ø)

src/features/live_sensor/atoms/sensorResource.ts
0.00% <0.00%> (ø)

... and 7 more


Results subscript return different object instance

Hi,
Goals
I work with UIcollectionView and my cells are filled with objects from a Results<MyRealmObject> in my Realm DB.
My MyRealmObject  can generate an thumbnail (with a function) with information/properties stored in my DB. The thumbnail generation is a little heavy (enough to make slow UICollectionView) so when I finish to generate the thumbnail, I store the UIImage in property ignored by Realm Model (because it can be regenerated a lot of time).
The code look like that :
private var _cachedThumbnail : UIImage?= nil
func thumbnail()->UIImage{
    if _cachedThumbnail == nil {
        _cachedThumbnail = // loog process which generate thumb
    }
    return _cachedThumbnail!
}

Expected Results
Get the thumbnail generate once per MyRealmObject entity.
Actual Results
Actually in my UICollectionView Data Source provider method if I wrote that :
cell.imageView = myRealmObjectResults[indexPath.row].thumbnail()

The thumbnail is always regenerated because _cachedThumbnail is always nil but if I keep my array like that :  let myRealmObjectArray =Array(realm.objects(MyRealmObject)) that's work correctly.
I think every time I do  myRealmObjectResults[indexPath.row].thumbnail() from a let myRealmObjectResults = realm.objects(MyRealmObject), the subscript return always a new object created by the Results class instead to keep them. For me is a bug, but perhaps not if it's that you want, but with this you can't use this type of pattern/process to use some computed data. In my case I can store my _cachedThumbnail  as NSData in my Realm base, but it look like more a hack that a real solution, because my _cachedThumbnail is not a part of my true model, but more like a computed property.
Realm version: 1.0.0
Xcode version: 7.3
iOS/OSX version: 9.3
Dependency manager + version: Nope

Results is a lazy collection in general and does neither eagerly load any objects nor cache them once you retrieve them. The behavior you observe is the intended design. What would help for you in your case, could break and mismatch with the expectations of others.
I'd recommend instead to rethink where you store your generated thumbnails instead. That could e.g. look like seen below:
class ThumbnailFetcher {
   lazy var cache = [String : UIImage]()

   func fetch(object: ImageObject) {
       if let image = cache[object.id] {
           return image
       }

       // long process which generate the thumbnail image
       cache[object.id] = image

       // TODO: Maybe prune last accessed image(s) from the cache …

       return image
   }
}

extension ViewController {
    lazy var thumbnailFetcher = ThumbnailFetcher()

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let object = results[indexPath.row]

        let cell = tableView.dequeueReusableCellWithIdentifier(…, forIndexPath: indexPath)
        cell.imageView.image = thumbnailFetcher.fetch(object)
        return cell
    }
}

@mrackwitz  thanks a lot, that can be a solution, after speaking on forums I understand that Realm Objects are made for data only model part and not made for process part of the model.
Just a question and I done with this thread, why the Array(realm.objects(RealmClass)) code work with my thumbnail system ? And this is a bad solution for realm based model ?

You pull all objects into memory at this moment, which means that it is less efficient with memory than just pulling the objects which are currently visible on the screen. Beside that you loose the advantages of the auto-updates / notifications, which you can propagate fine-grained to your collection / table view.

@mrackwitz perfect, I fully understand what's wrong with my code thanks !

I want to reopen this again as I think while "memory efficient", it breaks the expectations for how objects work in Cocoa.
The expectation is that if you have two references to the same object (say it's held in two different arrays, Array 1 and Array 2), that if you change that object from Array 1, Array 2 will have that same changed object there as well. Likewise, I expect that if I get that object from an Array in two different places, I will get the same object back, not a newly allocated object.
In the same vein, I should expect that if I ask for a Realm object from a Results collection, retrieve that object and then later ask for the same object, I would get the same object back. Given that Realm has these auto-update features, I would expect that if there are two Results collections which reference the same row in the DB, I would get the same object back as long as those collections are retained.
I don't consider this caching, and I don't think it's unreasonable that if you fetched and accessed the data, that it be retained. I could only see the current design as useful if you are working with a result set that is larger than memory, but that is almost definitely the exceptional case, not the norm.
Correct me if I am wrong, but it seems like this is the behavior of CoreData?


Don’t crash when implementation package fails to extract

Example output:
❯ pnpm test optimist
Debugger attached.

><EMAIL_ADDRESS>test /Users/andrew/Developer/microsoft/DefinitelyTyped
> node --enable-source-maps node_modules/@definitelytyped/dtslint/ types "optimist"

Debugger attached.
<EMAIL_ADDRESS>
Warnings:

Failed to extract implementation package from https://registry.npmjs.org/optimist/-/optimist-0.0.7.tgz. This is likely a problem with @arethetypeswrong/core or the tarball data itself. @arethetypeswrong/cli will not run. Error:
SyntaxError: Expected double-quoted property name in JSON at position 207
    at JSON.parse (<anonymous>)
    at extractTarball (/Users/andrew/Developer/microsoft/DefinitelyTyped-tools/node_modules/.pnpm/@arethetypeswrong+core@0.13.6/node_modules/@arethetypeswrong/core/src/createPackage.ts:285:28)
    at Module.createPackageFromTarballUrl (/Users/andrew/Developer/microsoft/DefinitelyTyped-tools/node_modules/.pnpm/@arethetypeswrong+core@0.13.6/node_modules/@arethetypeswrong/core/src/createPackage.ts:268:50)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at checkNpmVersionAndGetMatchingImplementationPackage (/Users/andrew/Developer/microsoft/DefinitelyTyped-tools/packages/dtslint/src/checks.ts:279:35)
    at runTests (/Users/andrew/Developer/microsoft/DefinitelyTyped-tools/packages/dtslint/src/index.ts:185:52)
    at main (/Users/andrew/Developer/microsoft/DefinitelyTyped-tools/packages/dtslint/src/index.ts:103:22)

Root cause of the openurl, is, and youtube failures: https://github.com/101arrowz/fflate/issues/207


Forward Port to 5.x: Log when users disconnect

Started port with Transport logging improvements #85. I will add comments as I advance.

@cmebarrow  Based on what I found so far, I have a few comments about the  Transport logging improvements #85 port:

WsebAcceptor: apart from the changes in the section of the code that is similar between 4.x and 5.x, in gw 4.x there are more changes than in gw 5.x. This would imply adding new classes in gw5.x, suchs as HttpRevalidateHandler. Should I add this changes to 5.x?
WsebSession: the constructor is different in 4.x vs 5.x ( the last parameter is a List vs Properties) this has implications in WsebAcceptor and WsebConnector. What constructor should I choose?
WsebAcceptProcessor and WsebConnecProcessor: have extra code in 4.x vs 5.x : in flushInternal method starting from "else if (WsebSession.isPingRequest(request) || WsebSession.isPongRequest(request)..." Should I add this section of code to 5.x?
WsebConnectProcessor: in 4.x it uses HttpHeaders from org.apache.http, in gw5.x I have used HttpHeaders from kaazing.gateway. Is this ok?
WsebConnectorlogging - the parameters passed to the connect method ( from WsebConnectorRule ) are IoHandler's but the connect method in WsebConnectorRule is expecting a IoHandlerAdapter ( as it is in gw4.x). Should I alter the WsebConnectorlogging or the WsebConnectorRule?

Can you please take a look and let me know how I should handle the situations described above?
I did most of the other changes for issue #85, just waiting for your answers to finalize this part.

@msalavastru See my answers in-line in your comment above

@cmebarrow Thanks for your answers. I have updated what was needed. I wil proceed to the next PR : https://github.com/kaazing-private/gateway.server/pull/87

@msalavastru Please look into the Travis build failure in case it has anything to do with your changes

@cmebarrow I have found the tests that were failing. The fails are caused by the new changes. I have fixed some of them by adding a small fix to the WsebConnectorRule, but there are some more tests that are failing. For example the tests in BinaryIT ( from package org.kaazing.gateway.transport.wseb.specification.wse.acceptor) are failing with IllegalArgumentException : "Missing transport 'wsn'". This is thrown by the resolveSchemes method from GatewayContextResolver because transportContext ( of type DefaultTransportContext is null ) for the transportName "wsn". I am now blocked at trying to figure out why this is happening. I have pushed my changes so far. Maybe you can have a look and let me know what to do? Thanks.

@msalavastru Just add a test dependency on wsn in the pom for wseb transport:
       <dependency>
            <groupId>org.kaazing</groupId>
            <artifactId>gateway.transport.wsn</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>

With this change everything passes for me except:

WsebAcceptorLoggingIT.shouldLogOpenWriteReceivedAndAbruptClose: this fails because the log message check comes too early. Irina fixed this in 4.x in her identity logging changes so when you forward port that work it should be ok.
WsebConnectorIT.shouldReplyPongToPing: should be resolved once we complete the wseb spec tests

@cmebarrow @msalavastru Hello, additional fixes on "*LoggingIT.java" ITests (where "*" is a wildcard) can be found in the PRs attached to this issue (please note that both PRs in the above-listed issue are relevant). Thank you.

@cmebarrow I did the fix you suggested and the tests that were failing before are now passing. The problem persists with the LoggingIT tests that fail, because we need the changes that Irina did in 4.x. Given that the next PR's that I need to port have changes in the files that were modified in the current PR how do you suggest I should proceed? Create PR's starting from the current changes in this PR in new branches ( any changes that we might do here, would also need to be made to the other PR's)?
Should I start with Irina's PR starting from the current changes?

@msalavastru Mihai, yes, you can always create PR's starting from the current changes in this PR in new branches. I would advise doing the forward ports in the order that the original PR's were merged. So for the PR's Irina mentioned (which I also added to https://github.com/kaazing/roadmap/issues/562 for tracking purposes), I would forward port them separately after this one is merged. I will go ahead and merge even if there are test failures that Irina's PRs would fix, because I know you will be forward porting those later.

@cmebarrow I have added the other PR's for the Log when user disconnects #583 user story as comments in the Engineering story. They are for GW 5.x


Sending file progress iOS Swift

Is there a way to track the progress of the file data that has been sent and the data that is left?
I'm trying to implement a progress bar that helps tracking the progress.
Also, is there a way you could stop transferring the file while the write function is still in progress?
When i'm writing something to the socket, the app freezes until the transfer is complete.

Thanks

Got it!
Thank you so much 👍


Enable permission validation based on company roles

Description
As a portal operator,
I want to control access to pages, overlays and actions based on the user's company roles,
so that users only see and can access resources that are granted to their company.
Currently all frontend side permission validations are based on the roles in the user's JWT token from Keycloak
https://github.com/eclipse-tractusx/portal-frontend/blob/main/src/services/AccessService.tsx#L89-L90
example access checks:
https://github.com/eclipse-tractusx/portal-frontend/blob/main/src/types/Config.tsx#L113
https://github.com/eclipse-tractusx/portal-frontend/blob/main/src/components/pages/CompanyCertificates/index.tsx#L186-L188
Company roles are not included in the user token and they must be fetched separately by calling the endpoint: /api/administration/companydata/ownCompanyDetails
This call should be made at the very beginning before the user menu is rendered on the screen as some menu points might already be removed based on company roles. We recommend to create a new service CompanyService and submit a synchronous call in the callback function of UserService.init()
https://github.com/eclipse-tractusx/portal-frontend/blob/main/src/index.tsx#L38-L47
storing the result with company roles.
UserService.init(() => {
  CompanyService.init(() => {
    createRoot(document.getElementById('app')!).render(
      <StrictMode>
      ...
      </StrictMode>
    )
  })
})

In the AccessService we can then add check functions the same way user permission are handled.
userHasAccess -> check for roles in the user token
companyHasAccess -> check for roles in the company details data
Note this is only a convenience feature so users don't see and accidentally click on restricted resources. Only the backend can enforce real security by blocking access to API endpoints. Frontend side can never enforce security as any user who is able to open the browser developer tools has the option to bypass the UI and access the API directly.
Acceptance Criteria

[ ] [AccessService exports function companyHasAccess]
[ ] [At least one resource (page, overlay, button, etc.) is protected using said function and be enabled or disabled according to the user's company roles]

Addtional Info
There is an existing ticket https://github.com/eclipse-tractusx/portal-frontend/issues/1108 which describes a specific restriction but instead of implementing a solution for only one resource we suggest the generic solution that works for any resource and any company role in this ticket.

relates to https://github.com/eclipse-tractusx/sig-release/issues/960


Breaking change in ContentType API between 5.3.2 -> 5.4.x

Latest changes in ContentType deprecates some properties:

https://github.com/javalin/javalin/commit/9f4cb1396a12895d19cff6796c53eb6383403db5

One of them is marked as ERROR:
https://github.com/javalin/javalin/blob/9f4cb1396a12895d19cff6796c53eb6383403db5/javalin/src/main/java/io/javalin/http/ContentType.kt#L80
And that leads to the hard compilation error in Kotlin, so it's a breaking change between two minor versions:
16 actionable tasks: 3 executed, 13 up-to-date
e: File.kt:55:29 Using 'APPLICATION_JS' is an error. use TEXT_JS instead.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':xxx:compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

Woops


demo_memcopy: Add tests for transferring data at non-aligned start-addresses

Just a reminder, that we need to add this. The iteration, when this is required, is not yet defined.

Done


Feature/next/hero component

New hero component.

@james-nash It looks like the branch you forked off of mine has a bug I ran into with the calc width I couldn't fix (see gap on the right side). If you can fix this (can't seem to myself) more than happy to merge it into this branch. Let me know how to proceed.

Actually scratch that, looks like a Pattern Lab bug as a whole.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


MarkerAnimated prop coordinate has wrong TypeScript type

Summary
The README.md for v1.7.1 says that MarkerAnimated will also take an AnimatedRegion in the coordinate prop. And it does. But its type only shows LatLng, meaning that passing AnimatedRegion is flagged as an error when it should not be.
Reproducible sample code
const coord = new AnimatedRegion();

<MarkerAnimated
  coordinate={coord} // ts should not show an error here
/>

Steps to reproduce
Install, pass AnimatedRegion to coordinate prop of MarkerAnimated with TypeScript
Expected result
It should say that passing an AnimatedRegion to coordinate prop of MarkerAnimated is not an error
Actual result
It says that passing an AnimatedRegion to coordinate prop of MarkerAnimated is an error
React Native Maps Version
1.7.1
What platforms are you seeing the problem on?
iOS (Apple Maps)
React Native Version
0.70.6
What version of Expo are you using?
Not using Expo
Device(s)
Simulator
Additional information
No response

➕

anyone solved how to animate a marker smoothly on the latests versions of expo and react-native?


x/tools/cmd/godoc: add "jump to identifier" dialog via search box within sticky top-bar

There have been some good proposals(#26637 #27714 ) to improve navigate documentation.  This proposal is a further supplement.
Currently, i have to do a lot of scrolling to navigate documentation. Apart from a sidebar and a back-to-top FAB(from #26637), a sticky top-bar with a search box(providing me with suggestions in a drop-down list and let me directly jump to the search result) can be very handy.
Compared with #27714, it has one advantage,

Good discoverability (the search box is always visible)

one disadvantage,

Lack of keyboard shortcut

one difference,

It jumps across packages instead of just jumping to identifier within a package documentation page.
It looks like this,

/cc @dmitshur

Thank you for the proposal @hooluupog.
I think there are two parts to it that are being presented together. Let me talk about them separately.
One part of this proposal that I'm seeing is the UI design and the interactions it presents. As you say, compared to #27714, this has better discoverability. The fact that it lacks a keyboard shortcut is easy to change if desired; a keyboard shortcut that focuses on the box can be added.
The other part is the difference in elements that can be searched from. Proposals #26637 and #27714 have been about searching/navigating within identifiers of the single package whose documentation is being displayed. According to your text and screenshot, this proposal suggests considering including jumping across packages. This is a pretty significant deviation and would need to be described and thought through in more detail.
I think both of the suggestions are good to consider and evaluate in our future work on the godoc UI, and we'll want to do so while also considering the other similar proposals. The end result may combine the best aspects from all of these related proposals.
I think it's "accepted" in the sense we will take this idea into consideration, but it's too early to say what the implementation will end up looking like exactly. It will take building and evaluating some prototypes to gain more insight.
I'm not sure how this state falls into the proposal process. If it interferes with the proposal evaluation work, it might make sense to unmark these issues as proposals and treat them as normal issues.

pkgsite has this.


Add arg parsing, remove input()

Currently, the utility uses input() funtions for fetching inputs/data from user. The script needs to be modified so that it accepts arguments from commandline
e.g
jsonmerge_utils.py -ip test -op result -maxFileSize 600 -filepath /var/tmp/SampleJsonfiles
-ip  Input prefix
-op Output prefix
-maxFileSize The maximum file size (in bytes) that each merged file should have
-filepath path to dir where all json files are stored

Hi @Blank1611 I'd like to help out, could I be assigned this issue?

Sure, create a PR so that I can assign this issue to you


Embedding anything other than Vector Paths

Hi there, thank you for this awesome library! Just a quick question: There is currently no option to embed anything other than Vector paths in the final pdf, right?
How would you go about embedding png images or other pdf files into the final pdf?

Hi
It is possible to add other images than vector paths. Since this library is based on PDFKit, there are many more methods available than those documented in doc/api.md
Take a look at the PDFKit documentation for further information.
pdf.image("path/to/image.jpg", 20, 20, { width: 100, height: 100 });


a new cad/cam app for cabinet doors

Hi Daniel,  here what we discussed previously, thnak you for your answer.
-----------------------------------------------------
Here goes a few tips. From your images it seems that you only need to work in 2D with very basic entities like lines, arcs, and polylines; splines perhaps?. I will not recommend you to build your own CAD application too much effort, it is not an easy task, when there is something that can suit your needs, like QCAD, it even has a version focused on CAM to generate G-Code files. The software is very basic but it is cheap too. You can also try the free version of DraftSight.
What I would do is build an application to generate parametrically the drawings, netDxf can help you with that generating DXF files that you can open later in QCAD, kinda like the dynamic blocks in AutoCAD. I am assuming that you might work with a set of designs that can be parameterized for door sizes, margins, arc radius,...; for other designs is no problem drawing them directly with QCAD.
------------------------------
Now my question is ,I am still undcided which CAD app to use to draw kitchen cabinet doors for CNC machining?  I am leaning towards CMS IntelliCAD because it is based on IntelliCAD which is a very good CAD app after AutoCAD itself. I can save the line, spline paths separately from dwg, stl etc. as my own  data.
Then use this data to construct a toolpath for GCode.  I need to check QCAD as you said but CMS IntelliCAD is hard to beat as an AutoCAD clone. What do you think? thnak you
(edited the markdown formatting)

QCAD is 2D, I may need 3D for visualizing the drawing now. But in the future I will definetely need 3D. thnaks

Well, you ask for free or cheap CAD solutions. My last experience with IntelliCAD was a very long time ago, and I am not sure if they, have a free version. At the end of the day use the software you feel more comfortable with. I have no experience with cad software specialized for CNC machines, in the past, I had to prepare drawings for them, but I never had to work with them directly.
I will only recommend free software. For paid solutions, I will have to start to ask for a fee to the company you buy the software ;) Sometimes people has the presumption that because it is free software it cannot be good, when many times, for most people, is good enough. Take, for example, Microsoft Office, people is obsessed with it, when you have LibreOffice, how many times did I hear "but is compatible with doc? yes, with doc, docx, and odt, the document format that you should be using, in the first place, instead of doc. I am not talking about software solutions for big buck companies, that is a whole different story.
But as I said you do not need to draw a single line, correct me if I am wrong, but I supposed, most of the time, if not always, you start with a set of predefined designs that you can easily build them programatically: the drawing plans, the paths for CNC machines, even 3d models.
Good 3D CAD/CAM/CAE software is expensive, but if you require 3d software for visualization purposes use Blender, nothing beats it, it is an amazing piece of software that is free and open source. Check its archimesh plugin,... it will show you how to parametrically build 3d models focused on architectural stuff, it has kitchen cabinets.
Daniel


Fix Font Size for AC and HP values

I noticed that the font size for the current HP and AC inputs is too big to fit. (atleast for me)
If this only occurs on resolutions > 1080p you can ignore this fix (as I already changed it on my side^^)
In comparison:
Before (1.6rem)

After (1.3rem)

I've not been able to reproduce this on the 4k display I have access to.
Can I ask what OS you're running and whether any UI scaling (or equivalent) is enabled?

I'm using Windows 10 with an 1440p display. I checked my browser (brave) and the Windows display settings. Neither has any scaling enabled.

Okay I've discovered that this display problem only occurs in Brave. Every other browser I checked (Chrome and Chromium Edge) worked also with 1.6rem.


IN PROGRESS: Add appveyor.yml to enable CI builds

Will be making some updates to this to fix any issues with the AppVeyor configuration.

Hey Keith, I'm seeing a weird issue on AppVeyor where qualifying Plaster module methods with the Plaster\ 'namespace' is causing tests to fail:
Describing RequireModule Directive Tests
   Context Finds module
Failed to create dynamic parameters from the template's manifest file.  Template-based dynamic parameters will not be available until the error is corrected.  The error was: The module 'Plaster' could not be loaded. For more information, run 'Import-Module Plaster'.
    [-] It finds module with no version number 80ms
      CommandNotFoundException: The module 'Plaster' could not be loaded. For more information, run 'Import-Module Plaster'.
      at Invoke-Plaster<Begin>, C:\projects\plaster\src\InvokePlaster.ps1: line 184
      at <ScriptBlock>, C:\projects\plaster\test\RequireModule.Tests.ps1: line 27

Any idea what might be going on which could cause this issue?  Could it be caused by Pester's scoping logic?

So the Plaster module is not getting imported.  That Pester test file dot sources a script called Shared.ps1 that imports the module.  It does so using this path:
$ModuleManifestName  = 'Plaster.psd1'
$ModulePath = "$PSScriptRoot\..\src\$ModuleManifestName"

Import-Module $ModulePath

I'm not sure why that would fail.

Weird thing is that the module import isn't failing!  This error is coming from inside of Invoke-Plaster which only shows up after the module is imported...

Guess we could try it without a module qualified name.

I dunno, I'd rather not take it out since it's nice to be clear on which function we're calling.  I'll investigate further to see if there's a way to avoid it.

OK, weird, it's somehow caused by running the Pester tests from within psake.  The solution was to change the Import-Module call in Shared.ps1 to use -Scope Global.  Can you think of any reason why that would be risky?

No I can't.  And tests should be the last task for Appveyor since we wouldn't publish from there.

First legitimate AppVeyor test pass :)  Code is ready to be reviewed now, let me know what you think @rkeithhill


Java api code defect: most (all?) of the inner classes in java_rest_coin_api should be top level

The Java API essentially has but a single top level class, namely, java_rest_coin_api.
(There is also a top level test class, java_rest_coin_api_test.java, which shows how to use the API.)
That single top level class, however, has tons of inner classes/enums like asset, exchange, etc.
I see no reason why all these inner objects are defined inside the same top level class.  They are fundamental domain objects, therefore, each should be pulled out into its own top level class.
I quickly glanced at the csharp-rest directory in the coinai .zip file, and I see that has proper top level classes for stuff.  Java is no different than C# in regards to how you should nest your classes, so why does the Java API have this unconventional design?
It is an annoying design because you now need to refer to classes with really long unreadable names like "java_rest_coin_api.timedata" when you should just be able to use "timedata".
Also, that java_rest_coin_api class is in the default (unnamed) package, but it should probably be in a named package like "com.coinapi" or something.

I agree, however, we didn't have the resources to improve design at this moment.
We can discuss some kind of arrangement/benefit if you are willing to refactor this code.

Artur,
That's great news.
Greetings from Puerto Rico!  I am here on vacation as of yesterday thru
this coming Sunday.
I am not sure how much work i can get done on this while on vacation, but I
can work on this soon next week.  Will that be OK for you?
I know exactly what steps I will take to address the issues, and I think
that it will take me 5 to 10 hours.  So, I should be able to finish this
project in the next 10 days, even tho I only can do it in my spare time .
Is that schedule OK with you?
Also, do you need me to write you the refactoring steps that I plan on
doing first, or is it OK if I go ahead and do the code changes and then
submit my changed code to you?
I plan on addressing all the issues that I raised on your github site, plus
a few more minor ones.
I am very systematic: I was planning on keeping a journal of all the
changes that I do.
Regards,
Brent Boyer
On Wed, Aug 8, 2018 at 7:22 PM Artur Pietrzyk<EMAIL_ADDRESS>wrote:

We provisioned a Professional Key on your email address as I could not
find your existing subscription, I will follow up more in the Support
Ticket.
We would love to get Pull Request from you and we appreciate your time
invested in that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/coinapi/coinapi-sdk/issues/37#issuecomment-411585076,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKjnxBLqlDyl0goT6z2N2I9Wn7k4zsl2ks5uO3KvgaJpZM4Vi0Mc
.


Can I start several instances of FsiEvaluationSession.Create(...) concurrently ?

I sometimes get exceptions like this below when I create several instances of FsiEvaluationSession at almost the same time. I do not run evaluations on them yet. This does not happen always and the affected assembly is not always the same.
Is this a concurrency issue? I would like to know if it OK to create (and run) several FSI Session concurrently?
error FS3160: Problem reading assembly 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Runtime.dll': Object reference not set to an instance of an object.
Error creating evaluation session: StopProcessingExn None
at Microsoft.FSharp.Compiler.Interactive.Shell.-ctor@2576-143.Invoke(String message) in C:\projects\fsharp-compiler-service\src\fsharp\fsi\fsi.fs:line 2576
at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession..ctor(FsiEvaluationSessionHostConfig fsi, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, Boolean fsiCollectible, Boolean msbuildEnabled) in C:\projects\fsharp-compiler-service\src\fsharp\fsi\fsi.fs:line 2422
at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession.Create(FsiEvaluationSessionHostConfig fsiConfig, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, FSharpOption1 collectible, FSharpOption1 msbuildEnabled) in C:\projects\fsharp-compiler-service\src\fsharp\fsi\fsi.fs:line 2877

Thanks for your help Don!  I want to parse and check (and maybe evaluate) several unrelated fsx files. I am using interactive sessions for that. Is the only way to do this savely to do it one after the other? Can one session parse and check code while evaluating some other code?

Thanks for your help Don! I want to parse and check (and maybe evaluate) several unrelated fsx files. I am using interactive sessions for that. Is the only way to do this safely to do it one after the other? Can one session parse and check code while evaluating some other code?

For parsing and checking, tou could use the Compiler Services API (FSHarpChecker).  This doesn't do anything in parallel but it at least ensures that concurrent requests are serialized one by one in a thread safe way, allowing multi-threaded use of FSharpChecker objects.
In the future

FSiEvaluationSession is likely to be changes to use FSharpChecker for all parsing and checking, which will make it serial as well.
We may make FSharpChecker do parsing in parallel, and checking in serial.  There's an open request for this.


Implement Intake SQLite driver

Get a working implementation of an intake-sqlite driver that:

Generally conforms to the intake-sql driver API
Takes an fsspec compatible path to an SQLite DB file (local or remote) rather than an SQLAlchemy compatible URI
Provides direct access to local SQLite DB files via the Intake interface
Caches remote SQLite DBs locally transparently to the user, and then uses the same machinery as above to access them.

Prototype is up and running over here: https://github.com/catalyst-cooperative/intake-sqlite/pull/5


cant find exe file

I downloaded the zip but when I go into the guitar player there are no exe files

Looks like you downloaded the source code.
https://github.com/KevAquila/WEBFISHING-Guitar-Player/releases
Download the GuitarPlayer.zip from here for a pre-compiled .exe


[1.16] Dissolution chamber recipes aren't showing up in JEI

DO NOT REPORT AN ISSUE IF YOU HAVEN'T TESTED THE ISSUE WITH THE LATEST VERSION IN CURSEFORGE
**Industrial Foregoing Version: 1.16.5-<IP_ADDRESS>-13 **
**Titanium Version: 1.16.5-<IP_ADDRESS>-10 **
Crashlog If Applicable (Upload to pastebin/gist): N/A

Downgrade JEI to .118 at least

Or update IF

Downgrading JEI to .118 has it fixed, very much appreciated.
I also didn't realize that a more updated version was available at first since it didn't have an update on the curseforge client.


Where i can access the Acrylic sample scene?

[Enter feedback here]
In MRTK 3 Project, I cant find Acrylic sample scene.  In github mixed-reality, there is alse no Acrylic sample scene and no AcrylicHelpr.cs
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 4764e56b-0fae-3112-8029-d7487172746b
Version Independent ID: 4764e56b-0fae-3112-8029-d7487172746b
Content: Acrylic Sample Scene - MRTK3
Content Source: mrtk-unity/mrtk3-graphicstools/features/samples/acrylic.md
Product: mixed-reality
GitHub Login: @Species521
Microsoft Alias: wettigmarti

Hey nongzhang.
The Acrylic sample scene, and all other sample scenes, live in the Mixed Reality Graphics Tools repo now. The MRTK has been split up into several packages to tailor it better to the users' needs.
The Graphics Tools are here: https://github.com/microsoft/MixedReality-GraphicsTools-Unity

In order to make the sample scenes available, please make sure to activate them inside the Unity Editor in the Graphics Tools tab, "Show Samples".

thanks,i got it!

thanks,i got it!


submit-queue: update the 'details' link in github

We were sending people to the front page of the submit-queue. But then
we changed the front page to be the queue instead of the 'all PRs'.
While this link it's particularly useful, at least seeing your PR most
of the time is better than not...
fixes #1271

LGTM


feat: add connect more chains flow

sorry there has been too many changes on the airdrop flow and it is no longer relevant. i will close this PR


Issue #2195

This is a failing test for issue #2195
Added a new property to the serializer to assign PropertyNameCaseInsensitive and ensure it's not a break change to everything else.

@phillip-haydon I don't think this is doable man. The postgresql operators that we use throughout most of the Linq provider are case sensitive. It's not feasible to try to rewrite that IMO.


Cannot read properties of null (InsertAdjacentHTML) Line 702

Is there an existing issue for this?

[X] I have searched the existing issues

I'm submitting a ...

[X] bug report
[ ] feature request
[ ] support request --> Contact me over mail for support https://github.com/MShawon

Description
[07-Oct-2022 16:27:01] | 84.8% | Worker 2 | Line : 702 | Exception | Error suggested | JavascriptException | javascript error: Cannot read properties of null (reading 'insertAdjacentHTML') (Session info: headless chrome=106.0.5249.103)
Hi, I get the above error. It seems to be a bug.
Hope reporting this issue will help you.
Awaiting your response,
Joannes
Environment
- OS : Ubuntu 22.04 (LTS, amd64)
- Python : 3.9
- Script version : 1.7.5

config.json
Dont upload it. I used the config creator, and use http proxies.

This is happening in YouTube music or normal?
Also do you see this error all the time or it's coming once in a while? I mean script fails to give any suggested views?
Other users also seeing this error #447 but I can't reproduce the issue for some reason.

It is normal Youtube, headless. But the music is a upload through distributor(So, music video but on youtube.com, not music)
It happens normally when the bot select new video (suggested) after playing link or search in headless www.youtube.com.
Dont know if it is search or link. I use both.
I use linux (ubuntu server 22.04) with headless bot on python 3.9 (from custom ppa). using chrome 106.
Hope this helps.
(I do have /dev/snd device with proper playback situation, since it is vps, I needed to customize sound settings to enable playback)
(I used this for spotify inside docker headless + vps) https://github.com/thisisawesome1994/spotify-client-install-docker-ubuntu
But I did run your bot only when using /dev/snd.
Later I found out that my laptop gives same error, so it is not related to sound or the matter it was run on vpn initially.
seems to happen when bot selects suggested video after playback of chosen one.

This is an example of such (Youtube video that is music) https://www.youtube.com/watch?v=BTVn-UY1vDw&list=OLAK5uy_mPLaituCI5sdsAQLUv1FIzVdrRdLpavXg

I use link,, so: https://www.youtube.com/watch?v=BTVn-UY1vDw

Using dutch IP, if this helps

Using dutch IP, if this helps

Thanks for the info.. it will be fixed soon.. wait for the new release

can you test this updated script and let me know if you see those errors or not
Youtube_Viewer_Test.zip

I dont see these errors with http proxies. I will update you once I have let it run some time.
I will test socks5 proxies later. Because I had some issue there aswell, which might be solved by this.

I get a few errors. This is one of them: Worker 8 | Line : 705 | Exception | Error end screen | TimeoutException |
Unfortunately the bot stops all together after this error and about 1-2 hours have passed.

here some other errors.
22-Oct-2022 02:05:42] | 8.9%   | Worker 11 | X.X.X.X:2016 --> Video Found : Partytax | Watch Duration : 2m:35s
[22-Oct-2022 02:05:44] | 18.8%  | Worker 9 | Referer used : https://t.co/
[22-Oct-2022 02:05:44] | 31.1%  | Worker 2 | Referer used : https://t.co/
[22-Oct-2022 02:05:50] | 11.9%  | Worker 4 | Referer used : https://t.co/
[22-Oct-2022 02:06:20] | 12.8%  | Worker 9 | X.X.X.X:2016 --> Video Found : Staircase | Watch Duration : 6m:15s
[22-Oct-2022 02:06:51] | 15.7%  | Worker 1 | Referer used : https://www.google.com/
[22-Oct-2022 02:06:58] | 13.8%  | Worker 7 | Referer used : https://t.co/
[22-Oct-2022 02:07:08] | 8.9%   | Worker 2 | X.X.X.X:2016 --> Video Found : Can't Sleep | Watch Duration : 5m:12s
[22-Oct-2022 02:07:26] | 12.9%  | Worker 8 | Referer used : https://duckduckgo.com/
[22-Oct-2022 02:07:31] | 3.5%   | Worker 3 | Line : 676 | TimeoutException | timeout: Timed out receiving message from renderer: 300.000
(Session info: chrome=106.0.5249.119)
[22-Oct-2022 02:07:34] | 13.1%  | Worker 5 | Line : 676 | TimeoutException | timeout: Timed out receiving message from renderer: 297.149
(Session info: chrome=106.0.5249.119)

Timed

that's odd.. it should just close that driver for that error it shouldn't hang.. did you see this error multiple times?

Timed

that's odd.. it should just close that driver for that error it shouldn't hang.. did you see this error multiple times?

it's possible workers 3 and 5 used a referer that won't load through that proxy due to slow speed of that proxy or blocked or something?


QObject::connect: Cannot connect

Have a warning
QObject::connect: Cannot connect (null)::aboutToQuit() to QNativeWifiEngine::closeHandle()

应该是某个静态 QObject 初始化先于 QCoreApplication 吧。


docs: added documentation to use Google Vertex AI Model with Deepeval

Added documentation to use Google Vertex AI Model with Deepeval

@Adi8885 Thanks! We don't have vertex so really appreciate this.


specify new paths of modular codes and modify source() with such new paths

This should be seen from the pr coming from branch#72


Maxbounds on Map props

Nice job, I left a comment, could you update the documentation accordingly?

@alex3165 I updated the doc and removed maxBounds from the factory, but the tests are failing now and I have no idea why (because I see maxBounds nowhere on the tests, so I don't know what's going on)

Look like tests are passing on the CI, I will merge the PR and check on master. Nice job 👍

Yeah, I forgot to npm i before building :)

Released with version 2.4.0


Use of 'get_lower_nics' doesn't check if list is empty.

https://github.com/microsoft/lisa/blob/1eb96ce90a62737b935dadee2677dbf9120f0181/microsoft/testsuites/performance/common.py#L262
There are a couple of uses in this file that can result in a list-out-of-range exception if the list is empty. These need to be wrapped and caught since they are an error condition, the test is expecting an SRIOV lower interface and none is present.

handled in https://github.com/microsoft/lisa/blob/main/lisa/nic.py#L236C11-L236C11 now


Set up Schema definition for taxonomies

Motivation
Since there is support for taxonomy - it would be great to have support for schema definition for the taxonomies.
Proposed solution
Define the types in [type definition]https://github.com/Kentico/gatsby-source-kontent/blob/master/src/typeNodesSchema.js#L99) and extend createTypeNodesSchema method to includethese typer for taxonomies by buildObjectType Gatsby method and set it the proper taxonomy type name.
Additional context
https://rshackleton.co.uk/articles/learning-about-gatsby-schema-customisation-with-kontent-ai
Related to #1

Implemented in vNext version