text:
Timeout when attempting to run any docker commands after starting a machine

I am unable to run any docker, docker-compose commands after bringing up a docker machine. I get a timeout error when executing things like docker ps or docker-compose up -d. I am able to SSH to the image without any issues and I have confirmed it is running on the IP address listed by docker-machine ip <name>.
Version Info

docker-machine version 0.1.0
Docker version 1.5.0, build a8a31ef
Virtual Box 4.2.28 (also tried 4.3.26)
Mac OS 10.10
docker-machine ip <name>: 192.168.99.100

Trace from docker-compose up -d
Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 31, in main
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 21, in sys_dispatch
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 27, in dispatch
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 24, in dispatch
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 59, in perform_command
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 445, in up
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.project", line 184, in up
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.service", line 253, in recreate_containers
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.service", line 122, in containers
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/docker.client", line 519, in containers
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/docker.client", line 81, in _get
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/requests.sessions", line 395, in get
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/requests.sessions", line 383, in request
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/requests.sessions", line 486, in send
  File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/requests.adapters", line 387, in send
requests.exceptions.Timeout: (<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x1046ad290>, 'Connection to 192.168.99.100 timed out. (connect timeout=60)')

Error from docker ps
docker ps
FATA[0032] An error occurred trying to connect: Get https://192.168.99.100:2376/v1.17/containers/json: dial tcp 192.168.99.100:2376: i/o timeout

Hi @miskander, I'm assuming you set the environment variables using $(docker-machine env <name>) method?  Could you please print the output of :

docker-machine ls
docker-machine env <name>
env | grep DOCKER

@nathanleclaire Thanks, I did run that after the machine was created. Here is the output of those commands:
docker-machine ls
NAME   ACTIVE   DRIVER       STATE     URL                         SWARM
dev    *        virtualbox   Running   tcp://192.168.99.100:2376

docker-machine env <name>
export DOCKER_TLS_VERIFY=yes
export DOCKER_CERT_PATH=/Users/USERNAME/.docker/machine/machines/dev
export DOCKER_HOST=tcp://192.168.99.100:2376

env | grep DOCKER
DOCKER_HOST=tcp://192.168.99.100:2376
DOCKER_TLS_VERIFY=yes
DOCKER_CERT_PATH=/Users/<username>/.docker/machine/machines/dev

Great, thanks.  Are you behind any kind of VPN or corporate proxy, or have anything funky happening in your networking configuration that you can think of?

So my answer was going to be nope, all is normal and VPN is off as I tried that before. But what I decided to do was test again before I respond since I do use VPN throughout the day. I deleted vboxnet0 interface though before I tried again, and low and behold it works. I probably provisioned the first machine while on VPN and the interface was just funky from that.
Sorry for the superficial issue.

No worries @miskander.  Thanks for reporting!

I've actually had this issue as well, when going from one network to another. Suspend and re-start docker  typically resolves that issue for me.

This solves the issue for me...
$ killall -9 VBoxHeadless && docker-machine restart <env>

This solved the issue for me
docker-machine start dev

Thanks @Telemakhos that sorted my network issues out as well. I didn't have any VPN on my networks but it was still failing.

'docker-machine ls'
'docker-machine restart '
worked for me to resolve error with docker compose connection timeout error.  Thanks

Also, I try to run command:
docker-machine.exe env default

and get i/o timeout
I'm trying to fix it with next command:
docker-machine.exe regenerate-certs default

And got docker-machine message:

This machine has been allocated an IP address, but Docker Machine could not reach it successfully.
SSH for the machine should still work, but connecting to exposed ports, such as the Docker daemon port (usually :2376), may not work properly.
You may need to add the route manually, or use another related workaround.
This could be due to a VPN, proxy, or host file configuration issue.
You also might want to clear any VirtualBox host only interfaces you are not using.

After this I clear unused host-only interfaces directly in VirtualBox after this regenerate certs again and all looks fine for now.
Software:

Windows 10
Virtualbox 5.0.14
Docker-toolbox 1.9.1i

Thank You @nukalasr. It worked for me.

'docker-machine ls'
'docker-machine restart '
worked for me

[root@weikang weikang]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    100    0        0 eth0
instance-data.e gateway         255.255.255.255 UGH   100    0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 eth0
192.168.99.0    0.0.0.0         255.255.255.0   U     0      0        0 vboxnet0
[root@weikang weikang]# docker-machine ls
NAME    ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER        ERRORS
myvm1   *        virtualbox   Running   tcp://192.168.99.100:2376           v18.05.0-ce
myvm2   -        virtualbox   Running   tcp://192.168.99.101:2376           v18.05.0-ce
[root@weikang weikang]# docker node ls
error during connect: Get https://192.168.99.100:2376/v1.37/nodes: Gateway Timeout
[root@weikang weikang]#
I got above error following the docker docs,
'docker-machine ls'
'docker-machine restart ' doesn't help.
Docker VM installed on cloud environment, fedora 27.

@telemakhos 'killall -9 VBoxHeadless' this did the trick. After hours of searching, thank you.

authors: Preravana Telemakhos anshuiitk denisinla martian1431 miskander mnichols nathanleclaire nukalasr osavchenko pankajavhad pigraindew

repo: docker/machine


text:
Prevent adding latest tag

It seems the tag latest is automatically being applied when running this action. How can I prevent adding the latest tag?
      - name: Extract metadata (tags, labels) for Docker image
        uses: docker/metadata-action@v3
        with:
          images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

      - name: Build and push Docker image
        uses: docker/build-push-action@v2
        with:
          context: .
          push: true
          tags: ${{ steps.meta.outputs.tags }}
          labels: ${{ steps.meta.outputs.labels }}

@nodesocket If you don't want the latest tag to be automatically generated, set latest: false for the flavor input:
      - name: Extract metadata (tags, labels) for Docker image
        uses: docker/metadata-action@v3
        with:
          images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
          flavor: |
            latest=false

@crazy-max that worked. Thanks for the help. 🙏🏻

source: gharchive/issue

authors: crazy-max nodesocket

repo: docker/metadata-action

license_type: permissive

license_source: github-api


text:
Add json output to action.yml

Resolves #166

Okay, did this via web from my phone. The DCO seems not to like this. Will try to take a look, when I at my PC. Probably not today

Okay, did this via web from my phone. The DCO seems not to like this. Will try to take a look, when I at my PC. Probably not today

Yes and also squash commits, thx.

source: gharchive/pull-request

authors: StefanSchoof crazy-max


text:
Make buildx available in official Docker images

Tell us about your request
Buildx is the way to go forward and take advantage of the great features BuildKit brought to Docker. buildx is available on every (most?) platforms by default when you install docker with one notable – and somewhat ironic – exception: the official Docker images. The official Docker images seem to be the only distribution packages that do not ship with buildx (and compose) by default. Let that sink in.
That is strange in itself, but it's a real bummer when you start to transition to buildx locally because it's seemingly available everywhere by default and prepare to move on to CI. All shiny new workflows are broken and you need to revert back to regular builds. Not only does this hinder the adoption of buildx (and composer), this burns countless developer hours, judging by the number of people who reacted on the related issues.
Which service(s) is this request for?
Official Docker images on Docker Hub, especially the Docker-in-Docker variants ( tagged dind).
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I would like to use buildx in CI without a hassle. At the moment, this requires me (and everyone who wants to use buildx in a Docker-in-Docker CI workflow) to build and maintain a variant of the official Docker images from Docker Hub – or give up on the advantage of using an official image and rely on a friendly guy from the internet.
Are you currently working around the issue?
Yes, I have created and regularly check and update a custom version of the official Docker images.
Additional context
The first trace of this request dates back to 2019 and there have been multiple duplicates.
There is a more than two years old pull request to resolve the current blocker and a member of the Docker team provides an image as a "temporary" workaround since December 2020 with 100K+ pulls.
I have already asked to reconsider this a few weeks ago and stumbled over this roadmap repo today.
You added buildx support to GitHub actions in fall 2020. It would be very kind if you could add buildx to the official Docker images in spring 2022.

In the meantime there is jdrouet/docker-with-buildx:alpine mentioned in this Docker blog post
Not official of course...

Can also use https://hub.docker.com/r/maniator/docker-with-buildx/ 👍

I finally fixed auto builds with GitHub actions, not sure why they stopped....

A PR is up to implement this :) https://github.com/docker-library/docker/pull/361

This has been merged in https://github.com/docker-library/official-images/pull/12403. Big thanks to everyone involved. ❤

@wedi could you please tell me evenually which official docker image contains buildx now?

@a-a-k that'd be https://hub.docker.com/_/docker (specifically the cli variants if all you need is buildx); it was just updated to the newly released 0.11.0

authors: a-a-k chris-crone ddelange maniator tianon wedi

repo: docker/roadmap


text:
vendor: fix vendor.conf problems

There supposed to be only root imports in vendor.conf.
Also, mock is not used anymore.

LGTM

repo: docker/swarmkit


text:
Version Was invalid, Fix to Version3 docker-compose

replicas cant be 2 because of port allocation

Thanks!

Thanks!

authors: BretFisher DanArlowski

repo: dockersamples/example-voting-app


text:
Release 1.5.0

Switch travis builds to ubuntu 18.04 (bionic)
Updated deploy script
Use the older (pre 8.0.4) authentication method with MySQL 8.0 for (backward) compatibility between MySQL/MariaDB (#19)

This is waiting on #17 to be merged.

repo: docksal/service-mysql

license: MIT


text:
Add flag to view stubbed workflows from CLI

Feature Request
Add a flag to the CLI bindings to display stubbed (and unstubbed) entries.
Desired behaviour
Following https://github.com/ga4gh/dockstore/issues/1773 , stubbed workflows no longer appear in the CLI output. The workflows are still made available by the web service. Providing an optional flag would let CLI clients manage both stubbed and unstubbed workflows.
Expected behaviour
A flag like --show-stubs in the CLI.
Actual behaviour
No flag, stubs are filtered out
Steps to reproduce the behaviour
dockstore workflow publish will list workflows regardless of their publicity.
┆Issue is synchronized with this Jira Story
┆Issue Type: Story
┆Fix Versions: Dockstore 2.X
┆Issue Number: DOCK-564

discouraging stub creation in favor of whitelist wizard

repo: dockstore/dockstore


text:
Serve up Dockstore UI directly from CloudFront

Is your feature request related to a problem? Please describe.
Not major problems, but we would get certain advantages by serving up directly from CloudFront.
Describe the solution you'd like
Currently the index.html is served up by our nginx server. The index.html that is served up has references to CloudFront assets, so most of the UI is loaded via CF, which is good.
The proposal is that all of the UI, including the index.html, be served up via CloudFront.
*** Advantages

Lets us decouple UI releases from web service releases
Slightly better performance

The index.html would be loaded from the closest Edge node rather than where our EC2 instance is
Browser doesn't need to make additional CORS requests before loading UI assets

UI can be served while web service is down and can react accordingly
Won't run into the CORS issues we've been seeing serving up the UI assets from a different domain, although we should be able to fix that

*** Disadvantages

Cannot expose port 8443. That used to be the only way we accessed the web service. The port is still open, but now our preferred port is 443. We need to see if anybody is still using 8443.
3 minute timeout for API requests. We have been eliminating some of our longer running APIs, but this may crop up still.
This would make #3439 impossible; but we probably weren't going to do that one anyway.
Some of the headers work we have done would need to be moved into a lambda.

┆Issue is synchronized with this Jira Story
┆epic: DevOps: CloudFormation
┆fixVersions: Dockstore 1.13
┆friendlyId: DOCK-1483
┆sprint: Backlog
┆taskType: Story

So ten calls above the threshold in the last four weeks, may be approaching time for us to cut-over

authors: coverbeck denis-yuen


text:
Fix docopt_macros for rustc-1.23.0-nightly

Fixed for rustc 1.23.0-nightly (aabfed5e0 2017-11-17)

Thanks!

When do you think you'll be cutting the next release?   I'd like to play with this in another project?  Thanks again, this is great!

authors: BurntSushi ajweiss

license: Unlicense


text:
Wrong behaviour of flush($entity) ?

both $entityA and $entityB have changes
$em->computeChangeSet($entityA);
$em->flush($entityB); -> the changes from $entityB and also $entityA will be saved to db.
Is this normal ?

flush($entity) does not mean that $entity will be the only change to be committed. It is a performance optimization that forces the entity manager to only compute changes on the given $entity, but previous computed changes will still apply.

license: mit

license_source: bigquery


text:
Identifier flattener issues when L2C is enabled

As discovered in another bugfix the values used by the ID flattener is a bit off when using L2C and associations as FK.

Moving to 2.6.2

authors: Ocramius lcobucci


text:
Repository methods not working

/**
 * @ODM\Document(repositoryClass="Repositories\UserRepository")
 */
class User extends \AbstractUser implements \JsonSerializable {
...
/**
	 * @ODM\ReferenceMany(targetDocument="Membership", mappedBy="user", repositoryMethod="getCurrentMembership")
	 * @var type
	 */
	protected $membership;
}

adn the membership class
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;

/**
 * @ODM\Document(repositoryClass="Repositories\MembershipRepository")
 */
class Membership extends Document {}

if I use the repository by itself like this
$repo = $dm->getRepository(\Membership::class);
dump($repo->getCurrentMembership($this->me));

i get the correct membership object.
but if i access it like
$user->getMembership()

the repository method is not being called.
this is quite a serious issue for me. any way to fix this?
I have installed the latest @dev package from composer
edit: had the method in wrong repository, but the custom method is still not being called

@bazo can you please provide failing test case? There are tests for using repositoryMethod and everything seems to be working fine ODM wise. Maybe the problem lies in Document class you are extending?

Closing because of no response

authors: bazo malarzm

repo: doctrine/mongodb-odm


text:
Version 1.1.0 release

Changed

Added support for version v1-21.4.01 of the DocuSign Click API.
Updated the SDK release version.

Closing this and trying to create a new PR.

repo: docusign/docusign-click-php-client


text:
+![𝟐𝟎𝟐𝟒-𝐯𝐢𝐫𝐚𝐥!𝘃𝗶𝗱𝗲𝗼𝘀]* Anjali Arora Video Original Video Link Anjali Arora Video Viral On Social Media X Trending Now

awrbawrawbwaw

2?

authors: Nicoteng Udoracheadle

repo: doczjs/docz


text:
Don't add undocumented fields to appstore.Receipt struct

Some fields of appstore.Receipt are not mentioned in the Apple IAP Doc, such as ReceiptType, AdamID and AppItemID. Although they are appear in the response, using them can be a risk. Because they are not promised by Apple, things would be changed in the future.
So that I suggest that they should be removed to avoid misuse.

Thanks for your suggestion.
Apple's document really annoys me, because some fields are mentioned as incorrect type.
ex) expires_date says number in the document but response shows string like "2015-07-09 08:24:17 Etc/GMT"
And some fields are worth using such as xxx_date_ms, although they are not mentioned.
So I'll leave this IAPResponse struct and make the Verify() function use interface{} argument so that you can use the response struct you defined.

repo: dogenzaka/go-iap


text:
Storybook docs are down

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
When I go into https://react-hook-form-material-ui.vercel.app/ and try to view the documentation, I get a spinner and error.
It does not matter which component I try to access.

Expected behavior 🤔
It loads as usual and shows me the component API :)
Steps to reproduce 🕹
Steps:

Go to https://react-hook-form-material-ui.vercel.app
Click any of the links in the sidebar
Become sad

thanks for letting me know, I just pushed the new version

thanks for letting me know, I just pushed the new version

Nice! It works sometimes at least 😅 . But not anywhere

@jenshedqvist-mco you are right.. just ran through more Stories and upgraded the version. All date related elements should be displayed correctly

authors: dohomi jenshedqvist-mco

repo: dohomi/react-hook-form-mui


text:
Broken shader on satisfactory.

Satisfactory has a broken highlight shader (It should be a white outline), it renders incorrectly like boxes.
Images on the broken render is here.
I must mention that I'm using the Epic Games Store version, not the steam one and I'm also using Lutris to launch the game.
I was not able to get an apitrace even though I followed all the steps on the Lutris documentation on apitracing.
Copying the DLL's both on the launcher executable folder and on the game folder doesn't seem to generate any trace (I also used find to check if it was hidden anywhere).
I tried tracing both with DXVK enabled and disabled.
My last try was manually importing the game executable (instead of opening it through EGS) on lutris and doing everything again but it didn't seem to generate a trace. I suspect this has to do with EGS but I do not have the technical understanding to do this on my own so I'm sorry for that.
The shader seems to be rendered correctly by disabling DXVK ( I guess it launches with wined3d).
I tried multiple wine versions (TKG, wine-staging, etc) and all of them have the same problem however in system information I will only mention the TKG one as it is the primary wine I use.
Software information
Name of the game: Satisfactory EGS Version
Launcher: Lutris
System information

GPU: Radeon 530 (Laptop with dedicated GPU)
Driver: amdgpu
Wine version: 5.22.r5.g991f2e8e ( TkG Staging Esync Fsync )
DXVK version: 1.7.2L

Apitrace file(s)

Was not able to provide.

Log files

d3d9.log: empty
d3d11.log: https://pastebin.com/thaVbVcs
dxgi.log: https://pastebin.com/4iUkdnnu

Does amdgpu mean AMDGPU Pro or are you referring to the kernel driver?
Can you reproduce the issue with one of the other AMD drivers?

Does amdgpu mean AMDGPU Pro or are you referring to the kernel driver?
Can you reproduce the issue with one of the other AMD drivers?

I assume I refer to the kernel driver...
I used lspci -v to get that information
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] (rev c1)
        Subsystem: Dell Radeon 530
        Flags: bus master, fast devsel, latency 0, IRQ 132
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [size=2M]
        I/O ports at e000 [size=256]
        Memory at d0200000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at d0240000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu```

As far as I know AMDGPU Pro is not supported for my GPU.

His d3d11.log says he's using radv with aco from mesa 20.2.3.

I didn't even know about radv amdvlk etc...
I just tried amdvlk and the issue seems to be gone, with at least 20 frames lower tho :(..
I also tried radv with ACO disabled and the issue seems to persist so I assume it has to do with radv.
Sorry for opening the bug thread here, I was not aware of some things.
A last question would be: where is the correct place to report this bug ?
Thanks again for your time!

Radv bug reports go here.

Thank you, I posted a bug report there so I'm closing this one.

repo: doitsujin/dxvk

license: Zlib


text:
[dxvk 1.8] Overwatch won't launch with proper dll locations

Overwatch starts in a black screen before crashing on manjaro linux 5.10. I was able to fix this by swapping the 32bit and 64bit dlls in their respective folders.

Where exactly did you put the dlls respectively?
The 64 bit dlls go into system32 and the 32 bit ones into syswow64. (Yes, very intuitive.)

Yeah, except that you're probably using wined3d now.
Instead of coming up with this syswow64 nonsense from #1942 yet again, how about you post information about your system and tell us what kind of problem you have?

authors: K0bin doitsujin rosettet


text:
Optimize SPIRV shader compilation time

While working on Dishonored 2 stalls I spent some time optimizing the SPIRV shader compilation and ended up with this. It's not solving anything with the game stalls (which are because of new pipeline compilation during gameplay), but I could measure the game initial loading time going from ~10s to ~6s.
Feel free to take it or reject, I'd completely understand if that's not a super high priority as shader compilation is slow anyway and only supposed to happen during loading times.

I haven't really had the time to take a closer look at this yet, but users report that it also helps Warframe a bit. Not high priority by any means, but interesting regardless.

Sure, in any case loading times are also constrained by wine heap performance, which is currently really bad. I have some wip patches to improve that but it's completely experimental (and quite unrelated).

I'll report that it breaks Star Citizen (crashing on the universe sandbox loading screen) with no log or anything useful to debug the problem attached 🐸
I guess I could give vk validation layer a shot.

I'll report that it breaks Star Citizen (crashing on the universe sandbox loading screen) with no log or anything useful to debug the problem attached 🐸
I guess I could give vk validation layer a shot.

Does it crash with the fix?

Just updated with the typo corrected.

I removed a remaining ID allocation and the shaders are now generated identically as far as I can tell. I feel surprising that it would fix the SC crash though.

@Tk-Glitch could you please retest it after the last changes?

Just tested. The crash is still there on SC when that PR is applied even after the recent changes.
On another note, GCC10 fails to compile DXVK with this PR:
[71/266] Compiling C++ object 'src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj'
FAILED: src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj
ccache x86_64-w64-mingw32-g++ -Isrc/spirv/e922df6@@spirv@sta -Isrc/spirv -I../../../dxvk-master/src/spirv -I../../../dxvk-master/include -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DNOMINMAX -MD -MQ 'src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj' -MF 'src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj.d' -o 'src/spirv/e922df6@@spirv@sta/spirv_module.cpp.obj' -c ../../../dxvk-master/src/spirv/spirv_module.cpp
../../../dxvk-master/src/spirv/spirv_module.cpp: In member function ‘uint32_t dxvk::SpirvModule::defIntType(uint32_t, uint32_t)’:
../../../dxvk-master/src/spirv/spirv_module.cpp:699:11: error: narrowing conversion of ‘-64’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
  699 |     case -64:
      |           ^~
../../../dxvk-master/src/spirv/spirv_module.cpp:702:11: error: narrowing conversion of ‘-32’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
  702 |     case -32:
      |           ^~
../../../dxvk-master/src/spirv/spirv_module.cpp:705:11: error: narrowing conversion of ‘-16’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
  705 |     case -16:
      |           ^~
../../../dxvk-master/src/spirv/spirv_module.cpp:708:11: error: narrowing conversion of ‘-8’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
  708 |     case -8:
      |           ^
[84/266] Compiling C++ object 'src/dxvk/1752c3e@@dxvk@sta/dxvk_context.cpp.obj'
ninja: build stopped: subcommand failed.

While GCC9.3.1 will output the following warning:
[147/266] Compiling C++ object 'src/dxvk/1752c3e@@dxvk@sta/dxvk_shader.cpp.obj'
In file included from ../../../dxvk-master/src/dxvk/dxvk_shader.h:10,
                 from ../../../dxvk-master/src/dxvk/dxvk_shader.cpp:1:
../../../dxvk-master/src/dxvk/../spirv/spirv_writer.h: In instantiation of ‘void dxvk::SpirvWriter<SpirvBuffer>::erase(size_t) [with SpirvBuffer = dxvk::SpirvCodeBuffer; size_t = long long unsigned int]’:
../../../dxvk-master/src/dxvk/dxvk_shader.cpp:354:17:   required from here
../../../dxvk-master/src/dxvk/../spirv/spirv_writer.h:183:17: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long long unsigned int’} and ‘int’ [-Wsign-compare]
  183 |       if (m_ptr == -1)
      |           ~~~~~~^~~~~
[261/266] Linking target src/d3d10/d3d10core.dll

Crashes Dark Souls 3 on Windows.
[0x0]   ntdll!NtWaitForMultipleObjects + 0x14
[0x1]   KERNELBASE!WaitForMultipleObjectsEx + 0x107
[0x2]   KERNELBASE!WaitForMultipleObjects + 0xe
[0x3]   kernel32!WerpReportFaultInternal + 0x51b
[0x4]   kernel32!WerpReportFault + 0xac
[0x5]   KERNELBASE!UnhandledExceptionFilter + 0x3b8
[0x6]   ntdll!RtlUserThreadStart$filt$0 + 0xa2
[0x7]   ntdll!_C_specific_handler + 0x96
[0x8]   ntdll!RtlpExecuteHandlerForException + 0xf
[0x9]   ntdll!RtlDispatchException + 0x219
[0xa]   ntdll!KiUserExceptionDispatch + 0x2e
[0xb]   amdvlk64!vk_icdGetInstanceProcAddrSG + 0xfb00
[0xc]   amdvlk64!vk_icdGetInstanceProcAddrSG + 0xcebb
[0xd]   amdvlk64!vk_icdGetInstanceProcAddrSG + 0x5333
[0xe]   amdvlk64!vk_icdGetInstanceProcAddrSG + 0x6b4f
[0xf]   amdvlk64!vk_icdNegotiateLoaderICDInterfaceVersion + 0x615bf
[0x10]   amdvlk64!vk_icdNegotiateLoaderICDInterfaceVersion + 0x4a603
[0x11]   amdvlk64!vk_icdNegotiateLoaderICDInterfaceVersion + 0x50bfd
[0x12]   amdvlk64!vk_icdNegotiateLoaderICDInterfaceVersion + 0x146cc
[0x13]   VkLayer_steam_fossilize64 + 0x2b4e8
[0x14]   d3d11!createPipeline + 0xe21
[0x15]   d3d11!createInstance + 0x39
[0x16]   d3d11!compilePipeline + 0x68
[0x17]   d3d11!compilePipelines + 0x339
[0x18]   d3d11!workerFunc + 0x3cd
[0x19]   d3d11!threadProc + 0x1f
[0x1a]   kernel32!BaseThreadInitThunk + 0x14
[0x1b]   ntdll!RtlUserThreadStart + 0x21

in dxvk_graphics.cpp in line 405:
    if (m_vkd->vkCreateGraphicsPipelines(m_vkd->device(),
          m_pipeMgr->m_cache->handle(), 1, &info, nullptr, &pipeline) != VK_SUCCESS) {

Thanks, I can probably try Dark Souls 3. Does it crash early? Only on Windows?

It crashes immediately after start. You probably need my dxvk-cache file. I only tested on Windows.

I can reproduce the crash, I'll have a look thanks.

I was a bit greedy and tried to put too much in the SpirvWriter commit. I've rewritten that and split the commit and it now works fine with Dark Souls III.

That also fixed the SC issue 🎉

I've been building DXVK with this PR included for over a month now and so far no issue has occurred in any application (If issues occurred, I of course also checked without this PR.). Though I must admit that I haven't yet perceived a substantial improvement in real world shader compile times either, but that might be just my subjective impression.

I have also been building and using dxvk with this PR for over a months and have not run into any issues related to the PR.

I tried this PR on top of master, seems to work just fine.

Thought I'd give an update. I've had this PR as part of my local DXVK build since I left my previous comment, so about 1.5 months now. I haven't experienced any problems, and Squad does start up faster than with an unpatched build.

I'm just refreshing this, rebasing the branch and addressing the comment above. It now uses bit::cast instead of direct memcpy, and the additional DxvkShader constructor is less verbose, passing a const SpirvModule& and building flags directly from it instead.

https://github.com/doitsujin/dxvk/issues/1913
This PR became borkened by mentioned commit :crying_cat_face:

https://github.com/doitsujin/dxvk/issues/1913
This PR became borkened by mentioned commit :crying_cat_face:

Rebased. It would be nice though, if the PR is considered useful as it seems, to have it merged. I'm happy to make changes too, just tell me.

Rebased. It would be nice though, if the PR is considered useful as it seems, to have it merged. I'm happy to make changes too, just tell me.

I've been using dxvk with this newer rebased version of this PR for a while now. So far no issues at all, and it does seems to load a bit faster. It would be cool if this would get merged.

@JustinSpedding
I have had some strange issues (crashing, not able to create D3D adapter) when using this patchset and compiling on Ubuntu. If i add -march=native i do not seem to have issues with it tho, but this is not the case when compiling using arch in a docker image... then again, if i use -march=native in docker with the arch image, it seems to produce borked binaries.
Not to go too much into details about this, my point being that it MAY cause strange issues with some distro's.
This could be AVX related, as debian/ubuntu uses some distro spesific AVX patches that arch might not use - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939559
I have only had these issues when using this particular patchset, so it may be "unsafe" in that regard, and i have not studied steam-docker-ubuntu-custom-mingw stuff enough to figure out if that could end up to be a problem there if it gets upstreamed. As i said, compiling this in a arch docker-image does seem to work just fine, but afaik steam uses a custom debian image (correct me if i am totally off here tho).

What is the status on this MR? I found it quite useful, but now it has merge conflicts with the master branch. idk if anyone cares to rebase it or figure out the potential non-debian distro issue that SveSop mentioned earlier.

Is this PR still applicable to DXVK 2.x? Currently using DXVK to play Overwatch 2 and I'd like not having to wait as long every time I start the game.

Rebased the changes, as I think it might still be relevant. For instance, Overwatch 2 shader compilation is faster and stutters a lot less with these changes.
The main improvement comes from the reduced number of allocations, although this is now also mitigated with Low Fragmentation Heap being upstream in Wine.

I needed to add #include <optional> in src/spirv/spirv_module.h to get it to compile on my machine, but otherwise, it works.

I also looked at the GitHub checks, #include <optional> should fix it.

I've tried to revisit this now that GPL caching is in RADV and SPIR-V translation would be the only uncacheable thing in the pipeline. Insights below are from OW2 which happens to be a easy test case, with lots of shaders (78K) loaded on startup.
The defType and defConst changes are definitely the most impactful ones (at around 30%) — they're called all the time and linear search complexity is getting out of control. For the design, I wonder if always using a hash map would be better:

Pro: The linear search code path can be removed
Pro: No need to separately declare specialized cache for each type
Con: Searching might be annoying (C++20 has heterogeneous lookup which helps with this)
Con: Maybe higher constant overhead

I've also looked into compression: it's less impactful than the type / const changes, as only around 7% of time is spent there. I've played with https://github.com/lemire/streamvbyte which I think is well suited for SPIR-V because:

Control bytes are stored in a separate stream, and each word can be allocated 8/16/24/32 bits. VarInt has the problem of being 7/14/21/28/35 and not matching certain usage patterns well. Compression ratio seems to be higher (53% -> 50%)
It has a SIMD implementation and it's really fast to encode and decode.

SVB brings the compression overhead down to 3%, so maybe it's worth pursuiting, with the compression ratio improvement also considered.

any updates on this?

Looks like this has merge conflicts now. I've been using it for a while with good results, but do not have enough experience with the dxvk codebase to rebase it on top of the recent changes.

authors: JustinSpedding LethalManBoob SveSop Tk-Glitch Valmar33 aufkrawall doitsujin imaami ishitatsuyuki jqadev noneistaken oltolm rbernon


text:
html in message?

Is it possible to add html in messages?

@dolce é possível ?

É sim @gabrielferreiraa, adicionei essa feature nas novas autalizações.

Blz, atualizei aqui e deu certo :D Valeuu !!

Hi, I was wondering how to use this feature?

It's simple @nam-co
message: 'html <b>example</b>?'

This displays 'html' as part of my message....  how do I suppress that?

Figured it out....   message: ' your stuff here...   '

authors: chiqui3d dolce gabrielferreiraa guimaker nam-co

repo: dolce/iziToast


text:
[auto-bump] dependency by reltuk

:coffee: An Automated Dependency Version Bump PR :crown:
Initial Changes
The initial changes contained in this PR were produced by go geting the dependency.
$ cd ./go
$ go get github.com/dolthub/<dependency>/go@<commit>
$ go mod tidy

Before Merging
This PR must have passing CI and a review before merging.
After Merging
An automatic PR will be opened against the LD repo that bumps the bounties version there.

This PR has been superseded by https://github.com/dolthub/bounties/pull/759

repo: dolthub/bounties


text:
Problem: Visitor pattern is still in the codebase

This code is still in the repo, even though we've decided not to use it. This code should be removed. If people want to see it, they can look it up historically in the repo history.
Solution: Remove the visitor pattern code and its tests
SuccessCriteria: Code is no longer there

Visitor pattern has been removed, closing issue.

repo: domain-query-language/dql-server


text:
5.0 {{basePath}} not set

Using the new v5 release. I notice that the {{basePath}} property is not set in the main.handlebars template.
Screenshots:
http://puu.sh/g0Sy4/419c5a00b2.png
http://puu.sh/g0SAQ/627d1cb86a.png

What value are you expecting to be there? "basePath" will only have a value if your API is hosted under a virtual directory.

authors: domaindrivendev kspearrin

repo: domaindrivendev/Swashbuckle


text:
Method not found

Any idea?
Method not found: 'Swashbuckle.Application.SwaggerEnabledConfiguration Swashbuckle.Application.HttpConfigurationExtensions.EnableSwagger(System.Web.Http.HttpConfiguration, System.Action`1<Swashbuckle.Application.SwaggerDocsConfig>)'.

do you have a "using Swashbuckle.Application" in your cs?

Yes I have using Swashbuckle.Application in the header of my SwaggerConfig.cs

That sounds like an issue with deployment.  Have you checked that all necessary DLLs are being copied to your local IIS folder?  Is there possibly an older version of the DLL which your local IIS is using that IIS Express is not?

I agree with @MerickOWA, this must be related to some stake DLL lying around in your bin folder.
Feel free to re-open if you have more info to provide

Same issue - has been deployed multiple times and via multiple methods, works from within IIS Express, but not full IIS.

Hoping I can help others that might run into this issue. To debug what was happening, I disabled the PreApplicationStartMethod of SwaggerConfig.cs and inserted the following code into a web api handler:
try
{
    var c = new SwaggerEnabledConfiguration(GlobalConfiguration.Configuration, s => "", new List<string>());
    Console.WriteLine("Success");
}
catch (Exception ex)
{
    Console.WriteLine("Failure");
    Console.WriteLine(ex.Message);
}

This gave me a much more descriptive error message:
Cannot convert from 'System.Web.Http.HttpConfiguration [System.Web.Http, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]' to 'System.Web.Http.HttpConfiguration [System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]'

Using that error message, all I needed to do was update my binding redirects in the web.config and I was good to go:
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.WebRequest" publicKeyToken="b03f5f7f11d50a3a" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Http.WebHost" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
      </dependentAssembly>

Hope that can help someone else that finds this!

Thanks @phhlho adding just reference if System.Web.Http, it worked for me.

My fix for this issue came from this thread:
#781
Different problem, but same fix

Still can't get this to work.

authors: Cloudmersive MerickOWA domaindrivendev jamiesellick93 lakeba phhlho rudyscoggins shoaibadil


text:
Add Custom Colors Support

#Support custom colors for interval users

closed with https://github.com/dominicegginton/hue/commit/db8fff0afe0be196f0a084ff93bfdde37ed27ce4

repo: dominicegginton/hue


text:
Consider changing the go-packages-function default to 'go-packages-go-list (and what to do about go-package-native)

The current default for 'go-packages-function is 'go-packages-native. Based on the variable documentation, I think the rationale for that was that go-packages-go-list was historically slower than go-packages-native for many environments.
Modules seem to change the equation. At least in my environment when I'm working in a module project, go-packages-native is painfully slow compared to go-packages-go-list. I think part of this is there is a lot more stuff that the go tool has been sticking in $GOPATH/pkg in recent releases that we aren't currently skipping. There can now also be multiple versions of packages in there due to modules.
I also think that go list is probably faster for modules than it used to be for GOPATH packages as now it can cull packages that are not in go.mod dependencies.
Another issue with go-packages-native is it doesn't understand the module pathnames under pkg. So for example it includes the following incorrect package name for me right now:
golang.org/x/tools@v0.0.0-20190213223815-88f95592de8c/go/gccgoexportdata/testdata/long

I think it makes sense to switch the default 'go-packages-function to 'go-packages-go-list and to mark go-packages-native as deprecated.

I agree. I'd go as far as to say that go-package-native is plain broken. It was a good idea when GOPATH was all we had, people putting other stuff in $GOPATH/pkg made it slower, the Go build cache broke it slightly, and modules break it a lot. The only way go-package-native could work correctly nowadays is if we implemented a lot of go list's logic in elisp. And we really shouldn't do that.
go-packages as a whole isn't very relevant nowadays, anyway. Its main use is for go-import-add, and the majority of people use goimports for that now, and will use LSP eventually. Switching to the slower but correct go-packages-go-list should be fine.

I think the rationale for that was that go-packages-go-list was historically slower than go-packages-native for many environments

That is indeed why go-packages-native was added. It was at least an order of magnitude faster.

authors: dominikh psanford


text:
Question: What's the best way to save the world state and restore it?

What's the best way to save the state and restore it? I can iterate over all entities, but how to recreate the state so that the IDs of the new entities are the same as in the saved state?

Hi @sz-po ,
sorry for the delay in replying.
There is no specific way directly supported by the library regarding save/restore of entities.
At this moment, It's up to you how you serialize/deserialize the state of your entities and what framework/data-format you use to get the job done.
Only one thing you can consider without any doubt: you don't need to restore entities keeping the same id! the id should always be considered private and you shouldn't care about its value.

Only one thing you can consider without any doubt: you don't need to restore entities keeping the same id! the id should always be considered private and you shouldn't care about its value.

Thank You from quick reply!
So maybe I do some missunderstanding, but how I should store references between entities?

Let's say you have a component referencing another entity. When you serialize consider to transform the entity reference as a reference of array of its components and when you deserialize transform back as a reference of a new entity having the original array of components deserialized as well. This pattern can be replicated at any depth .

I'm closing this issue, please open a new one if you need further clarification.

authors: enricostara sz-po

repo: dominion-dev/dominion-ecs-java


text:
Simplify instantiation of generic-bound union members

Consider the following union:
[Union]
public partial record Option<T>
{
    public partial record Some(T Value);
    public partial record None;
}

Currently, to instantiate the Some variant, we must write the following:
var some = new Option<int>.Some(42);

Since the generic type parameter is bound to the union, we must define the type parameter every time since it cannot be inferred from the type passed to the union member. It would be nicer to be able to do the following:
// Inferred as `Option<int>.Some` since `42` is an integer.
var some = Option.Some(42);

For backward compatibility, we probably want to expose this through a generated XPrelude static class where X is the union name (minus generic type parameters.
using static OptionPrelude;

var some = Option.Some(42);


text:
Print zone-aware stack traces

It's my understanding that when you use "async", zones keep track of the stack traces such that you can get sane usable stack traces. We should enable that by default in debug mode (at least).
CC @sethladd who may know what I'm talking about (since I don't...).

Any pointers on how to do this?

authors: Hixie abarth


text:
Restrict Peer API

based on this link, I tried 2 times to restrict some peers, but it seems the API in the background works as Delete Peer method, it removes peers instead of just restricting them.

All these sections' descriptions are the same for deletion.

Hi! May I see how did you send the request please?

Hi! May I see how did you send the request please?

Sure.
here is it:
def restrict(peer_name, uid):
    """
    تابعی برای اعمال محدودیت (restrict) بر روی یک peer.
    """
    # دریافت کلید عمومی (public key) از دیتابیس
    public_key = get_public_key_from_db(peer_name,uid)

    if not public_key:
        print(f"❌ کلید عمومی برای peer {peer_name} پیدا نشد.")
        return

    # ساخت URL برای درخواست restrict به API
    api_url = f"https://wg.elfgame.ir/api/restrictPeers/{configName}"  # آدرس API که restrict را انجام می‌دهد

    # داده‌هایی که باید ارسال شوند
    data = {
        "peers": [public_key]
    }

    try:
        # ارسال درخواست HTTP POST به API برای restrict کردن
        response = requests.post(api_url, headers=HEADERS, json=data)

        # بررسی پاسخ API
        if response.status_code == 200:
            print(f"✅ Restrict اعمال شد برای {peer_name} در UID {uid}")
            print(response.json().get('message'))
        else:
            print(f"❌ خطا در اعمال restrict برای {peer_name}: {response.text}")
    except requests.exceptions.RequestException as e:
        print(f"❌ خطا در ارتباط با API: {e}")

I realized something weird, if the Peer I'm going to restrict is not connected so far, it will be removed if it has been connected even 1 time, by restricting, it does not remove.

repo: donaldzou/WGDashboard


text:
zones/steal re-execution of main only works for ES modules

This issue is to circular back and fix it once the demo app is working.

This needs to be fixed to make production work.

repo: donejs/done-ssr


text:
Update three-model.js

Update the model when the animation duration changes. This allows slowing or speeding up the animation whilst it has already been loaded and playing.

Thanks!

repo: donmccurdy/aframe-extras


text:
--scan should show which title is the main feature

I don't believe it's possible to display what track is considered the main feature until I try to transcode a video - would it be difficult to add that ability to display the main feature track on a --scan?

@schwa The --scan option in transcode-video already designates the "Main Feature" track as long as HandBrakeCLI can detect that. BTW, my implementation simply dumps the output of the --scan feature built into HandBrakeCLI itself.
Or am I misunderstanding what you mean?

I have a suspicion that the op is facing a similar problem I've run into; namely discs that deliberately manipulate the metadata to present dozens of similar-looking tracks, none of which will correctly encode all the way through because the metadata has been deliberately compromised. And even sneakier, a lot of them start out fine, to fool you into wasting time.
In this case, I don't think there is any guaranteed way of reliably identifying the main feature without evaluating the menu.
The trivial way around this is to use a software player, then navigate through the menu until you find it. Once you're confident the main title is actually playing, then just look at what track is playing.
Of course, you need to use a player that actually will tell you which track is playing... I've found VLC to be highly reliable on that mark.

@dmbreakey Yes, this is a poor man's copy copy protection scheme used by some labels. I have a few Blu-ray Discs with hundreds of bogus playlists. The best way to deal with this leveraging teh Interwebs because someone else has usually figured out the correct track already.

@schwa and @dmbreakey I'm closing this now because we're not getting any more traction on it. But feel free to continue commenting.

authors: dmbreakey donmelton schwa


text:
feat: update words

Signed-off-by: donniean acmilank22@gmail.com

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: donniean/configs


text:
Call for Speakers

We're looking for speakers for our meetup!
How do I submit a talk?
You can either comment on this issue or send us an email.
When/where is it
April 26th, at 6:30 at Cup and Bar! But if we get too many proposals and we really love your talk, we'd be happy to schedule you for a later month!
What should I talk about?
We don’t have a strict formula, but this is the balance we try to strike every month:
2x Creative Talks: Creative applications of programming. Such as: generating lego murals out of static images, and building an in-browser RPG, generative art, etc.
1x Passion Talk: Something you’re excited about outside of work. This can literally be anything! Kittens, mental health, how much you love burritos.
1x Technical Talk: A deep dive on a technical topic!
Do I need to be an expert to talk?
Nope. This meetup is supposed to be fun and casual, so we want everyone to participate. We especially encourage people of underrepresented groups to apply!
How long should my talk be?
Ten minutes. There won't be any formal Q&A.
What should be in my talk submission?
Just a few sentences describing what you want to talk about would be great.

Ooh, I want to give a talk on "HSL -- the RGB you've been waiting for." I prepared it for peninsulajs but that so far has fallen through. It's short and interactive and about what HSL and color spaces are and why you should be using HSL instead of RGB in development. Slides/incomplete blog post is at visnup.github.io/hsl.

@visnup I was just about to ask you if you wanted to give a talk!

I'd love to give a talk on "Remote-performing––it's a thing!"
This talk would give a little detail about how the Web Audio and Web MIDI APIs can be used in tandem with WebRTC DataChannels to make remote musical collaborations and performances happen in realtime. It would be closed with a fun musical performance given by a remote player and myself.

@emily-plummer would love to! I can pitch a bunch of other ideas too if the HSL one sounds boring.

I would love to talk about testing. Not necessarily why we test but like how to test --  getting browser testing set up, what to test, how to know what you are testing, etx.

Also would love to talk about how we can all work together to make hiring and interviewing a better process. I gave a talk at queensjs about this last spring and would love to elaborate further on it!

thought of another talk: I want to go down this list of things https://en.wikipedia.org/wiki/Timeline_of_the_far_future and talk about how crazy everything on that list is.

yay waffles/donuts! i'm so glad this is coming to portland. i'd love to give a talk!
probably would fall under creative: i've done a lot of work lately on auto-magically generating knitting patterns. taking something real-world and math-based and turning into a program is actually super easy (no one is surprised here), but when you combine that with best practices and expected conventions, things get a little tricky... especially when your output will result in lots of manual hours creating a real object :grimacing:
let me know if you need more details than that and i am happy to provide them. also let me know if this doesn't sound interesting so i can make sure to buy a ticket asap!! :smile:

@feministy @visnup @toddself @obensource Hey everyone! Sorry for the late reply, I've been out of the country with pretty bad wifi all week! First of all, thanks SO SO much for submitting talk proposals! They are all really great and sounds like perfect talks for DonutJS :smile_cat: :smile_cat: I'm planning on syncing up with @maxogden early next week so we can get back to everyone soon but I just wanted to let everyone know that these are all great ideas and we'll get in touch shortly :) :+1:

Hey all! We've chatted and come up with the lineup, here's what we're thinking:
April:
@visnup : "HSL -- the RGB you've been waiting for"
@feministy : Auto-generating knitting patterns
@obensource : "Remote-performing––it's a thing!"
Stef Hatcher: Improving accessibility in single page apps
May:
@toddself : Improving hiring/interviewing practices
If you haven't come up with a official title yet, or want to have something listed other than what's up here, let me know! Also - can each of you send me a whatever link you'd like your name to link to on our site? We'll update the site soon! :smile_cat:
That being said! If you're new to this thread and want to give a talk, please still reach out! We can book you for May/June :)

@emily-plummer 🙌wahoo! 🙌SO STOKED! 🙌

Also, if you're a selected speaker for April, make sure not to buy a ticket! Tickets are obvs covered if you're speaking :) :)

Schedule is live: http://donutjs.club/#schedule
I'm going to wait a bit to announce it on twitter but let me know if there's anything you'd like me to change! :)

@emily-plummer :+1: :+1: :+1:

YAYYY!!!!
For a title... I will come up with something quippy and send it over!

Yay! Super excited!

For either May or June I would be down for giving a talk on building turn-key High Availability Postgresql using etcd if there's interest and still room on the ballot!

authors: doodles526 emily-plummer feministy obensource stefhatcher toddself visnup


text:
Processing code review

These changes resulted from Hannah's review of the code. I made some edits for tidy style (very minor) and I reviewed data exclusions, etc. I also made some changes to data from one lab to: 1) correctly mark the type of compensation people got and 2) remove duplicate responses (per email from the lab PI).
Related to documentation:

What was changed from the raw qualtrics data for analyses? Looks like some deidentification was done. Do we have the script that was used for this? Can we share it or describe the steps taken in this .Rmd?
There are notes marked TODO that mention dealing with timezones for the qualtrics data. Later, Denver tz is applied. My understanding is that the timezone is set by the account that administered the survey and isn't documented as part of the survey (!). So, it's reasonable to just pick a tz but we should make sure that everyone is aware of this, that it's in our codebook, and that we don't compare times between data that came from Qualtrics and data from any other source (including another lab's Qualtrics).

Related to code:

Some pattern matching using stringr functions were unnecessarily complex -- namely, the position specifications for recoding ethnicity like "(^|,)White/European(,|$)" are note necessary with str_detect().
Ideally, we'd read in the variable mappings for QT data rather than typing them manually. I double checked these and did not spot errors.
This script produces 'valid' versions of the data that make exclusions (e.g., based on comprehension questions). I believe that we are handling exclusions in the analysis dataset. The 'valid' versions of the data produced here might lead to confusion about what data were analyzed. We should probably remove the exclusions in this markdown and only save out d.all (or whichever dataset Erin is using for analyses).

Re: What was changed from the raw qualtrics data for analyses? Looks like some deidentification was done. Do we have the script that was used for this? Can we share it or describe the steps taken in this .Rmd?

I deidentified labs as requested by giving them 5 digit unique codes and find/replaced/rewrote the data with the updated lab codes.
I don't believe I did anything to the original data in 87d100_with_order.csv - just changed the name of the file to deidentify the lab code.
For the turk data, I deidentified the lab code name and removed all the information from the IP, Lat, Long, and turk columns to deidentify that dataset.

I'll add this information and comment out the valid dataset creation now.

Great, thank you!
On Mon, Nov 15, 2021 at 8:57 PM The Doom Lab @.***>
wrote:

Merged #1 https://github.com/doomlab/CREP_Turri/pull/1 into master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/doomlab/CREP_Turri/pull/1#event-5622059027, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB3S3KZ5GQPRR7EC3N7GK5DUMHCBPANCNFSM5HYPQ7SA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

authors: doomlab hannahmoro


text:
benchmark raw output

可否提供原始 benchmark 输出?
例如我的
~# go test -bench BenchmarkMPMC -cpu=4
goos: darwin
goarch: arm64
pkg: github.com/doraemonkeys/fast-mpmc
cpu: Apple M1
BenchmarkMPMC/Fast_MPMC_Small-4         	17797014	        65.16 ns/op
BenchmarkMPMC/Channel_Small-4           	18256225	        65.83 ns/op
BenchmarkMPMC/Fast_MPMC_Medium-4        	10884484	       113.8 ns/op
BenchmarkMPMC/Channel_Medium-4          	17831038	        67.47 ns/op
BenchmarkMPMC/Fast_MPMC_Large-4         	 9067629	       135.2 ns/op
BenchmarkMPMC/Channel_Large-4           	17628975	        67.20 ns/op
BenchmarkMPMC/Fast_MPMC_Huge-4          	 8626462	       140.1 ns/op
BenchmarkMPMC/Channel_Huge-4            	12044997	        98.60 ns/op
PASS
ok  	github.com/doraemonkeys/fast-mpmc	12.985s

我想 -cpu=4 是必要的, 应当主要注重物理多核的性能
另外, bench 只传递 int 是不是有点极端, 传递大一点的对象是不是更能模拟现实场景

传递 int 改为传递字符串时
运行在 5核心 amd 机器上
Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value
                |
Single Core     | 1103
Multi Core      | 5110

go test -bench BenchmarkMPMC  -cpu=3
goos: linux
goarch: amd64
pkg: github.com/doraemonkeys/fast-mpmc
cpu: AMD EPYC 7763 64-Core Processor
BenchmarkMPMC/Fast_MPMC_Small-3                  8954485               120.7 ns/op
BenchmarkMPMC/Channel_Small-3                   10737933               115.7 ns/op
BenchmarkMPMC/Fast_MPMC_Medium-3                 5141754               235.7 ns/op
BenchmarkMPMC/Channel_Medium-3                   7298541               175.4 ns/op
BenchmarkMPMC/Fast_MPMC_Large-3                  3394381               361.5 ns/op
BenchmarkMPMC/Channel_Large-3                    5792642               206.1 ns/op
BenchmarkMPMC/Fast_MPMC_Huge-3                   2741940               432.7 ns/op
BenchmarkMPMC/Channel_Huge-3                     5310295               227.3 ns/op
PASS
ok      github.com/doraemonkeys/fast-mpmc       12.877s

diff --git a/mpmc_test.go b/mpmc_test.go
index d9334f6..187c7f8 100644
--- a/mpmc_test.go
+++ b/mpmc_test.go
@@ -2,6 +2,7 @@ package mpmc

 import (
        "context"
+       "strconv"
        "sync"
        "testing"
        "time"
@@ -467,7 +468,7 @@ func benchmarkSPSCChannel(b *testing.B, _ int) {
 }

 func benchmarkMPMCSimpleMQ(b *testing.B, _, producers, consumers int) {
-       mq := NewFastMpmc[int](benchmarkMqInitialSize)
+       mq := NewFastMpmc[*string](benchmarkMqInitialSize)
        ctx, cancel := context.WithCancel(context.Background())
        defer cancel()

@@ -485,7 +486,8 @@ func benchmarkMPMCSimpleMQ(b *testing.B, _, producers, consumers int) {
                go func(nums int) {
                        defer wg.Done()
                        for j := 0; j < nums; j++ {
-                               mq.Push(j)
+                               s := strconv.Itoa(9999999999 + j)
+                               mq.Push(&s)
                        }
                }(itemsPerProducer)
        }

可否提供原始 benchmark 输出? 例如我的
~# go test -bench BenchmarkMPMC -cpu=4
goos: darwin
goarch: arm64
pkg: github.com/doraemonkeys/fast-mpmc
cpu: Apple M1
BenchmarkMPMC/Fast_MPMC_Small-4         	17797014	        65.16 ns/op
BenchmarkMPMC/Channel_Small-4           	18256225	        65.83 ns/op
BenchmarkMPMC/Fast_MPMC_Medium-4        	10884484	       113.8 ns/op
BenchmarkMPMC/Channel_Medium-4          	17831038	        67.47 ns/op
BenchmarkMPMC/Fast_MPMC_Large-4         	 9067629	       135.2 ns/op
BenchmarkMPMC/Channel_Large-4           	17628975	        67.20 ns/op
BenchmarkMPMC/Fast_MPMC_Huge-4          	 8626462	       140.1 ns/op
BenchmarkMPMC/Channel_Huge-4            	12044997	        98.60 ns/op
PASS
ok  	github.com/doraemonkeys/fast-mpmc	12.985s

我想 -cpu=4 是必要的, 应当主要注重物理多核的性能
另外, bench 只传递 int 是不是有点极端, 传递大一点的对象是不是更能模拟现实场景

我增加了大对象的 Benchmark，并且把 raw output 更新到了 README

authors: doraemonkeys wen-long

repo: doraemonkeys/fast-mpmc


text:
[请求数据库连接]页面，代码引用错误：

请求数据库连接页面，代码引用错误：
原代码：

@app.before_request
def before_request():
    g.db = connect_db()

@app.teardown_request
def teardown_request(exception):
    db = getattr(g, 'db', None)
    if db is not None:
        db.close()
    g.db.close()

应该是：

@app.before_request
def before_request():
    g.db = connect_db()

@app.teardown_request
def teardown_request(exception):
    db = getattr(g, 'db', None)
    if db is not None:
        db.close()

    ~~g.db.close()~~

已修正，非常感谢提醒！


text:
shared type-safe context across all plugins

It would be great to have the context of all plugins somehow inferred and shared, so all plugin config that gets the context injected (e.g. sentry plugin via appendTags option) have full type-safe access on it.

Available in @envelop/core@0.4.0

repo: dotansimha/envelop


text:
Better support for graphql-scalars

DX proposal:
{
   // ...
   scalars: "graphql-scalars#clientTypes"
   // ...
}

Map to the primitive (serialized) value, always, and not use the GraphQLScalar or anything from graphql-scalars lib.

Related https://github.com/dotansimha/graphql-code-generator/issues/8412, https://github.com/dotansimha/graphql-code-generator/issues/8296#issuecomment-1256916743

I would also suggest writing in more details, maybe a guide around the whole integration of these two tools as sometimes there is a lot of confusion around them and what's possible and what not

Fixing this would also obviate https://github.com/dotansimha/graphql-code-generator/issues/7763

this seems to break usage with noexports and using the generated files in tsconfig include

I know this is in the v5 roadmap, but is there a temporary workaround?
Currently my graphql schema has
scalar DateTime

This generarates
export type Scalars = {
  ID: { input: string; output: string; }
  String: { input: string; output: string; }
  Boolean: { input: boolean; output: boolean; }
  Int: { input: number; output: number; }
  Float: { input: number; output: number; }
  DateTime: { input: any; output: any; }
};

Is there any way to force DateTime to be type string instead of any?
I tried the suggestion here, but it looks like the client preset and the typescript plugin work independently and don't affect each other.
Here's my current codegen configuration:
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
  schema: './src/gql/**.graphql',
  documents: ['src/**/*.{ts,tsx}'],
  generates: {
    './src/generated/gql/': {
      preset: 'client',
      presetConfig: {
        fragmentMasking: { unmaskFunctionName: 'getFragmentData' },
      },
    },
  },
  hooks: { afterAllFileWrite: ['prettier --write'] },
};

export default config;

Ok, figured it out. Had to add a config.scalars in the preset itself:
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
  schema: './src/gql/**.graphql',
  documents: ['src/**/*.{ts,tsx}'],
  generates: {
    './src/generated/gql/': {
      preset: 'client',
      presetConfig: {
        // see https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#the-usefragment-helper
        fragmentMasking: { unmaskFunctionName: 'getFragmentData' },
      },
      config: {
        scalars: {
          DateTime: 'string',
        },
      },
    },
  },
  hooks: { afterAllFileWrite: ['prettier --write'] },
};

export default config;

authors: Urigo charlypoly lensbart nareshbhatia sschneider-ihre-pvs

repo: dotansimha/graphql-code-generator


text:
gql-gen runs without errors but no output generated

Describe the bug
The code generator is being run via npm run generate as recommended in your documentation. I have added this to my package.json file:
"scripts": {
    "generate": "gql-gen"
  }

The generator seems to complete without any errors however there is no output file generated.
To Reproduce
Steps to reproduce the behavior:

Use schema.graphql shown below
Use codegen.yml shown below
Run the following command: npm run generate and you will see output similar to this:

hub > npm run generate

> hub@0.0.0 generate /Users/anjumnaseer/workspace/angular/hub
> gql-gen

  ✔ Parse configuration
  ✔ Generate outputs

Expected behavior
I expect to find the file schema-types.d.ts.
Schema/Documents
type Todo {
	id: ID!
	createdBy: String!
	todo: String!
	urgent: Boolean
}

type Query {
	todos: [Todo!]!
	todo(id: ID!): Todo!
}

type Mutation {
	addTodo(todo: String!, urgent: Boolean = false): Todo
	@aws_auth(cognito_groups: ["God", "Admin"])

	deleteTodo(id: ID!): Todo!
	@aws_auth(cognito_groups: ["God"])
}

type Subscription {
	addedTodo: Todo
	@aws_subscribe(mutations: ["addTodo"])

	deletedTodo: Todo
	@aws_subscribe(mutations: ["deleteTodo"])
}

schema {
	query: Query
	mutation: Mutation
	subscription: Subscription
}

directive @aws_auth(cognito_groups: [String]!) on FIELD_DEFINITION

directive @aws_subscribe(mutations: [String]!) on FIELD_DEFINITION

codegen.yml
schema: ./schema.graphql
overwrite: true
generates:
  ./schema-types.d.ts:
    plugins:
      - typescript-common
      - typescript-client
      - typescript-apollo-angular

Environment:

OS: Mac Mojave 10.14.1
Codegen:
"graphql-code-generator": "^0.14.3",
"graphql-codegen-typescript-apollo-angular": "^0.14.3",
"graphql-codegen-typescript-client": "^0.14.3",
"graphql-codegen-typescript-common": "^0.14.3",
Node: v8.11.3

Additional context
N/A

@asnaseer-resilient you need to provide documents in there:
schema: ./schema.graphql
overwrite: true
documents: ./operations/**/*.graphql # <-- here
generates:
  ./schema-types.d.ts: # <-- here
    plugins:
      - typescript-common
      - typescript-client
      - typescript-apollo-angular

Declaration files *.d.ts can't have code in them, only interfaces, namespaces and module declarations so using GQL services won't be possible and TS will throw an error.

@kamilkisiela is there any documentation describing what exactly these yaml configuratons mean? I'm also having trouble finding examples of doing basic things.. like generating my own code from a custom template..

@kamilkisiela I followed your suggestions and also created a folder named generated with a sub-folder named operations under that to hold all the generated files. My modified codegen.yml is:
schema: ./schema.graphql
documents: ./generated/operations/**/*.graphql
overwrite: true
generates:
  ./generated/schema-types.d.ts:
    plugins:
      - typescript-common
      - typescript-client
      - typescript-apollo-angular

However, this still fails to generate anything giving me:
> npm run generate

> hub@0.0.0 generate /Users/anjumnaseer/workspace/angular/hub
> gql-gen

No files matched for glob expression: ./generated/operations/**/*.graphql
  ✔ Parse configuration
  ✔ Generate outputs

@asnaseer-resilient First question, where do you keep your documents? How do you define queries, mutations? Using gql tag or .graphql files?
documents option should be a glob that tells GraphQL Code Generator where to look in order to find queries, mutations, subscriptions and even fragments (we call them all documents).
For example, let's assume you're using gql tag.
src/app/foo.component.ts
import gql from 'graphql-tag';

// or in @Component
const QUERY = gql`
	query myQuery { ... }
`;

Then you should should point the codegen to ./src/app/**/*.ts so it could scan through every single file that matches the pattern, in order to extract operations.
Different use-case, with .graphql files:
./src/graphql/my-query.graphql:
query myQuery {
 ...
}

In here, you would want to use ./src/graphql/**/*.graphql.
As you can see in your terminal:

No files matched for glob expression: ./generated/operations/**/*.graphql

there's no file that matches the glob expression.

@kamilkisiela D'oh! Thanks for pointing out my obvious mistake. I changed documents to point to where I have defined all my gql queries and everything works perfectly now. I think term documents threw me a bit but now I understand it fully.
Many thanks for your patience.

Super nice! :) I guess I can close the issue now.

@kamalgill I have ran into a similar problem above. Generator output says everything passed, but no code was generated. I'm generating a .ts code file, I don't have any documents?

authors: asnaseer-resilient jreeter kamilkisiela


text:
Remove direct use of reflect

Reflect is still used indirectly via encoding/json and sort.  Those will need to be removed in separate steps

Codecov Report

Merging #33 into master will decrease coverage by 0.74%.
The diff coverage is 80.95%.

@@            Coverage Diff            @@
##           master     #33      +/-   ##
=========================================
- Coverage   98.95%   98.2%   -0.75%
=========================================
  Files          20      21       +1
  Lines        1337    1337
=========================================
- Hits         1323    1313      -10
- Misses          8      17       +9
- Partials        6       7       +1

Flag
Coverage Δ

#dot
98.2% <80.95%> (-0.75%)
:arrow_down:

#dot_encoding
91.26% <80.48%> (-3.94%)
:arrow_down:

#dot_encoding_rich_text
100% <ø> (ø)
:arrow_up:

#dot_encoding_set
100% <ø> (ø)
:arrow_up:

#dot_encoding_sparse
100% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

encoding/catalog_reflect.go
100% <100%> (ø)

utils.go
98.42% <100%> (-0.03%)
:arrow_down:

encoding/catalog.go
81.08% <27.27%> (-13.04%)
:arrow_down:

encoding/encodings.go
93.1% <0%> (-3.45%)
:arrow_down:

Continue to review full report at Codecov.

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

authors: codecov-io rameshvk

repo: dotchain/dot


text:
Improve summary for OpenIdConnectOptions.RemoteSignOutPath

A call into the OpenID Connect authentication middleware at the path configured in OpenIdConnectOptions.RemoteSignOutPath will first try to sign out using the property SignOutScheme before falling back to SignInScheme. This is clear on the documentation for the SignOutScheme property but not on RemoteSignOutPath. This wording is more precise and helps users in cases where they need a different scheme than for sign-in.

OPS Build status updates of commit 89d7c22:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

aspnet-core/xml/Microsoft.AspNetCore.Authentication.OpenIdConnect/OpenIdConnectOptions.xml
:white_check_mark:Succeeded

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

per the readme:
API PR's ( api/autoapi/... ) should not be made here. Changes to API documentation should be made in the source repository against the triple slash /// comments.

repo: dotnet/AspNetApiDocs


text:
Scaffold Identity section "Create full identity UI source" still has 2.1 version code when viewing 3.1 version docs.

There are references to both CompatibilityVersion.Version_2_1 and AllowAreas = true which are both not applicable in version 3.1 and should be updated.  In addition, the suggestion to add the EmailSender at the end of the C# code for this case is optional and only relevant to Email configuration and not a required change for the scaffolding.

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

ID: 804e24dd-7e30-8cf5-2c99-1ffacb4582f6
Version Independent ID: 3e25547b-e2c9-6634-2c38-2a77207f17d4
Content: Scaffold Identity in ASP.NET Core projects
Content Source: aspnetcore/security/authentication/scaffold-identity.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

I also can't make it work after following the example for Scaffold identity into an MVC project without existing authorization.
I'm creating new Data context class and User class using the scaffolding window.
Also, the default startup for 3.1 does not use .AddMvc() anymore, it uses .AddControllersWithViews().
What's the point of IdentityHostingStartup if everything will be configured in Startup.cs?
I want to isolate everything inside the identity Area and not mix it with everything else.

If it's scaffolding, there's probably going to exist more than one context.
While the error when you execute the command without specifying the context is very clear, I think the guide should tip about the possibility and explain the solution

This is terribly inconsistent. Calling the AddRazorPagesOptions, the options object doesn't even have the AllowAreas prop, very confusing. Just wanna control the Authenticate URL strings.

Fixed in Disable pages in Identity UI #18768

authors: Rick-Anderson danieldiazastudillo dbrennan fdbva


text:
Create ASP.NET Core Web App Tutorial

This issue has been moved from a ticket on Developer Community.

Is there an update to the C# Tutorials: Create an ASP.NET Core Web App.  In particular, the section "Expose a web API"  shows code samples that don't match what get created in Visual Studio 2019 when I go through the steps.  Here are some examples:

After generating an "API Control with actionstions, using entity Framework", my GetGame method does not have the [FromRoute] attribute and is missing the "if (! ModelState.IsValid)..." block.  It also has "return game;" instead of "return Ok(game);"
Attributes [FromRoute] and [Frombody] are also missing from PutGame(), PostGame(), and DeleteGame().
In the "Adding Swagger" section, in "services. AddSwaggerGen()", "Info" is marked with red wavy lines, indicated not known, and when I add "using Swashbuckle.AspNetCore.Swagger;" it is shown grayed (as not needed).
We're told to add some code to the Configure() method just before "UseMvc", but my Configure() method does not have "UseMvc" anywhere in it.

It's not a very good tutorial if I can't match it up with what happens in my Visual Studio 2019 when I follow the indicated steps.

Original Comments
Visual Studio Feedback System on 5/7/2020, 08:48 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Visual Studio Feedback System on 5/7/2020, 10:24 PM:
Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2019#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.

Original Solutions
(no solutions)

@Rick-Anderson this seems to be related to the tutorial in here: https://docs.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-aspnet-core-ef-step-04?view=vs-2019

Moved to https://github.com/MicrosoftDocs/visualstudio-docs/issues/5300

authors: Rick-Anderson mkArtakMSFT vsfeedback


text:
Talk about what runs client-side and what runs server-side

Especially for Blazor Server, it would be nice to know what runs in the browser and what runs on the server. Specifically, except for JSRuntime, what parts of the @code block run on the server?
If this is elsewhere in the docs, I couldn't find it.

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

ID: 5bc28995-6784-a7d2-5c0b-9811a8d19c1a
Version Independent ID: 1668c8fb-024c-c86d-d4d5-e22e3355c04b
Content: Introduction to ASP.NET Core Blazor
Content Source: aspnetcore/blazor/index.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

I think a change to the bullet list here will cover it. A bullet point can say that the runtime on the server handles the C# code and something to the effect that the C# code stays on the server. We may have had that (or even still do). I'll check further in a minute and probably float a PR for what we're missing. Thanks for suggesting it.

We do have it in the Hosting models topic, where is says for Blazor Server ...

The app's .NET/C# code base, including the app's component code, isn't served to clients.

... listed in the list of benefits.
However, I still think a quick one-liner in the bullet list here would be ok. I'll do that and see if DR is ok with it.

authors: guardrex mrlife


text:
How to run app in VS Code?

The page does not show how to run the app in VS Code - it just accepts the certs, and says "VS Code" does all this stuff... but doesn't say how to do it.

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

ID: faf18d20-d28f-1efa-d329-181fff3630fa
Version Independent ID: 46a7c2e0-4871-491f-02c2-54f7df2237b1
Content: Get started with ASP.NET Core MVC
Content Source: aspnetcore/tutorials/first-mvc-app/start-mvc.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

It's there.

Oh yeah, I guess I was looking for how to run with the debugger. Thanks.

authors: Rick-Anderson jeffsdata


text:
Selfsigned CA gives error

Description
Selfsigned CA gives error while running first time. Solution: describe how to bypass this error and run on localhost with selfsigned CA.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-8.0&tabs=visual-studio
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/first-mvc-app/start-mvc.md
Document ID
46a7c2e0-4871-491f-02c2-54f7df2237b1
Article author
@wadepickett

Thanks @hhvdblom for taking the time to give up on a potential problem.
What error are you getting?   Normally Visual Studio would show a notice that the project is configured for SSL and asks if you would like to trust the self-signed cert.  If you choose to do so, it creates the cert for you and lets you know that.  This doc walks through those steps and includes screenshots, but maybe you are getting an error I am not anticipating, or I don't fully understand what you are running into.  Thanks again for sharing your experience.

I went ahead dedicated time for tested through the current version of the tutorial for Visual Studio which is the version the issue was raised on, and it seems to be working as expected following the instruction provided for trusting the self-signed cert.
I will close this issue, but if there is something I am missing please do feel free to comment here and we can re-open if needed.  Thanks.

Its not an error of Visual Studio but its Edge that gives the CA error while running the site with an self signed CA certificate. You will have to change the settings of Edge to trust local host with self signed CA certificates. If you dont do that you cannot run the wep app with self signed CA because the continue button is not displayed in Edge, I think thats changed because previous Edge version did that.
Verzonden vanaf Outlook voor Androidhttps://aka.ms/AAb9ysg

From: Wade Pickett @.>
Sent: Thursday, January 25, 2024 10:48:29 PM
To: dotnet/AspNetCore.Docs @.>
Cc: hhvdblom @.>; Mention @.>
Subject: Re: [dotnet/AspNetCore.Docs] Selfsigned CA gives error (Issue #31565)
I went ahead dedicated time for tested through the current version of the tutorial for Visual Studio which is the version the issue was raised on, and it seems to be working as expected following the instruction provided for trusting the self-signed cert.
I will close this issue, but if there is something I am missing please do feel free to comment here and we can re-open if needed. Thanks.
—
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/AspNetCore.Docs/issues/31565#issuecomment-1911052251, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH67WODEFAF2RLTZREBDRRLYQLHK3AVCNFSM6AAAAABCKLIQN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJRGA2TEMRVGE.
You are receiving this because you were mentioned.Message ID: @.***>

authors: hhvdblom wadepickett


text:
Topic could use a conceptual introduction

Description
I started reading this topic without any prior knowledge of rate limiting. I had my suspicions to its purpose, but it took getting deep into the article to prove it to myself.
I found the link to Maarten's post at the bottom and it was great help. Something from that as an intro to this article will help.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/performance/rate-limit?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/performance/rate-limit.md
Document ID
bb96b20f-0991-d6de-4d98-192cd469460f
Article author
@Rick-Anderson

Thanks for the suggestion. This is an advanced topic.

authors: Rick-Anderson plblum


text:
Missing properties on controls

I'm missing a bunch of properties, some I've ping you about on Discord. I'm opening this issue to track it.
Today I'm missing

Horizontal and Vertical layout options
IsVisible
IsEnabled
Gestures aren't working everywhere I'd expect
Shadows (method is there, but no shadow is drawn)

Layout Options are there: HorizontalLayoutAlignment and VerticalLayoutAlignment
IsVisible is intentionally skipped, just use include or exclude it from the View
Just added IsEnabled
Fixed Shadows.
Gestures are missing from Core, I might be able to add them back into comet while we wait

authors: Clancey davidortinau

repo: dotnet/Comet


text:
Add missing SqlCommand_BeginExecuteReader sample

Fixes #2855
Would be good to have complete .NET API Ref docs for v6.0.

Maybe /doc needs to be included in the PR builds as a trigger :)

authors: MichelZ cheenamalhotra

repo: dotnet/SqlClient


text:
fix: remove Aspire.Hosting.Orleans dependency on Azure hosting

This PR removes the dependency from Aspire.Hosting.Azure which added unwanted Azure dependencies when Orleans was used in a non-Azure deployment.
Microsoft Reviewers: Open in CodeFlow

/azp run

authors: attilah davidfowl

repo: dotnet/aspire


text:
Async section - Overview, C#/VB, and F#

I feel that async programming is such a core concept in modern and future .NET dev that it demands its own section (see #24) that can give people the minimum necessary information to get started with async programming.  This includes a short overview (what is it, why do you need it), and language-specific articles that discuss what it is from the programmer's perspective without implementation details, a useful code sample for each language, and some important advice/gotchas to know.
New section is formatted as such:
Async Programming
|
|__ Async with .NET Overview
|
|__ C# and VB async programming
|
|__ F# async programming

@NumberByColors is going to be doing some significant work on the F# article, so I'd expect its contents to change a lot.

/cc @richlander @terrajobst @blackdwarf for review

Like the content, left some notes. One thing I just realized on this PR is that we should have a guidance  on how to deal with lines in the text so that we can leave good notes.

I feel like elaborating on the Task<T> concept would be better suited if it were in a separate article altogether.  Should have be part of this, or should that be a separate branch?  I can see the value in making it a part of this branch mainly because Task<T> is used primarily with async and await anyways.

For sure, I would put it in this document. It is not overly long, and devs who use async need to know about Task and Task to be able to full it grasp the entire "machinery".

Mmkay, will do.

Something I realized, especially after speaking with some past coworkers who do .NET code, is that it's not entirely clear what the relationship between Web Server <---> Async Code is, and why IIS or other technology will not be enough to handle the needs of a service to scale vertically.  I feel like the overview section could expand on this.
Thoughts?

That is an interesting notion. Does it belong in the primer on async though? I guess it could if you keep it very short and just expand on some of the points that you already made. I wouldn't want the Primer, being imagined as something a dev new to .NET can read in a couple of hours and get some overview, to become too large and in-depth. That would defeat its purpose, methinks.

Hmmm.  Well I wouldn't put it in the primer, but now that I think about it, the async overview article may be a little too much to stick it in.  Basically what I'm envisioning is an article that describes exactly what's going on in an async context.  Specifically,

How it leverages the OS to perform the work rather than spawning off a new thread
A dive into what's actually happening on the device side of things when making a network call
A dive into what's actually happening on the server side of things when a request needs to extract data from a database

The server side would talk about how it also works from the perspective of IIS, so I can really get the point across that IIS being multithreaded only helps web servers so much.
This would involve a few diagrams as well, and would be linked to from the articles I've written and probably the Primer article.
I've already sort of done this, but just in-person.  I gave a talk at my old workplace about why they should adopt async programming into their workflow (especially from a student-preparedness level).  This would basically be the more refined version of that talk.

Well, RTD, at this point, is more for intro docs for the actual platform. I would like to see a more in-depth article, but you can always put it on a blog somewhere and then, once/if we figure out where it needs to go, we take it from there. :)

Will do.  Putting that stuff on hold for now.

On the web server / async question, async does help that scenario a lot. Every request hitting the server needs a thread. Threads require machine resources (memory), so there is a limited number that a given machine can have. Given enough requests, the machine can keel over. What async does is free up threads for use on other requests while (a)waiting on I/o operations.
See this blog post: http://blogs.msdn.com/b/dotnet/archive/2012/11/13/the-net-framework-4-5-is-optimized-for-the-cloud.aspx

That is completely true. However, the question is not whether it is true, but whether this is the place for this kind of story. This document, that is. :)

I'm torn on the idea of having a more advanced document describing what's going on.
One one hand (as evidenced by the Hacker News Thread), there seem to be quite a few people who don't know what's actually going on with async code.  I used to be too, and there really isn't much existing literature on the topic. (FYI I'm the one who responded to the OP on the HN thread).
On the other hand, I agree with Z that it may be too in-depth of a topic for these docs, especially if they're being used as a "get familiar with .NET so you can start coding" mechanism.

Made quite a few updates based on @richlander feedback.  I decided to not do anything about the samples yet because feedback on the other stuff can be independent from that.  I'll probably need a bit more time to come up with a decent scenario for a sample which uses only .NET code.

Addressed @richlander comments and re-did the C#/VB samples to be only .NET FX code.

Fleshed out the F# section after speaking with David.  Should be a "minimum viable product" at this stage, in that it calls out what's important to know about the F# model, some special syntax to know, some samples, and a compare/contrast for C#/VB folks.

I'm happy to go with this now. Squash and merge?

I messed things up in my environment, preventing me from merging this in properly. Going to open a new PR with the squashed commits.

authors: blackdwarf cartermp richlander

repo: dotnet/core-docs


text:
"How to run the samples?" is misleading

samples/README.md contains the following instructions:

Compile and run using the following commands

dotnet restore
dotnet build
./bin/Debug/[framework]/[binary name]

When I launch the microsoft/dotnet:latest Docker container, clone this repository and run dotnet restore and dotnet build in samples/helloworld, then I get the following tree in bin:
bin/
`-- Debug
    `-- netcoreapp1.0
        |-- helloworld.deps.json
        |-- helloworld.dll
        |-- helloworld.pdb
        |-- helloworld.runtimeconfig.dev.json
        `-- helloworld.runtimeconfig.json

There is no executable binary there that I can run - or am I missing something?
Version:
# dotnet --version
1.0.0-preview1-002702

I figured it out - dotnet bin/Debug/netcoreapp1.0/hello_world.dll works well. Will send a patch to update docs.

However, neither dotnet path/to/netcoreapp1.0/application.dll nor cd path/to/netcoreapp1.0; dotnet application.dll work with console apps that reference other DLLs, resulting in the following coredump:
Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'MyApp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Aborted (core dumped)

The correct way to run the console apps that reference other DLLs seems to be
dotnet publish
dotnet bin/Debug/netcoreapp1.0/publish/application.dll

Should I update the merge request accordingly?

@mrts thanks for catching this and fixing the README.md. I've merged your PR.
For the second thing, the samples in this repo are simple and don't have any P2P references, so the second issue referenced above and the fix is not really needed here. There are other docs on dotnet.github.io/docs/ that cover these.
With this, I will go ahead and close this issue as it was resolved by your PR.

authors: blackdwarf mrts

repo: dotnet/core


text:
555

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Closing due to the lack of response after two weeks or more.

authors: mairaw mss128 scalablecory


text:
Outdated framework (version 1.1.2) missing

This is about the issue I mentioned in post 8 of https://github.com/dotnet/core/issues/7753 to which I have received no response.
OS : Windows 10.
x64 system
I am following a course on Test Driven software development on PluralSight. I was asked to install MS Visual Studion Code and .NET Core, which I have done. The verification for .NET Core installation (typing dotnet in cmd) passed.
After some path problems .NET eventually worked.
The teacher gave some C# code in Visual Studio and used dotnet watch test in the command prompt. Then good stuff happened.
Wen I instruct
C:\Users\Knarf\Documents\School\Informatica\Software Testing\TDD - The Big Picture\Code examples\TDD-TheBigPicture-master\FizzBuzz-Start\FizzBuzz.Tests>dotnet watch test
I get
“[stuff about framework no longer being supported and some other stuff]
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Testhost process exited with error: You must install or update .NET to run this application.
App: C:\Users\Knarf.nuget\packages\microsoft.testplatform.testhost\15.0.0\lib\netstandard1.5\testhost.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '1.1.2' (x64)
.NET location: C:\Program Files\dotnet
The following frameworks were found:
6.0.3 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
6.0.8 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=1.1.2&arch=x64&rid=win10-x64
. Please check the diagnostic logs for more information.
Test Run Aborted.
dotnet watch ❌ Exited with error code 1”
I tried some stuff on docs.microsoft.com/nl-nl/dotnet/core/runtime-discovery/troubleshoot-app-launch?pivots=os-windows to resolve the issue. (en-us i.s.o. nl-nl looks like the English version of the page.)
The link leads to a download of version 1.1.13, which is allegedly outdated. Should I install it anyway ?
I didn’t try ‘Binaire bestanden downloaden’ because it told me to use a file (dotnet-sdk-6.0.400-win-x64.zip) that looks identical to what I already have.
I also didn’t try forward-rolling because of the warning that that could change the behaviour of the application.
How can I use dotnet watch test on the exercise project ?

The project you are trying to run was written against very old .NET version, which is not installed with the latest installer. If you want to run it, you need to either update it and rebuild against .NET 6 or you need to install the (now outdated) 1.1.13 version of the runtime.

OK. Which of those solutions would be the best ? I don’t know how to update and rebuild a project.

installing older runtime is probably easier then.

I wanted the installer of 1.1.13 to install that version in C:\Program Files\dotnet\dotnet 1.1.13, but the installer refused and seems to have installed it in a secret location.
The command
dotnet –info
yields
6.0.400 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
The exercise project works. I don’t know problems this secret installation will cause, but it seems to have solved this one. Thanks.

The installation is not "secret" this is how installing multiple runtimes at once is accomplished. You can see that the 1.1.13 runtime has been installed and its files can be found under C:\Program Files\dotnet\shared\Microsoft.NETCore.App\1.1.13
Since this has been resolved, I will close this issue.

authors: Amoranemix rzikm


text:
Fix too early stream close and several other bugs in StackParser

This PR fixes three problems:

The StreamReader/StreamWriter that are used to access /in and /out files, are closed too early (#60)
Fix a bug where the first character of a module name is lost if the first fragment of a stack trace line does not contain a space
Fix problem when PDB file name has different case in command line parameter, PDB and module name can be handled as case-insensitive in the dictionaries

Please review. Thanks.

LGTM. Thanks for posting these back.

authors: MattWhilden schuettecarsten

repo: dotnet/corefx-tools


text:
Add support for sorting MethodDescs

Follows the same divide and conquer pattern as the code to sort
TypeDescs (#3258  - compare between classes using ClassCode and have
the classes handle comparions within the class).

This sorts 14716 methods in 14 milliseconds on my machine.
@davidwrighton PTAL

Maybe it is just me but I cannot say that I like the tens of new tiny partial classes in this change.

I cannot say that I like the tens of new tiny partial classes in this change.

@sergiy-k Do you have an alternative implementation in mind?

What is the goal of using partial classes here? Is it to avoid ifdefs (for example, compiler specific vs runtime specific)? If that's the case then I agree that is the right approach.

What is the goal of using partial classes here?

The general motivation for partial classes is described in the Introduction section of the Type System BotR chapter. Yes, we would like to avoid #if FEATURE_TYPE_SYSTEM_SORTING and the like. We use this pattern for other features: Canonicalization, Interop, Name mangling, Runtime-determined types, Codegen, etc. The pattern was chosen during the initial design of the type system.
We specifically don't want "compiler-specific" and "runtime-specific" layering, because e.g. we have two flavors of the runtime type system (one that supports a JIT, another that can only do type loading without a JIT). E.g. Sorting wouldn't be useful for either of those, but a lot of the other "compiler-specific" features would.

OK. Thanks. Since this is to avoid ifdefs then, as I already noted, it is the right approach and I'm OK with the change.

authors: MichalStrehovsky sergiy-k

repo: dotnet/corert