Generate Django models with a visual tool, possibly JDL Studio

JHipster, a hip Java web project generator, has an excellent web-based tool for visual modeling, JDL Studio. While working with JHipster projects our team got quite used to it and thought that Django deserves something like this as well. JDL Studio uses a nice, succinct declarative language to describe entities and their relationships and all the concepts of the language map naturally to Django models, fields and relationships.
Here's a screenshot of JDL Studio:

Django Extensions already has dia2django, but it is undocumented and not updated since 2009 (besides formatting and cosmetic fixes).
What if we add a new jh2django command that imports Django models from JDL?
Adding a JDL parser would be large work, the import and parsing system is implemented in JavaScript and is comprehensive and complex (see this, this and this), so I would cheat a bit and implement conversion from its output, JHipster JSON entity definitions, to Django instead.
JHipster JSON entity definitions are straightforward JSON files that are easy to parse and convert to Django models, see an example here. Using them instead of JDL would also help importing models from JHipster projects that don't use JDL.
So the workflow would be as follows:
① create the data model in JDL Studio and save it to a file → ② generate JHipster JSON entity definitions from the file → ③ use the proposed jh2django Django Extensions command to create Django models
I didn't notice a command-line tool in the JDL library that step ② could use directly (like e.g. graphviz), so I opened an issue in their repository: https://github.com/jhipster/jhipster-core/issues/359. However, it is possible to convert JDL to JHipster JSON files inside a JHipster project with jhipster import-jdl.

I would accept such a PR :-)
Looks useful (and cool ;-)
Where would one do ② generate JHipster JSON entity definitions from the file ? I don't see a button for that in JDL Studio.

Great, thanks :)! Let's see how it goes.
There is no way to do ② currently without a JHipster project. I'll continue discussions in https://github.com/jhipster/jhipster-core/issues/359, their lead developer was interested in the idea, so it's quite likely the tool will be added :).

Ah I see.
Maybe JDL Studio would be interested as well to add a option to directly save to json ?
Since there is a docker image for it being able to load and save directly from the webui would be very awesome :-)


Added my info

Added my info to the strings

DUDE CREATE 1 PULL REQUEST WITH ALL THE CHANGES

@TheDiamondYT1 lol ikr :P

Sorry @TheDiamondYT1 & @TheAndroidMaster I wasn't really sure how I'm still learning about GitHub. I only know some of the basics that's about it when it comes to PR's I don't know to much about them.


Removed config from agent controller

What is the problem that this fixes or functionality that this introduces? Does it fix any open issues?
This PR removes global config from the agent controller.
Give a summary of what the PR does, explaining any non-trivial design decisions
There is one tricky part about this, which is that when the agent delegates it needs to grab the LLMConfig for the agent that is delegated to. I considered two options:

Pass in AppConfig to AgentController
Pass in an agent_to_llm_config map that only contains the dictionary mapping from the agent class string to the appropriate LLMConfig.

Eventually I opted for the second option, because it makes it more clear exactly what information AgentController uses instead of throwing in the entire config, which obscures this.
Other references
Part of #2758

Hmm, frontend tests are failing here and I'm not sure why because I didn't change anything in the frontend... @amanape do you have any idea why this might be broken? https://github.com/OpenDevin/OpenDevin/actions/runs/10020070149/job/27697328000?pr=3038

@neubig I have re-run the job and it passed. I have noticed that the frontend tests have become a little flakey, and many of the "failing" tests occur with the nextui select component. It's odd but I have encountered difficulties testing those components early when I first started setting up tests.

Ah, got it, thanks! I reran once but got the same error, so I was confused


fix failing min/max CP tests

three tests are failing even though min/max has been implemented.

FullGroupedAggregateMatrixTest.testGroupedAggMinDenseCP
FullGroupedAggregateMatrixTest.testGroupedAggMaxDenseCP
FullGroupedAggregateMatrixTest.testGroupedAggMaxSparseCP

the 2nd and 3rd test for max are the only failing ones left after #1 has been solved.

This test yields one different cell:
FullGroupedAggregateMatrixTest.testGroupedAggMaxSparseSP


English version

Hi, can you add English version?
It is very interesting to learn more deeply vue.js.

just learn chinese


Access policies support for KV module

Motivation
We need to add access policies support for the azure-kv module
Acceptance criteria
Requirements

A vault can only have rbac or access policies configuration
An entity type for the different entities

Users
Security groups
Service principals

A permission

key_permissions
secret_permissions
certificate_permissions

At least one entity type as requirement if access policies are defined
At least one requirement between permissions if access policies are defined
Datas to acquire the object_id of the different entities
Requires for the datas

Display name: groups and service principals
User principal name: users

Values example
      access_policies:
        - entity_type: user | group | principal
           object_id: 3c2cd77b-8b97-46bc-837a-eac3b8841b3a
           display_name:  "test"
           key_permissions: ["Get", "List"]
           secret_permissions: []
           certificate_permissions: []

Added in https://github.com/prefapp/tfm/pull/95


Unescaped control character error

Description
I have mock responses defined with virtualan-plugin. These mock responses are created with virtualan UI on the Add Mock screen, for OpenAPI specification that was used to generate virtual APIs in my application.
Mock responses are added successfully, mock responses can be retrieves successfully in the Overall Catalog, with virtual-service-controller and the [GET] /virtualservices - listAllMockLoadRequests.
Example:

As you can see the mock response stored formatted with  e.g. \n white space characters.
The issue is that when a client calls this endpoint the mock response will return 'as is' and for example in Jackson parser this will trigger an unescaped control character error.
Would it be possible to remove these special characters when you store it and only perform formatting on the UI when you display the JSON content?

This issue addressed in version 2.5.1.

Select content type as JSON which creating a mock.
which would return/represent input and output values in the JSON Format.
Please try and let me know

@elans3
Great news, we are in progress with the tests. I get back to you once we are done. In meantime I see that the menu item "Overall catalog" opens PetStore definition instead Virtualan api catalog. Have you faced this issue before?

In virtualan, springdoc.swagger-ui.queryConfigEnabled is enabled by default. which is causing the issue.
See if the below example helps?
https://github.com/virtualansoftware/service-virtualization-openapi/blob/master/src/main/java/io/virtualan/DisableSpringDocQueryParameter.ja

This issue addressed in version 2.5.1.

Select content type as JSON while creating a mock.
Which would return input and output as JSON.
Can you validate and confirm

fyi, we see it works fine (y) thank you for the enhancement

Thank you @4ndris..  We will update Overall URL in next release.


time format changed

PR for issue #80
time format changed to
"%a %b %d %Y %H:%M:%S" than corresponds to "Thu Jun 09 2016 13:24:43"

Thanks @nikhilgeo! :+1:

This is d first project, I'm contributing to...Thanks you for your patience @swapagarwal


Round battery voltage to calm down graph

The voltage level toggels between some micro levels which makes the graph unreadable.

I would suggest to keep as much information as possible in the database for future debugging issues. (Also a voltage step discretization of less than 0.1V is necessary to determine the battery level.)
One possible solution would be to adjust the graph scales to a fix range.

Bat. volt. 3V - 4.2V
Bat. level 0% - 100%)

I think this would tidy up the graph enough to make it better readable.

Scaltes to fixed range did the trick.


Missing translation between Risks and Risk levels

[Enter feedback here]
I can't seem to find any information about how risks are classified in risk levels, f.e.
Sign in from unfamiliar location is risk level medium
Users with leaked credentials is risk medium high
etc..
If this is documented, then at least a link to that documentation page would be handy.
/Kenneth

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

ID: 75919910-c2c4-b678-44c0-62ed63fe8a1a
Version Independent ID: c82be269-3182-f9f5-2d88-c95b258f969e
Content: Risk policies - Azure Active Directory Identity Protection
Content Source: articles/active-directory/identity-protection/howto-identity-protection-configure-risk-policies.md
Service: active-directory
Sub-service: identity-protection
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@kennethvs Thanks for reaching out. We will look into this and get back to you.

@kennethvs
I was able to look into your question and will post my findings below.
Findings:
This documentation explains what the different Risk Types and Detections are, along with the given descriptions for each risk detection.
Looking through the documentation linked to this thread I found that when choosing acceptable risk levels, "Organizations must decide the level of risk they are willing to accept balancing user experience and security posture". Microsoft only provides a recommendation when it comes to setting your organization's policies.
Next Steps:
I'll be assigning this thread to the author to add any links, if any, that provide the missing translation between Risks and Risk Levels.

Hey @kennethvs the FAQ doc covers this briefly, but you are right I need to cover it more broadly in the docs. I will get this in my backlog and work with the Product Team to update the content with more detail.

#please-close


line breaker

Is it possible to keep line breaker in the extracted content?

I'm not sure what you mean by "line breaker"?  You can get the individual blocks with their text but all text in each block is whitespace normalized.

ah. I see.  Yes, blocks are exactly what I meant.   How about title of the article then?

Yes you can get both the blocks and the title.  The analyze method on the trained models can optionally return the block objects instead of just text.  You can also provide a callback that is called on the lxml etree object.
Here's an example:
import requests
from lxml.etree import XPath
from dragnet.models import content_extractor

title_xpath = XPath('//head/title')

title = {}
def callback(tree):
    title['title'] = '\n'.join(ele.text for ele in title_xpath(tree))

r = requests.get('https://moz.com/devblog/benchmarking-python-content-extraction-algorithms-dragnet-readability-goose-and-eatiht/')

blocks = content_extractor.analyze(r.content, blocks=True,
    parse_callback=callback)

print(title['title'])
print('\n'.join([block.text for block in blocks]))

Matt, this is great.  Thanks!
Another question, is it possible to keep the underlying links of the extracted texts? (Some texts may associated with links. Say   " link  is a good thing", now "link is a good thing" is extracted, but link is removed.  )

Absolutely.  You can get the links via a callback or as an attribute on the block object: block.anchors is a list of every <a href=... tag in the block (as lxml.etree.Element objects).


Create pty--v1.1.21.patch

Has to be separate from 1.1.20 as each requires a different change.

@dustin-ward please review :)


docker build command crashes Linux OS if the Dockerfile is kept at / directory.

Place any simple Dockerfile at root folder ( / ) and attempt to build the image and docker will crash the Ubuntu/CentOS and maybe other Linux OS.
I believe docker client tool attempts to send the whole file system as a build context to docker engine in the process of building the image.  As a best practice I create a sub-folder and place the Dockerfile to avoid this problem, however Docker being such a popular tool it shouldn't lead to data loss or server crash or down-time just because someone attempted to build an image placing their Dockerfile in the root folder.
This behaviour is observed in almost all versions of Docker including the latest 18.x release.

This repo is for open source Docker Registry. Please consider opening this issue in https://github.com/moby/moby/


Updated README-pt_BR.md to match with the main and added create screen command to .README summary

Thanks!
LGTM


fix: update questionnaire response score calculation

Review Checklist

Summary*

[ ] fix: Bug fix for Add the items tackled here as checklists
[x] feat: Completed task
[ ] chore: Incomplete task

[ ] test: Sub-task 1

Structure*

[ ] The Pull Request has a proper title that conforms to our MR title standards
[ ] The Pull Request has one commit, and if there are more than one, they should be squashed
[ ] The commit should have a proper title and a short description
[ ] The commit must be signed off
[ ] Unused imports are not present
[ ] Dead code is not present
[ ] Ensure dry running library to confirm changes

Tests

[ ] Proper and high quality unit, integration and acceptance(if applicable) tests have been written
[ ] The coverage threshold should not be lowered

Sign off*

[ ] All comments have been resolved by the reviewers
[ ] Approved by Czar {replace_with_czar_name}
[ ] Signed off by second reviewer {replace_with_name}
[ ] Ensure all checks are done before merging :warning:
[ ] All PRs needs to be signed before merging :warning:

N/B:

Add a checklist if more than one item is done.
Add screenshots and/or images where necessary
Indicate any breakages caused in the UI :exclamation:
Where necessary, indicate which issue the Pull Request solves (Closes #)
Any new files are updated in the folder structure in the README

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

16 of 60 (26.67%)  changed or added relevant lines in 1 file are covered.
26 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.7%) to 81.252%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/clinical/usecases/clinical/questionnaire_response.go
16
60
26.67%

Files with Coverage Reduction
New Missed Lines
%

pkg/clinical/usecases/clinical/questionnaire_response.go
26
72.37%

Totals

Change from base Build<PHONE_NUMBER>:
-0.7%

Covered Lines:
7229

Relevant Lines:
8897

💛  - Coveralls


[C-1427] Ignoring 'unstar' activity

crowd.dev edition
Cloud (hosted)
Version
Frontend - 0.5.0
What happened?
Issue : If user has starred, unstarred and again star the repo. It is counting every star activity.
Steps:-
Star the repo
Remove star from the repo using same github id
Again star the repo
Actual result:
It is counting all the activities star and unstar activities.
Refer to: https://github.com/communitybridge/easycla/pulls
Expected Result: Star count should match with original source.

It means it is only counting the number of activities. If user is removing star, it is not accounting that activity.
It is ignoring 'unstar' activity.
Command / Request
No response
Relevant log output
No response
C-1427

Hey @RaginiAngarka.
This was caused because we were missing to track unstar activities. This has now been fixed. The expected behaviour is that we track both the starring and unstarring of repos. Therefore, you might see more than one star per member per repo. The problem here is that we were failing to fetch the unstar in the middle.


Mac pip install BabitMF could not found error

ERROR: Could not find a version that satisfies the requirement BabitMF (from versions: none)
ERROR: No matching distribution found for BabitMF

Python version is 3.12, not compatibility，must  <= 3.10

You are right, for the reason that the macos python version has some compatibility issues with the ARM platform, BMF supports python 3.9 - 3.10 under the macOS ARM architecture and python 3.6 - 3.10 under the x86 architecture.


feat: Carris Metropolitana feed [SOURCES]

Feed shared by Carris Metropolitana.

Hello, I have updated the feed details for Lisbon: https://github.com/MobilityData/mobility-database-catalogs/pull/259


Create 0000-01-02-Puuuunam.md

i have done  all changes in git hub

this is my new project

this is my new project


Gosund SP1 switches off as soon as flashing begings?

I almost succeeded in flashing my first Gosund SP1 device. But I'm stuck as follows: as soon as tuya converter starts to execute and reaches the first SmartConfig complete. output, the SP1 exits the pairing mode (you can hear it, and the led on top changes from flashing-blue to constant-red).
All future retried fail of course then. How can I find the rootcause why this happens?
I'm running ubuntu 18.04, can see the active hotspot and I'm connected with an android phone all the time.
docker-compose exec tuya start
tuya-convert v2.4.3
Checking for network interface wlp58s0... Found.
Checking UDP port 53... Available.
Checking UDP port 67... Available.
Checking TCP port 80... Available.
Checking TCP port 443... Available.
Checking UDP port 6666... Available.
Checking UDP port 6667... Available.
Checking TCP port 1883... Available.
Checking TCP port 8886... Available.
sudo: ufw: command not found
======================================================
  Starting AP in a screen
  Starting web server in a screen
  Starting Mosquitto in a screen
  Starting PSK frontend in a screen
  Starting Tuya Discovery in a screen

======================================================

IMPORTANT
1. Connect any other device (a smartphone or something) to the WIFI vtrust-flash
   This step is IMPORTANT otherwise the smartconfig may not work!
2. Put your IoT device in autoconfig/smartconfig/pairing mode (LED will blink fast). This is usually done by pressing and holding the primary button of the device
   Make sure nothing else is plugged into your IoT device while attempting to flash.
3. Press ENTER to continue

======================================================
Starting smart config pairing procedure
Waiting for the device to install the intermediate firmware
Put device in EZ config mode (blinking fast)
Sending SSID                  vtrust-flash
Sending wifiPassword
Sending token                 00000000
Sending secret                0101
................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
..................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
..................
SmartConfig complete.
Resending SmartConfig Packets
................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
..................
SmartConfig complete.
Resending SmartConfig Packets
..................
SmartConfig complete.
Resending SmartConfig Packets
........
Device did not appear with the intermediate firmware
Check the *.log files in the scripts folder
Do you want to try flashing another device? [y/N] n
======================================================
Cleaning up...
No screen session found.
Closing AP
Exiting...

Docker container logs:
Apr  8 13:35:18 vtrust-flash dnsmasq[2387]: started, version 2.79 cachesize 150
Apr  8 13:35:18 vtrust-flash dnsmasq[2387]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Apr  8 13:35:18 vtrust-flash dnsmasq-dhcp[2387]: DHCP, IP range <IP_ADDRESS> -- <IP_ADDRESS>, lease time 12h
Apr  8 13:35:18 vtrust-flash dnsmasq-dhcp[2387]: DHCP, sockets bound exclusively to interface wlp58s0
Apr  8 13:35:18 vtrust-flash dnsmasq[2387]: read /etc/hosts - 8 addresses
Apr  8 13:35:22 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: authenticated
Apr  8 13:35:22 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: associated (aid 1)
Apr  8 13:35:22 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca RADIUS: starting accounting session 1C3E589A4E4D58B7
Apr  8 13:35:22 vtrust-flash dnsmasq-dhcp[2387]: DHCPDISCOVER(wlp58s0) 60:01:94:f4:40:ca
Apr  8 13:35:22 vtrust-flash dnsmasq-dhcp[2387]: DHCPOFFER(wlp58s0) <IP_ADDRESS> 60:01:94:f4:40:ca
Apr  8 13:35:22 vtrust-flash dnsmasq-dhcp[2387]: DHCPREQUEST(wlp58s0) <IP_ADDRESS> 60:01:94:f4:40:ca
Apr  8 13:35:22 vtrust-flash dnsmasq-dhcp[2387]: DHCPACK(wlp58s0) <IP_ADDRESS> 60:01:94:f4:40:ca ESP_F440CA
Apr  8 13:35:35 vtrust-flash hostapd: wlp58s0: STA 14:5f:94:dc:dc:d3 IEEE 802.11: authenticated
Apr  8 13:35:35 vtrust-flash hostapd: wlp58s0: STA 14:5f:94:dc:dc:d3 IEEE 802.11: associated (aid 2)
Apr  8 13:35:35 vtrust-flash hostapd: wlp58s0: STA 14:5f:94:dc:dc:d3 RADIUS: starting accounting session 9C832FD9D1095BC3
Apr  8 13:35:35 vtrust-flash dnsmasq-dhcp[2387]: DHCPDISCOVER(wlp58s0) 14:5f:94:dc:dc:d3
Apr  8 13:35:35 vtrust-flash dnsmasq-dhcp[2387]: DHCPOFFER(wlp58s0) <IP_ADDRESS> 14:5f:94:dc:dc:d3
Apr  8 13:35:35 vtrust-flash dnsmasq-dhcp[2387]: DHCPREQUEST(wlp58s0) <IP_ADDRESS> 14:5f:94:dc:dc:d3
Apr  8 13:35:35 vtrust-flash dnsmasq-dhcp[2387]: DHCPACK(wlp58s0) <IP_ADDRESS> 14:5f:94:dc:dc:d3 HUAWEI_P10-d45740040ba7f9
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:03 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: disassociated
Apr  8 13:36:04 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Apr  8 13:36:21 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: authenticated
Apr  8 13:36:21 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca IEEE 802.11: associated (aid 1)
Apr  8 13:36:21 vtrust-flash hostapd: wlp58s0: STA 60:01:94:f4:40:ca RADIUS: starting accounting session D97EF8E86B40833C
Apr  8 13:36:21 vtrust-flash dnsmasq-dhcp[2387]: DHCPDISCOVER(wlp58s0) 60:01:94:f4:40:ca
Apr  8 13:36:21 vtrust-flash dnsmasq-dhcp[2387]: DHCPOFFER(wlp58s0) <IP_ADDRESS> 60:01:94:f4:40:ca
Apr  8 13:36:21 vtrust-flash dnsmasq-dhcp[2387]: DHCPREQUEST(wlp58s0) <IP_ADDRESS> 60:01:94:f4:40:ca
Apr  8 13:36:21 vtrust-flash dnsmasq-dhcp[2387]: DHCPACK(wlp58s0) <IP_ADDRESS> 60:01:94:f4:40:ca ESP_F440CA

Please share your log files

Where can I find the logs? I assumed in /tuya-converter/scripts. But there are no logfiles. Do I have to extract them from the docker container somehow?

Or do I have login into the docker container and fetch the logs from there? I mean, how should docker know where to write logs if no log directory is shared in docker-compose?
The only thing I have is:
...
 volumes:
      - ./data/backups:/tmp/tuya-convert/data/backups

@membersound regarding

the SP1 exits the pairing mode (you can hear it, and the led on top changes from flashing-blue to constant-red)

This is expected, it should happen. Now that it is paired, you don't need to connect a phone or put the device back in pairing mode.

All future retried fail of course then

What do you mean "of course"? How did you retry? Don't attempt to put the device back in pairing mode, if that is what you mean.
Also check that the device is not already running the intermediate firmware. You might see a vtrust-recovery AP when the device is plugged in. Another way you can tell is if the device does not respond to button presses.

Or do I have login into the docker container and fetch the logs from there? I mean, how should docker know where to write logs if no log directory is shared in docker-compose?

I don't use docker and cannot provide support for it, @Cyber1000 wrote this addition and will comment if they have anything to add.

This is expected, it should happen. Now that it is paired, you don't need to connect a phone or put the device back in pairing mode.

Ok I thought this would mean a "disconnect" and thus any further retries failed.
Then I'd be really interested in finding the logs. I don't see any vtrust-recovery AP, so I assume the devices are still plain stock.

I extracted the logs as follows:
Log into the docker container:
docker exec -it tuyaconvert_tuya_1 /bin/bash
Copy logs to shared volume (in my case):
cp /usr/bin/tuya-convert/scripts/smarthack* /tmp/tuya-convert/data/backups/
With this, in the -web.logs I could find that port 80 was occupied by my local apache2. I did not know it has to be free. And unfortunately tuya-convert does not report this directly to the CLI.

I'm leaving this issue open for now, as you maybe want to have a deeper look on why logs are not shared by docker. Or maybe this is not intended yet and could be a feature?

I got the solution: I switched the shared volume definition. I thought the later path would be the path on my host. But in fact it's the docker path, which I had overridden with - ./data/backups:/tmp/tuya-convert/data/backups (which is totally wrong). Thus logs missing.

With this, in the -web.logs I could find that port 80 was occupied by my local apache2. I did not know it has to be free. And unfortunately tuya-convert does not report this directly to the CLI.

If run directly on the host, tuya-convert will detect this and let the user decide how to proceed. I am not sure this is possible inside a VM, someone experienced with docker will have to answer this.

I'm leaving this issue open for now, as you maybe want to have a deeper look on why logs are not shared by docker. Or maybe this is not intended yet and could be a feature?

@Cyber1000 could you look into this?

Though I'm glad the flashing worked!

Very happy to hear it worked out, thank you for sharing your experience :+1:

Sorry for the late reply.
I executed the docker-container the last time in December 2019 and I have all log files in the backup-Folder:
At least I have 4 log-Files in it:

I don't knoq exactly if there were bigger changes, but I've looked in https://github.com/ct-Open-Source/tuya-convert/blob/master/start_flash.sh (line 123) and the logs are still moved into the backupfolder (which is shared by docker)

Ah I see the last post of @membersound says:

I thought the later path would be the path on my host. But in fact it's the docker path, which I had overridden with - ./data/backups:/tmp/tuya-convert/data/backups (which is totally wrong). Thus logs missing.

From the sample file https://github.com/ct-Open-Source/tuya-convert/blob/master/docker/docker-compose.sample.yml:
- ./data/backups:/usr/bin/tuya-convert/backups

You should never change the path after the :, cause that's the path within docker (which doesn't change), if you change this you won't get any files you might expect.
You may change the path before the :, cause this is the path on your local computer.
In this case it's a relative path ./data/backups, relative to the directory where docker-compose.yml exists, but it may also be an absolute path or a docker-volume.

So the problem here was the wrong usage of the volumes section, I'll think about it, maybe some comments to https://github.com/ct-Open-Source/tuya-convert/blob/master/docker/docker-compose.sample.yml would be the most effective to prevent this in future.


Add DIRENV-UPDATE-PROJECT command

The command is similar to the existing direnv-update-directory-environment except it uses project.el to find the top level directory of the project. This is a QoL improvement as the new command works when visiting any file in a subdirectory.
This means that project.el is a new dependency for older version of Emacs.

can you elaborate what actual problem this would solve? the description implies that the existing code doesn't work on subdirectories, but it does! direnv visits parent directories when looking for .envrc files.

the description implies that the existing code doesn't work on subdirectories, but it does!

@wbolster Yes, you are right I just tried it locally and it works file in buffers, even occur buffers. I guess I can remove the project.el variant from my init.el. Sorry about the noise


add system documents link

For member action "System Documents" add link in refinery to the freecen google drive folder. probably want to also link to the Reg system docs since a lot of the system-wide information is there.

Agreed.

Done (on another story), so closing.


Process user API

There have been some PR's adding features for querying and changing the user and group of a process, originally as part of #5615 then it's reboot #5627 and now there's #7822, which is a completely new approach.
We've had discussions about the design of these APIs directly in the PRs, but I'd like to discuss the general design in separate and focus the PR on the implementation.
From #5615
Process.become(user : User)
Process.become(group : Group)
Process.user : User
Process.group : Group

From #5627
Process.owner=(user : System::User)
Process.group=(group : System::Group)
Process.user : System::User
Process.group : System::Group

From #7822
Process.uid=(uid : LibC::UidT)
Process.uid : LibC::UidT
Process.euid : LibC::UidT
Process.gid=(gid : LibC::GidT)
Process.gid : LibC::GidT
Process.egid : LibC::GidT
Process.setresuid(uid : LibC::UidT)
Process.setresgid(gid : LibC::GidT)

The most important difference between these proposals (besides varying feature support) is clearly whether they work on plain uid/gid or on System::User/System::Group instances (see #7738 for that API). Using LibC::UidT/LibC::GidT is obviously not portable to non-POSIX platforms, but returning Int32 (or String) could work. Int values are used for example in the Ruby and Golang implementations.
Both approaches are good. Maybe we could even want both, I don't know.
It seems pretty difficult to create a portable interface, that can work for non-POSIX platforms. Most API's I've seen only support POSIX and more ore less closely resemble the POSIX calls.
So, ideas for cross-platform implementation would be great =)

Having Process.owner=(user : System::User) is strange, like File::Info#owner : Int32 (that returns and user id, or uid).
Whatever is the API, we should use the user word instead of owner. It's used on POSIX, and on Windows (not sure).

If we want to make it very obvious that it only work on POSIX, then perhaps doing something like Process::POSIX.owner= could be reasonable?

Most of the proposed high level API's seems to assume the program only wants to switch user's once for privilege dropping.
Process.setresuid is intended to be used as the underlying method for such an operation by supplying all user id's with the same parameter.  A higher level API can build on that.
Process.setresuid is necessary for privilege switching  back and forth between root and other user's, for setuid/setgid programs with similar switching behaviors or perhaps for other uses.
Setuid example (similar usage to visudo or crontab):
uid = Process.uid
suid = Process.euid

# open file as suid user
Process.setresuid uid, suid
lock_file = File.new lock_file

# open file as original user
Process.setresuid suid, uid
user_file = File::Tempfile.new

fork do
  # drop all privileges to original user
  Process.become user # calls setgroups, setresgid, setresuid in the correct order.
  # spawn editor
end.wait

# parse and validate file
File.delete user_file

# back to suid user to save in a non user accesible location
Process.setresuid uid, suid
# save changes to suid owned location
File.delete lock_file

Any service can be written with similar functionality.
An API for direct control of real AND effective user/group id's is still needed on any posix platform.
A higher level API privilege dropping can be built on top of it.
# Drop privileges permanently.
# Idea from https://github.com/chris-huxtable/user_group.cr
def become(user : System::User, group : System::Group?)
  gid = if g = group
    g.group_id
  else
    user.group_id
  end

  become user.user_id, gid
end

def become(uid : UidT, gid : GidT? = nil, groups : Array(GidT)? = nil)
# TODO: initgroups
  if g = gid
    setresgid g, g, g
  end
  setresuid uid, uid, uid
end

#groups is missing.
What should groups return if one or more group id's can't be resolved to a System::Group?
[Group, nil, Group]
[Group, 123, Group]
[Group, Group with missing name, Group]
[Group, Exception, Group]
{ [Group, Group], [123] }
[Group, Group]
Something else?

Is suppose the process interface should just return group ids. That's also what Go's Getgroups returns. If you want System::Group instances, you need to look them up yourself and handle possible issues that might arise.


Data Maturity or Data Quality?

This is a very nice proposal that includes lots of flexibility. Definitely needed in this case.
It is interesting that you chose the word "Maturity" rather than "Quality". What is the rational for that decision?
The ISO TC211 concept of data quality (see http://wiki.esipfed.org/index.php/ISO_Data_Quality) seems close to a superset of this idea (with a Conformance Result) but is more general. Might your proposal be generalized to include other types of results?

Thanks for the comment. Sorry for the late reply on your issue.

It is interesting that you chose the word "Maturity" rather than "Quality". What is the rational for that decision?

Originally, we called the concept "Quality Indicator". After presenting it at a few conferences (e.g. IDCC 2020), we realized that it should be broader and should allow storing information/checking-results beyond "Quality" -- like FAIRness. Therefore, we re-evaluated our concept of the "Quality Indicator" and arrived at the "Data Maturity Indicator".

The ISO TC211 concept of data quality (see http://wiki.esipfed.org/index.php/ISO_Data_Quality) seems close to a superset of this idea (with a Conformance Result) but is more general. Might your proposal be generalized to include other types of results?

We understand the Data Maturity Indicator as a concept that allows storing/linking maturity information based on any maturity metric. It is not linked to a specific concept of data quality.


No longer set content-length

The content-length header is automatically set by the http module.

The http module does not set content-length. You can see that by the fact that the tests for it failed. If the length is not set by Koa, then the response will be in the chunked format, adding extra bytes on the site for the chunk boundaries (and the zero length chunk at the end).

The test/application goes through the http module, so would see any headers added by it.

Ah, I see. Thanks, this means issue #902 can be closed then?

Maybe. Hard to really know without understanding more about what drove the issue. Perhaps there is an issue somewhere that made it seem like it was from the content-length ? Not sure.


json2mask

Hi, thanks for providing us this convenient annotation tool
recently I am working on ureter segmentation and I have noticed that KiTS21 datasets provides the annotations of ureters which are created by 'ulabel'. But the annotations are .json  not .nii. So I wonder if there are some scripts (like json2mask.py or something else) which can turn these .json into .nii automatically.

Hey! Very sorry for the delayed response. I don't really have the bandwidth to support this at the moment, but the KiTS21 import script might be helpful to you.


run piVCCU on local network

Hi Alex,
I'd like to run piVCCU on a local network. I plan to run openhab and pivccu on the same host.
As openhab does not support authentication against the CCU. I'd like to protect it and therefore run in on localhost/on internal network.
Is this be supported? And how would I archive this?
I guess changing the networking settings in /etc/piVCCU3/lxc.config would do the trick? Or is there anything else involved?
To be honest I have to idea how lxc bridging works. Would be greatly appreciated if you could point me in the right direction.
Thanks,
Til

In theory this is possible. But inside the CCU an internet connection is mandatory for several cases, so the usage without internet access of the CCU should be avoided.

Can this be closed?

Sorry for my late reply. Yes this issue can be closed. Thanks.

@alexreinert Could you elaborate why internet access is required?
I guess device firmware updates are a problem otherwise. And HMIP devices require you to enter the key instead of using the keyserver. What else am I missing?
One could run the lxc container in NAT mode if openHAB is run on the same host and no other access from the LAN is needed, right?
I for one use ssh to connect to the webui and also configured my pivccu to not be reachable on the LAN. I did not connect the bridge to eth0: bridge_ports none in /etc/network/interfaces
Besides the CCU complaining about no internet access (which can be faked by modifying /var/lib/piVCCU3/rootfs/bin/checkInternet ) everything seems to work ok for now.


Update [Coinbase Deposits coinbase.com] #exchange #memo-required GDQP2K…HG4W37

Address: GDQP2KPQGKIHYJGXNUIYOMHARUARCA7DJT5FO2FFOOKY3B2WSQHG4W37
Tags: exchange memo-required
Title: Coinbase Deposits  Domain: coinbase.com
Requested by @jamadeshamar

2380293536 This is the memo

Hello @jamadeshamar,
Stellar Expert is just a blockchain explorer and does not have any control of transactions on the block chain.
You will need to contact Coinbase help.coinbase.com they will also need to know the transaction ID which can be found by clicking on the operation number next to the transaction.

Hello @jamadeshamar,
Please feel free to re open this issue if you have new information to let us know about.
Looking Towards The Future With You,
Rob


Catchy one line description

Here
is
some
:poop:

Signed-off-by: Janek Lehr<EMAIL_ADDRESS>

LGTM


Data API v2 exchanges call limits before reducing

The Data API v2 has an 'exchanges' endpoint. According to the docs you should be able to specify both a limit and a reduce parameter.
https://ripple.com/build/data-api-v2/#get-exchanges
However it seems the limit is applied before reduce, see as an example:
https://data.ripple.com/v2/exchanges/XRP/BTC+rchGBxcD1A1C2tdxF6papQYZ8kjRKMYcL?start=2017-09-10T21:27:02Z&limit=20000&reduce=true
which returns:
{"result":"success","count":1,"marker":"BTC|rchGBxcD1A1C2tdxF6papQYZ8kjRKMYcL|XRP||20170911023701|000032673230|00018|00007","exchanges":[{"open":"0.000050957800","high":"0.000051097462","low":"0.000050040678","close":"0.000050198119","base_volume":"388720.6866489995","counter_volume":"19.650270749808836","buy_volume":146717.51915300012,"count":400,"open_time":"2017-09-10T21:33:52Z","close_time":"2017-09-11T02:37:01Z","vwap":"0.000050551132","start":"2017-09-17T22:52:34Z","base_currency":"XRP","counter_currency":"BTC","counter_issuer":"rchGBxcD1A1C2tdxF6papQYZ8kjRKMYcL"}]}
Running this at a current time of 2017-09-17T21:27 I'd expect to get an aggregate over the last 7 days. However it appears that the results are being constrained by the built-in limit before being aggregated.
The docs state about the limit parameter:

Maximum results per page. Defaults to 200. Cannot be more than 20,000 if reduce is true. Otherwise cannot be more than 1,000.

From testing it would appear this is not the case, and the limit appears to be 1,000 regardless of if limit is true.

This is not the repository for the Data API, it is (slightly confusingly) called "rippled-historical-database" (https://github.com/ripple/rippled-historical-database)

Ahh, sorry, my mistake. I've opened a ticket there. Thanks!


Use tqdm instead of custom progress bar

will fix issues like https://github.com/econ-ark/DemARK/issues/52 from happening in the future

@MridulS could you check whether there is now any reason for the sys.path.insert(0, os.path.abspath('../lib')) code in any of these?  I think that was only there for the util thing.  If there's no other need for it, please remove it.

@llorracc you are right, that's not required anymore.

OK, I'll merge when you do a PR to remove these.  (Please check whether any REMARKs do this too).


NBA dataset

您好，请问可以提供关于NBA数据集的更多信息吗（比如官方网址，或者包含视频以及场景图片的数据）。
我看有很多关于NBA的数据集，但是没有找到作者这个版本的

The following is what I know. Years ago, NBA employs SportVU to track and record the movement of players and the ball on the court, and provides the logs on the NBA stats website. But, those logs had been taken down from the official website. The current version of SportVU NBA movement data that can be found online is the recordings for 2015-16 season, which is originally posted on the github.


Evaluation set

Firstly, I am very grateful for your wonderful work.
I wonder whether the evaluation set of the built LRV dataset corresponding to Tab. 3 released?
Thank you very much.

Evaluation

Thank you very much for your kind reply and release for the evaluation set.


feat(remote file): enable https support for remote access

It does require htslib v1.3 or later built with --enable-libcurl.

Thanks for this.
(The Travis test failure seem to be fetching a module from cpanm rather than this change.)


AGPSdata v0.02: Load AGPS data on app start and automatically in background

Load AGPS data on app start and automatically in background

WIP because i am testing this right now.
@pidajo pinging you to let you know that i am working on this. And sorry that i removed your touch menu - i think it's much easier for the user if everything happens automatically without multiple UI interactions required.

Fine by me, I work on a widget anyway


dead link and docs unclear

In
https://github.com/spring-projects/spring-graphql/blob/v1.0.0-M3/spring-graphql-docs/src/docs/asciidoc/index.adoc#auto-registration
"Such repositories are auto-detected in the Boot starter."
Boot starter points to https://github.com/spring-projects/spring-graphql/blob/v1.0.0-M3/spring-graphql-docs/src/docs/asciidoc/index.adoc#boot-repositories-querydsl
The anchor does not exist,
Furthermore the approach of using @GraphQlRepository vs @Repository ( and even why both?)  is unclear from docs as well there is no  example for usage sceario of "@GraphQlRepository" at all in  https://github.com/spring-projects/spring-graphql/tree/v1.0.0-M3/samples/webflux-websocket/src/main/java/io/spring/sample/graphql
It's also not clear if i need to use anotations at all if

extends from e.g ReactiveCrudRepository
or R2dbcRepository(e.g posgres driver)

As R2dbcRepository is extending  ReactiveCrudRepository i assume its sufficient to use R2dbcRepository but now is there still a difference from @GraphQlRepository vs @Repository  ?
Its not clear and i can't find a example how and if (Auto?) DataFetcher will work for @ManyToOne @OneToMany anotations on @Entity classes . Do i need at all to put  the @Entity   or is its sufficient to have the Repository name the Entity e.g.
in Generalization
@GraphQlRepository / @ Repository  ?
interface AttributeRepository extends R2dbcRepository<Attribute, UUID> {
}

Could you have a look at the current SNAPSHOT reference documentation and tell us if this is still relevant?

I am still missing an example and link between graphql reactive(webflux) and r2db in terms of @ManyToOne @OneToMany  (auto) Resolvers.
Also an example howto define a delete mutation schema which is backed by a ReactiveCrudRepository and defaults uses Void as return params which not known by spring grapghql by default, is it?
Mono deleteById(ID id);

I think that most of the initial issue has been addressed already in the documentation. We can't really document all possible interactions with Spring projects here. This problem doesn't seem specific to Spring GraphQL, but rather about Querydsl support in Spring Data, or just Querydsl features.
In this very case, maybe your build is missing a reference to the querydsl-core dependency? I'm not sure which dependencies are strictly required when using querydsl in a reactive context - if documentation is missing about this particular point, I think this should belong in the spring-data-r2dbc reference docs. Could you create an issue there or contribute a documentation improvement?
Thanks!


[Dynamic Form] Cannot create folder in library folder

Category
[x] Enhancement
[x] Bug
[ ] Question
Not sure if I would call this a bug. It certainly is unexpected behavior though.
Version
Please specify what version of the library you are using: 3.18.1
It's not resolved in the latest version 3.19.
Expected / Desired Behavior / Question
I can use the Dynamic Form on a library for creating document sets. However, the document sets will always be created in the root of the library. Even if I've clicked the new button from a subfolder. I'd like to be able to create something in the folder where I currently am located.
Observed Behavior
A document set, created using a dynamic form, is always created in the root of the library.
Steps to Reproduce

Add the document set feature to a sharepoint site / library.
Add a dynamic form in your spfx solution, using the contentTypeId of the document set.
Navigate to a subfolder in the library. Click new
Create the document set using the dynamic form.

Location in code
The location  where this goes wrong:
https://github.com/pnp/sp-dev-fx-controls-react/blob/master/src/controls/dynamicForm/DynamicForm.tsx#L590C11-L592C13
const newFolder = await library.rootFolder.addSubFolderUsingPath(
  folderTitle
);

It should take into account the RootFolder of the form, which can be a subfolder of the library. This information is available as a querystring variable.

If you like you can assign me to this one @joelfmrodrigues, I'm in need of this for a customer, so I can build it in.

PR merged and will be in the next release


Fix scope class name when setting resource by token

Hi! I'm pushing this change without tests just to make sure the change makes sense before actually writing the specs.
I noticed the scope name is no properly set for models that exist within another model like Users::Customer. I see in places like this that you actually handle that so not doing the same in the concern was probably just overlooked.
The current scope = rc.to_s.underscore.to_sym will generate users/customer as the scope name and this is a problem as the devise mapping name will be users_customer. The problem with this and the reason I saw this is that when using the sign_in method, warden will try to serialize the resource and when trying to do so here and here it will fail to find the custom devise serializer for the model and will simply use serialize. This can (and has happened to me) lead to cookie overflows as the model can be potentially big default serialization will include all columns in the serialized string.
Let me know what you think, happy to add specs if you think this is fine, but I guess I would have to add another model scoped to a module in order to do so.

It makes sense, so yeah add specs

Sure, will do as soon as possible.


LDAP missing attributes

There is a problem with LDAP search, we can only access to basic attributes:

For example for my email server i need more attrubites like quota, aliases, email etc...
(edit: i just realised my password is on he screen lmao. I have changed that.)

@NhProGamer

What did you do?
What do you expect?
What you got instead?

@NhProGamer the LDAP part has recently been fixed. Can you test the latest v1.502.0 version to see if it's fixed? https://github.com/casbin/casdoor/releases/tag/v1.502.0

after the update there are other attributes, but can you add all attributes from an organisation like email, gender, number phone, display name, avatar, etc... same logic for all added attributes

@NhProGamer can you point out where to add the code? Or can you make a PR?

nevermind, i just realised we can access to all of that data just by defautlt with ldapsearch it not shows all like the user's password etc...


Definitions prevents PIPE from initializing XML (Error: "Could not initialise Petri Net reader!")

Version: 5.0.2
Java: 1.8.0
Document did not initialize randomly and discovered that the definition tags caused the fault. Removed the tags and solved the issue.
<definition name="Foo" expression="2" id="Foo" defType="real" type="text"/> <definition name="Bar" expression="2*#(P0)" id="Bar" defType="real" type="text"/>

Friend, could you please specify how you solved the problem?
Would be much appreciated
Thanks!

If I remember correctly, I just had to remove the two lines in the file containing definition, as mentioned above. You can open the XML file with a text editor, and remove them manually. Hope it works!


Update fulcrum.md

Correct a typo in the fulcrum.conf file
What
What is the reason of this change?
Why
Why is this change important?
How
How was this change accomplished?
Scope

[ ] significant change to core configuration
[ ] independent bonus guide
[ ] simple bug fix

Fixes # (link issue)
Test & maintenance
How can the changes be tested? Is there ongoing maintenance effort? If this is a bonus guide: are you willing to update it from time to time?
Animated GIF (optional)
Add some snazz if you feel like it :)

Nice catch! Thanks! utACK!
We have another PR #1172 opened
Would we approve before this PR and then the other? wdyt?

Yeah, agree would be the best


make sure .auth is calling the cloud app for local dev

So this correctly directs the request to the locally running cloud app, however the cloud app does not have an endpoint for /box/srv/1.1/admin/authpolicy/auth configured.  Is there some route I should define in my cloud app to get this to work?

@bleathem At the moment, no. That endpoint is not part of the cloud app mbaas APIs yet, so in order to test locally, you have to create it in your own app.
We definitely will change this in the upcoming authentication improvements. But for now, you have to do this to get it work locally.

Is this PR ready to merge?  I've manually applied this patch a number of times now, it would be great to include it in a release.


No description item found using the browse node

I can browse a top level OPC/UA directory successfully, looking into the array I am missing the description field on each item.  I am using version 1.3.3.
Can you add this to the code?

Hi Giovanni,
with node-opcua you have to browse
and send the browse results to a read node to get that attributes you wanna get.
see and test the example flow in Node-RED:

API changed in node-opcua for readAllAttributes

if the node-opcua issue v0.2.x is fixed it will work again:

but browser result stay:

Please, test v2.x+

please check v2.0.4 or above

Thank a lot Klaus, I‘ll try it


Mount directory and delete data inside a volume

Hello all,
I am currently struggling with two issues. When I delete a task in CVAT, then unfortunately the data still remains in the cvat_cvat_data volume. How can I remove this data? Does it maybe remove Docker itself when the disk image size is reached?
The second problem is that I actually want to store the data outside of a container. According to the documentation, it is enough if I run the following command in the terminal: $ docker run --name cvat-server -v /my/cvat_data_dir:/home/django/data -d openvino/cvat_server
I swapped /my/cvat_data_dir for a custom path. Unfortunately this does not work, because the destination folder always remains empty. No files are stored there. Do I have to execute something before?
My system: MacOS 10.15.7
Docker version: 20.10.8, build 3967b7d

@DP1701 Hi,

How did you delete tasks?
I suggest to use docker-compose (it's much easier) to run CVAT, so you need to configure docker volume here like this:volumes:
   cvat_data:
     driver_opts:
       type: none
       device: /your_path
       o: bind

@azhavoro Hi,

The bind mount now works. The data is finally stored in the directory. Thanks for the tip!

I always delete the data via the web interface (Task > Action > Delete). But the data is now also deleted after I set up the bind mount. But I also loaded the current version from the repository once. My two problems have been solved.
Thanks for your help!


feat: rewrite RyderSerial to work with the new bridge

RyderSerial now properly handles all the new bridge responses and is more organized and commented in general. The public interface has not changed significantly, so the web app component (in ryder-utils.ts) did not need many changes except to fix some small synchronization issues. However, the web app component will need to be improved in the future as well because it does not handle errors well.
Currently, COMMAND_SETUP cannot be used due to a protocol issue with the firmware, but all other commands should work. Also, signing in seems to succeed while still producing an error, but this appears to be an issue with the latest merged Hiro wallet changes and not with the new RyderSerial.
Fixes #14.

Note that this requires a small change that will be pushed to the bridge after the rewrite PR is merged.

@friedger would it make sense to move this into a separate package again. We can just link it in package.json using a git link, we don't need to publish on npm yet.


Notebook editor cannot display Chinese/Japanese characters in cell output

Bug: Notebook Editor, Interactive Window, Editor cells
Steps to cause the bug to occur
Loaded shapefile into a dataframe,  Display the address column which has been encoded

Actual behavior
Address column is scrambled, Seems like the python cell output cannot handle the encoding. This data displays as Chinese characters on my colleagues machine, which is running a Chinese version of windowsOS
Note:

Notebook cells can display Chinese chracters
Language for non-unicode programs is set to Chinese(Simplified, China) in Windows language settings
I also have this issue when previewing CSV data using the CSV preview window:

N++

Edit: I checked the CSV data, It is encoded using GB2312 (Simp lified). Clicked on the encoding button at the bottom of the editor, And selected "Reopen with encoding.." and switched it from UTF8 to GB2312. Now the file displays correctly in the VSC CSV Preview, However, There is no option to do with with the cell output data (Also I dont know what encoding it is in, Assuming GB2312 too)
Expected behavior
Cell output display handles encoding and displays the characters
Your Jupyter and/or Python environment
Please provide as much info as you readily know

Jupyter server running: Local
Extension version: 2020.5.80290
VS Code version: 1.46
Setting python.jediEnabled:  false
Setting python.languageServer: Microsoft
Python and/or Anaconda version:

            shell level : 2
       user config file : C:\Users\Administrator\.condarc
 populated config files :
          conda version : 4.8.2
    conda-build version : 3.18.9
         python version : 3.7.4.final.0
       virtual packages : __cuda=10.2
       base environment : C:\ProgramData\Anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\ProgramData\Anaconda3\pkgs
                          C:\Users\Administrator\.conda\pkgs
                          C:\Users\Administrator\AppData\Local\conda\conda\pkgs
       envs directories : C:\ProgramData\Anaconda3\envs
                          C:\Users\Administrator\.conda\envs
                          C:\Users\Administrator\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.18362
          administrator : True
             netrc file : None
           offline mode : False

OS: Windows | Mac | Linux (distro): W10 19041.329
Virtual environment: conda

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

I did some more research on the problem, It seems like the Python interpreter output needs to change it's encoding output. I tried the following methods but they were not succesful:
import sys
import importlib
print(sys.getdefaultencoding())
sys.setdefaultencoding("gb2312") #Function depreciated in P3 (Works in P2)
importlib.reload(sys)

import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')  # Unsupported operation detatch() maybe because its in a notebook?
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')

import os
os.environ["PYTHONIOENCODING"] = "gb2312"  #ran but the cell output is still the same

Ok, The issue was resolved. Basically it was a problem with reading in the data, Luckily I could specify the encoding format for
geopandas.read_file(zip_path, encoding='gb2312')


Deploying an interface (mistakenly) leads to a confusing error.

Environment information
# First, I hardcoded an ABI that I manually copied from the internet
abi = [ ... ]
# Then, I "deployed" it to my local node
contract = ContractContainer(ContractType(abi=abi)).deploy("SPORK", owner, sender=owner)
# This was dumb of me! Because the contract type only has an ABI and no code...
# Yet, it worked because you can deploy empty contracts.
SUCCESS: Contract 'Spork' deployed to: 0x5FbDB2315678afecb367f032d93F642f64180aa3
# Then I try to call one of the methods from the ABI:
contract.balanceOf(account)

# this is the failure I get:

ERROR: (ContractNotFoundError) Failed to get contract type for address '0x5FbDB2315678afecb367f032d93F642f64180aa3'. Current provider 'test' has no associated explorer plugin. Try installing an explorer plugin using ape plugins install etherscan, or using a network with explorer support.

 But still, I feel like the error message from this flow makes very little sense, like why it is talking about explorer plugins, especially was the explorer plugin would give me a similar contract anyway (the normal flow is to use Contract(addr) and the code is already deployed)... but in this case, the error message is just weird, that is he issue.
How can it be fixed?

Add a warning if deploying an empty contract? Especially if there is an ABI!

If trying to call a method from the ABI but there is no code, raise a different error

ContractError("Contract has no code")

if the deployment bytecode is empty, you can probably raise without any issues because that means it isn't doing anything worthy of a deployment

if the deployment bytecode is empty, you can probably raise without any issues because that means it isn't doing anything worthy of a deployment

That works for me!

probably

How certain are we?

probably

How certain are we?

Nothing I can think of

Only thing i can think of is someone testing a deployment pipeline or something

How so?

How so?

I am imagining a hypothetical situation someone builds a deployment tool using Ape and in their tests, they deploy an empty contract to verify their deployment tool works.

How so?

I am imagining a hypothetical situation someone builds a deployment tool using Ape and in their tests, they deploy an empty contract to verify their deployment tool works.

I think as long as it raises a good error it should be obvious that they should do the same thing with a dummy contract that contains some logic, at least on deployment (runtime can still be empty, we would only raise if both runtime and initcode are empty, because that is pointless)


⚠ ClamAV has degraded performance

In 6fbe7a5, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 85 ms

Resolved: ClamAV performance has improved in 79c8904.


Proposal: openmatch.dev as the main website URL.

We secured multiple domains for Open Match and we are getting close to publishing a website for it. Currently the Github repository is github.com/GoogleCloudPlatform/open-match. For go get, this is problematic because hyphenated last paths are not allowed, see https://github.com/GoogleCloudPlatform/open-match/issues/114 for details.
Given this restriction and the desire to keep this as consistent as possible I'd like to propose http://openmatch.dev/ as the primary URL for the website.
We can also have http://open-match.dev/ as well but we'll need to workaround the tail hyphenation problem that open-match does with golang.

I agree with all your points.  Maybe run it past Micah as when he spoke to branding they had recommended we not use a concatenated name, he could have more details if there's anyone who needs to sign off on this.

Also would be awesome if we could make the decision before Next so I can put it in slides :)

The external naming is Open Match with a space, so open-match.dev is the website that will be used for any user facing content. For developers, it's acceptable to use openmatch.dev if we have technical reasons not to use open-match.dev. Both URLs will point to the same place, and we can be clear in the documentation that openmatch.dev must be used in the code. Does that sound fair?

That sounds fine to me. It's possible to have go get open-match.dev/open-match as the command to depend on the repository but it just complicates package name consistency because a package name cannot have a dash in it. Another option is to have go get open-match.dev/openmatch as the vanity url.

We now have development.openmatch.dev, www.openmatch.dev, openmatch.dev, development.open-match.dev, www.open-match.dev, and open-match.dev live. The development URLs point to the new website, and the others simply redirect to the github project. We can switch to the live site at any time now.


ximg doesn't get saved with SavePng.

Reproduce

Uncomment the following lines in the screenshot example: https://github.com/BurntSushi/xgbutil/blob/master/_examples/screenshot/main.go#L37-L40
Run go build
Run `./screenshot

Expected result
A window that pops up with the contents of the screenshot and a png gets written to disk with the contents of the screenshot.
Actual result
A window that pops up with the contents of the screenshot and blank png gets written to disk (https://punpun.xyz/hqgz.png)

You can either show or save, not both at the same time

Nope, commenting out the XShowExtra line doesn't fix it. I don't know I am somehow missing a dependency, or if this is an actual problem with xgbutil.

Also comment out the last line, xevent.Main(x), otherwise the process hangs. if that doesn't work I can't help, it works fine on my system

here's the full snippet
// Example screenshot shows how to take a screenshot of the current desktop
// and show it in a window. In a comment, it also shows how to save it as
// a png.
//
// It works by getting the image of the root window, which automatically
// includes all child windows.
package main

import (
	"log"

	"github.com/BurntSushi/xgb/xproto"

	"github.com/BurntSushi/xgbutil"
	"github.com/BurntSushi/xgbutil/xgraphics"
)

func main() {
	X, err := xgbutil.NewConn()
	if err != nil {
		log.Fatal(err)
	}

	// Use the "NewDrawable" constructor to create an xgraphics.Image value
	// from a drawable. (Usually this is done with pixmaps, but drawables
	// can also be windows.)
	ximg, err := xgraphics.NewDrawable(X, xproto.Drawable(X.RootWin()))
	if err != nil {
		log.Fatal(err)
	}

	// Shows the screenshot in a window.
	//ximg.XShowExtra("Screenshot", true)

	// If you'd like to save it as a png, use:
	err = ximg.SavePng("screenshot.png")
	if err != nil {
		log.Fatal(err)
	}

	//xevent.Main(X)
}

Yup, that's exactly what I tried, and yet it still produced a blank png image (that does have the right size though). The method you use in burdet does work, so I'm not sure what's going wrong here.

This issue should be fixed by this PR https://github.com/jezek/xgbutil/pull/6


Documentation: Describe when compute_*() functions should be created

Please select a category the issue is focused on?
Developer Guides
Let us know where something needs a refresh or put your idea here!
In the programming strategy it should be described when compute_*() functions should be created.

potential rule: if the function can be used for both columns/parameters


feat(vscode): support deno-aleph

https://github.com/alephjs/aleph.js/blob/main/server/types.ts
close https://github.com/unocss/unocss/issues/901

thanks for supporting aleph.js, unocss is great project!

https://github.com/alephjs/aleph.js/blob/main/server/types.ts
close #901

Should I close it ? the merge above didn't fully work.

i think this pr is not necessary, to enable vsc extension, we can import unocss.confg.js in server.tsx


Unresponsive over the weekend

From https://idownvotedbecau.se/beingunresponsive

And, in the future, when asking a question, keep the browser tab pinned open for at least a few hours. Check to see if comments or answers have been added every ten to fifteen minutes. Always respond immediately to comments.

Say someone asks a question on Friday afternoon and is responsive for two hours, but then the iteration to improve the question continues until the end of the work day before the asker leaves the office for the weekend. Is it considered rude to go home for the weekend without access to the environment in which the code is run? What guidance can we give?

IMHO demanding the asker to check 15-minutewise his question for few hours is quite exaggerated. I'd stick to StackOverflow directive:

After you post, leave the question open in your browser for a bit, and see if anyone comments. If you missed an obvious piece of information, be ready to respond by editing your question to include it. If someone posts an answer, be ready to try it out and provide feedback!

That is the only reason I don't use that beingunresponsive tag. Too demanding.


[BUG] Guys I'm using bloxstrap and bloxshade and my fps is stuck on 60 fps and i turned of max frame rate

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

What problem did you encounter?
When I just got Bloxshade I noticed that my fps was stuck at 60 when it used to be more without it with Bloxstrap.
Bloxstrap Log
N/A

no wonder

you think your fps will be like the exact same with some shaders?

you think your fps will be like the exact same with some shaders?

Do u have a fix? I used to run over 100+ fps

check roblox settings.

This is clearly not our problem then.


Removed generatedFileExtension for yarn run start to work

I'm very confused.... what error is this fixing? Why are you removing that line? Would doing so break type generation in rescript?

Yep;
This line was breaking "yarn run start" from running. I agree it's needed for type generation to work, so that this PR breaks that.
Being able to run "yarn run start" seemed higher importance to me.
Do feel free to find some other way of fixing things when you have a chance. (So that we both get typescript bindings, plus yarn to work)

I'm not sure if I'll merge this now, as I don't want to have tests fail, and don't want to comment them out yet.

yarn run start succeeds on a clean version of master to me... What are you talking about? What do you mean when you say it is "breaking" it? Do you get an error?
When you say it "loops". Isn't it supposed to loop? It's watching files... that's what it's meant to do?
I'm very confused

I've fixed tests failing in my move to webpack PR

Both this and the webpack PR still have the problem.
It's definitely a problem, even after I run "yarn run clean"
"Yarn run start" is only supposed to refresh after files are saved. The "bug" is that it runs endlessly, at least on my machine (and apparently on Umur's, as I understand it)

Ooooooohhhh, I see the problem!
For others:
yarn start endlessly recompiles after changing a file.
Steps to reproduce:
Run yarn start, then edit a rescript file, then watch the endless compiler output as it recompiles in a loop.
Expected output:
it should only recompile once after a file has been edited.
Actual output:
It endlessly recompiles after the file has been edited.
It appears, that now that we're using webpack and all, I don't believe this edit will break anything. The only real difference is that now .gen.tsx files are generated rather than .gen.ts. (which is a bit misleading, considering there's no react in this library) happy to merge as misleading file extensions is not as bad as a broken yarn start.
I'm going to quickly check whether this breaks anything when being used as a package, and if it doesn't I'll merge this.

Okedoke! Looks fine, merging

Ok, it did break type checking, but I think I can fix that in the next thing with a workaround

is yarn start deprecated? it's not in any of the package.jsons


DragTarget doesn't acknowledge child's hitTest function

Conceptually related issue: https://github.com/flutter/flutter/issues/73330
Steps to Reproduce

Tried on version 1.26.
Run flutter create issue.
Run cd issue.
Update the file lib/main.dart as follows:import 'dart:math';

import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

void main() {
  debugPaintSizeEnabled = true;
  runApp(DragTargetIssue());
}

class DragTargetIssue extends StatefulWidget {
  @override
  DragTargetIssueState createState() => DragTargetIssueState();
}

class DragTargetIssueState extends State<DragTargetIssue> {
  bool _isDraggedOver = false;
  bool _isTapped = false;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Column(
          children: [
            SizedBox(
              width: 200,
              height: 200,
              child: DragTarget(
                onMove: (details) {
                  _isDraggedOver = true;
                },
                onLeave: (details) => setState(() {
                  _isDraggedOver = false;
                }),
                builder: (context, candidateData, rejectedData) =>
                    GestureDetector(
                  onTap: () => setState(() {
                    _isTapped = !_isTapped;
                  }),
                  child: CustomPaint(
                    painter: _CustomPainter(
                      color: Color(0xFF000000)
                          .withRed(_isDraggedOver ? 255 : 0)
                          .withBlue(_isTapped ? 255 : 0),
                    ),
                    child: null,
                  ),
                ),
              ),
            ),
            Draggable(
              feedback: Text('Dragging'),
              child: Text('Drag me over the circle!'),
            ),
          ],
        ),
      ),
    );
  }
}

class _CustomPainter extends CustomPainter {
  final Color color;
  _CustomPainter({this.color});

  @override
  bool shouldRepaint(covariant CustomPainter oldDelegate) {
    return true;
  }

  @override
  void paint(Canvas canvas, Size size) {
    final Paint p = Paint();
    p.color = color;
    canvas.drawCircle(Offset(100, 100), 80, p);
  }

  @override
  bool hitTest(Offset position) {
    return pow(position.dx - 100, 2) + pow(position.dy - 100, 2) < pow(80, 2);
  }
}

Run flutter run -d linux (or any other platform).
Drag the text Drag me over the circle! over the circle and the circle's bounding box outside the circle. In both cases the circle will turn red.
Click with the mouse on the circle and on the circle's bounding box outside the circle. When clicking the circle it will turn blue, when clicking outside the circle, nothing will happen.

Expected result: Both, dragging and click, should only work inside the circle, where the given hitTest function returns true.
Actual result: Clicking outside the circle doesn't register a tap as exptected. But dragging outside the circle is being registered which is not exptected.
Comment: Unlike issue https://github.com/flutter/flutter/issues/73330, I couldn't find the responsible code in this case. I stopped at the line https://github.com/flutter/flutter/blob/1.26.0-1.0.pre/packages/flutter/lib/src/widgets/drag_target.dart#L784, where _DragAvatar apparently performs its hitTest, but I didn't understand where the RenderObjects' hitTest functions are called.
Logs

Logs

[  +90 ms] executing: [/opt/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +42 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 63062a64432cce03315d6b5196fda7912866eb37
[   +2 ms] executing: [/opt/flutter/] git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37
[  +27 ms] Exit code 0 from: git tag --points-at 63062a64432cce03315d6b5196fda7912866eb37
[        ] 1.26.0-1.0.pre
[  +51 ms] executing: [/opt/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/dev
[        ] executing: [/opt/flutter/] git ls-remote --get-url origin
[   +7 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +85 ms] executing: [/opt/flutter/] git rev-parse --abbrev-ref HEAD
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] dev
[  +72 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +83 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +86 ms] Creating project issue...
[  +55 ms]   issue/.idea/libraries/Dart_SDK.xml (created)
[  +22 ms]   issue/.idea/libraries/KotlinJavaRuntime.xml (created)
[        ]   issue/.idea/modules.xml (created)
[   +1 ms]   issue/.idea/runConfigurations/main_dart.xml (created)
[        ]   issue/.idea/workspace.xml (created)
[   +1 ms]   issue/.metadata (created)
[   +1 ms]   issue/README.md (created)
[   +1 ms]   issue/android/app/src/main/kotlin/com/example/issue/MainActivity.kt (created)
[   +1 ms]   issue/android/app/build.gradle (created)
[   +1 ms]   issue/android/issue_android.iml (created)
[   +1 ms]   issue/android/build.gradle (created)
[   +2 ms]   issue/android/.gitignore (created)
[   +1 ms]   issue/android/app/src/debug/AndroidManifest.xml (created)
[   +1 ms]   issue/android/app/src/main/res/drawable/launch_background.xml (created)
[        ]   issue/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (created)
[        ]   issue/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (created)
[        ]   issue/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (created)
[        ]   issue/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (created)
[        ]   issue/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (created)
[        ]   issue/android/app/src/main/res/values/styles.xml (created)
[        ]   issue/android/app/src/main/res/values-night/styles.xml (created)
[        ]   issue/android/app/src/main/res/drawable-v21/launch_background.xml (created)
[        ]   issue/android/app/src/main/AndroidManifest.xml (created)
[   +1 ms]   issue/android/app/src/profile/AndroidManifest.xml (created)
[        ]   issue/android/gradle/wrapper/gradle-wrapper.properties (created)
[        ]   issue/android/gradle.properties (created)
[        ]   issue/android/settings.gradle (created)
[        ]   issue/ios/Runner/AppDelegate.swift (created)
[        ]   issue/ios/Runner/Runner-Bridging-Header.h (created)
[        ]   issue/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (created)
[        ]   issue/ios/Runner.xcodeproj/project.pbxproj (created)
[   +6 ms]   issue/ios/.gitignore (created)
[        ]   issue/ios/Flutter/Debug.xcconfig (created)
[        ]   issue/ios/Flutter/Release.xcconfig (created)
[        ]   issue/ios/Flutter/AppFrameworkInfo.plist (created)
[        ]   issue/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]   issue/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (created)
[        ]   issue/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (created)
[        ]<EMAIL_ADDRESS>(created)
[        ]<EMAIL_ADDRESS>(created)
[        ]   issue/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (created)
[        ]   issue/ios/Runner/Base.lproj/LaunchScreen.storyboard (created)
[        ]   issue/ios/Runner/Base.lproj/Main.storyboard (created)
[        ]   issue/ios/Runner/Info.plist (created)
[        ]   issue/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (created)
[        ]   issue/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (created)
[        ]   issue/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (created)
[        ]   issue/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (existing - skipped)
[        ]   issue/ios/Runner.xcworkspace/contents.xcworkspacedata (created)
[        ]   issue/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (created)
[        ]   issue/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (created)
[        ]   issue/lib/main.dart (created)
[   +4 ms]   issue/linux/.gitignore (created)
[        ]   issue/linux/CMakeLists.txt (created)
[   +2 ms]   issue/linux/flutter/CMakeLists.txt (created)
[        ]   issue/linux/my_application.h (created)
[        ]   issue/linux/main.cc (created)
[        ]   issue/linux/my_application.cc (created)
[        ]   issue/issue.iml (created)
[        ]   issue/test/widget_test.dart (created)
[   +1 ms]   issue/web/favicon.png (created)
[        ]   issue/web/icons/Icon-192.png (created)
[        ]   issue/web/icons/Icon-512.png (created)
[        ]   issue/web/manifest.json (created)
[        ]   issue/web/index.html (created)
[   +1 ms]   issue/.gitignore (created)
[        ]   issue/integration_test/app_test.dart (created)
[        ]   issue/integration_test/driver.dart (created)
[        ]   issue/pubspec.yaml (created)
[  +59 ms] Running "flutter pub get" in issue...
[   +5 ms] executing: [/tmp/issue/a/issue/] /opt/flutter/bin/cache/dart-sdk/bin/pub --verbose get --no-precompile
[  +92 ms] MSG : Resolving dependencies...
[  +13 ms] MSG : + _fe_analyzer_shared 12.0.0 (14.0.0 available)
[        ]     | + analyzer 0.40.6 (0.41.1 available)
[        ]     | + archive 2.0.13
[        ]     | + args 1.6.0
[        ]     | + async 2.5.0-nullsafety.3
[        ]     | + boolean_selector 2.1.0-nullsafety.3
[        ]     | + characters 1.1.0-nullsafety.5
[        ]     | + charcode 1.2.0-nullsafety.3
[        ]     | + cli_util 0.2.0
[        ]     | + clock 1.1.0-nullsafety.3
[        ]     | + collection 1.15.0-nullsafety.5
[        ]     | + convert 2.1.1
[        ]     | + coverage 0.14.2
[        ]     | + crypto 2.1.5
[        ]     | + cupertino_icons 1.0.2
[        ]     | + fake_async 1.2.0-nullsafety.3
[        ]     | + file 6.0.0-nullsafety.4
[        ]     | + flutter 0.0.0 from sdk flutter
[        ]     | + flutter_driver 0.0.0 from sdk flutter
[        ]     | + flutter_test 0.0.0 from sdk flutter
[        ]     | + fuchsia_remote_debug_protocol 0.0.0 from sdk flutter
[        ]     | + glob 1.2.0
[        ]     | + integration_test 0.9.2+2 from sdk flutter
[        ]     | + io 0.3.4
[        ]     | + js 0.6.3-nullsafety.3
[        ]     | + json_rpc_2 2.2.2
[        ]     | + logging 0.11.4
[        ]     | + matcher 0.12.10-nullsafety.3
[        ]     | + meta 1.3.0-nullsafety.6
[        ]     | + node_interop 1.2.1
[        ]     | + node_io 1.1.1 (1.2.0 available)
[        ]     | + package_config 1.9.3
[        ]     | + path 1.8.0-nullsafety.3
[        ]     | + pedantic 1.10.0-nullsafety.3
[        ]     | + platform 3.0.0-nullsafety.4
[        ]     | + pool 1.5.0-nullsafety.3
[        ]     | + process 4.0.0-nullsafety.4
[        ]     | + pub_semver 1.4.4
[        ]     | + sky_engine 0.0.99 from sdk flutter
[        ]     | + source_map_stack_trace 2.1.0-nullsafety.4
[        ]     | + source_maps 0.10.10-nullsafety.3
[  +12 ms]     | + source_span 1.8.0-nullsafety.4
[        ]     | + stack_trace 1.10.0-nullsafety.6
[        ]     | + stream_channel 2.1.0-nullsafety.3
[        ]     | + string_scanner 1.1.0-nullsafety.3
[        ]     | + sync_http 0.2.0
[        ]     | + term_glyph 1.2.0-nullsafety.3
[        ]     | + test_api 0.2.19-nullsafety.6
[        ]     | + test_core 0.3.12-nullsafety.9 (0.3.12-nullsafety.12 available)
[        ]     | + typed_data 1.3.0-nullsafety.5
[        ]     | + vector_math 2.1.0-nullsafety.5
[   +6 ms]     | + vm_service 5.5.0
[        ]     | + watcher 0.9.7+15
[        ]     | + web_socket_channel 1.1.0
[        ]     | + webdriver 2.1.2
[        ]     | + yaml 2.2.1
[   +1 ms] MSG : Changed 56 dependencies!
[  +24 ms] Running "flutter pub get" in issue... (completed in 2,929ms)
[ +116 ms] Found plugin integration_test at /opt/flutter/packages/integration_test/
[ +182 ms] Found plugin integration_test at /opt/flutter/packages/integration_test/
[   +6 ms] Generating /tmp/issue/a/issue/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +10 ms] Wrote 86 files.
[        ]
           All done!
[   +1 ms] In order to run your application, type:

             $ cd issue
             $ flutter run

           Your application code is in issue/lib/main.dart.

[        ] "flutter create" took 3,665ms.
[  +14 ms] ensureAnalyticsSent: 9ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0

[✓] Flutter (Channel dev, 1.26.0-1.0.pre, on Linux, locale en_US.UTF-8)
    • Flutter version 1.26.0-1.0.pre at /opt/flutter
    • Framework revision 63062a6443 (3 weeks ago), 2020-12-13 23:19:13 +0800
    • Engine revision 4797b06652
    • Dart version 2.12.0 (build 2.12.0-141.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /opt/android-sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /opt/android-sdk
    • Java binary at: /home/adabru/work/armin/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 11.0.0
    • cmake version 3.19.2
    • ninja version 1.10.2
    • pkg-config version 1.7.3

[✓] Android Studio (version 3.6)
    • Android Studio at /home/adabru/work/armin/android-studio
    • Flutter plugin version 49.0.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Linux

! Doctor found issues in 1 category.

Hey @adabru,
Great issue! This would be useful, and is sort of the other side of #28737.
I think (without having tried it) that drag_target.dart#L708 may be responsible for what you're seeing on the drop side. HitTestBehavior.translucent indicates that hits should be reported on this DragTarget anytime the mouse pointer is inside the widget's bounds.
If it were changed to HitTestBehavior.deferToChild, I think it will work for your use case, by delegating the hitTest logic to the subtree.

Hey @adabru,
Great issue! This would be useful, and is sort of the other side of #28737.
I think (without having tried it) that drag_target.dart#L708 may be responsible for what you're seeing on the drop side. HitTestBehavior.translucent indicates that hits should be reported on this DragTarget anytime the mouse pointer is inside the widget's bounds.
If it were changed to HitTestBehavior.deferToChild, I think it will work for your use case, by delegating the hitTest logic to the subtree.

I gave it a shot by modifying my local Flutter's source, and sure enough, changing the MetaData's behavior to HitTestBehavior.deferToChild works in the way you want:
https://user-images.githubusercontent.com/42326/103721333-69e3e400-4f9b-11eb-9622-13707fb19253.mov
Not that this helps you much, but maybe the Flutter folks could be convinced to make this behavior configurable. 🤞

I gave it a shot by modifying my local Flutter's source, and sure enough, changing the MetaData's behavior to HitTestBehavior.deferToChild works in the way you want:
https://user-images.githubusercontent.com/42326/103721333-69e3e400-4f9b-11eb-9622-13707fb19253.mov
Not that this helps you much, but maybe the Flutter folks could be convinced to make this behavior configurable. 🤞

I was able to reproduce it.
I would consider this as proposal since this can be fixed by exposing the hitTestBehavior of the DragTarget.

flutter doctor
[✓] Flutter (Channel master, 1.26.0-2.0.pre.200, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.26.0-2.0.pre.200 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision d0e9959a46 (4 hours ago), 2021-01-05 22:14:03 -0500
    • Engine revision e115066dcd
    • Dart version 2.12.0 (build 2.12.0-179.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.1.5
    • Dart plugin version 203.6912

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

[✓] Connected device (3 available)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 11 (API 30) (emulator)
    • macOS (desktop)            • macos         • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 87.0.4280.88

! Doctor found issues in 1 category.
Process finished with exit code 0

I was able to reproduce it.
I would consider this as proposal since this can be fixed by exposing the hitTestBehavior of the DragTarget.

flutter doctor
[✓] Flutter (Channel master, 1.26.0-2.0.pre.200, on Mac OS X 10.15.7 19H2 darwin-x64, locale en)
    • Flutter version 1.26.0-2.0.pre.200 at /Users/pedromassango/dev/SDKs/flutter_master
    • Framework revision d0e9959a46 (4 hours ago), 2021-01-05 22:14:03 -0500
    • Engine revision e115066dcd
    • Dart version 2.12.0 (build 2.12.0-179.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 52.1.5
    • Dart plugin version 203.6912

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

[✓] Connected device (3 available)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 11 (API 30) (emulator)
    • macOS (desktop)            • macos         • darwin-x64     • Mac OS X 10.15.7 19H2 darwin-x64
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 87.0.4280.88

! Doctor found issues in 1 category.
Process finished with exit code 0

Hi @shyndman thank you very much for your investigation! Yeah I looked into the hitTest function before but the MetaData widget seemed so insignificant to me that I overlooked its behaviour property ;-)
I think your solution does help me. I had a similiar issue with MouseRegion and I just copied the flutter-code for MouseRegion to a local class (~150 lines of code) with the problematic line changed. I intend to do the same thing with the DragTarget code and change the line you mentioned. That's another advantage of the framework being open source.

Hi @shyndman thank you very much for your investigation! Yeah I looked into the hitTest function before but the MetaData widget seemed so insignificant to me that I overlooked its behaviour property ;-)
I think your solution does help me. I had a similiar issue with MouseRegion and I just copied the flutter-code for MouseRegion to a local class (~150 lines of code) with the problematic line changed. I intend to do the same thing with the DragTarget code and change the line you mentioned. That's another advantage of the framework being open source.

CC @darrenaustin

CC @darrenaustin


Game of Life in Python

Congrats on taking the first step to contributing to the Sample Programs in Every Language repository!
For simplicity, please make sure that your pull request includes one and only one sample program and language.
Please Complete the Following

[ ] I would NOT like credit for my contribution in the article (credit will be included otherwise)
[x] I named the pull request using Sample Program in Language format
[x] I tagged the pull request with the sample program name
[x] I created/updated the language README

[x] I added the sample program name to the README
[x] I added fun facts (i.e. debut, developer, typing, etc.)
[x] I added reference link(s) to the README

Notes
Alright, so I've implemented the Game of Life in Python, but it ain't pretty. Tkinter is a pretty bad UI library, in my opinion.

Alright, so I added the arguments to match up with Java. The only issue is this solution is insanely slow. Like, I can't even run it with a 100x100 grid without crashing IDLE. To be honest, I don't get it.

Alright, I'm finding that the grid configuration is really slow: https://stackoverflow.com/questions/6431487/size-limitations-of-tkinter-grid-manager
One user claimed that 300x10 (3000 cells) was unusable for them. So, clearly, I won't be able to run 100x100 (10,000 cells). The user did note that it performance is significantly better with a canvas. Tough luck I guess. I'll may switch over to that at another time. For now, I want to move on to another language.

More proof that thousands of widgets is a bad idea: https://stackoverflow.com/questions/38312592/tkinter-performance-when-packing-many-widgets
May need to switch over to canvas.


Update to latest netty-tcnative release

Cherry-picked into 4.1 (cdf3acb6a2a1733fc903a36b3166230ee67eb21f) and 4.0 (08e3aa8de0ccdd37dda73db05408fa99f471be8f)


Update to d3 seems to have broken epoch

See changelog here: https://github.com/d3/d3/releases
v3.5.17 seems to be the last one that works.

Seconding this. After updating d3 to v4, epoch doesn't work since it uses d3.time.format, etc.
Thanks in advance!

I take it that Epoch requires D3js < v4, from the above. Is the upgrade to v4 compatibility on the roadmap? Would be a handy thing to add to the docs, me thinks. Being new to Epoch, didn't think about at first and spent a little time wondering why it wasn't working.

The documentation lays out how to fix the time issue.
https://github.com/d3/d3/blob/master/CHANGES.md#timers-d3-timer
I've done this locally and it works. There are other issues so as @zerosquadron asked, is there a roadmap for a d3 v4 rework?

@beauremus - If you have fixed it locally, why not open a PR? I haven't had much time to work on Epoch as of late but I totally have time to review a PR or two 👍


Mouse input delay in Windows Terminal

I just ran dotnet run --project UICatalog in a cmd, a powershell and a windows terminal powershell, and noticed a huge mouse input delay in the latter.
I guess that is not intended? Can I do something do make gui.cs programs run smoothly in the windows terminal?

It's a bug that is causing the click event is not processing. Checkout the PR https://github.com/migueldeicaza/gui.cs/pull/1447 and test, please.

That branch works significantly faster!

@Trolldemorted I already fixed, please test. Thanks for reporting this.