Two environments, same meilisearch version, but different indexing times

Describe the bug
Two environments on AWS EC2, same meilisearch version 'meilisearch-http 0.25.0', but different indexing times (one takes days where as other takes hours)
To Reproduce
Steps to reproduce the behavior:

Import data
Tasks API returns a huge response of  > 30MB on one meilisearch server, other server returns a response for tasks of 2MB
Tasks with 30MB response meilisearch server takes weeks of time to complete indexing, where as tasks of 2MB meilisearch server takes hours to complete
CPU utilization is at 2%

Expected behavior
Both same meilisearch versions should take same amount of time to finish indexing
Screenshots
If applicable, add screenshots to help explain your problem.
Meilisearch version: [e.g. v0.25.0]
Additional context
Additional information that may be relevant to the issue.
The data import code is written in PHP laravel
PHP 7.4.27 (cli) (built: Dec 20 2021 21:28:15) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
Laravel Framework 8.65.0
Batching has been implemented on 500 batches when sending to meilisearch for indexing
ENV files are also the same in both environments(both meilisearch servers)
BROADCAST_DRIVER=log
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=<IP_ADDRESS>
REDIS_PASSWORD=""
REDIS_PORT=6379
REDIS_CLIENT=predis
SCOUT_QUEUE=true
#Meilisearch
SCOUT_DRIVER=meilisearch
Thank you very much for any help.

Hello @hasnat-rhino
Thanks for your report
I'm not sure to understand what are your both environment? What makes them differ from each other?
We personally did not succeed to reproduce: the same indexation involves the same time on my machine, (with small variations depending on the current job of our machine) but not difference between days and hours
Have you activated the --enable-auto-batching flag to one of your Meilisearch?

Hi,
Thank you for the reply,
No auto batching has been enabled since we are using meilisearch-http 0.25.0, and auto batching was in 0.26.0 release
The two environments i was referring to was, the two servers for development and production servers on aws EC2,
development - t2.micro 1vcpus | 0.5 Gib,  - indexes , 100 documents in 5 minutes
tasks api returns 2.42MB response, with 0 - enqueued, succeeded - 7907
production - t3.medium 2vcpus | 4Gib - indexes , 100 documents in 30 minutes
tasks api returns 34.56MB response, with 0 - enqueued 19999+, succeeded - i can't check since even postman app crashes
Apparently the production meilisearch server is the one that is taking really a lot of time to finish indexing.
Is there anyway to clear the tasks API tasks list, Sorry for being so non technical,i would to ask politely,  in order to use auto batching i think i will need to migrate 0.25.0 to 0.26.0 right? Also Even if i do so, the documentation says just put --enable-auto-batching, but i am confused where this should be used on the server since i did not find anything on the documentation.
Any help is greatly appreciated. Thank you.

Hello @hasnat-rhino
Thanks for the details! :)
I see you sent your documents in a loooooot of differents batches (more than 19999+ tasks) for the production environment and only a few for the the dev environment (7907).
You have to know that Meilisearch is faster processing one big batch of documents rather than multiple smaller batches. You have all the information regarding the perfomance optimization here: https://docs.meilisearch.com/learn/advanced/indexation.html#indexation-and-performance
Hope it will help you adapting the right behavior using Meilisearch with your usecase.
We also are working hard on the indexation speed since we know it's one of our main user issue. We opened a discussion here if you have any feedback, even after having implemented the good practices
We are sorry for the issue your encountered when using Meilisearch and hope the guide will help you :)

I close this issue due to a lack of answer, feel free to ask to re-open if needed.


Errors on compile in Unity 4.6.3

I am attempting to use fullserializer for my unity 4.6.3 project.  However, I get the following errors when attempting to build.
http://puu.sh/hpHKW/b277078a90.png
fsEnumConverter.cs(39,52) Type 'StringBuilder' does not contain a definition for 'Append'
fsEnumConverter.cs(41,32) Type 'StringBuilder' does not contain a definition for 'Append'
fsJsonParser.cs(251,85): Type 'StringBuilder' does not contain a constructor that takes '1' argument.
This appears to be due to Unity using an older equivalent version of .Net, one without the extra methods and constructors for StringBuilder class.  I am wondering how you managed to work around this problem?

Wow, how strange. Can you please verify that there is not another class in your project called StringBuilder? What .NET profile setting are you on?

Ah, you are right.  There was a custom StringBuilder class from an early version of the project.  Renaming it fixed the errors.  Thank you!


Are you able to inject a secondary moon in to the config before the workflow is run

I have a secondary server set up as a moon and I would like to add its identity to the moon.json file that is generated in the workflow. Would this be possible to add in to the patch file?
Thank you

The .moon node files for ZeroTier do not need to be placed on the planet server; they can be operational when placed in the /var/lib/zerotier-one/moons.d/ directory on both the client and moon nodes. Of course, the moon node also needs to replace the planet. The signing of Moon.json (zerotier-idtool genmoon moon.json) can be executed on any ZeroTier terminal, but the moon.json generated in the previous step is generally run on the moon node to obtain that node's identity (zerotier-idtool initmoon /var/lib/zerotier-one/identity.public). If you are running ZeroTier with Docker, you can map and mount the /var/lib/zerotier-one/moons.d/ folder.

Thanks for the info, just to be clear is it recommended to have multiple moon nodes with the planet server or is the standalone (private) planet server sufficient to host/control multiple networks?  I've tried to piece this information together and all the sources I have found are using the Zerotier root planets instead of a private planet and they suggest having at least 2 moon servers.
Thanks for your work piecing this together.


[Question] bot not sending message in basic setup<EMAIL_ADDRESS>

Pre-flight checklist

[x] I have searched the existing issues before logging a new one.

System Information (Required)

SDK Platform: Linux/Ubuntu
SDK Version: botbuilder 3.8.3, restify 4.3.0, node 0.10.25
Development Environment: localhost | ngrok server

Issue Description
The bot registers the POST message but does not send back a response in emulator. Same problem when testing on ngrok server and for localhost.
Example Code
The code is exactly as in the official documents: https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-use-default-message-handler
var restify = require('restify');
var builder = require('botbuilder');

var server = restify.createServer();
server.listen(process.env.port || process.env.PORT || 3978, function () { });

// Create the chat connector for communicating with the Bot Framework Service
var connector = new builder.ChatConnector({
    appId: process.env.MICROSOFT_APP_ID,
    appPassword: process.env.MICROSOFT_APP_PASSWORD
});

// Listen for messages from users
server.post('/api/messages', connector.listen());

// Create your bot with a function to receive messages from the user
var bot = new builder.UniversalBot(connector, function (session) {
    // echo the user's message
    session.send("You said: %s", session.message.text);
});

Actual Results
Expected "You said ...", but no response posted and no error message.

@suzyahyah I noticed you are using a very, very old version of Node.js.  I recommend upgrading your Node.js installation to v6.10.3 LTS or v7.10.0 (current). Let me know if the problem persists after upgrading Node.js.

I upgraded to v7.10.0, Thanks it works now!


LilyGO-T-A76XX Arduino issue

View error I receive, please advise what should i do for solving the issue.

README Article 1


Clean entities in ClientBuffers properly

I noticed that I did it partially in the previous PR.
Since it's in the same struct alongside with info which I reset before the use, I decided to use the same approach. Plus I insert data in 4 places and pop it only in one place, so it's less bug-prone to clean in that one place. Also clearing in drain_entities would be odd.

In that case you can add pop_entities() getter and put the cleanup in there. That way one way or another the cleanup logic is part of the API instead of leaking to the user.

But this way it still be inconsistent with info because returned data needs to be reset. Or you think it's okay?
I don't have a strong opinion, what API would be nicer, pop_entities, clear before insertion or something else?

Agree, I would never expose something like this outside of the module.
I just couldn't figure out the best way of dealing with entities, this is also why it was half way done and I fixed it in this PR :smile:


Implementing a GAN from scratch using PyTorch

Implementing a GAN from scratch using PyTorch
Introduction paragraph (2-3 paragraphs):
Machine learning algorithms work great in recognizing patterns in existing data and using that insight for classification and regression purposes. However, the machine always struggled when asked to generate new data. This all changed in 2014 when Ian Goodfellow introduced Generative Adversarial Networks (GANs) to the world of machine learning. This technique enabled machines to generate realistic data. GANs are the class of ML techniques that consist of two simultaneously trained neural networks, one is Generator which is used to generate the fake data, and the other is Discriminator which is used to classify whether input given to it is real (data from training dataset) or fake (data generated by the discriminator). In this blog, we will understand the science behind GANs and implement one from scratch using PyTorch.
Key takeaways:

Introduction to generative modeling
What are GANs?
What are the different types of GAN?
How GANs work
Implementing a GAN from scratch using PyTorch.

References:
NA
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Good afternoon and thank you for submitting your topic suggestion. @DeewakarChakraborty
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

Great topic 🚀 , make sure it matches the following:

Adds value beyond what is in the official docs and what is covered in other blog sites.
To avoid potential article closure, it should not overlap with existing EngEd articles or incoming topic suggestions.

Please reference any relevant EngEd articles in yours and build a unique project - Approved. @DeewakarChakraborty


Remove custom calendars & timezones

After discussion in the last TC39 plenary, it was confirmed there won't be any custom calendar usage with Temporal. Even if this was to return in a V2, it wouldn't come back in the same shape we see today. Functionality could be injected at a lower level (similar to Timezones with tzdatabase).
Despite this being a library to power higher-level ECMAScript implementations it should still try to follow the Temporal specification as much as possible and not include things the spec doesn't make use of. We can also add extra functionality further down the line in other areas.

Agreed with this. We could start by removing Calendar and Timezone first until the code compiles again, then make another pass when the spec proposal changes, since I would expect that some code paths around NaiveDate and ZonedDateTime will also be removed thanks to the changes.


Tim 374 improve empty state for event list view

This one is now ready for review @jaronheard ! The only issue is that Pull To Refresh seems to no longer work. Any ideas?

@joshcarr, pulled out your commits into https://github.com/jaronheard/soonlist-turbo/pull/151 to focus on your changes


I swap token mtk but I didn't get token

https://bscscan.com/tx/0xb6f1f701dafdb6037f3a2978be1dac751b71da733de92e92aa20f9140fcbfeb9

https://bscscan.com/tx/0xe5646f9f0f7ccb8cd1bb22a8b2534080b6c92ebdc03beacbae248456e3029096
I didn't receive the product  help check my transaction
Plzzz

Have you attended to ?


feat: bomctl push subcommand OCI client functionality

Description
This PR implements support for OCI URLs in bomctl push.
Fixes #123
Type of change

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

How Has This Been Tested?

[ ] Unit tests

Checklist

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

Please update the README.md that includes the command instructions.

done!


Add NamedAgg

This is equivalent to nested renaming, so like pandas, we have koalas.NamedAgg now for this:
        >>> aggregated = df.groupby('A').agg(b_max=ks.NamedAgg(column='B', aggfunc='max'))
        >>> aggregated
             b_max
        A
        1        2
        2        4

Resolves #823

Codecov Report

Merging #911 into master will decrease coverage by 2.13%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #911      +/-   ##
==========================================
- Coverage   94.28%   92.14%   -2.14%
==========================================
  Files          34       34
  Lines        6265     6267       +2
==========================================
- Hits         5907     5775     -132
- Misses        358      492     +134

Impacted Files
Coverage Δ

databricks/koalas/__init__.py
78.04% <100%> (-6.96%)
:arrow_down:

databricks/koalas/groupby.py
91.15% <100%> (+0.01%)
:arrow_up:

databricks/koalas/usage_logging/__init__.py
24.54% <0%> (-72.73%)
:arrow_down:

databricks/koalas/usage_logging/usage_logger.py
50% <0%> (-50%)
:arrow_down:

databricks/conftest.py
91.48% <0%> (-6.39%)
:arrow_down:

databricks/koalas/frame.py
94.38% <0%> (-1.57%)
:arrow_down:

databricks/koalas/namespace.py
85.01% <0%> (-1.31%)
:arrow_down:

databricks/koalas/plot.py
93.33% <0%> (-0.96%)
:arrow_down:

databricks/koalas/utils.py
97.24% <0%> (-0.69%)
:arrow_down:

... and 2 more

Continue to review full report at Codecov.

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

Thanks @charlesdong1991!


Change default colours used

Now that https://github.com/Peltoche/lsd/pull/452 is merged, users should be able to change the colors for lsd to what they like. That said, I was thinking we should probably consider changing the default colors that lsd uses to work in both light and dark colorschems. Using colors less that 16 and avoiding yellow should more or less take care of that. This change is only necessary in the non filename blocks as the filename ones are already using colors from lscolors which works in both cases. This will require changes in user,group and size blocks.
My only concern here is that existing users will have a change in colors if they are not using a custom theme(it a bit better now that they can change back). Just posting it here to get other's thoughts.

IMHO, I think we can ship two themes by default, one for dark mode and the other for light.
it became a common case with built-in dark mode and light mode in modern OSs, I think we could catch up with it.
an option like --theme dark/light may be great in my thought, we can go even further by detecting the dark/light mode and switch automatically.

Makes sense, lets go with a --color-theme flag.
About auto detection, I am not sure if we will have a simple way to do dark mode/light mode detection in terminals though. OS level theme detection might not be that reliable as a lot of people use light mode in the OS but dark colors in terminals.

While we did not add a flag for this, we have added support to change colors via config file.

https://github.com/Peltoche/lsd/issues/365#issuecomment-733095300 This is the closest to the colors in the screenshot in README. Adding it here for reference.

Is there any plane to support built-in mode, and auto switch theme by system. (like bat do)


Unable to use local file: MissingPDFException

Attach (recommended) or Link to PDF file here:
test.pdf
Configuration:

Web browser and its version:
Chrome - Version 83.0.4103.116 (Official Build) (64-bit)

Operating system and its version:
MacOS Catalina Version 10.15.5

PDF.js version:
Latest (just built yesterday)

Is a browser extension:
No

Steps to reproduce the problem:
(Note, this only occurs if I run the script locally on my machine. If I run it from a webserver, it works fine.)

In the same folder, I have these 4 files: pdf.js, pdf.worker.js, test.html, and test.pdf
If I set var url = 'https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/examples/learning/helloworld.pdf';, then it works fine, displays Hello World
If I set var url = 'http://dstrube.oit.gatech.edu/test/test.pdf';, then I get this error:
UnknownErrorException: Failed to fetch
If I set var url = 'test.pdf';, then I get this error:
MissingPDFException: Missing PDF "file://[path to file]".

What is the expected behavior? (add screenshot)
The page renders the pdf and an alert pops up with the text from the pdf. (This is how it behaves in the viewer link below.)

What went wrong? (add screenshot)
If var url = 'http://dstrube.oit.gatech.edu/test/test.pdf', then I get this error:
UnknownErrorException: Failed to fetch:

If var url = 'test.pdf', then I get this error:
MissingPDFException: Missing PDF "file://[path to file]".:

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
http://dstrube.oit.gatech.edu/test/test.html

Note, this only occurs if I run the script locally on my machine. If I run it from a webserver, it works fine.

Please see https://github.com/mozilla/pdf.js#getting-the-code, where it's explicitly mentioned that you need to use a web server in order for things to work correctly.
This is a limitation of browsers, rather than the PDF.js library, and as such this issue is INVALID.


Remove gleam_stdlib dependency

Uses: io.print, io.println, list.each, list.map
Uses some more in the example file, which could be removed as well, the example can live on as documentation.
Once these are removed, glychee can be used to benchmark gleam_stdlib functions.

Removed gleam_erlang and gleeunit deps already:
https://github.com/inoas/glychee/tree/remove-stdlib-dep


Avoid some types of crashes when load xml

Download:
Environment: QT=5.12, ARCH=64, PYTHON_PATH=C:\Python35-x64
Environment: QT=5.12, ARCH=32, PYTHON_PATH=C:\Python35


added pyimagesearch.com to "Blogs to subscribe"

added pyimagesearch.com to "Blogs to subscribe"

Great. Thank you!


HTTPPut Examples Please?

Hello, I have searched other forums but I am not finding a lot of support for the VBA-WEB tools (Access VBA examples). Thank you in advance!
This is the sample I am trying to reproduce:
'curl -XPUT -H "Authorization: Bearer [oauth_token]" -H "Accept-Version: 3.0" -H "Content-Type: application/hal+json" https://api.xxxxx.com/api/listings/[id] --data "...
I am getting error 405
This is my current code:
`    Private Sub UpdateListing()
Dim lListingID As Long
Dim dInventoryQTY As Double

'loop through a record set of updated listings and push them up
Dim rsUpdateListing_Temp As DAO.Recordset
Set rsUpdateListing_Temp = CurrentDb.OpenRecordset("UpdateListings_Temp")
With rsUpdateListing_Temp

    Do While Not .EOF
        lListingID = !ListingID
        dInventoryQTY = !InventoryQty

    'grab the values, put into json string
    Dim Client As New WebClient
    Client.BaseUrl = "https://api.xxxxx.com/api/"
    Dim Request As New WebRequest
    Request.Resource = "listings/"
    Request.Method = WebMethod.HttpPut
    Request.Format = WebFormat.Json
    Request.AddHeader "Authorization", m_sToken
    Request.AddHeader "Content-Type", "application/hal+json"
    Request.AddHeader "Accept", "application/hal+json"
    Request.AddHeader "Accept-Version", "3.0"

    Dim Listing As New Dictionary
    Set Listing = New Dictionary
    Listing("inventory") = dInventoryQTY
    Set Request.Body = Listing
    Request.AddUrlSegment "[id]", lListingID
    Dim response As WebResponse
    Set response = Client.Execute(Request)
    If response.StatusCode = WebStatusCode.Created Then
        MsgBox ("Updated")
    End If
    .MoveNext
    Loop
    .Close
End With
Set rsUpdateListing_Temp = Nothing

End Sub
`

Update - thank you in advance!
Here is my current code,
`Private Sub UpdateListing()
'curl -XPUT -H "Authorization: Bearer [oauth_token]" -H "Accept-Version: 3.0" -H "Content-Type: application/hal+json" https://api.xxxxx.com/api/listings/[id] --data "...

Dim lListingID As Long
Dim dInventoryQTY As Double

'loop through a record set of updated listings and push them up
Dim rsUpdateListing_Temp As DAO.Recordset
Set rsUpdateListing_Temp = CurrentDb.OpenRecordset("UpdateListings_Temp")
With rsUpdateListing_Temp

    Do While Not .EOF
        lListingID = !ListingID
        dInventoryQTY = !InventoryQty

    'grab the values, put into json string

    Dim Client As New WebClient
    Client.BaseUrl = https://api.xxxxx.com/api/

    Dim Request As New WebRequest
    Request.Resource = "listings/{id}"
    Request.Method = WebMethod.HttpPut

    Request.Format = WebFormat.Json
    Request.AddHeader "Authorization", m_sToken
    Request.AddHeader "Content-Type", "application/hal+json"
    Request.AddHeader "Accept", "application/hal+json"
    Request.AddHeader "Accept-Version", "3.0"

    Dim Listing As New Dictionary
    Set Listing = New Dictionary

    Listing("inventory") = dInventoryQTY
    Set Request.Body = Listing
    Request.AddUrlSegment "id", lListingID
    Dim response As WebResponse
    Set response = Client.Execute(Request)

    If response.StatusCode = WebStatusCode.Created Then
        MsgBox ("Updated")
    End If

    .MoveNext
    Loop
    .Close
End With
Set rsUpdateListing_Temp = Nothing
End Sub

`
Here is the response. Now it's 404:
--> Request - 5:40:40 AM
PUT https://api.xxxxx.com/api/listings/xxxxx
Authorization: Bearer xxxxxxxx
Content-Type: application/json
Accept: application/json
Accept-Version: 3.0
User-Agent: VBA-Web v4.1.3 (https://github.com/VBA-tools/VBA-Web)
Content-Length: 15
{"inventory":0}
<-- Response - 5:40:40 AM
404 Not Found
Cache-Control: no-cache
Connection: keep-alive
Date: Wed, 18 Apr 2018 12:40:38 GMT
Via: 1.1 varnish
Content-Length: 61
Content-Type: application/hal+json
Accept-Ranges: bytes
Server: openresty
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization,Content-Type,Accept,Origin,User-Agent,Cache-Control,Keep-Alive,X-Requested-With,If-Modified-Since,X-Auth-Token,X-xxxx-App,X-xxxx-Embed-Location,X-Display-Currency,X-Shipping-Region,X-CSRF-Token,Accept-Version,X-Context-Id
Access-Control-Allow-Methods: GET,PUT,POST,PATCH,DELETE,HEAD,OPTIONS
Access-Control-Allow-Origin: *
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: sameorigin
X-Permitted-Cross-Domain-Policies: none
X-Request-Id: xxxxx
X-Revision: xxxxx
X-Runtime: 0.xxxxx
X-XSS-Protection: 1; mode=block
Backend-Name: xxxxx
xxxxx
Backend-IP: xxxxx
X-Shield: true
X-Served-By: cache-lax8621-LAX
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: xxxxx
X-VCL-Version: xxx
Strict-Transport-Security: max-age=31536000
{"message":"Sorry, we couldn't find what you're looking for"}

@timhall , is there anything that jumps out that I am doing wrong? Thank you so much!

PUT https://api.xxxxx.com/api/listings/xxxxx
404 Not Found
You'd have to ask the api host why resource xxxxx isn't being found, I would imagine.
Since you have the entire HTTP PUT message you can ask them what's missing/wrong.
`PUT https://api.xxxxx.com/api/listings/xxxxx
Authorization: Bearer xxxxxxxx
Content-Type: application/json
Accept: application/json
Accept-Version: 3.0
User-Agent: VBA-Web v4.1.3 (https://github.com/VBA-tools/VBA-Web)
Content-Length: 15
{"inventory":0}`


create接口 在cordova ios程序中报错

我在cordova中使用这个库，当调用create接口是，会报错，loadchar错误，内核是使用的wkwebview 请问如何解决？谢谢

the error is : Unhandled Promise Rejection: Error: Failed to load char data for 中  in hanzi-writer.min.js:1641
the hanziwriter version is v2.0.2

hrm it's hard to tell from that error why it's unable to load character data. Is networking restricted inside of cordova? If you try running the following js code inside of cordova, is it able to load character data?
fetch('https://cdn.jsdelivr.net/npm/hanzi-writer-data@2.0.1/中.json').then(res => res.json()).then(console.log)

Thank you very much for your reply! Can I download all Chinese character files locally and load them directly from local? Is there an interface for local loading? I want my app to work without the Internet.

hrm it's hard to tell from that error why it's unable to load character data. Is networking restricted inside of cordova? If you try running the following js code inside of cordova, is it able to load character data?
fetch('https://cdn.jsdelivr.net/npm/hanzi-writer-data@2.0.1/中.json').then(res => res.json()).then(console.log)

hrm it's hard to tell from that error why it's unable to load character data. Is networking restricted inside of cordova? If you try running the following js code inside of cordova, is it able to load character data?
fetch('https://cdn.jsdelivr.net/npm/hanzi-writer-data@2.0.1/中.json').then(res => res.json()).then(console.log)

Thank you very much for your reply! Can I download all Chinese character files locally and load them directly from local? Is there an interface for local loading? I want my app to work without the Internet.

Yes, definitely! All the character data is in this repo: https://github.com/chanind/hanzi-writer-data. You can load data locally - you just need to provide your own charDataLoader function. More info here: https://chanind.github.io/hanzi-writer/docs#loading-character-data-link

Yes, definitely! All the character data is in this repo: https://github.com/chanind/hanzi-writer-data. You can load data locally - you just need to provide your own charDataLoader function. More info here: https://chanind.github.io/hanzi-writer/docs#loading-character-data-link

Thank you very much for your help. I have implemented my function. It's a really good library. Very simple and convenient to use; But I still have some questions to ask: how to make JSON file of each Chinese character, the data in it looks like the PATH data. I want to try to draw English letters according to this idea.

Yes that's exactly right - the JSON data has SVG paths, and then medians which define how the stroke are animated. English letters are hard to do though because a lot of the strokes cross over themselves. the way HanziWriter does animation it won't be able to animate those strokes properly.

Yes that's exactly right - the JSON data has SVG paths, and then medians which define how the stroke are animated. English letters are hard to do though because a lot of the strokes cross over themselves. the way HanziWriter does animation it won't be able to animate those strokes properly.

Have you ever thought about developing a letter-drawing program, which is very useful. Because many people don't know the correct writing order of letters.


Prepare for image becoming official (change links, image id, etc.)

Fixing preemptive merge from #7

Is it safe to merge this now that https://github.com/docker-library/official-images/pull/409 is closed and https://registry.hub.docker.com/_/iojs/ is live? Or would we like to let https://github.com/iojs/docker-iojs/issues/9 play out first?

I think we should wait for https://github.com/docker-library/docs/pull/141 to be merged as well. /cc @tianon
#9 can wait IMO, let's gather more opinions and not rush it.

Since this isn't about the docs and is the source of the image itself,
wouldn't it make sense to merge this now?  You've officially got /_/iojs,
and now we're just working on the docs which are out-of-band, so I'm not
sure there's a reason to hold this up based on the docs PR, right?

Ok, merged.


Typo "@publication="→"@publication="

bold with escape characters
https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-validatemergepublication-transact-sql?view=sql-server-2017

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

Thanks. Correction confirmed.


[BUG] Work resources can hit size limit

Describe the bug
When creating a ClusterResourcePlacement selecting a Namespace, a single Work object is created with all the resources of the Namespace, and this can cause it's size to exceed Kubernetes limits. ClusterResourceSnapshot currently bypasses this by creating several resources, why isn't this done to Work as well?
On the other hand, it would seem that there is a lot of overhead currently in fleet, ClusterResourceSnapshots store the whole manifests of the selected resources, then Work stores them again, this increases storage usage by 3x. So a couple a questions come to my mind:

Do we really need to store the whole manifests in both resources?
Do we really need to store manifests at all? I mean, whenever a change is detected in a resource, you could just fetch that resource and get the source of truth.

We do split the total resources into multiple works https://github.com/Azure/fleet/blob/9d2d0ea03deec6535322d654fccfbd4f480f2132/pkg/controllers/workgenerator/controller.go#L316
I wonder if you have observed that we only create one work even when there are many resourceSnapshots?
Yes, there are duplications and there can be more than 3 copies, but they all serve different purposes. The snapshot is needed to allow users to have a planned rollout any changes instead of blast the latest to every cluster. Also, this allows the system to enforce the rule of "IgnoreDuringExecution" that we don't move a resource around when there is any change. For example, if you have a deployment and you change a parameter of one of the containers, we won't move it to a different set of clusters.
The work object is a per cluster copy instead of cluster scoped object which means the number of copies is proportional to the number of clusters you want to place. There are many reason for this approach. One of the reason is to support https://github.com/Azure/fleet/tree/main/docs/concepts/Override so that each member cluster can get a customized version.
The other reason is
https://github.com/Azure/fleet/blob/main/docs/concepts/ClusterResourcePlacement/README.md#envelope-object.
With that said, I wonder if you have any use case that the ETCD space is a real concern?


eggdrop: 1.9.3 -> 1.9.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/eggheads/eggdrop/releases.
meta.description for eggdrop is: An Internet Relay Chat (IRC) bot
meta.homepage for eggdrop is: https://www.eggheads.org
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.9.4 with grep in /nix/store/8x57z0nvmfcmjqqbirs4agk5ygcfxsjj-eggdrop-1.9.4
found 1.9.4 in filename of file in /nix/store/8x57z0nvmfcmjqqbirs4agk5ygcfxsjj-eggdrop-1.9.4

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
eggdrop

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/8x57z0nvmfcmjqqbirs4agk5ygcfxsjj-eggdrop-1.9.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A eggdrop https://github.com/r-ryantm/nixpkgs/archive/16f77d971347d5fadd68e26cc6b9a0345b14db83.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/8x57z0nvmfcmjqqbirs4agk5ygcfxsjj-eggdrop-1.9.4
ls -la /nix/store/8x57z0nvmfcmjqqbirs4agk5ygcfxsjj-eggdrop-1.9.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

eggdrop

Maintainer pings

@ofborg build eggdrop eggdrop.passthru.tests


Getting Error on Windows whenever Quit is clicked from menu

Trying to get devdogs running on Windows, and found this error in terminal whenever I click "Quit".
[6XXX:1XXX/1XXXX2:ERROR:ipc_channel_win.cc(435)] pipe error: 232

But the program still quits as expected, and using keyboard shortcut to quit doesn't show the error.

described in readme, doesn't support Windows


Brings back #86, but with fixes

This reverts the revert for #86 (#106), but adds the necessary fixes.

I think we have some duplication here now:
Previously I added this in #86 in the layout.js file:
https://github.com/circuitpython/web-editor/blob/main/js/layout.js#L92
and your PR now added it again here in the script.js file:
https://github.com/circuitpython/web-editor/pull/107/files#diff-54728521937e00eb49236a8b8da0234bb36b320e2daf746b0447d6cbcee4903aR377
or did all the revert-revert-revert commits break the diff somehow?

Ah, ok. I didn't realize it was just moved.


[11.x] Use native UUID column type on MariaDB

With the new dedicated driver, MariaDB users can now benefit from the native column type for UUIDs (Laravel uses char(36) at the moment).
This would be a breaking change for existing applications, but since the driver is new, users have to consciously switch to it and will be made aware of this change. They should convert their existing UUID columns to the native type. I'll document it in the upgrade guide.

What about ->strict() modifier? Then we can use the same modifier on some other types/drivers like for sqlite strict mode: https://www.sqlite.org/stricttables.html
For example string() is currently a varchar on sqlite but we can use string()->strict() to get text and avoid breaking change (however, is it really a BC?)

But user expects uuid type when declaring uuid column? We already use uuid type on pgsql and uniqueidentifier type on sqlsrv, and it fallbacks to char(36) on MySQL. Isn't it totally expected to have uuid type on mariadb when it's supported?

It's more about the breaking changes involved. If you already have an app in production using uuid() where it creates a char(36), then you upgrade to Laravel 11 and setup a new dev machine, your column locally is now a native UUID but production is a char(36).

I understand, but I think it's easier to explain this on the L11 upgrade guide (user may explicitly use ->char('uuid', 36) if they want), than explain this on the migrations docs that it's sometimes a UUID and sometimes not.
But if we are going to use a modifier, I suggest ->strict(). We can use this on some other types on SQLite too, to be able to enable strict mode: https://www.sqlite.org/stricttables.html

I wonder if a nativeUuid method would be better? Or even uuid()->native() which I think I like even more.

@taylorotwell Would you make this a MariaDB-only method/modifier or should it work with all DBMS that have a native column type for UUIDs (MariaDB, PostgreSQL, SQL Server) and throw an exception for all other DBMS?

We are using MariaDB and UUID's and I would prefer the breaking change over a native() method. The breaking change is a one time effort required when upgrading, the native() is something everyone have to keep doing forever.
The breaking change better aligns with what we expect: a native type if possible, or a generic fallback.
We have always assumed that whenever a native type becomes available, the type methods would be updated to reflect the current best available options.
The upgrade guide would have to mention this of course and maybe the upgrade guide could give a small code example of how to convert existing char(36) to proper uuid type in a migration.

@johanrosenson I personally also prefer the breaking change. If there is ever a good time for this, it would be now.
@taylorotwell I reverted the changes and added the nativeUuid() type. I looked into uuid()->native(), but since modifiers can only add SQL after to the column type, we can't use them to replace char(36) with uuid without changing quite a bit of code.
There are three helper methods for UUIDs: foreignUuid(), uuidMorphs(), and nullableUuidMorphs()
Do you want to have equivalents for native UUIDs?

Decided to just go with your original commit of using native UUID on uuid method. 👍


upgrade mysql connector from 6.0.5 to 8.0.16

due to a security vulnerability. Tested with light-portal ref-command and ref-query to ensure the new MySQL client is working.

CVE-2019-2692
moderate severity
Vulnerable versions: < 8.0.16
Patched version: 8.0.16
Vulnerability in the MySQL Connectors component of Oracle MySQL (subcomponent: Connector/J). Supported versions that are affected are 8.0.15 and prior. Difficult to exploit vulnerability allows high privileged attacker with logon to the infrastructure where MySQL Connectors executes to compromise MySQL Connectors. Successful attacks require human interaction from a person other than the attacker. Successful attacks of this vulnerability can result in takeover of MySQL Connectors. CVSS 3.0 Base Score 6.3 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H).


Login error

Upon logging in using valid credentials, I am met with this error
Unknown error while attempting to login. Please check back later while we look into the issue.
The process cannot access the file 'C:\inetpub\wwwroot\Photos\0E\0E80B06D-DFD2-49F9-B041-2958A9655264_IconData.PNG' because it is being used by another process....

If possible, could you supply some more details?


Add count of clicks on "dcp1" link in banner to Q1 analytics

@MillenniumFalconMechanic is this completed?

obsolete


[Build Fault]: Trying to import react-i18next to react-components

Before proceeding, is there an existing issue or discussion for this?

[X] I have done a search for similar issues and discussions.

Description
I am trying to import react-i18next and i18next to my project to add language preferences but in the dashboard folder, there is no problem I can easily import and use language settings. However, in the react-components folder once I try to import these packages I am having an error in the build stage. It is not about the package dependencies it gives a typescript error like this "../../node_modules/.pnpm/i18next@23.8.2/node_modules/i18next/typescript/t.v4.d.ts(182,47): error TS1005: '?' expected."
Is there anyone who has encountered any issue like that?

Hey @aaronchongth for your info I have fixed the typing ussie thats because the version of typscript needs to be latest version whcih is 5.3.3


Add-worksheet

Can you give an example for Add-worksheet

$xl  = Open-ExcelPackage -path "James.xlsx"
Add-worksheet -ExcelPackage $xl -WorkSheetname "Hello"

Returns the worksheet object representing the Sheet "hello" in the file "james.xlsx" - if the sheet does not exist it will be created. If -clearsheet is specified any existing sheet of this name will be deleted first. If it is not specified and the sheet exists then the pre-existing sheet is returned as found in the file.

Thank you


feat(trading): rewards page

Related issues 🔗
Partially addresses #4532
Does not contain

Activity streak
Vesting info
Multiplier info

Description ℹ
Adds rewards tab to the portfolio page
Demo 📺
Connected:

Disconnected:

Technical 👨🔧
Details of technical implementation that reviewers may need to be aware of, if applicable.

@mattrussell36 should i be able to go down to -1 epoch?

Also i wonder if it would be useful to have a button or something to put the "to" epoch to current?

@mattrussell36 should i be able to go down to -1 epoch?
Also i wonder if it would be useful to have a button or something to put the "to" epoch to current?

No, this should never bee negative, @bwallacee This is fixed.

LGTM, but do we need specs added for this?

@mattrussell36 retested and it LGTM, but do we need specs added for this?

@bwallacee I've added some specs


Add Nipun Gupta to Contributors list

@nipungupta99, could you please add your mane to https://github.com/Roshanjossey/first-contributions/blob/master/Contributors.md rather than CONTRIBUTING.md ?


Add ability to create projects

Users should be able to create their own projects if that feature is enabled globally. If it is not, only the system administrator should be able to create projects.

Complete, https://github.com/austinsand/doc-roba/commit/7e176831cb0d97d171931395b56c8b1c528c82ea


Add docker container for 2.0

Describe Problem
branch 2.0 doesnt have a docker container
Suggest Solution
have a docker container
Additional Details
This includes everything it needs to run.

Resolved by #46


ORT 1.5.0: FATAL on regex_revalidate.config returned HTTP 404!

There is a FATAL error in ORT 1.5.0 when there is no active revalidation. Makes syncds and badass mode fail.
This was run in badass mode :
FATAL https://traffic-ops.kabletown.net/Trafficserver-Snapshots/tve/regex_revalidate.config returned HTTP 404!
[root@mid ~]#

this will get fixes when we fix #1357.

Example from 0.53c ORT which works fine.
[root@dukecdmid07 ~]# /opt/ort/traffic_ops_ort.pl badass warn https://dukecdcms0002.rd.at.cox.net chs:w@term@rk -dispersion=1
Fri May 20 12:38:43 UTC 2016
Version of this script: 0.53c
WARN Sleeping for 4 seconds: ....
ERROR Deleting directories older than<PHONE_NUMBER>
ERROR Received error code 404 for https://traffic-ops.kabletown.net/Trafficserver-Snapshots/tve/regex_revalidate.config from Traffic Ops!
ERROR Result from curling https://traffic-ops.kabletown.net/Trafficserver-Snapshots/tve/regex_revalidate.config is HTTP 404!
ERROR Received error code 404 for https://traffic-ops.kabletown.net/Trafficserver-Snapshots/tve/regex_revalidate.config from Traffic Ops!
ERROR Result from curling https://traffic-ops.kabletown.net/Trafficserver-Snapshots/tve/regex_revalidate.config is HTTP 404!

I upgraded to traffic_ops_ort-1.6.0-3500.9d1ef9d1. Just confirming this is still present with #1357 fixed.

What is that Trafficserver-Snapshots path? Is this still required?
Seems like the current path is /genfiles/view/<hostname>

Alright... By default when you install Traffic Ops and have the regex_revalidate.config location, you need to either

touch the /opt/traffic_ops/app/public/Trafficserver-Snapshots/<cdn>/regex_revalidate.config file
Invalidate some funky content so the file is created

Not sure what the real fix is. Not sure the install and/or Traffic Ops startup could create those files.
I believe this parameter is installed by default as well :
json/profile_parameter.json:{"profile":"EDGE1_CDN_520","parameter":"location","config_file":"regex_revalidate.config","value":"/opt/trafficserver/etc/trafficserver"}

Now generated in real-time


Todo: add exclude dirs

I found that trepo is including packer installed plugins and other repos
that I really don't want to end up in the search.
Which is easiest:

modify the locate command to exclude dirs.
modify trepo?

This exists already actually, just by leveraging telescope’s filtering capabilities: https://cj.rs/telescope-repo-nvim/#exclude-irrelevant-results
However, it looks like it’s not easy to find in the README, if you have an idea of where to put it in the readme, feel free.


Add missing location prop

This fixes the bug identified before doing the demo.

Coverage remained the same at 80.0% when pulling 1b14fb587f51f15cb93aad0d86ee0f1ff9969fde on fix-login-bug into 87d216bc189345057760dda7baa08ffee6d9c529 on master.


在线版分词错误

Describe the bug
例：马斯克突然放话收购推特，出价2700亿让它退市。

"推特，"
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Describe the current behavior
不只这一个句子，在线版上已见过多次 把词与标点 分在一起的情况。

使用本地版hanlp-2.1.0b24， tok模型 FINE_ELECTRA_SMALL_ZH， 对例句分词结果正确。
Expected behavior
A clear and concise description of what you expected to happen.
System information

OS Platform and Distribution (Linux Ubuntu 16.04):
Python version: 3.9
HanLP version: 2.1.0b24

Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

[x] I've completed this form and searched the web for solutions.

感谢反馈，已经修复，请参考上面的commit。
如果还有问题，欢迎重开issue。


Lower Python version requirement.

Python version requirement is currently 3.8.
This should be lowered to 3.6 at least and have suitable test etc.

Completed in version 0.1.1.


Suicide Attempt prediction

This task aims to identify a potential suicide attempt for the user based on the presence of a rope. Here's what the model will check:

Is there a rope above the user?
Is the rope looped around itself, forming a circle? (This indicates a potential entanglement hazard.)
Is the user's wrist touching the rope?

If all three conditions are met, the model will predict danger. This information can then be used to warn the user or take appropriate action.

I am a contributor from GSSoC'24. Please assign me the issue.
Proposed approach:

Train an object detection model to detect looped ropes, and differentiate it from the normal ropes.
Apply the above model with face and hand detection models and get their bounding boxes.
Check for the overlapping boxes between the three for any similar region.

Check for a person's head and the looped rope, and compare the Y-axis of the bounding boxes (bboxes).
Then, check for a hand to be in the region of the rope.

If the above two conditions are met, the output will be danger. If the no. 1 condition is satisfied for a potential entanglement, the output will be warn. Morever, if the bboxes of the face and the rope coincides, the output will be critical danger.
It is assumed that OpenCV will be used for video capture.

@SAM-DEV007 I have assigned this issue to you

@TAHIR0110 Thanks. I'll start working on it.

hi @TAHIR0110  i wanna contribute assign this issue to me

Please assign me this issue GSSoC'24.

@TAHIR0110 A pull request has been created with all the details including pros and cons.

@SAM-DEV007 good work I have merged your pull request

@TAHIR0110 Thanks. Let me know if the training and inference files should be added too or not. It is currently ignored as it doesn't provide any additional benefits to the repository.

@TAHIR0110 Thanks. A small request, can you also add gssoc label?

@SAM-DEV007 done

Hey @TAHIR0110 , this issue has been assigned so long ago and I see no progress in it. I would like to work on this issue, Could you please assign it to me.


feat: Add logo

Features

[x] Add logo designed by @doanhuuviet

@all-contributors please add @doanhuuviet for design


LLVM-Backend Generated Interpreter C API Documentation

The LLVM backend, in conjunction with the tool llvm-kompile, can generate object files which contain the entire definition of an K semantics as machine object code.
These object files can then be used to link the LLVM-generated interpreters into custom C code, or any language that supports C FFIs.
However, currently, the interface that the LLVM-backend generated interpreters expose is a mixture of hard-coded and compile-time generated symbols, and there is no documentation of which sybmols are exported or best practices around, e.g., which symbols are considered part of a stable API and which symbols are considered internal and should not be explicitly linked against.
Such documentation would not only enable K developers to more easily productize K by adapting to specific client needs, it would also enable more possible uses of K in the broader community.
For those reasons, I think it is worth documenting these symbols (even if the documentation is marked experimental, as needed).

https://github.com/runtimeverification/llvm-backend/blob/master/bindings/c/include/kllvm-c/kllvm-c.h
There is a limited C API that we support (currently consumed by the new Haskell backend to implement concrete simplification). I agree that it needs documentation; there is an ongoing effort to improve the documentation of the backend in general: #621

As part of this issue, I realized that I didn't understand the architecture of the LLVM backend --- and some care is needed in this matter because of the possibility of link time failures.
After reviewing all of the steps, it seems that we have the following situation:

the LLVM backend itself is compiled, including all of its various components:

the Java/Scala decision tree generator that produces the dt_*.yaml files
all of the LLVM-backend native tools are built including

llvm-kompile-codegen - takes kore file and dt_*.yaml files and produces object file containing semantics implementation (excluding hooked functions)
kprint - takes kore term and definition.kore file and pretty prints the kore term

the LLVM-backend interpreter runtime libraries are compiled

kompile is invoked which does the following:

frontend takes K file, does analysis/error checking/etc. and produces definition.kore + the decision tree directory
backend uses llvm-compile-codegen which takes definition.kore (for symbols) and decision tree directory (for rules) and compiles semantics implementation into an object file (minus hooked functions)
backend links object file with previously compiled runtime library archives (and possibly with any user-provided C code/object files)

Is the picture I have painted above accurate? This would be helpful to iron out both for the blog post and for our internal documentation.

Is the picture I have painted above accurate?

Yes, that's a very good summary of the backend architecture - thanks @sskeirik!


Some images can't be navigated

e.g. https://ima.ge.cx/crossplanecontrib/provider-gitlab:v0.3.0@sha256:3dd3d5b6f0fe600a2b43adbcf0e2ce289aff3838ffcab43e98ee37e9a231654b
find out what's going on here:

Also seen in Massimo's image: https://ima.ge.cx/mreferre/yelb-appserver:0.6@sha256:20e384d1d40ef1f27f924d5c7979f6f6d5193164ad41d59f6ac69ae947363588#


Error output: Add line number & relation

When receiving an error like:
error: Overloading of predicate names by arity is currently not supported.
it would be good, to output the line number and relation which caused he error.

Another case is when I try to output a relation that does not exist (i.e. because of a typo), I receive the imprecise error message :
thread 'main' panicked at nemo/src/execution/execution_engine.rs:783:26: all predicates should have a type by now

Likely addressed in #455.


musikcube: 0.98.1 -> 0.99.3

Description of changes
new release, most notable change is the drop of boost https://github.com/clangen/musikcube/releases/tag/0.99.0, asio must be added as a replacement because it's required for a header.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Given this PR is still open and musikcube 0.99.3 has been released since, would you mind updating this PR, @rapenne-s?

libgme requirement was added between 0.99.0 to 0.99.3 changes

… and musikcube 0.99.4 was released 😅. Mind doing another update to this PR @rapenne-s?


docs.rs failed to build

Docs on docs.rs are currently failing to build: https://docs.rs/crate/esp-wifi/0.5.0/builds/1194959/riscv32imc-unknown-none-elf.txt
[INFO] [stderr] error: failed to select a version for `esp-hal`.
[INFO] [stderr]     ... required by package `esp-wifi v0.5.0 (/opt/rustwide/workdir)`
[INFO] [stderr] versions that meet the requirements `^0.17.0` (locked to 0.17.0) are: 0.17.0
[INFO] [stderr]
[INFO] [stderr] the package `esp-wifi` depends on `esp-hal`, with features: `embassy-time-systick` but `esp-hal` does not have these features.

Looks like issue is here: https://github.com/esp-rs/esp-wifi/blob/a62d7f41426fee073bfaf045f2b1d647397078c0/esp-wifi/Cargo.toml#L129 as embassy-time-systick was removed

@bjoernQ I think we need a patch release from main, as you've already updated the features for doc.rs in main (we should probably add a CI check for esp-wifi and esp-hal using cargo docs-rs).
@phemmer Sorry about this, we'll get the docs working next week, for now you can build the docs locally from main.

I was thinking if it's worth a patch release but probably it is

I was thinking if it's worth a patch release but probably it is

Yeah until we self host the docs like esp-hal, having the docs available is a must. Thanks for taking care of it!


Add support for Windows and macOS CI

Resolves #2 and #3.

Do the tests pass? Not yet.
But do they get spawned? Yes. ✅


Contributor page needs updates after landing stb-related improvements

We need to update https://pydata-sphinx-theme.readthedocs.io/en/latest/contributing.html, removing commands that are no longer relevant (ie. yarn), sections that are no longer needed (probably "Build the CSS/JS assets") and decide how deep we want to go in the description because we could explain things and the nox and stb level, but we might want to also go deeper?? (probably not).

I'm working on the dark-theme PR (#501) and I recently integrated the latest master to my local branch. Could you explain me how to build a dev environment and the doc locally with the new implementation ?

@12rambau you need to pip install sphinx-theme-builder in your current dev environment, and then you can use stb serve docs/ for testing, or use sbt compile to explicitly compile the css/js assets, and then proceed as you did before.
Or if you are using nox, that will take care of installing sphinx-theme-builder for you when needed, and the nox sessions should still work as they did before.

On a general note, related to the changes from #514, I think it would be useful to add back a requirements.txt or environment.yml file that lists all the dev-related dependencies.
For example, if I want to set up a dev environment with conda that includes all dependencies to be able to work on this theme and make the demo docs (without using the environment nox can create for you, eg if you want to control the sphinx version); that is currently a bit convoluted, as this list of optional dependencies now only lives in pyproject.toml.

2 small updates :

its stb compile(instead of the non existing sbt)
you need to install the cli version of sphinx-theme-builder: pip install sphinx-theme-builder[cli]

Yeah, I am constantly confusing sbt and stb :)

ok, now if I don't want to serve but just build the doc ? It seems that the make html command doesn't work anymore. Is there another stb trick ?

I found this one in the github actions of the repository, I assume it will do the trick: sphinx-build -b html docs/ docs/_build/html

If you are using nox, you can also do nox -s docs.
If you want to be able to built the docs manually without using sbt serve, we can also add back the make html if using sphinx-build directly is annoying. It was removed in the stb PR in the idea it won't be needed anymore (see also my comment about it at https://github.com/pydata/pydata-sphinx-theme/pull/514#discussion_r755840039)

if only I could use nox it doesn't work on my company system (I think it's linked with conda but I clearly don't want to raise the issue and make them realize that I installed other stuff.

I get the following error:
Theme error:
An error happened in rendering the page changelog.
Reason: UndefinedError("'jinja2.environment.TemplateModule object' has no attribute 'head_post'")

Any idea where it could come from ?

As nothing was working I gave up on my branch, I fork back the project in one of my organization. I tried the nox process but nothing worked either:
I tried the following:
pip install .[dev]
pre-commit install
nox -s docs

the system answered me with the following error:
Extension error:
Notebook execution failed (exception: Kernel died before replying to kernel_info)
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/Users/pierrickrambaud/opt/miniconda3/lib/python3.8/site-packages/nbclient/client.py", line 370, in _async_cleanup_kernel
    assert self.km is not None
AssertionError
Command exited with exit code: 2
The server will continue serving the build folder, but the contents being served are no longer in sync with the documentation sources. Please fix the cause of the error above or press Ctrl+C to stop the server.

Could you show me a way to install the lib and build the documentation ? I really would like to push the dark theme and move to another project

Any idea where it could come from?

The templates have likely changed. If you're running through sphinx-build, pass a --verbose flag and try again. It'll print a traceback.

@12rambau - the error you describe looks like it is actually related to executing the Jupyter notebook in the demo docs - do you see any traceback from that error earlier on in the build process?

@choldgraf I saw you added some stuff to my branch I'll check again on a fresh install if I can manage to start it, maybe you solved everything ;-)

And when you say that nox can't work, is that because it's restricted at your company or something?

exactly, I think nox try to write stuff in a floder where I don't have the rights (e.g. usr/). I'm going to check on my personal computer to see if there are any differences.

I believe that nox will just write things to a local folder (.nox/) I believe.
Your error is related to executing the notebook content in demo/demo. Could you try deleting that page and see if your docs build properly then?


Visualize leaf criterion

hi @parrt,
leaves from regressor and classifier trees contains two important information : number of samples and criterion.
Criterion for regressor are “mse”, “friedman_mse”, “mae” and for classifer are "gini" and "entropy". All of them shows the leaf performance/confidence for its predictions.
I think would be helpful to have some visualisations for leaf criterion. Each leaf performance, in the end, will determine the general tree performance.
It's also useful to interpret leaf criterion in parallel with leaf samples. For ex. a leaf could have a very good performance (ex. gini -> 0), but that leaf contains very few samples... so that leaf will overfit. The best scenario for a leaf is to have good performance and many leaf samples.

We can also plot the histogram of leaf criterion. This is useful when the tree has a lot of leaves or when you want to have a general point-of-view about all leaf criterion (general tree performance).

I already have an implementation for these visualisations (95% ready for a PR).
What do you think about it ? :)

hi @parrt, any feedback on this ? :) thanks

Sorry for the delay. Been focusing on paper.  if I understand correctly, we already have a histogram of number of samples but you are proposing adding histogram showing the criterion?

@parrt, yes, that's correct. I've already mentioned the reasons why I think these new visualisations  can add new values/insights :)

I think this is useful. (btw, We should be careful to make sure that our histograms always have bar width that are the same for consistency, just like they are in the decision nodes.)
I wonder if we want a combined diagram where we multiply the number of samples by the criterion?  Maybe both? Then, at a glance, people can look at the histogram to see which ones have the most confidence?

I like the idea of multiplying number of samples by criterion. I will make a plot to see how it looks.
I don't know what you mean by "Maybe both?" :)

Maybe we want a separate histogram to show the criterion and the ability to show the multiplication of the two.  Actually, if the criterion is an error metric, then we should be dividing by the error, since that will give a bigger bar if the error is low.

hi @parrt,
I started to think at visualisations about sample/criterion for leaves.
But when I put it on paper, something happened :).
Let's say we have two leaves, with 10 and 100 samples. Criterion 0.1 and 1 (for entropy, 1 is the worst)
based on our above formula :
leaf1  10/0.1 = 100 confidence
leaf2  100/1 = 100 confidence
OR another example :
leaf1 10/0.5 = 20
leaf2 20/0.5 = 40  (here these two leaves should have the same confidence)
I still like the idea of combining both #samples and criterion, but we need to think to another formula. Until then, I've created a PR with visualisations mentioned in the beginning of this issue.

yeah, any combo can lead to trouble, even if we normalize counts to 0..1.  Same ratio problem. hmm...  maybe we simply add the loss function value on top of each bar for leaf count graph and vice versa for leaf loss graph?


[EventRequest] Table 15 "G/L Account"

Hello MS,
Please help us in migrating our verticalized solution by adding below events in "G/L Account" table.
Standard Code (BC17 Cu03)

Modified Code

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


module 'enum' has no attribute 'IntFlag'

Trying pip install simpleimageio on Windows 10 with Python 3.7.6 fails:
$ python --version
Python 3.7.6

$ python -m pip install simpleimageio
Collecting simpleimageio
  Using cached SimpleImageIO-0.6.0.tar.gz (202 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\python37\python.exe' 'c:\python37\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Elie\AppData\Local\Temp\pip-build-env-odb10xmu\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=42' wheel 'cmake>=3.14'
       cwd: None
  Complete output (14 lines):
  Traceback (most recent call last):
    File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec)
    File "c:\python37\lib\runpy.py", line 85, in _run_code
      exec(code, run_globals)
    File "c:\python37\lib\site-packages\pip\__main__.py", line 23, in <module>
      from pip._internal.cli.main import main as _main  # isort:skip # noqa
    File "c:\python37\lib\site-packages\pip\_internal\cli\main.py", line 5, in <module>
      import locale
    File "c:\python37\lib\locale.py", line 16, in <module>
      import re
    File "c:\python37\lib\re.py", line 143, in <module>
      class RegexFlag(enum.IntFlag):
  AttributeError: module 'enum' has no attribute 'IntFlag'
  ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python37\python.exe' 'c:\python37\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Elie\AppData\Local\Temp\pip-build-env-odb10xmu\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=42' wheel 'cmake>=3.14' Check the logs for full command output.

I do not seem to have a conflicting installation of enum:
$ python
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import enum
>>> enum.IntFlag
<enum 'IntFlag'>

This is most likely a conflict with another package or an issue with your Python version. You could try to create a virtual environment and see if the problem persists. https://docs.python.org/3/tutorial/venv.html
Since the crash happens during installation of build dependencies (i.e. CMake), this is almost certainly not a problem with simpleimageio, but a problem with setuptools.
You can also try a manual local build. If you have CMake installed and in path and a C++ compiler (e.g., Visual Studio with the correct packages for native development) then you should be able to run:
python -m pip install --user wheel
python setup.py install

ALl right, I was in a virtualenv and it must have been something in there that was conflicting since I can no longer reproduce it neither in the system wise installation nor in a fresh venv!


fix: when using remote resources, the related metrics tag name is wrong

fixes: #7730
Prior to this PR, when pipeline refers to a remote pipeline, in the pipeline-related metrics, the pipeline name tag will be set to 'anonymous'. Taskrun has the same situation.
This commit added some scenarios for obtaining pipeline or task names. When the pipeline or task name cannot be determined accurately, the value is obtained through the corresponding label.
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[x] Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
[x] Has Tests included if any functionality added or changed
[x] pre-commit Passed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including functionality, content, code)
[x] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[ ] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
[ ] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

/test check-pr-has-kind-label

/test pull-tekton-pipeline-go-coverage-df

/ok-to-test

/approve

/cherry-pick release-v0.59.x

/cherry-pick release-v0.56.x

/cherry-pick release-v0.53.x

/cherry-pick release-v0.50.x


Fix https in Stack Overflow link

Docs Build status updates of commit c0e2765:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Issue_Template.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Added Git Team Server to preferences

@MariaShaposhnikova This is the proposed text for the preferences dialog. The release notes will point to this.

@MariaShaposhnikova to verify this goes with 9.6.

Verified by Robbert Jan that this goes in 9.6.


Create a default QR code template when creating an app

Not sure what the design for it should be

Duplicate of #106


Proper re-roll syntax

Like Elegant427 pointed out, our re-roll documentation is incorrect. We only have the exploding dice syntax. Re-roll is different from exploding dice in that it excludes the rerolled dice from the total sum.
To quote:

So, instead of getting exploding 1's
repeat(3d6[explode]1, 6) = (3+5+1+6) = 15, (1+3+2+4) = 10, (1+5+2+6) = 14, (1+6+4+5) = 16, (6+3+5) = 14, (4+2+1+2) = 9
A 're-roll' function would show something like
repeat(3d6[re-roll]1, 6) = (3+5+1+6) = 14, (1+3+2+4) = 9, (1+5+2+6) = 13, (1+6+4+5) = 15, (6+3+5) = 14, (4+2+1+2) = 8

As usual, roll20 has a syntax for us: https://wiki.roll20.net/Dice_Reference#Rerolling_Dice

Sorry if this counts as a necro, but it seems there still isn't an ability to do rerolling. Is this still a planned feature?

You can use /r 3d6r1 now.
It's limited to one re-roll per dice, currently.
For D&D halfling's luck it might be neither here nor there, we might limit to one re-roll per combination instead: "When you have advantage or disadvantage and something in the game, such as the halfling's Lucky trait, lets you reroll the d20, you can reroll only one of the dice. You choose which one. For example, if a halfling has advantage on an ability check and rolls a 1 and a 13, the halfling could use the Lucky trait to reroll the 1."
Still, rerolling once per dice seems like a sensible default, rerolling more might look artificial and complicate the rolls unnecessarily.


Use cave colors for dirt-tile of modern graphic sets

Modern graphic sets are very promising and can enhance the gaming experience a lot (like the boulder_rush.png set).
But they have one drawback: The colors set for each cave can not be used.
To have a more C64-like gaming experience with different colors in each cave it would be nice to have at least the dirt tile using the colors set for the cave (dirt, dirt 2, biter switch, dirt ball, loose dirt, sloped dirt, glued dirt).
In my opinion the dirt alone would be enough.
Enclosed a picture with a sample of my idea.

If anybody wants my latest graphics set can download the enclosed one.


How to make the motorcycle lane splitting?

Hello, everyone,
I need to make Carla close to Asia traffic conditions.
Like the picture below.

But now I have no idea how to make it work.
Is this work could make by PythonAPI?
Any help will be appreciated !!!
CARLA version: 0.9.13
Platform/OS: Linux 18.04

You can perhaps use the offset parameter when you setup the agent. For example, something like below:
cycle_agent = BasicAgent(bike_vehicle, opt_dict={'offset': 1.3, 'ignore_vehicles': True})
However, a larger (or smaller) offset may break the autopilot algorithm.

You can perhaps use the offset parameter when you set up the agent. For example, something like below: cycle_agent = BasicAgent(bike_vehicle, opt_dict={'offset': 1.3, 'ignore_vehicles': True}) However, a larger (or smaller) offset may break the autopilot algorithm.

Thanks for your answer
I have already tried this method, but it seems not to work.
I'll keep trying this method.
I appreciate any answers.


feat(sfc): step-circuit instances permutation

Motivation
Part of #319
Overview

Add field with step-circuit instances to StepConfig
Assign step-circuit instances into witness and made equality check with copy-constraint
Add instances example for test & give example of instances usage inside a step circuit. Will improve, at the end of #319

This PR doesn't finish the task, it just adds assign assign instances of columns. That is, it doesn't do collapsing at all, just linking
To finish this part, I need to finish permutation and then move on to collapsing.


Add fingerprint scanning support

Migrated to opendatakit/collect#57 by spacetelescope/github-issues-import
Originally reported on Google Code with ID 496
For Android OS (ARM based), we have the driver and ScanAPI for the Futronic FS80 to
capture a fingerprint image, but it has the following requirement:
 1. Have an USB Host port
 2. Have usbfs support in the kernel
 3. Have the root access right
 4. Have a folder "/data/" that can be read/write access.

Attached please find the libusb and ScanAPI libraries for Android, and the console
demo program with source code. To test it, you need to copy the libraries to the system
lib folder, then open the terminal, run as root user:
    #./ftrScanAPI_Ex_fs.

Reported by yanokwa on 2012-01-10 01:08:55

- _Attachment: [30_12_2010_scanapi_android_flock_bin_src.rar](https://storage.googleapis.com/google-code-attachments/opendatakit/issue-496/comment-0/30_12_2010_scanapi_android_flock_bin_src.rar)_

Migrated to opendatakit/collect#57 (comment) by spacetelescope/github-issues-import
Bluetooth scanner: http://www.innovatescan.com/hardware/bluefin/
Authentec SDK: http://forum.xda-developers.com/showthread.php?t=1206033

Reported by yanokwa on 2012-01-17 16:03:17

Hi mitchellsundt. i got a futronic fs88h and i need to develop an android activty that reads the fingerprint and send it to webapi c#. Can you help ?


Apply the requested mediaType to STJ request headers

Motivation
Currently all JSON requests from System.Text.Json generated clients are sent as application/json, even if that isn't one of the allowed content types on the spec.
Modifications
Send the requested media type, which will be the highest priority JSON content type provided on the spec. Also indicate UTF-8 encoding.
Fixes #200

/merge


Question about padding

I have a question about padding. It seems that the training of the model misses mask operation for padding.

Could you provide the line numbers?

In the model.py, it may be necessary for LSTM to do a mask for tokens with paddings.  In the solve.py, it may be required for masking the loss of padded tokens.

Thanks for your suggestion. Please feel free to try it yourself and see how it works.


Need TypeScript examples

Please consider adding TypeScript examples.

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

ID: a714626a-058a-789e-6add-5e9dfb21fd1f
Version Independent ID: 1b88a28c-fc36-4518-2808-7246f08d9753
Content: Use the Office dialog API in your Office Add-ins - Office Add-ins
Content Source: docs/develop/dialog-api-in-office-add-ins.md
Product: non-product-specific
Technology: add-ins
GitHub Login: @o365devx
Microsoft Alias: o365devx

Thanks for the suggestion. We periodically review whether to use more TypeScript code snippets. In the past, the conclusion we've always reached is that we don't have sufficient staff to create both JavaScript and TypeScript versions of most snippets and, between the two, it is more important for our audience to provide JavaScript snippets. However, we will review this again soon and I will note your vote in favor of more TypeScript.


Add change ended event

I think, it would be useful to have event that signal us that changing color is ended (for saturation and hue elements), in our case, it is when "mouseup" event is triggered.

change end event and chrome compact component are different  feature.
please split up for twice pull request


CQL should rename assignments

CQL should rename assignments in Actions. See #250
Version:  0.4.1-SNAPSHOT
Module:  quill-cassandra
Expected behavior
Property aliases should be reflected with assignments and Actions
Actual behavior
see #249
Steps to reproduce the behavior
see 249
@getquill/maintainers

@lvicentesanchez would you apply the same solution with quill-cassandra?

@gustavoamigo I have check your solution and I like it, it's similar to what I had in mind but making it part of Prepare is much cleaner. I'm going to port it to CQL and make a PR


Bug: Zipline gets rendered unusable

What happened?
Fresh install, config perfectly good.
Launch Zipline, restore a backup of images, urls, folders. Zipline works for ~5 mins then restarts, finds all videos without thumbnails, does nothing else.  Zipline never launches properly.

NOTE: images are not in order
Version
upstream (ghcr.io/diced/zipline:trunk)
What browser(s) are you seeing the problem on?
Firefox, Chromium-based (Chrome, Edge, Brave, Opera, mobile chrome/chromium based, etc), Safari, Firefox Mobile, Safari Mobile
Zipline Logs
No response
Browser Logs
No response
Additional Info
No response

172 worker threads... dear god

Should be fixed in https://github.com/diced/zipline/commit/4a254c55c81248235c2ed7dfdec378ebe3d6f026


602 unlocked accounts bug

Closes #602.

Coverage increased (+0.7%) to 75.021% when pulling 7b27795e94682d685b4059396d065d7aa526c00c on 602-unlockedAccountsBug into d87092870e88ac22f3a62af104159a355fd7d1d6 on master.

Coverage increased (+0.7%) to 75.021% when pulling 457ce5ffa87c715af88065e138ae799fe789385f on 602-unlockedAccountsBug into d87092870e88ac22f3a62af104159a355fd7d1d6 on master.

Coverage increased (+0.7%) to 74.99% when pulling ae28485bdaf2c4d0b71903c8e716e915c5aef87e on 602-unlockedAccountsBug into 850b0ed22e83b89aecf5d6a1ff9dcf44928d987c on master.


Cannot run the obsidian demo -- missing js module

I cannot run the obsidian dem because the FadeInModule.js is missing in the /examples/obsidian/js/modules/ directory.
<IP_ADDRESS> - - [07/Jul/2016 10:57:30] code 404, message File not found
<IP_ADDRESS> - - [07/Jul/2016 10:57:30] "GET /examples/obsidian/js/modules/FadeInModule.js HTTP/1.1" 404 -

there is not thing to do in examples directory, Just run index.html in editor directory.


Dapr build flavors.

Description
Draft to show the proposed solution for flavor builds
Issue reference

Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[ ] Code compiles correctly
[ ] Created/updated tests
[ ] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

Closing in favor of https://github.com/dapr/dapr/pull/6290


Add support for macCatalyst

Fix compliation for Mac Catalyst by avoiding GLKView.

@rjchatfield Thanks for this!


map_fn() missing GPU implementation

It appears that map_fn() does not have a GPU implementation for integer tensors, which seems to be causing performance issues for some networks I'm designing (e.g. excessive data copying).
This may be related to #5965, but map_fn() isn't explicitly mentioned there.
System information

Have I written custom code: Yes
OS Platform and Distribution: Linux Ubuntu 18.04 & Windows 10 x64
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): Ubuntu apt-get repo, WinPython
TensorFlow version (use command below): b'v1.13.1-0-g6612da8951' 1.13.1
Python version: 3.6.7
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: CUDA 10.0, cuDNN <IP_ADDRESS>
GPU model and memory: nVidia K80 & nVidia GTX 1050 Ti

Describe the current behavior
tf.map_fn() is located on the CPU when calling with integer tensors. Forcing GPU location results in an error message.
Describe the expected behavior
tf.map_fn() should have a GPU implementation to avoid excessive data copying.
Code to reproduce the issue
import tensorflow as tf

initial_integers = tf.zeros((10,), dtype=tf.int32)
initial_floats = tf.zeros((10,), dtype=tf.float32)

with tf.Session(config=tf.ConfigProto(allow_soft_placement=False)) as sess:
    with tf.device('/device:GPU:0'):

        # This works on GPU:
        results1 = tf.map_fn(tf.square, initial_floats)
        output1 = sess.run(results1)

        # This fails to locate on GPU, and results in an error.
        results2 = tf.map_fn(tf.square, initial_integers)
        output2 = sess.run(results2)

Yes, map_fn is central for parallelization. In https://github.com/tensorflow/tensorflow/issues/24774 ,  hansok has mentioned the problems 4 months ago, we request you to make this better.
4 years into tf, finding that a central op for parallelization on this lower layer isn't fast enough is a shame. https://github.com/tensorflow/tensorflow/issues/27644 issue is also related

@reedwm would you please take a look? Thanks.

The error message I get is:
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation map_1/TensorArray: Could not satisfy explicit device specification '' because the node {{colocation_node map_1/TensorArray}} was colocated with a group of nodes that required incompatible device '/device:GPU:0'. All available devices [/job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:XLA_CPU:0, /job:localhost/replica:0/task:0/device:XLA_GPU:0, /job:localhost/replica:0/task:0/device:GPU:0].
Colocation Debug Info:
Colocation group had the following types and supported devices:
Root Member(assigned_device_name_index_=-1 requested_device_name_='/device:GPU:0' assigned_device_name_='' resource_device_name_='' supported_device_types_=[CPU, XLA_CPU, XLA_GPU] possible_devices_=[]
TensorArrayScatterV3: CPU XLA_CPU XLA_GPU
TensorArrayReadV3: CPU XLA_CPU XLA_GPU
Enter: GPU CPU XLA_CPU XLA_GPU
Const: GPU CPU XLA_CPU XLA_GPU
TensorArrayV3: CPU XLA_CPU XLA_GPU

Colocation members, user-requested devices, and framework assigned devices, if any:
  zeros (Const)
  map_1/TensorArray (TensorArrayV3)
  map_1/TensorArrayUnstack/TensorArrayScatter/TensorArrayScatterV3 (TensorArrayScatterV3)
  map_1/while/TensorArrayReadV3/Enter (Enter) /device:GPU:0
  map_1/while/TensorArrayReadV3 (TensorArrayReadV3) /device:GPU:0

	 [[{{node map_1/TensorArray}}]]

The core problem is that TensorArray does not have a GPU implementation for most integer types, although int64 support was added in #22157.
Marking as contributions welcome for support for other integer types.

Hi, I would like to work on this issue. Is that ok?

@ila96, that sounds good. Thank you for working on this.

Hi, while I think we can enable support for int8 and int16, the int32 support is problematic because we often use int32s to represent shapes and sizes.  writing int32s to the GPU just to pull them off again to get a shape will create performance regressions for many existing users.

The current workaround is to store int32s that you want to have on GPU as int64s.  We are working on some grappler optimizers to determine whether a Tensor should be on CPU or GPU in a more intelligent fashion, but again we need to resolve some performance regressions before turning that on.  Once that's in, we can probably add a full non-host int32 gpu kernel.

Hi, I am also trying to use tf.map_fn to apply a function to all the elements in a tensor, but I have a custom function(binary search) to apply to the tensor. Here is a MWE:
import numpy as np
import tensorflow as tf

xaxis = tf.placeholder(tf.float32, shape=65, name='xaxis')
query = tf.placeholder(tf.float32, shape=(100,200,300), name='query')

# Binary search finding the closest value in xaxis to query
vals = tf.map_fn(lambda x: xaxis[tf.argmin(tf.cast(x >= xaxis, dtype=tf.int32)[1:] - tf.cast(x >= xaxis, dtype=tf.int32)[:-1])], tf.reshape(query,[-1]))

vals = tf.reshape(vals,[100,200,300])

q = np.random.uniform(0,1,[100,200,300])
x = np.array([ 0., 0.01351199363, 0.01605320922, 0.01919331, 0.02307077696, 0.02783668021, 0.03369964045,  0.0408574876, 0.04963394341, 0.06031676052, 0.07331958337, 0.08909202547, 0.1081556385,
            0.1311039123, 0.1586382439, 0.1914780151, 0.2305044681, 0.2810934435, 0.2836346591, 0.2867747599, 0.2906522269, 0.2954181301, 0.3012810904, 0.3084389375, 0.3172153933, 0.3278982104,
            0.3409010333, 0.3566734754, 0.3757370884, 0.3986853622, 0.4262196938, 0.459059465, 0.4980859181, 0.4991494381, 0.5016906537, 0.5048307545, 0.5087082214, 0.5134741247, 0.5193370849,
            0.5264949321, 0.5352713879, 0.545954205, 0.5589570279, 0.57472947, 0.593793083, 0.6167413568, 0.6442756884, 0.6771154595, 0.7161419126, 0.7830075255, 0.7855487411, 0.7886888419,
            0.7925663088, 0.7973322121, 0.8031951723, 0.8103530195, 0.8191294753, 0.8298122924, 0.8428151152, 0.8585875573, 0.8776511704, 0.9005994441, 0.9281337758, 0.9609735469, 1 ])

with tf.Session() as sess:
    start_time = time.time()
    value = sess.run(vals, feed_dict={xaxis: x, query: q})
    duration = time.time() - start_time
print(duration)

The GPU utilization when running this code is on 2%, while the GPU memory consumption is at maximum. Is this problem related to the tf.map_fn?

@ebrevdo, thanks for the feedback, I will change my PR to remove int32 then ;)

This is now fixed with recent TF 2.X versions.
I have tested TF 2.5, please refer the colab gist Thanks!


setContent is not working

Hi,
I want to use dynamic content for a tippy. Unfortunately I'm not able to change the content.
This is my component:
import React, { Component } from 'react'
import Tooltip from<EMAIL_ADDRESS>
export class ContextMenu extends Component {
	onCreate = tippy => {
		this.tippy = tippy
	}

	closeTippy = () => {
		this.tippy.hide()
	}

	renderInitialContent = () => (
        <button onClick={this.showConfirmation}>
            Delete
        </button>
	)

	renderConfirmationContent = () => (
        <button onClick={() => { this.closeTippy(); this.props.onRemove() }}>
            DELETE!
        </button>
	)

	showInitialContent = () => {
		this.tippy.setContent(this.renderInitialContent())
	}

	showConfirmation = () => {
		this.tippy.setContent(this.renderConfirmationContent())
	}

	render() {
		return (
			<Tooltip
				onCreate={this.onCreate}
				trigger="click"
				interactive
				content={this.renderInitialContent()}
			>
				<button>
					Show modal
				</button>
			</Tooltip>
		)
	}
}

export default ContextMenu

I have no errors in the console, but clicking on the "Delete"-Button doesn't switch the content to show the confirmation button "DELETE!".
What is my failure here?
Thanks in advance and kind regards
Sebastian

You're forgot the return keyword inside the renderInitialX() methods. Also try using the content prop in the render() method instead of using setContent imperatively.
However that makes me think there needs to be a declarative way (using a prop) to manually show the tippy as well rather than imperatively calling .show() and .hide() on the instance.

Thanks for your reply. The setContent is working now, there was another mistake I made in the parent component.
Nevertheless I'm not yet able to adapt the whole thing to my needs.

Can I pass a JSX Node with setContent? This is not working, I think. Instead of the content I just see [object, object]...
When I now click the button within the Tippy to switch the content, the content switches, but the tippy closes. Why is this the case even though I have set interactive to true?

Thank you very much for your help!

@sebastianschrama See the edit I made, you should use the content prop instead of .setContent()

isn't happening for me here: https://codesandbox.io/s/2owo3j80mr

@atomiks Thank you very much. We really appreciate your help! Meanwhile we figured out, that this is definitely no problem with Tippy but with one of our components in which we use Tippy.
By the way: You should provide a link to your personal Amazon wish list or a donation button. ;-)


VTOL No Global Position Failsafe

Hi
I had a problem with No Global Position Failsafe failsafe.
https://review.px4.io/plot_app?log=672c5564-9512-42a8-adad-2aed5138d92e
gps : m8n
external compass: no

Please give some more context on what you are trying to do and what happened.

The estimator complains about yaw and mag problems which might indicate a bad mag calibration or interference of motors/electronics.
Also, the jamming indicator of the GPS is quite high. Presumably other components like camera or companion computers are interfering.

Please give some more context on what you are trying to do and what happened.

i planned a vtol take off and transition and rest mission. plane performed vertical takeoff but it was unstable in yaw and roll then it switched to fixed wing mode . a few moments later it gave a massage "No Global Position Failsafe" and automaticaly switched to stablized mode (dangerous work).
What is this error reason ?
1- mag problem
2- GPS jamming problem
3- accelerometers problem because of vibration
4- airspeed sensor problem

@sfuhrer FYI

@moreba1 The fixed-wing motor current seems to interfere your mag a lot:

Also there is a tonn of noise, especially close before the No Position failsafe was triggered.
The combined accel and mag problems have probably triggered no position failure I assume.
Did I get this correctly, you are using one of the internal (inside the Pixhawk) magnetometers and don't have an external one? This is usually not a good idea, as there usually is a lot of power lines close to the autopilot.
Beside that, your vehicle is very badly tuned in hover by the looks of it from the rate plots. I'd increase the roll/pitch PID values, or start clean by following https://docs.px4.io/v1.9.0/en/config_mc/pid_tuning_guide_multicopter.html

@sfuhrer  Thank you .
can we disable ekf dependency to mag by ekf2_mag_type ? and In addition to reducing vibration can we reduce weight of accels and gyro in position estimation ?

@moreba1 accels alone don't give you good attitude estimates, it needs accel, gyro and mag for that. But yes, I guess you can disable mag fusion with EKF2_MAG_TYPE I guess.
Concerning the fibrations: they're mainly bad for attitude/rates estimates, position comes from GPS. So if you can fly nicely in stabilized then it's fine I guess with the amount of noise you have there.

OK


Build Errors

After following the instructions above I get errors when running make
pi@raspberrypi:~/src/remote_monitoring/cmake $ make
Scanning dependencies of target sample_app
[ 33%] Building C object CMakeFiles/sample_app.dir/remote_monitoring.c.o
In file included from /usr/local/include/azureiot/iothubtransportmqtt.h:7:0,
                 from /home/pi/src/remote_monitoring/remote_monitoring.c:1:
/usr/local/include/azureiot/iothub_transport_ll.h:17:49: fatal error: azure_c_shared_utility/umock_c_prod.h: No such file or directory
 #include "azure_c_shared_utility/umock_c_prod.h"
                                                 ^
compilation terminated.
CMakeFiles/sample_app.dir/build.make:62: recipe for target 'CMakeFiles/sample_app.dir/remote_monitoring.c.o' failed
make[2]: *** [CMakeFiles/sample_app.dir/remote_monitoring.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sample_app.dir/all' failed
make[1]: *** [CMakeFiles/sample_app.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

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

ID: 552fcbfd-a025-6a6d-74a3-470f606ee4ad
Version Independent ID: fac901c8-abcf-7a05-629f-0c4e1cfad979
Content: Provision Raspberry Pi to Remote Monitoring using C - Azure
Content Source: articles/iot-accelerators/iot-accelerators-connecting-pi-c.md
Service: iot-accelerators
Product: unspecified
GitHub Login: @dominicbetts
Microsoft Alias: dobett

FIX
I "installed" the azure/azure-c-shared-utility GitHub project using the following commands
git clone --recursive https://github.com/Azure/azure-c-shared-utility.git
cd azure-c-shared-utility
mkdir cmake
cd cmake
cmake ..
sudo make install

It seems like this lib is no longer installed with the Azure IoT C SDK

@tylerd Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

Hi @tylerd - thanks for reporting this. It does look as if the shared c library is no longer installed by default - I'll follow up with the developers to see what's changed. In the meantime - thanks for the fix - I'll update the docs with this workaround. Thanks, Dominic

#please-close


Feature request: Text to speech Power Toy - similar to MacOS' "option + esc"

Description of the new feature / enhancement
Unless there is already a way in windows, I often find myself longing for a way to have native and easily accessible text-to-speech capabilities for reading on-screen highlighted text with a button shortcut. On a mac, this is achieved with 'option + escape' and it will immediately read highlighted text aloud with a pop-up menu for controlling the reading pace, and play/pause. Windows has 'Narrator', but the scope that it narrates is too wide (often reading aloud changes in volume levels, mouse clicks). The scope I am proposing is just reading aloud the highlighted text. The specification/requirements of the feature should match MacOS's text-to-speech in ease of activation and control, and be on par with "speech-ability"/ being able to understand what is being spoken. PowerToys seems to me like a great place to implement this feature on Windows.
Scenario when this would be used?

If a user cannot read well, but is better at understanding spoken language. The task of understanding what is written on the screen would be made easier for these users.
If a user would like to multitask: for example cook while Windows/PowerToys reads a paper aloud.

Supporting information
Look at the feature already included in MacOS if you are unfamiliar: https://support.apple.com/guide/mac-help/have-your-mac-speak-text-thats-on-the-screen-mh27448/mac

I have tried Narrator, however, even at the lowest level of detail, Narrator will still read things other than just the cursor-selected text. Setting here:

I mean try for yourself - having Narrator try to read aloud only the selected text on a web browser or Outlook is seemingly impossible. It will start reading aloud that narrator itself has been turned on, it will start reading browser web page titles, or tell you irrelevant things such as it is reading from a text box, or if you adjust the volume partway through it stops reading entirely and will tell you the volume level followed by silence. Narrator's purpose is way too large in scope for this, and seemingly unable to be customizable to the level where it matches the utility of MacOS's TTS feature.
The utility I get out of MacOS's TTS when pressing 'option+esc' on the highlighted text is great. It just reads the selected text aloud and shuts itself off afterward. I think its utility as a tool in PowerToys would complement the others nicely. It's a feature request large in scope (dealing with TTS languages, reading style, etc), but I thought I'd open it to entertain the idea. I wish Narrator could be a perfect solution here.

I am also looking for this feature. Narrator talks too much and speaks aloud things I don't need.
Just like on Mac, it'd be great to have a keyboard shortcut that simply speaks the currently highlighted text, and nothing more.
This is useful to me because Mandarin is my second language, and sometimes it helps to listen to written Mandarin text since my reading ability is less than my listening ability.

Just found this tiny program that seems to work. Press F1 to hear selected text be spoken, and the tray icon right click menu takes you to voice settings.
https://github.com/DannyBen/TinySpeech/tree/master

Just found this tiny program that seems to work. Press F1 to hear selected text be spoken, and the tray icon right click menu takes you to voice settings.
https://github.com/DannyBen/TinySpeech/tree/master

Make sure to run that through virustotal.  i got 15 malicious reports.


Typo correction Clou dAlert

It appears there is a typo within the intended typo.
Table reports: When a Microsoft Defender for Cloud dAlert is created or triggered
Note reports:  The typo Clou dAlert is intentional.
Note the d at the end of Clou.
Feedback taken from https://twitter.com/NathanMcNulty/status/1643060174343770113?s=20

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

ID: 97f4678a-ede3-4926-8d8b-3d9948704eb8
Version Independent ID: a3a0e19d-9084-b5d5-0d2d-7a279ef1b2b9
Content: Workflow automation in Microsoft Defender for Cloud
Content Source: articles/defender-for-cloud/workflow-automation.md
Service: defender-for-cloud
GitHub Login: @bmansheim
Microsoft Alias: benmansheim

@garis
Thanks for your feedback! We will investigate and update as appropriate.

@garis
Thanks for posting this. Required changes have been made and it is reflecting in the document itself.


Add retention schedule

Add retention schedule

Hi @feddovanede, this information is actually already mentioned on this page ("Logs on Mendix Cloud are rotated and archived every day... By default, archived logs are sorted by date; the current log is the first one listed. They are stored for six months.") Are you suggesting moving this information into a separate section for emphasis?