Issues with Eval after 8a7e371

Hi, thanks for all the work you are doing, still using and loving this plugin.
I do have a bit of an issue at the moment  though, I've tried to understand what is causing it but I'm not sure.
All that I know for certain is that after this change https://github.com/fsharp/vim-fsharp/commit/8a7e3712013ca8b648f99e87229944c2b8f19d23 eval'ing anything no longer works for me. It hits the timeout and I get the .... response. Before that change everything was working fine.
I'm running neovim on Arch with the neovim python plugin and python version 3.6.0.
Thanks in advance for any help.
Cheers.
Mark

Same problem here

Were talking about using the FsiEval command? I just tried it on mine and it seems to work ok. Can you get fsharpi working ok outside of vim?

Yeah, fsharpi works.

@adityavkk are you also using neovim? if so could you try with vim?

I'm running into the same issue here as well.

All using neovim?
On Tue, 23 May 2017 at 18:55, marcin-wojtowicz<EMAIL_ADDRESS>wrote:

I'm running into the same issue here as well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fsharp/vim-fsharp/issues/77#issuecomment-303481357,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABIDlIyPH5wBNRoXzJNr7MCpksWFpi_Yks5r8x2KgaJpZM4NCuCL
.

No, I'm using plain vim.

Python3 or 2?
On Wed, 24 May 2017 at 07:17, marcin-wojtowicz<EMAIL_ADDRESS>wrote:

No, I'm using plain vim.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fsharp/vim-fsharp/issues/77#issuecomment-303628307,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABIDlEd6TOYMCLufFCfcac4j_Rm7Elshks5r88tvgaJpZM4NCuCL
.

Python 3.

Same here: neovim with python3. Can #78 be merged?

I've merged #78 - please can someone test if it improves matters?

It looks like it's working now. Thank you.

Thanks to @xuanduc987 for the fix!

Working for me now too. Thanks a lot @xuanduc987.


i can't see upload options

is this just to save files from the web or can files be uploaded and shared with friends like audio version of YouTube ?

Please read the doc.


EDAPGui.exe does not work

When I run EDAPGui.exe I get
Unhandled exception in script
Failed to execute script 'EDAPGui' due to unhandled exception: OpenCV(4.5.5)
Traceback (most recent call last):
  File "EDAPGui.py", line 772, in <module>
  File "EDAPGui.py", line 767, in main
  File "EDAPGui.py", line 105, in __init__
  File "ED_AP.py", line 112, in __init__
  File "Image_Templates.py", line 33, in __init__
  File "Image_Templates.py", line 49, in reload_templates
  File "Image_Templates.py", line 42, in load_template
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

The executable has to live in the same directory where the other files are location.   Need the subdirectories configs, templates, waypionts, ...  to be at that location.  The error message indicates it could not open the templates

In the releases, you should probably replace the exe download with a zip that contains all the necessary files.

I've installed as you say.  Here is my error loading it:
`Traceback (most recent call last):
File "EDKeys.py", line 122, in get_bindings
binding['key'] = SCANCODE[binding['pre_key']]
KeyError: 'DIK_PAGEUP'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "EDAPGui.py", line 772, in
os.execv(sys.executable, ['python'] + sys.argv)
File "EDAPGui.py", line 767, in main
print("argv was", sys.argv)
File "EDAPGui.py", line 105, in init
self.ed_ap = EDAutopilot(cb=self.callback)
File "ED_AP.py", line 115, in init
self.scrReg = Screen_Regions.Screen_Regions(self.scr, self.templ)
File "EDKeys.py", line 64, in init
self.keys = self.get_bindings(self.keys_to_obtain)
File "EDKeys.py", line 128, in get_bindings
exit(1)
NameError: name 'exit' is not defined
`

This key DIK_PAGEUP   doesn't exist.   It should be DIK_PGUP    How was this key mapped?   Are you using a non-english keyboard?   if you can do into the discord and show your autopilot.log so we can see what the keybindings look like

going to close this issue as needed to use diff keybinding in ED

Sorry to bother, but can i fix this by putting the key mapping to default?? Ty for your work its amazing

javierchileno33,  actually I do not know how to handle the diff language keyboards properly.  I don't really have experience with it.  Hopefully you've been able to figure it out

Yep i fix it thanks to the people in the discord, very nice folks btw


Fix request path of delete_by_query action

HTTP request path for delete_by_query action was incorrect. Per https://www.elastic.co/guide/en/elasticsearch/reference/6.2/docs-delete-by-query.html, the correct path is _delete_by_query.

Thanks @arkgil :)


Flexible approach for cfn-nag and cfn-lint versioning

Versions for cfn-lint and cfn-nag now part of parameters and not longer hard-coded defaults. Also, provided the option to always install the latest version and check against that (default).
Fixes #6

Review successful.
Issues fixed: #6


Check correct variable after current namespace retrieval

Fixes #286
Signed-off-by: Jeff MAURY<EMAIL_ADDRESS>

@googlebot I've signed it

@googlebot I've signed it


[VSCE] Bump to v0.38.19

i already see the version is the latest. should we just close this? @hbjORbj


Use a sorted set for unique list functionality

I benchmarked an implementation of a unique list using a Redis Sorted Set as opposed to the current implementation which uses a Redis list.
https://gist.github.com/lewispb/bcb190cf72c93b67f57671e0287fa7a7
I think this shows potential performance improvements of at least 5x, or depending on the size of the list more than that.
If we want to move towards using a sorted set, we'd need to think about the migration. Maybe we maintain unique list for backwards compatiblity but add a new data structure, Kredis.sorted_set?

Think the problem is that redis already has a sorted set with certain expectations tied to it (like being unordered). Think we might have to go with something like unique_fast_list, deprecate the old one, then set a cut-off for passing over.
Although I suppose it'd be even nicer if we could detect the old data format and convert?

Although I suppose it'd be even nicer if we could detect the old data format and convert?

I think this would be possible actually. We could rescue the error: WRONGTYPE Operation against a key holding the wrong kind of value (Redis::CommandError). Then there'd be a one-off hit to migrate the data there and then from a list to a sorted set.

Seems worth exploring.

👍 I'll look into it


CLI errors if no package.json is found

If you don't have a package.json in your project you can't do anything with the cli as it errors. This fixes that by wrapping the reading of the package.json file and returns my-react-native-app if an error is caught.

Without a package.json file, generating an Android project is not going to be very useful, instead could we just emit a clearer error message?

Yeah that makes sense but this causes an error on an already existing project that doesn't contain a package.json. As the function gets called and errors out, even when you're calling something not related to generating a project

Any update on this? If you try to use react-native bundle inside a project that doesn't have a package json it errors out, over this rather trivial error.

Instead of 'my-react-native-app', could you make it 'unknown-app-name'?

Done

@facebook-github-bot shipit


Documentation/Examples for ASL2

Are there worked examples using ASL2?  I'm trying to use EvalWorkspace objects, and I'm seeing unexpected failures to read problems.  But I don't see any worked examples in the documentation to guess where I might be going wrong.

@whart222 ASL2 was created on request of Knitro and their driver uses it. We have Kntro source code but it is private. I could not find usage of EvalWorkspace in any other drivers, although some use ASL2, e.g., SNOPT, xpress, cplexasl. Their source is public, see https://netlib.org/ampl/solvers/. Probably, all or almost all of the netlib driver examples, except gurobi, work with both ASL and ASL2.  It's just a matter of using the right -I option when compiling and linking against the right libraries.
Also, asl/src/examples/et.c uses it. This seems to be a library testing program. This might be a good place to start,  otherwise come with questions, and we can look into Knitro's ASL usage, etc.


Test: Specify test/k8s directory during creating preload vm

This commit specify test/k8s directory when the k8s_install.sh calls ./test/provision/container-images.sh test_images. This specification enables the function to get proper image names.
Fixes: #21241
(Although the issue was already closed, I still caught the error and found the reason)
Please ensure your pull request adheres to the following guidelines:

[x] For first time contributors, read Submitting a pull request
[ ] All code is covered by unit and/or runtime tests where feasible.
[x] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[ ] If your commit description contains a Fixes: <commit-id> tag, then
please add the commit author[s] as reviewer[s] to this issue.
[x] All commits are signed off. See the section Developer’s Certificate of Origin
[x] Provide a title or release-note blurb suitable for the release notes.
[x] Thanks for contributing!

test: Speify `test/k8s` directory on `k8s_install.sh` to modify pulling images

/test


Always copy Hash's default block on #dup and #clone

When a hash is copied by either #dup or #clone, only compare_by_identity is copied but not the default block when the hash is empty:
hsh = Hash(Int32, String).new("")
hsh.compare_by_identity
hsh.dup.compare_by_identity? # => true
hsh.dup[0]                   # Missing hash key: 0 (KeyError)

hsh = Hash(Int32, String).new("")
hsh[1] = "a"
hsh.compare_by_identity
hsh.dup.compare_by_identity? # => true
hsh.dup[0]                   # => ""

Since the default block is part of the hash's internal state, it should always be copied even if the hash has no elements.

you're an absolute don @HertzDevil!! thanks for the work you do for this language and community ❤


Close notes on submission by magic keyword

I want to same feature GitHub has (for closing an issue when a PR is merged: https://help.github.com/articles/closing-issues-via-commit-messages/) for notes in OSM/
Use case
I want to fix a note.
What do I do now

I open id and enable notes view.
Check note and copy ID.
Change things and include the ID in it's message.
Copy the resulting changeset URL/ID.
Go back to the note and close it with "closed with ".

What I want to do

I open id and enable notes view.
Check note and copy ID.
Change things and include the ID in it's message.

-> finished.
The note should be closed automatically and possibly automatically backlinked to the changset.
Just as GitHub does.

Ah just saw this came up before: https://github.com/openstreetmap/iD/issues/5170
I let you decide which issue to keep open. :smile:

Note that #5170 was closed as wontfix.

Already commented there.

Hmm this is really something that OSM's servers should be handling. They host both the changesets and the notes, so it doesn't make sense that this feature would only work in a specific editor. That said, I don't see this happening server-side anytime soon so perhaps we can leave it in the iD queue.

Yes, I already closed this issue.  I don't want to do this because OSM Notes are not like GitHub Issues.

GitHub Issues
OSM Notes

There are maybe a few thousand in a typical repo
There are millions of these in OSM

Human brains can easily hold an issue id like #6906 in working memory
Human brains are not built to remember numbers like note #1059466.  It's just too long of a number and people will mistype them.

Issues have a subject and body and can show the subject in a slick intellisense-style lookup control when you type them on GitHub
Notes are just a bunch of free text.  Can't show a summary or do an autocomplete or lookup when you are typing things in your commit message.

Closes on the server
Would require us to close it client side by issuing a bunch of API calls, and the changeset posting process is already kind of fragile

Everything starting with a # is an issue id
People use # for things like task ids already so we would have to be able to tell the difference between normal hashtags and a note ids

Also like @quincylvania said on #5170 - we really don't have a lot of developer time and resources to spend on things.  Sometimes the best thing to do is say "no" to features that aren't really essential and would be a huge effort to implement well.

@bhousel Thanks for the detailed perspective. I don't know much about the OSM notes system. Sounds like a good plan not to spend time on this.


[Spec] features for mv project

Disable features for mv project release.

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #521. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

Need cherry-pick into tizen 8.0 and7.0 release.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/521-202405201245240.078880071640015-94e2511a523e4204ed3f55cb67a07685e1902e0d/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/521-202405201359230.39873099327087-63103b41aa2e079c7e3711585cd8a2444cb7871f/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/521-202405201449520.42491602897644-7311a8210015132caa2d727956c5a3c0ef61cc52/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/521-202405201649070.30253100395203-63103b41aa2e079c7e3711585cd8a2444cb7871f/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/521-202405201759290.86582493782043-63103b41aa2e079c7e3711585cd8a2444cb7871f/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/521-202405201859590.46512007713318-f59fe5cc3dfe802f55463f5873dc378799256c9f/.

:octocat: cibot: @jaeyun-jung, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nnstreamer-api/ci/repo-workers/pr-checker/521-202405231546490.54816794395447-436ea014ba272af5f4285e849703fe0430d8b501/.


Add constraints to the parameters

Some parameters are not completely independent and others can't use more than a certain number of bits. I'll collect the constraints below so we can add a check at some point:

p.decayFactorEpochsSum*p.generationRate must use less than 32 bits
generationRate and generationExp must be consistent with the total supply (among other parameters) to prevent overflowing

Addressed with https://github.com/iotaledger/iota.go/pull/606


FAQ: What are est. demux cell counts?

We'll be adding a column to the metadata (and the sample table on the frontend) that contains estimated demultiplexed cell counts associated with a sample (Est. Demux Cell Counts). We should include an FAQ that explains what this field is.

Closed via #83


[CLI] Media data not synced locally

Description
When working offline and syncing locally, media files are missing. Other logging information are shown but images for examples are not synced.

Wandb features
wandb.init
wandb.Image
wandb.log

How to reproduce
import wandb
import os
import numpy as np

os.environ["WANDB_MODE"] = "offline"
wandb.init(project="my_project")
for i in range(100):
    wandb.log({"loss": 100 - i, "accu": float(i) / 10.0})
    if i % 10 == 0:
        image = wandb.Image(np.random.randint(0, 255, (320, 300, 3)), caption=f"{float(i)}")
        wandb.log({f"image/{i}": image})`

Environment

OS: Fedora 34
Environment: localhost
Python Version: 3.7.0
wandb: 0.11.0

This looks like a high priority issue to investigate for us, thank you for reporting it. To clarify, do you mean you're using a W&B Local install instead of our hosted cloud?

I've been facing this issue too today, but not with the offline mode.
Wandb version 0.8.35.
Python: 3.6.9.

This looks like a high priority issue to investigate for us, thank you for reporting it. To clarify, do you mean you're using a W&B Local install instead of our hosted cloud at wandb.ai?

Yes exactly, I'm using  W&B local install (self-hosted).
I am not sure if this is related but I pulled the latest W&B image, the build.yaml inside the docker says:
buildDate: 2021-07-01
gitHash: 482ffb9e8
version: 0.9.42

but I still get the message: "A new version of W&B local is available"

Hey @SirWyver there's a chance the queue wasn't properly configured in version 0.9.42.  We have a fix going out in the next release, but you can manually fix your instance by running:
docker exec -it wandb-local bash
mc event add local/local-files arn:minio:sqs:wandb-local:_:redis --event put

Hey @SirWyver there's a chance the queue wasn't properly configured in version 0.9.42. We have a fix going out in the next release, but you can manually fix your instance by running:
docker exec -it wandb-local bash
mc event add local/local-files arn:minio:sqs:wandb-local:_:redis --event put

Amazing, this fix solved the issue, thanks a lot!


Canvas graph is not working anymore with 0.2.9

I think a found a bug rendering canvas graph. I copied the example of canvas with vertical graph in your documentation and no graph is shown, only the json that is included inside canvas' tags. I tried using cli and using code and none of this works for me :(.
Minimal Example to Reproduce
Create a html with content specified in https://xhtml2pdf.readthedocs.io/en/latest/examples.html#vertical-bars. Then execute cli command (xhtml2pdf .\template-name.html) or code (https://xhtml2pdf.readthedocs.io/en/latest/usage.html#using-with-python-standalone) to convert html to pdf.
Expected Behavior
Pdf with graph.
Actual Behavior
Pdf that only contains the json specified inside canvas' tags.
Additional Information
I have installed xhtml2pdf version 0.2.7 and it works!
System Information
OS version: Windows 10 Pro 21H2
Python version: 3.11.2
Pip version: 23.0
XHTML2PDF version: 0.2.9

We are having the same issue as above. With 2.7, the footer page count tags don't work. So if you need both a canvas graph and a footer in your pdf, you're in a tough spot.

I have a workaround locally based on 2.7, but in order to properly track this I'd need a few more days. I'll take a look though!

@timoludwig, what's the best way to do this? Should I create a 2.7.1 release with the patch, or track down what happened in 2.9 and go from there?

@daydins Thanks a lot for your efforts!
I think backporting fixes to older versions is out of scope for this project, in my opinion it would be better to find a patch for the latest release.
Maybe @luisza has more thoughts on this?

One of my colleagues fixed it in 2.9 as we were discussing, and he's ready to make a PR! Look out for him :)


Smart content type middleware

This sets the content type header based on the extension of the request path.
Mime type detection is done by leveraging a JVM mechanism. A default set of mime types is added in META-INF. Users can extend these by adding their own mime.types file as well.
Fixes #238

I fixed the build issue, but branch coverage is failing when I run it locally: Coverage is below minimum [64.29% < 66.00%]: Branch:Total
I'm a bit confused, because the only part I added is fully covered according to the report?

@olivierdeckers Can you resolve the conflicts?

@olivierdeckers Can you resolve the conflicts?

done

Codecov Report

Merging #537 (83383d5) into main (bbb4ffb) will increase coverage by 0.22%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #537      +/-   ##
==========================================
+ Coverage   48.15%   48.38%   +0.22%
==========================================
  Files          68       68
  Lines        2033     2040       +7
  Branches       48       51       +3
==========================================
+ Hits          979      987       +8
+ Misses       1054     1053       -1

Impacted Files
Coverage Δ

zio-http/src/main/scala/zhttp/http/HExit.scala
76.00% <ø> (ø)

...io-http/src/main/scala/zhttp/http/Middleware.scala
80.53% <100.00%> (+1.28%)
:arrow_up:

.../scala/zhttp/http/headers/HeaderConstructors.scala
16.86% <0.00%> (+1.20%)
:arrow_up:

Continue to review full report at Codecov.

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

@olivierdeckers I think the static file pr #850 by @ashprakasan should cover this use case more comprehensively.
I don't think we need a middleware for it (unless you think otherwise).
Cheers! Thank you so much for the contribution 🙏


Upgrade to Serilog 2.x

I have confirmed that it still successfully pushes logs into Loggly.

Looks good, thanks for the legwork Tony.  I've been off doing my own thing for so long, I didn't realize Serilog officially released 2.0!


iOS native sign in button remains in pressed state even after the sign in modal is shown

this is easy to repro with the sample app:
1 . run the app
2 . tap the sign in button
3 . cancel sign in
4 . button is in pressed state
expected behavior: button is not in pressed state
this is also easy to work around using own button

fixed in 3.0.2


Added - more services & Updated  - description

Added:

Microsoft Sentinel: A scalable, cloud-native solution that delivers intelligent security analytics and threat intelligence across the enterprise.
Azure Bastion: A service you deploy that lets you connect to a virtual machine using your browser and the Azure portal.
Azure Front Door: Provides web application protection capability to safeguard your web applications from network attacks and common web vulnerabilities exploits like SQL Injection or Cross Site Scripting (XSS).

Updated:

Web Application Firewall's description is inaccurate. WAF is not just a feature of App gateway, but "WAF can be deployed with Azure Application Gateway, Azure Front Door, and Azure Content Delivery Network (CDN) service from Microsoft.". Ref: https://docs.microsoft.com/azure/web-application-firewall/overview?WT.mc_id=DT-MVP-5001664#supported-service

Docs Build status updates of commit 62c93b6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/security/fundamentals/services-technologies.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@TerryLanfear

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@chenjd - Thank you for your contribution.
As you noted, there is WAF on Application Gateway (https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/ag-overview), WAF on Front Door (https://learn.microsoft.com/en-us/azure/web-application-firewall/afds/afds-overview), and WAF on CDN (https://learn.microsoft.com/en-us/azure/web-application-firewall/cdn/cdn-overview). I think it would be better if the WAF entry in the security services article links to the WAF overview article: https://learn.microsoft.com/en-us/azure/web-application-firewall/overview. Can you make this change in this PR?
I agree with the other changes you made. Thanks, again!

@TerryLanfear Great idea. :)

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

File
Status
Preview URL
Details

articles/security/fundamentals/services-technologies.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

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

File
Status
Preview URL
Details

articles/security/fundamentals/services-technologies.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@chenjd - Thank you for making that change!
#sign-off


Add lerping between LinearGradients with arbitrary number of colors and stops

Thanks for the contribution.
This is slightly changing the behavior for the existing functionality of lerping between Gradients with equal stops. Previously, the stops would gradually move from their location in Gradient a to their new location in Gradient b as t is increased. With this change, the stops don't move. Instead, the Gradients appear to cross-fade from one to another. I captured the differences in the video below (watch the yellow line). This is not necessarily a bad change, but I was wondering if this was your intention?
Old behavior:

New behavior:

Code used to generate:
import 'package:flutter/material.dart';

class AppBarBug extends StatefulWidget {
  @override
  _AppBarBugState createState() => new _AppBarBugState();
}

class _AppBarBugState extends State<AppBarBug> with SingleTickerProviderStateMixin {

  AnimationController _controller;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(vsync: this, duration: const Duration(seconds: 5));
    _controller.repeat(reverse: true);
  }

  @override
  Widget build(BuildContext context) {
    LinearGradient a = LinearGradient(
      stops: [0.0, 0.8, 1.0],
      colors: [
        const Color(0xFFFFFFEE),
        Colors.green,
        const Color(0xFF999999),
      ],
      tileMode: TileMode.repeated,
    );
    LinearGradient b = LinearGradient(
      stops: [0.0, 0.2, 1.0],
      colors: [
        Colors.red,
        Colors.yellow,
        Colors.blue,
      ],
      tileMode: TileMode.repeated,
    );

    return Scaffold(
      body: Center(
        child: AnimatedBuilder(
          animation: _controller,
          builder: (BuildContext context, _) => Container(
            height: 100.0,
            width: 200.0,
            decoration: BoxDecoration(
              gradient: LinearGradient.lerp(a, b, _controller.value),
            ),
          ),
        ),
      ),
    );
  }
}

void main() {
  runApp(new MaterialApp(home: new AppBarBug()));
}

@goderbauer The behaviour change was indeed intended (and hopefully desired). I don't see how it would be possible to keep the old behaviour when the number of stops doesn't match. A point-wise interpolation as in this PR seems to give a more predictable result.

You'll have to add some new tests that exercise the newly added functionality, though. E.g. some tests that lerp between an arbitrary number of colors and stops in addition to the excising tests where colors.length == stops.length.

@goderbauer I should have addressed all your comments. Let me know if the test coverage is enough.(I'm happy to add more, but I also don't want to increase maintenance by adding too many tests)

Thanks. Before I take an in-deeps look: Can you please fix the whitespace errors the analyzer check is complaining about so the tests can run properly.
All these lines have trailing whitespace, which should be removed:
packages/flutter/lib/src/painting/gradient.dart:33:    List<Color> aColors,
packages/flutter/lib/src/painting/gradient.dart:34:    List<double> aStops,
packages/flutter/lib/src/painting/gradient.dart:36:    List<double> bStops,

Fixed hopefully the last mistakes. Thanks for your patience @goderbauer


Build all eBPF bytecode images with multi arch support

This should already be handled with just el and eb bytecode variants let's take inspiration from https://github.com/netobserv/netobserv-ebpf-agent/blob/main/pkg/ebpf/tracer.go#L31C57-L31C90

We need to follow the arch/platform bindings laid out here
// Targets understood by bpf2go.
//
// Targets without a Linux string can't be used directly and are only included
// for the generic bpf, bpfel, bpfeb targets.
//
// See https://go.dev/doc/install/source#environment for valid GOARCHes when
// GOOS=linux.
var targetByGoArch = map[goarch]target{
	"386":      {"bpfel", "x86"},
	"amd64":    {"bpfel", "x86"},
	"arm":      {"bpfel", "arm"},
	"arm64":    {"bpfel", "arm64"},
	"loong64":  {"bpfel", "loongarch"},
	"mips":     {"bpfeb", "mips"},
	"mipsle":   {"bpfel", ""},
	"mips64":   {"bpfeb", ""},
	"mips64le": {"bpfel", ""},
	"ppc64":    {"bpfeb", "powerpc"},
	"ppc64le":  {"bpfel", "powerpc"},
	"riscv64":  {"bpfel", "riscv"},
	"s390x":    {"bpfeb", "s390"},
}

Addressed by #1141


here's some working Backblaze settings

I took a fresh unaltered copy of nodetube and gave it these settings and backblaze began working, fully tested. Files get uploaded to backblaze and served to clients from backblaze. I didn't change any other env settings but these.
(the keys here are FAKE but you'll be able to see they match the format of the ones you are looking for in your backblaze account)
(first i would like to say, Bucket ID, as shown on backblaze's site, is not used for anything in this process)
.env.private:

UPLOAD_SERVER=https://f000.backblazeb2.com/file/yourBucketNameHere
Not Bucket ID at the end of the url, but the actual name you gave the bucket. Backblaze gives you this url after you create a bucket, but it could give you f000, f0001, f0002 etc, so to see which you need to use, upload a file to your bucket, then click the file to see its details, and you'll see "Friendly Url" which shows you which one to use
BACKBLAZE_HOST_URL=s3.us-west-000.backblaze.com
You can see which url it gives you by clicking your bucket on their site.
BACKBLAZE_ACCOUNT_ID=000da867f08s5d20000000001
Go to Backblaze > App Keys > Add a New Application Key to get this. It'll be called keyID
BACKBLAZE_APP_KEY=K0007xVcePfop07llYnF8PdVZQDvU8A
This will only be shown to you once when you first add the new application key as above. It's called 'applicationKey'
BACKBLAZE_BUCKET=yourBucketNameHere

.env.settings:

NODE_ENV='production'
I'm only showing this because i only tested it works as 'production', if it doesn't work for you in 'development' try 'production', all im saying is I didn't test this.
SAVE_AND_SERVE_FILES='false'
Oddly, even with this false its saving the files to the local ./uploads folder AND to backblaze, and i have no idea why but maybe thats intended for a reason idk. But its definitely serving files to the client from backblaze, you can tell by clicking the image on your website until you get the raw url to it, which is a backblaze url.
ALLOW_COR=true
Not sure if necessary, Didn't test with false.
UPLOAD_TO_B2=true
THUMBNAIL_SERVER=
I just left it blank, which is the default.

Nice work, appreciate you documenting the effort!

Nice work, appreciate you documenting the effort!

@ggg7125
Edited your post for better readability. If you are completely new to github and/or markdown, read the formatting docs. Don't need to be super fancy, just use code when referencing variables/filenames and when you list something, format it as a list.
SAVE_AND_SERVE_FILES working even with backblaze settings enabled is not intended, however only @mayeaux knows a fix for it (or at least I think he knows), so it might take a while to resolve.
I might try your instructions sometimes later, if only to fill out the wiki, since backblaze integration seems to be quite cryptic in the current state.

@ggg7125
Edited your post for better readability. If you are completely new to github and/or markdown, read the formatting docs. Don't need to be super fancy, just use code when referencing variables/filenames and when you list something, format it as a list.
SAVE_AND_SERVE_FILES working even with backblaze settings enabled is not intended, however only @mayeaux knows a fix for it (or at least I think he knows), so it might take a while to resolve.
I might try your instructions sometimes later, if only to fill out the wiki, since backblaze integration seems to be quite cryptic in the current state.

Nice work. Are you able to add this to the Wiki?

https://github.com/mayeaux/nodetube/issues/393#issuecomment-750416116


Ambiguous routes reported incorrectly

I have the following controller in my project:
namespace MyProject.Api.Version1
{
    [RoutePrefix("api/something")]
    public class SomethingController : ApiController
    {
        [Route("")]
        [HttpGet]
        public IHttpActionResult GetSomething()
        {
            return Ok();
        }

        [Route("else")]
        [HttpGet]
        public IHttpActionResult GetSomethingElse()
        {
            return Ok();
        }
    }
}

When I issue a GET /api/something or GET /api/something/else, I get an InvalidOperationException (details below). The exception message is:
Multiple actions were found that match the request:
    Something on type MyProject.Api.Version1.SomethingController
    SomethingElse on type MyProject.Api.Version1.SomethingController

Despite the issue with the routes not being detected properly, I would've thought that if there was an error with multiple routes being detected, that it would throw an AmbigiousApiReqestException (using 3.0.0-beta3). Also note that Ambiguous is incorrectly spelt in that exception name.
I've also tried moving the GetSomethingElse() method into a separate SomethingElseController but that doesn't make a difference.
System.InvalidOperationException was unhandled by user code
  HResult=-2146233079
  Message=Multiple actions were found that match the request:
Something on type MyProject.Api.Version1.SomethingController
SomethingElse on type MyProject.Api.Version1.SomethingController
  Source=MyProject
  StackTrace:
       at MyProject.Api.GlobalExceptionHandler.Handle(ExceptionHandlerContext context) in [...]\MyProject\Api\GlobalExceptionHandler.cs:line 19
       at System.Web.Http.ExceptionHandling.ExceptionHandler.HandleAsync(ExceptionHandlerContext context, CancellationToken cancellationToken)
       at System.Web.Http.ExceptionHandling.ExceptionHandler.System.Web.Http.ExceptionHandling.IExceptionHandler.HandleAsync(ExceptionHandlerContext context, CancellationToken cancellationToken)
       at System.Web.Http.ExceptionHandling.LastChanceExceptionHandler.HandleAsync(ExceptionHandlerContext context, CancellationToken cancellationToken)
       at System.Web.Http.ExceptionHandling.ExceptionHandlerExtensions.<HandleAsyncCore>d__0.MoveNext()
  InnerException:

If I look at the actual exception inside the global exception handler's ExceptionHandlerContext.Exception, the stack trace starts with:
at System.Web.Http.Controllers.ApiControllerActionSelector.ActionSelectorCacheItem.SelectAction(HttpControllerContext controllerContext)
at System.Web.Http.Controllers.ApiControllerActionSelector.SelectAction(HttpControllerContext controllerContext)
at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)
[...]

I looked into this further and discovered that attribute routes aren't being handled properly in the DefaultRequestControllerNameDetector. It only looks at non-attribute routes.
I was able to get it working by creating a new IRequestControllerNameDetector to handle attribute routing correctly.
public class AttributeRouteRequestControllerNameDetector : IRequestControllerNameDetector
{
    public string GetControllerName(HttpRequestMessage requestMessage)
    {
        if (requestMessage == null)
        {
            throw new ArgumentNullException("requestMessage");
        }

        var routeData = requestMessage.GetRouteData();
        if (routeData == null)
        {
            return default(string);
        }

        var attributeSubRoutes = routeData.GetSubRoutes();
        if (attributeSubRoutes == null)
        {
            return default(string);
        }

        return GetControllerNameFromAttributeSubRoutes(attributeSubRoutes);
    }

    protected virtual string GetControllerNameFromAttributeSubRoutes(IEnumerable<IHttpRouteData> attributeSubRoutes)
    {
        return attributeSubRoutes.Select(a => ((HttpActionDescriptor[]) a.Route.DataTokens["actions"]).First().ControllerDescriptor.ControllerName).FirstOrDefault();
    }
}

I'm not sure if there's more to it than just this but this got it working with attribute routes for me. The other option would be to combine both attribute and non-attribute routing into the one class but that's your decision.

Yes, attribute routing was not in any sense tested and thus supported.
With your permission, I'd like to merge your code in the library.

Van: Richard<EMAIL_ADDRESS>Verzonden: 4-3-2015 08:32
Aan<EMAIL_ADDRESS>Onderwerp: Re: [SDammann.WebApi.Versioning] Ambiguous routes reported incorrectly (#45)
I looked into this further and discovered that attribute routes aren't being handled properly in the DefaultRequestControllerNameDetector. It only looks at non-attribute routes.
I was able to get it working by creating a new IRequestControllerNameDetector to handle attribute routing correctly.
public class AttributeRouteRequestControllerNameDetector : IRequestControllerNameDetector
{
    public string GetControllerName(HttpRequestMessage requestMessage)
    {
        if (requestMessage == null)
        {
            throw new ArgumentNullException("requestMessage");
        }

        var routeData = requestMessage.GetRouteData();
        if (routeData == null)
        {
            return default(string);
        }

        var attributeSubRoutes = routeData.GetSubRoutes();
        if (attributeSubRoutes == null)
        {
            return default(string);
        }

        return GetControllerNameFromAttributeSubRoutes(attributeSubRoutes);
    }

    protected virtual string GetControllerNameFromAttributeSubRoutes(IEnumerable<IHttpRouteData> attributeSubRoutes)
    {
        return attributeSubRoutes.Select(a => ((HttpActionDescriptor[]) a.Route.DataTokens["actions"]).First().ControllerDescriptor.ControllerName).FirstOrDefault();
    }
}

I'm not sure if there's more to it than just this but this got it working with attribute routes for me. The other option would be to combine both attribute and non-attribute routing into the one class but that's your decision.

Reply to this email directly or view it on GitHub:
https://github.com/Sebazzz/SDammann.WebApi.Versioning/issues/45#issuecomment-77109117

You're welcome to include that code. I actually grabbed the attribute sub route code from this StackOverflow question which was written up in this blog.
I wonder also if it might be better to provide implementations for AttributeRouteRequestControllerNameDetector (as per my code above) and ControllerRouteKeyRequestControllerNameDetector (rename of the current DefaultRequestControllerNameDetector class). And then make a new DefaultRequestControllerNameDetector that combines both attribute and non-attribute routes. You'd basically just do
var attributeSubRoutes = routeData.GetSubRoutes();

return attributeSubRoutes == null
    ? GetControllerNameFromRouteData(routeData)
    : GetControllerNameFromAttributeSubRoutes(attributeSubRoutes);

in the GetControllerName method. By making the default work for both attribute and non-attribute routing, it would simply work by default which I think is a good default.

I am using 2.7 release in my project. Is this issue fixed in there? I am facing same issue in my project.

Hello,
Was this issue being handled ... if not, any plans in the future ?

Currently not working on it, sorry.


lTuple validators

Tuples afford immutability, which looks cleaner in a model definition.
Signed-off-by: Chris Lamb<EMAIL_ADDRESS>

A Trac ticket and test are also required.

Please send a new PR if you can update as requested, thanks.


Template level subscriptions rerun unpredictable, returns empty

When using template level subscription on a ground DB collection, the following happens sometimes, completely at random:
First the subscription returns correct, but very shortly after it returns empty.
Reproduce:
First create a collection and ground it
Use template subscription
Template.scan.onCreated ->

  @autorun ->
    self.subscribe 'pipes', ->
      console.log 'subscription', Pipes.find().count()

helper
Template.scan.helpers
  count: ->
    console.log 'helper', Pipes.find().count()

will result in the following logging, but not always (refresh browser a couple of times)
subscription 1235
helper 1235
helper 0

and then there's nothing you can do anymore with your subscription data because the data is gone...

This actually happens every 2nd browser refresh

Actually, it looks that the subscription doesn't change, but the cursor in the template suddenly returns [](or 0 documents)

OK I've found the cause of this issue.
DO NOT USE Fast-Render with GroundDB. If you use Flow Router, be aware that all routes have Fast Render enabled by default.

Please don't "shout" in issue titles
The above example code have nothing to do with fast render or grounddb
Use plain javascript when asking for advice on SO
Provide a replication repo if filing an issue

I'm closing this issue since is kinda the same as https://github.com/GroundMeteor/db/issues/94

Ok got it, so do you want me to make a new issue?
Because no matter the shouting, code and coffeescript, the combination fast-render + grounddb still doesn't work.

@satyavh Have you tried https://github.com/GroundMeteor/db#additional-api - Ground db respects subscriptions - therefor unsubscriptions too - but you can take control of this by driving "manually".
(Ground db would trigger a removal of all "local only" documents when all subscriptions were done - but if you want lazy loading etc. subscriptions would not be ready or even start by that time - therefor you might suffer a loss of local data)
I'm currently working on a new version for meteor 1.2 es2015 version - this will act a bit differently.

No I haven't. I simply removed Fast Render and that solved all our problems. I will give this a shot.


how in general is it implemented?

Would you please tell me what parsing approach does it use? Is it a recursive descent parser or shift-reduce? Does it generate some sort of transition tables on startup? I am evaluating it for my work, that is why I am asking.

It is recursive decent.
You can think of Chevrotain as a library that makes hand crafting parsers easier.
The code you write (CONSUME/SUBRULE) is actually same code that will be executed during
parse time.
The secret sauce is that using meta programming (Lisp Macro like reading of the source code with Function.toString. The structure of the grammar is understood and thus the advance features
are made available, I.E:

Lookahead functions to decide between alternatives.
Error recovery based on the expected next tokens in the grammar.
Detection of ambiguities between alternatives or left recursion...

Some more details on this here:
https://github.com/SAP/chevrotain/blob/master/docs/tutorial/step2_parsing.md#but-how-does-it-work-skip-if-you-dont-care--

As I understand in recursive descent parsers, each level of precedence is represented by a function call. Would I run into stack overflow problems with languages that have many levels of precedence if I try to parse deeply nested expressions?

Would I run into stack overflow problems with languages that have many levels of precedence if I try to parse deeply nested expressions?

In theory that could happen, But I believe some very complex precedence and input would be needed.
I have not encountered this yet and consider that many (most?) parsers for common programing
languages you probably use on a daily basis are hand crafted recursive decent as well...
Anyhow you may want to avoid modeling precedence in the syntax (Grammar)
and consume those as a flat list as was done in the Swift parser and later apply the precedence.
https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Expressions.html#//apple_ref/doc/uid/TP40014097-CH32-ID383 (scroll down a bit).

At parse time, an expression made up of binary operators is represented as a flat list. This list is transformed into a tree by applying operator precedence. For example, the expression 2 + 3 * 5 is initially understood as a flat list of five items, 2, +, 3, *, and 5. This process transforms it into the tree (2 + (3 * 5)).

Thank you very much for your help.

You are welcome and good luck with your project 😄

I've recently implemented an ECMA5 grammar using Chevrotain
https://github.com/SAP/chevrotain/blob/master/examples/grammars/ecma5/ecma5_parser.js
which has a fairly deep operator hierarchy.
I've gotten a pretty significant performance boost by refactoring the grammar to use the style
described in the swift grammar.

Don't remember exactly, I think around: X1.5 - X2.0
But I did not encounter any stack overflows even when throwing large 10,000+ lines at the parser.

Another thing I noticed when benchmarking ECMA5 grammars from other Parsing Libraries
is that two of the three samples seemed pretty much explode when faced with anything bigger than a small input.
See runnable benchmark:
https://github.com/SAP/chevrotain/blob/master/examples/grammars/ecma5/benchmark/bench.js
(Have to run npm install in the folder examples/grammars first)
The last thing I noted is that many hand built ECMAScript parsers are recursive decent
but use operator precedence climbing for dealing more effectively with expression hierarchies.


Add Jenkins webhook on push

Feature Description
Add Jenkins webhook on push.
Installing Jenkins plugin to handle request is a bit overkill, if build could be triggered by simple REST API call from Gitea.
Screenshots
No response

What's the different from #18299

What's the different from #18299


MAC : Forwardind findelement to remote

I am facing issue while executing scripts on either device(Android/iOS) in case of MAC only.
ISSUE:  Forwarding findelement on session  to remote
this is a deadlock situation which neither throw any exception nor returns any response.
I am using Selenium Server Standalone 2.44, Selenium java client 2.44, jdk 1.7.67, have also tried with selenium 2.43 but same issue persists.
please provide me some solution so that I can come out of this deadlock situation.

I'm closing this issue due to inactivity. If you still experience the issue described on the latest release of selendroid feel free to file a new issue. If you do please provide a concise reproducible test case and describe what results you are seeing and what results you expect.


There is no way to reset a parent's navigationOptions when navigating back in the StackNavigator

My goal is to always render a specific screen with a specific set of header styles. There is seemingly no way to achieve this with the current API, but apologies if I've missed something.
Here's the current behavior:
ScreenA sets the header's background color to red:
class ScreenA extends React.Component {
  static navigationOptions = ({ navigationOptions }) =>
    _.merge(navigationOptions, {
      headerStyle: {
        backgroundColor: "red",
      },
    });
}

You navigate to ScreenB, which sets the background color to blue:
class ScreenB extends React.Component {
  static navigationOptions = ({ navigationOptions }) =>
    _.merge(navigationOptions, {
      headerStyle: {
        backgroundColor: "blue",
      },
    });
}

When you press "Back" on ScreenB, ScreenB is dismissed, but the navigationOptions function is not called on ScreenA (probably because the screen was still active behind ScreenB). This means that the backgroundColor for ScreenA is now blue as a consequence of navigating to ScreenB.
I looked and couldn't find any lifecycle hooks or way for me to guarantee that any time you see ScreenA it would render with a specific style.

software
version

react-navigation
1.0.0-beta.11

Hey @jsteiner - this makes sense and should be fixed. It would help a lot if you could provide a running example of this! Thanks

Pinging OP @jsteiner since this issue has not been active for a while, and it's related to an old version of the lib.
Please let me know if you want this to remain open; if I get no answer in the next 7 days I will close it.
Moreover, this it actually possible, read this issue: https://github.com/react-community/react-navigation/issues/2818

Hi there @jsteiner ,
In an effort to cleanup this project and prioritize a bit, since this issue had no follow up since my last comment I'm going to close it.
If you are still having the issue with the latest version (especially if it's a bug report) please check the current open issues, and if you can't find a duplicate, open a new one that uses the new Issue Template to provide some more details to help us solve it.


[tsserver] Custom Diagnostic errors, don't triggered getCodeFixAtPosition

When must be triggered getCodeFixAtPosition?
I think every time, when i open code fix menu in my IDE.
Note: I use InteljIDEA.
So, when I write code that has an internal (typescript) error (like syntax or type error), and open code fix menu (by ALT + ENTER as default), IDE call getCodeFixAtPosition with tsserver.
For example:
const a: number = ''; // type error: cant assign string to number

then getCodeFixAtPosition was called and works.

But, when I create custom diagnostic error, in getSemanticDiagnostics or getSyntacticDiagnostics, then getCodeFixAtPosition was not called when I try to open code fix menu.

Here is code, that create custom error:
export function HooksChecker(base: LanguageServiceConstructor) {
    class HooksCheckerLanguageService extends base {
        private parser = new LanguageServiceParser(this.info.project);

        constructor(private info: ts.server.PluginCreateInfo) {
            super();
        }

        public getSemanticDiagnostics(fileName: string): ts.Diagnostic[] {
            return [
                ...super.getSemanticDiagnostics(fileName),
                {
                    category: DiagnosticCategory.Error,
                    code: 0,
                    file: this.parser.getSourceFile(fileName),
                    start: 0,
                    length: 5,
                    messageText: 'MyCustomError',
                },
            ];
        }

        public getCodeFixesAtPosition(
            fileName: string,
            start: number,
            end: number,
            errorCodes: ReadonlyArray<number>,
            formatOptions: ts.FormatCodeSettings,
            preferences: ts.UserPreferences,
        ): ReadonlyArray<ts.CodeFixAction> {
            return [
                ...super.getCodeFixesAtPosition(fileName, start, end, errorCodes, formatOptions, preferences),
                {
                    description: 'test test',
                    changes: [
                        {
                            fileName: fileName,
                            textChanges: [
                                {
                                    span: {
                                        start: 0,
                                        length: 2,
                                    },
                                    newText: 'test test',
                                }
                            ]
                        }
                    ],
                    fixName: 'test fix name'
                }
            ]
        }
    }
}

I don't know where to look for the problem. Maybe a bug in the IDE, but maybe I did something wrong.

Ok, I solved it. The problem was that I was sending error code = 0. But if you change it to any other, everything works.

For anyone finding this, this not only need to be non 0, but this need to be an error code which is part of getSupportedErrorCodes.
Ideally a new error code can be added via getSupportedCodeFixes, but this is not used by VSCode yet
Using the internal codefix.registerCodeFix works in VSCode, but not in WebStorm


Migrate site to markdown?

Just an idea. Should we migrate the site to markdown? Easier to maintain imho, plus it's compatible with github and many tools including builtin plugin in IntelliJ
https://illegalexception.schlichtherle.de/maven/2013/06/17/how-to-use-markdown-syntax-with-the-maven-site-plugin/

other projects like TomEE use asciidoc, but Markdown is a bit simpler to use and generate html. no dependencies on jbake or the kind. difficulty arised trying migrating all the pages... and not loose content.
maintaining the docs with any LML has been a breeze for me these past months.
MD has almost no entry cost for accustomed github users.

We can do it - please one document per one PR.
By the way content should be verified if is still valid and corresponding to current implementations ... 😄

.vm files is only needed if we have properties in document

instead of # for headers - we can use

Header level 1
===========

Header level 2
--------------

https://github.com/mojohaus/versions-maven-plugin/pull/734

@slawekjaranowski @slachiewicz I think this can be closed 👍


Automated UI Tests Using Visual Studio Online

Follow on from this issue: https://github.com/microsoft/appcenter/issues/25
FAO: @hassanuz
I am trying to Automate my UWP Ui tests using these instructions:
https://github.com/microsoft/WinAppDriver/wiki/WinAppDriver-in-CI-with-Azure-Pipelines.
I am using a Local Build Server
Step 1: Start WinApp Driver
Step 2: Install app  using this script:
$currentDirectory = Get-Location

Write-Host "Removing FieldStrike if present"
try
{
    Get-AppxPackage MyApp | Remove-AppxPackage #uninstall App if its present
}
catch
{
    Write-Host "failed to remove FieldStrike"
    Write-Host $Error[0]
    exit

}
Write-Host "Installing MyApp"
try
{
    $installScriptLocation = Get-ChildItem -Path $currentDirectory.Path -Recurse -Filter Add-AppDevPackage.ps1

    powershell.exe -File $installScriptLocation.FullName -Force
}
catch
{
    Write-Host "Failed to install Fieldstrike"
    Write-Host $Error[0]
    exit
}

This fails with

Error: Could not install the app.  To ensure security, please consider uninstalling the signing certificate until you can install the app.  Instructions for doing so can be found here:

If I run this script locally it works, so my guess is something to do with the user?
Step 3: after installing app locally try to run UI tests using this script:
$currentDirectory = Get-Location

Write-Host "Running Tests"
try
{

    $uiTests= $currentDirectory.Path + "\nunit3-console.exe"
    $testdll = $currentDirectory.Path + "\MyApp.UI.Tests.UWP.dll"
    $logFile = $currentDirectory.Path + "\TestResults.txt"
    Write-Host $uiTests
    Write-Host $testdll
    Write-Host $logFile
	Start-Process $uiTests $testdll -Wait  -RedirectStandardOutput $logFile -WindowStyle Normal

}
catch
{
    Write-Host "Error whilst running tests"
    Write-Host $Error[0]
    Stop-Process -Name  "WinAppDriver"
    exit
}

Write-Host "Tests Completed Results in TestResults.txt"
Get-Content -Path $logFile

Now this runs the tests but they all fail with this error

Unexpected error occured: Creating an instance of the COM component with CLSID {45BA127D-10A8-46EA-8AB7-56EA9078943C} from the IClassFactory failed due to the following error: 8000401a The server process could not be started because the configured identity is incorrect. Check the username and password. (Exception from HRESULT: 0x8000401A).

Code in the setup method is like so:
            OpenQA.Selenium.Appium.AppiumOptions desktopOptions = new AppiumOptions();
            desktopOptions.AddAdditionalCapability("app", "Root");
            var desktopSession = new WindowsDriver<WindowsElement>(new Uri(WindowsApplicationDriverUrl), desktopOptions);
            app = new WinDriverApp(desktopSession);

It may be the test initialisation code that is wrong, but there are two issues here, cant install the app automatically and can't run the tests remotely

Hi @JKennedy24,
A few questions:

I see that you are using powershell scripts. Are these being deployed from DevOps Pipeline? I would recommend running the tests through the the Pipelines VSTest Task.

Is your private agent configured for interactive  mode? I recommend confirming this.

Have you tried deploying your app on the Microsoft Hosted VS2019 agent?

@hassanuz thanks for the reply.
Just a quick update,

I've refactored the Powershell script (which are deployed to the pipeline) to run using VSTest, I guess just better practice.

The interactive mode actually wasn't something I've ever seen before but when I tried to configure it I wasn't able to because my build machine is on a domain.

this leaves me with the final option to run it in on a hosted agent which I am running through now and will update shortly

Hi @JKennedy24, let me know if the hosted agent was able to resolve your issue.

Hi @hassanuz  I tried the hosted agent but got a UWP compile error:
https://github.com/dotnet/corert/issues/7408
The issue says syncfusion was the problem which I do use so I will report it to them and see if that gets me any further

@hassanuz I never did manage to get this automated UWP UI tests up and running in the end.
I had 2 blockers.

I couldn't configure interactive mode on my local build machine because the machine is on the domain.

When I ran in the cloud the machine didn't have enough memory to deal with the size of my project and would eventually throw an error which was essentially linked to "out of memory". Something to do with .Net native tool chain

Conclusion
I think the disjointedness of Xamarin and UWP is mad.
The ideal solution would be for Automated UWP UI tests to be part of the TestCloud

I am currently at a bit of a stalemate with this issue being blocked by other bugs/issues.
I am going to close this issue for now and hope that Microsoft provide a better solution in future


[EXPERIMENT] Check diff between 2018 theme and 2020 v2.3

Not much changed. Some major library upgrades resulting large changeset.
See https://github.com/amardeshbd/hossainkhan.com/pull/55/files?short_path=694e73e#diff-eacf331f0ffc35d4b482f1d15a887d3b


Twitch API v5 deprecated

From the site:

Twitch API v5 is deprecated and will be removed on 12/31/18. The new Twitch API is live and we are actively adding new functionality to it.

I've just started using this awesome lib, hopefully it won't require too much refactoring.

Definitely welcome to send any pull requests you need to move to v5.


Update create-a-custom-react-hook-to-handle-form-fields.md

Fixing minor typo, duplicate indefinite article

Thank you!


Broken images "Dependency Status" and "devDependency Status"

It might have been a transient thing, or a bad image cache—they're showing up now.

Unfortunately they don't show up currently:

I did a reload with disabled cache. Two images are 404.

It's likely due to https://github.com/alanshaw/david-www/issues/357 in that case. I don't think there's any action on our end until that unreliability clears up. If the service remains unreliable, we may just ditch the badges entirely.


recruitment dev_vector

Imported from redmine, Issue #49212
Opened by @RickMethot on 2018-05-11
Status when imported: In Progress
Find while working with Cole Monnahan that the dev_vector approach to the recruitment deviations does not perform well in mceval_phase().
Three alternatives:

ADMB developers find a fix;
deprecate use of the dev_vector and add a penalty to the mean deviation to keep it close to 0.0.  Feasible because this mean covaries strongly with ln(R0).
add the mean deviation to ln(R0) before using ln(R0) in the spawner-recruitment relationship; need to be careful about effects on early and forecast recruitments and on recruitments outside of the dev range.

closely related to #37

This issue really could use a simulation study to demonstrate the performance of the various options under MLE and MCMC.
@kellijohnson-NOAA
@k-doering-NOAA

related to #37

Isn't there another dec_dev issue that shows this being implemented, but needing performance testing; e.g. a paper.?

@Rick-Methot-NOAA , yes, we closed the other issue (#37) because it seemed to have more text about implementation of the option and we thought the performance testing was captured better by this open issue.


buffer: re-use wlr_shm_client_buffer

The first time wlr_buffer_from_resource is called with a wl_buffer
resource that originates from wl_shm, create a new
wlr_shm_client_buffer as usual. If wlr_buffer_from_resource is called
multiple times, re-use the existing wlr_shm_client_buffer.
This commit changes how the wlr_shm_client_buffer lifetime is managed:
previously it was destroyed as soon as the wlr_buffer was released.
With this commit it's destroyed when the wl_buffer resource is.
Apart from de-duplicating wlr_shm_client_buffer creations, this allows
to easily track when a wlr_shm_client_buffer is re-used. This is useful
for the renderer and the backends, e.g. the Pixman renderer can keep
using the same Pixman image if the buffer is re-used. In the future,
this will also allow to re-use resources in the Wayland and X11 backends
(remote wl_buffer objects for Wayland, pixmaps for X11).

Nice workaround, LGTM.

Nice workaround

Right. I originally wanted to add wl_resource_{get,set}_user_data, but apparently wl_resource_get_destroy_listener is how libwayland users are supposed to do this. Definitely not great, oh well.


Add Header authorization

How to add Header for Flick video URL?
@vishna @mrinaljain @gauravguha @ManuSekhon @geekruchika

https://github.com/flutter/plugins/pull/2074/files#diff-e534c460662d39cc715c4eed77a31c3fL34
video_player will soon have it.  Once they will add, we can update here as well.


I struggle with an « Uncaught ReferenceError: PlainDraggable is not defined«

Hello,
I tried your incredible library with a really simple exemple, but I don’t know why I have such an error. Here is the simple HTML code i used :

<!DOCTYPE html>

  <meta charset="utf-8">
  <title>Test - draggable element</title>

Lorem ipsum dolor sit amet, consectetur
    adipiscing
    elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Your help would be really appreciated !

Hi @Erwan-BR, thank you for the comment.
The loading the plain-draggable.min.js might have failed.
Does the file exist in the same directory with the HTML file?

You have to specify containment option if you want to change area for moving the element.

You can specify leftTop option to make PlainDraggable use left and top CSS properties instead.
However, using the scale may be not good way to re-size the element. That changes scale of coordinates of pointer that is moving also. You might have to adjust the scaled coordinates when event is fired.

No reply came, then this abandoned issue is closed.


IndexError

An IndexError occurs in my environment. I want advice.
-environment:
Ubuntu 14.04(x64)
Python 2.7.6
scipy 0.13.3
control 0.7.0
I get an error when I run this code
#!/usr/bin/env python
from control.matlab import *
def main():
  A_mat = [[0, 1.], [-1, -1.]]
  B_mat = [[0. ],[1.]]
  C_mat = [[1., 0.]]
  sys1tf = ss2tf(A_mat, B_mat, C_mat,0.)
  print sys1tf
if __name__ == "__main__":
  main()

$ ./test1.py
/usr/local/lib/python2.7/dist-packages/scipy/signal/filter_design.py:1452: BadCoefficients: Badly conditioned filter coefficients (numerator): the results may be meaningless
"results may be meaningless", BadCoefficients)
Traceback (most recent call last):
File "./controltest1.py", line 12, in
main()
File "./controltest1.py", line 8, in main
sys1tf = ss2tf(A_mat, B_mat, C_mat,0.0)
File "/usr/local/lib/python2.7/dist-packages/control/matlab.py", line 687, in ss2tf
return _convertToTransferFunction(StateSpace(*args))
File "/usr/local/lib/python2.7/dist-packages/control/xferfcn.py", line 1131, in _convertToTransferFunction
return TransferFunction(num, den, sys.dt)
File "/usr/local/lib/python2.7/dist-packages/control/xferfcn.py", line 166, in init
isinstance(data[i][0], (int, float, complex))):
IndexError: 0-d arrays can't be indexed

But, this code does not cause problems.
#!/usr/bin/env python
from control.matlab import *

def main():
  A_mat = [[0, 1.], [-1, -1.]]
  B_mat = [[0. ],[1.]]
  C_mat = [[1., 0.00001]]
  sys1tf = ss2tf(A_mat, B_mat, C_mat,0.)
  print sys1tf

if __name__ == "__main__":
  main()

$ ./test1.py
1e-05 s + 1 / s^2 + s + 1

The difference between a problem code and a no-problem code is  C_mat value.
I think that no problem has happened even if I enter a similar code in MATLAB.

Confirmed with scipy 0.19.0; it doesn't happen with 0.13.3.  With 0.19.0 (or earlier, don't know when this changed), it looks like the numerator is a 0-dimensional array in this case.  This diff, which is relative to the 0.7.0 tags, appears to solve the bug, but how correct it is in general I'm not sure.
diff --git a/control/xferfcn.py b/control/xferfcn.py
index 77f7bc3..2870fbd 100644
--- a/control/xferfcn.py
+++ b/control/xferfcn.py
@@ -155,7 +155,8 @@ class TransferFunction(Lti):
         # but be careful.
         data = [num, den]
         for i in range(len(data)):
-            if isinstance(data[i], (int, float, complex)):
+            if (isinstance(data[i], (int, float, complex)) or
+                (isinstance(data[i], ndarray) and data[i].shape == ())):
                 # Convert scalar to list of list of array.
                 if (isinstance(data[i], int)):
                     # Convert integers to floats at this point

My environment is
Ubuntu 14.04 python 2.7.6 , scipy 0.13.3 , control 0.7.0
Depending on your patch, the problem has been solved.
Thank you.

I didn't test carefully enough here.  I can reproduce this on 0.7.0 with Scipy 0.19.0, but not with master; this was fixed in 020734dc, specifically by checking for 0-dim arrays in TransferFunction.init:
diff --git a/control/xferfcn.py b/control/xferfcn.py
index 77f7bc3..0ea1515 100644
--- a/control/xferfcn.py
+++ b/control/xferfcn.py
@@ -155,7 +125,9 @@ class TransferFunction(Lti):
         # but be careful.
         data = [num, den]
         for i in range(len(data)):
-            if isinstance(data[i], (int, float, complex)):
+            # Check for a scalar (including 0d ndarray)
+            if (isinstance(data[i], (int, float, complex)) or
+                (isinstance(data[i], ndarray) and data[i].ndim == 0)):

Using scipy.signal.lti (a class) to do the SS -> TF conversion can raise a BadCoefficients warning from scipy, which doesn't happen if one uses scipy.signal.ss2tf (a function) instead.  The warning seems spurious to me; it may be useful in filter design, but not when working with LTI systems in general.

I confirmed that everything still works in the latest version of the code (which has the fix that @roryyorke mentions above).


Add files via upload

Added inför on mitochondria
https://github.com/instructlab/taxonomy/issues/789
If your PR is related to a contribution to the taxonomy, please, fill
out the following questionnaire. If not, replace this whole text and the
following questionnaire with whatever information is applicable to your PR.
Describe the contribution to the taxonomy

...
...
...

Input given at the prompt

   ...

Response from the original model

  ...

Response from the fine-tuned model

  ...

Contribution checklist

[ ] The contribution was tested with ilab generate
[ ] No errors or warnings were produced by ilab generate
[ ] All commits are signed off (DCO)
[ ] The qna.yaml file contains at least 5 seed_examples
[ ] The qna.yaml file was linted and prettified (yaml-validator can do both)
[ ] An attribution.txt file in the same folder as the qna.yaml file
[ ] Content does not include PII or otherwise sensitive or confidential information
[ ] Content does not include anything documented in the project's Avoid these Topics guidelines

Can you fix the linting issue please?

I have fixed the issues and committed the files.

@instructlab-bot precheck

@instructlab-bot precheck


[Bug] Adaptive axis toggle is not functioning for charts

Description
Release - Chart Widget - It is observed that enabling adaptive axis on chart doesn't work as expected
Expected result:
Enabling adaptive axis on chart should display more adaptive scale on  x and y axis values
Steps to reproduce the behaviour:

Launch appmsith app in the release environment
Drag and drop chart widget
Enable Adaptive axis toggle button and observe

Videolink:
https://loom.com/share/e65c50a94b504ea8b8cc2c8f59d3a8df
Important Details

Version: [11.3]
OS: [MacOS Big sur]
Browser [chrome, safari]
Environment [release]

Non-Issue


tour: This does not adequately tell you the difference between how to declare a slice vs an array

Context: http://tour.golang.org/moretypes/7
When reading the tutorial page on arrays, and then on slices, it is NOT obvious how to declare one vs the other.
To declare an ARRAY, you need to provide a length
To declare a SLICE, you may not provide a length, but you must provide initialized values that end up defining the length.
I had to read this entire article:
http://openmymind.net/The-Minimum-You-Need-To-Know-About-Arrays-And-Slices-In-Go/
to figure out the subtleties of declaring a slice vs declaring an array.

CC @adg @campoy

@traceypowers would it have been easier to understand if the array slide had been more similar to the slice slide? Perhaps instead of:
var a [2]string
a[0] = "Hello"
a[1] = "World"

The array could be declared like so:
a := [2]string{"Hello", "World"}

This would make it symmetrical with the declaration of the slice in the next slide:
s := []int{2, 3, 5, 7, 11, 13}

This doesn't cover the subtleties of arrays vs. slices, but the tour isn't really the place for subtleties, I think.
We could also link to the blog post about slices on golang.org: http://blog.golang.org/go-slices-usage-and-internals


[CI] Add easy public access to build artifacts like FPGA bitstreams

It would be great if CI build artifacts like bitstreams were easily accessible via our website or GitHub page.
Right now they are pretty buried in the Azure GUI and I believe you need to have the right creds to log in and download them...

This has been solved through our GCS bitstreams cache bucket now.


Fix bugs related to flag usage in chardev gpio

This PR fixes couple of bugs in the Chardev gpio interface regarding the usage of gpio line flags. These issues are reported by the GPIO subsystem maintainer Linus Walleij.

Squashed, rebased and merged, Thanks!


Planet Fauna Checklist

Description

Our current planetside fauna consists exclusively of xenos and carps, neither of which are a good fit for expeditions or any kind of planetary exploration. Additionally, it would be good to have unique fauna selections for each planet variant (grass/jungle, cave, lava, ice) so as to give them more stuff to distinguish them, as right now they feel a bit same-y.
Once these are implemented, carps should be relegated to solely space threats and xenos should be retired until the proper xenomorph antagonist is complete.
Grassland/Jungle

[ ] Argocytes: Complex ecosystem of various different alien creatures. These exist in the game's files but the balancing is a bit out of wack. These can serve as a drop-in replacement for xenos. There is a huge variety of these and they should realistically have unique behavior in the future. This is an "ask emisse" statement.

Cave

[ ] Spiders: Has a basic implementation on-station. For planet-side mobs, should probably have some basic respawning or nest mechanic that interfaces with their webs. At the very least, it needs an update to the NPC logic to enable it to use web ability automatically.

[ ] Space Ticks: Should be rethemed into a more conventional bug creature. The asset exists however and they've always been an alright threat. Could serve as a decent thing to pad out the creatures in the Cave.

[ ] Goldgrub: See #30767. Could be spawned rarely around caves.

Ice

[ ] Hivebot: From /tg/ wiki: "A roaming bee-bot equipped with an attached weapon that fires bullet projectiles that can also come in stronger versions, its rate of fire is slow and is considered moderate in terms of damage. Easily destroyable, however this is countered by being in packs or even in an entire platoon."

[ ] Polar Bear: Just a basic simplemob that can maul players. Should be decently strong and fast.

[ ] Wolves: Roam in packs, attack different mobs, and are extremely fast. Bonus points if they howl to let you know that they are nearby. Could serve as a rare threat compared to the more frequent hivebots roaming the surface.

[ ] Watcher: A prototype for this exists in code but it doesn't have it's cold attack. You get bonus points if i can reuse it for a temperature gun in the future. Also I'd ideally like a resprite but its not important.

Lava

[ ] Legion: Decently strong mob that spawns small flying skulls that attack the player. The individual skulls are really weak but attack frequently whereas the main body doesn't attack much at all.

[ ] Watcher: Same as the variant on the ice planet, except the projectiles raise body temperature instead of lowering it.

[ ] Goliath: Largely the same as #30767. Some servers seem to have an alternate variant that spawns extra tentacles so that might be a good fit here to distinguish it from the asteroid mob.

[ ] Ashwalkers: Primitive lizard people armed with gladiator gear and bone weapons. Would be good to spawn in small encampment just to make them more thematically interesting.

If I'm not mistaken, Goliath (Not ancient) also uses a dash


Update dependencies

console 0.9 -> 0.14
rand 0.7 -> 0.8
base64 0.12 -> 0.13
pin-project 0.4 -> 1

I believe all of these updates have been merged via #514

I believe all of these updates have been merged via #514


Support concave shapes in triangulator

Caused by:
    0: Failed to load geometry mesh
    1: Triangulation failed
    2: Unsupported polygon: 6-gon with two or more concave angles

I've found an interesting resource on triangulation of arbitrary polygons:

https://www.cise.ufl.edu/~ungor/courses/fall08/polytri.pdf

We could run triangulator on the GPU for maximum performance, but I only know compute shaders in HLSL/PSSL and don't know WGSL :(


Insert more information in User

insert:

picture
file
description
social network link

comprehension error
nothing to do with this data


The problem for data

I stoped the service , then data miss ? How?  success?

@dazi005 your question is a little bit short.. ;-) what exactly would you like to do?
I suspect that you probably are surprised that the DB is cleaned up after shutdown? That happens in https://github.com/vorburger/MariaDB4j/blob/master/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/DB.java#L347, IFF the data and/or base directory are in a temporary directory.
If you simply e.g. setDataDir() on the DBConfigurationBuilder when you initialize MariaDB4j to a directory that is not a temporary directory, then it will not get cleaned up on shutdown. Does that answer your question?
Best of luck. I'll close this issue in 1 month if there is no follow-up.

Closing issue as timed out.

PS: see also discussion in https://github.com/vorburger/MariaDB4j/issues/36


Added Label for Watch commands

What is the Problem?
SDK provides Watch api to subscribe Watch commands. This returns push response ["GET", fingerprint, value] so that users can get fingerprint immediately.
Since multiplexing is allowed i.e. users can subscribe for multiple keys, example: GET.WATCH k1 and GET.WATCH k2, there is no way for SDK to know that if a received update is the first message for say k2 or an update message for k1.
What is the Solution?
PR adds watch label (uuid) in diceDB worker.go. It is generated with every watch subscription. Label is received only in the first response by SDK.
This PR adds two separate channels firstUpdateCh and updateCh for first response and subsequent updates of Watch subscriptions.
Watch api call is followed by Channel api call to get channel for updates. Earlier, Channel initialised initMsgChan routine which would check for updates from server.
Now Watch api call initialises initMsgChan and initMsgChan filters subscription first response and sends it to firstUpdateCh buffered channel which is then consumed by Watch. In First response, msg.Command is expected to be a valid uuid string. Label is not sent to the end user.
All subsequent responses are sent to updateCh which is returned as response to Channel api and users to consume updates on subscribed keys.

@JyotinderSingh - worked on the comments. Please review.
Here is the flow for your understanding:

Watch() creates watchLabel (uuid) and dedicated firstMsgCh for each request. Their mapping is stored in watchLabelFirstMsgChMap
Both Watch() and Channel() initialise initMsgChan routine, with concurrency safety. This makes the order of calling these functions irrelevant
initMsgChan is responsible for routing first message to dedicated channel and updates to a common channel


Package request: Rasdaemon

Issue description
mcelog is available in nixpkgs, but the utility has been deprecated in favor of rasdaemon. In particular, Rasdaemon has better support for AMD cards. No rasdaemon package currently exists in nixpkgs.
There is a Arch Linux PKGBUILD here.
Unfortunately, performing a manual install did not go well for me:
sudo make install
Making install in libtrace
make[1]: Entering directory '/home/matt/Downloads/rasdaemon-0.6.0/libtrace'
  AR       libtrace.a
make[1]: *** [Makefile:399: libtrace.a] Error 1
make[1]: Leaving directory '/home/matt/Downloads/rasdaemon-0.6.0/libtrace'
make: *** [Makefile:677: install-recursive] Error 1

not stale, not easy to fix with confidence though


Prevented updates for displaying for deleted modules

In theory this is a simple change, but I figured the areas touched were sensitive enough that it warranted review.  This aims to fix #338.

I'll take two out or four :)


Flakes Integration

Description

This pull request adds Flake support to the overlay, so that people can integrate Flakes into their pre-existing projects or deployments. It will replace the legacy deployment system using overlay.nix, and will only be compatible with flake-only configurations.
Issues Fixed

Fixes #1

Tasks

[x] 1. Add flake configuration
[x] 2. Update documentation

Final checklist

[x] Domain specific tests
[x] Full tests
[x] Updated inline-comment documentation
[x] Lint fixed
[x] Squash and rebased
[ ] Sanity check the final build

I think this can be merged now.

Update title of PR and also being squashing too.

Squashed and rebased, everything works, ready for merge.

Tick the sanity check if so.


ReavViewController create on startup

Hi,
Is it possible to load rear view controller on app startup? I have a custom menu view (which is not a table) and when i click menu button for the first time to reveal menu view controller i am experiencing a noticeable, few seconds long lag which is caused by first the load of rear view. Is there any solution? Please help

I'm also having some issues with this. I have a UIWebView on both the left and the right side. The problem only occurs when opening the sidebar for the first time, after that the view is loaded and it runs smoothly. @Reak45 Did you find a solution to this?

Found it, in the viewDidAppear for SWRevealViewController there is comments on how to achieve this.


fix logic error in the pool/result_pool_test.go

The logic tells "after wait", but didn't call the wait function at all.
Here is the fix:

Thanks! PR here

这是来自QQ邮箱的自动回复邮件。 您好，你的邮件我已经收到。


[stable/kong] update CRDs to the latest version

Signed-off-by: Harry Bagdi<EMAIL_ADDRESS>
What this PR does / why we need it:
New fields introduced in the CRDs have been added.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/chart])

ping @shashiranjan84


Does not work out of the box. "The system cannot find the file specified"

Create a new asp.net mvc web application (no netcore)
Add a local filesytem publish profile
Add Docker Support
Publish or Build
Run docker build -t microsoft/iis
Get
Sending build context to Docker daemon  3.584kB
Step 1/4 : FROM microsoft/iis
 ---> b7db4e6fea84
Step 2/4 : ARG source
 ---> Running in 971e5af9f914
 ---> b83d50952dd2
Removing intermediate container 971e5af9f914
Step 3/4 : WORKDIR /inetpub/wwwroot
 ---> b8f3fd7618a9
Removing intermediate container 24c1b86fc566
Step 4/4 : COPY ${source:-obj/Docker/publish} .
COPY failed: GetFileAttributesEx \\?\C:\WINDOWS\TEMP\docker-builder845878484\obj\Docker\publish: The system cannot find the file specified.

The documentation appears to weave between netfx and netcore and I cant tell which is which or if it matters. I did try to change the COPY path to ./bin/Release/PublishedOutput but it still resolves to C:\WINDOWS\TEMP\docker-builder127245847\bin\Release\PublishedOutput
I cannot figure out what this wants, but following the tutorial (any of the MSFT ones) should net a working example and they do not. I'm just in a research stage with this, but am ready to exclude Docker entirely from potential cloud solutions with how long a simple example is taking between this and the cryptic Symantec issue.
Whats the COPY command want? Is docker support broken in VS 2017? Are the tutorials wrong?

@StingyJack - VS2017 works with Docker containers, so it must be an issue related to the environment.
Several questions that might be obvious, but just in case:

I supposed you installed "Docker for Windows" first.
Since you are using a "FROM Microsoft/iis", that means you are using .NET Framework and IIS, so it needs to use Windows Containers. It cannot be Linux containers. Did you switch to Windows Containers in "Docker for Windows" settings? - By default it uses Linux Containers.
Did you shared your drive in "Docker for Windows" Settings? (that is C: or D: etc.). That is needed for VS so it'll be able to attach to the container and debug, later on..
Info: When building the project and having Docker enabled in your project, your binaries should be published within the folder ../yourproject/obj/Docker/publish - So, that path is right.
Then, the COPY command in the dockerfile is trying to copy those binaries into the current folder within the Container.
Is any new project created with Docker support in VS working for you if you don't "Add a local filesytem publish profile" as you mentioned? - Just trying to isolate the issue.
Finally, what version of VS2017 are you using?

Yes, docker for windows with windows containers, right clicked the vs project to add docker support, built project, then tried to run the docker build command.
I have been able to use the microsoft/nanoserver image and run a simple copy of a powershell script from one of the first tutorials I found, but VS 15.4 doesnt seem to want to create something I can use.
Sharing a drive is a new instruction. I'll see if I missed that.
The microsoft/iis image is what the vs tools picked as part of adding docker support. I took that dockerfile as it was at first, and only started twiddling with it when it wasn't working.  It will have to work from a TFS vnext build server using an MSBuild task eventually and not just from VS (cant use VS build task, MSFT seems to have dropped support for TFS 2015 in this area).
All the projects I would be looking to use have the local file system publish profile already, i suppose it could be removed, but then how does one get the software that originates in cs projects on to an image?

I just want to isolate the issue, that's why I'm suggesting not to add the local file system publish and make a regular "hello world" Windows Container work, which should work.
About sharing drives, you can see that is a requirement for VS in the basic getting started page, almost right at the beginning:
Visual Studio Tools for Docker
https://docs.microsoft.com/en-us/aspnet/core/publishing/visual-studio-tools-for-docker
Yes, the image depends on the type of project you are using. If it is ASP.NET Core it would have been a ASPNETCore image based on .NET Core which can run on Linux and Windows (multi-arch).
If it is a traditional .NET Framework project, it'll use the microsoft/iis image or the ASP.NET image, depending on the project.
Here you can see two traditional ASP.NET web apps (Web Forms and MVC) using Windows Containers, too:
https://github.com/dotnet-architecture/eShopModernizing
And how to set it up at the Getting Started Wiki:
https://github.com/dotnet-architecture/eShopModernizing/wiki/02.-How-to-containerize-the-.NET-Framework-web-apps-with-Windows-Containers-and-Docker
Btw, what type of VS project template are you trying to create?
It would be good to isolate the issue. When we do, if it is not a problem related to your environment, I'll send it to the VS Tools for Docker team folks, if it is a real issue.

I don't think I installed any specific "VS tools for docker" unless it was buried in the workload selections. I just right clicked the project and chose Add, docker support as that's what is step 1 on most of the tutorials.  I will definitely read through that link though. Thanks!


Why need the data processing step?

Hi Matt,
Thanks for the elegant code in Tensorflow. But why is the data processing step necessary?
It seems to me that it's possible to load the dataset into memory before training (at least for the PacMan dataset), and then randomly select 32*32 patches at runtime. Will that make I/O faster?
Thanks in advance

Here is my hypothesis:
Once the dataset is expressive enough for the problem, it is more efficient to train the network over that dataset multiple times (i.e. epochs). In this case, preprocessing the data multiple times is unnecessary.

Sorry for the delayed response! The initial reason I added a separate pre-processing pipeline was because I was being bottlenecked by i/o and it is much more efficient to read in 32x32 image patches than the full-sized images. I don't remember what the memory specs of my machine were, but I think I was running into issues loading the whole dataset into memory. If you are able to do that, it might make more sense to create the patches at runtime

Thanks for your reply? It's very helpful.


chore: allow passing a socket connection to https.Agent

chore: allow passing a socket connection to https.Agent
Summary
A short description of the changes with a link to an open issue.
Checklist
Delete items not relevant to your PR:

[ ] Unit and integration tests covering the common scenarios were added
[ ] A human-readable description of the changes was provided to include in CHANGELOG
[ ] For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


build system: systemd inclusion in time of building stage1-*.aci

edit: Original issue content under below line.
There is an issue with tracking existence of systemd binaries in build-*/aci-for*flavor/ sometimes in time of rebuilding process, done without previous make clean or rm -rf build-*/. Minor issue, because of mentioned commands.

On actual master we have:
sudo ./build-rkt-1.4.0+git/bin/rkt run --mds-register=false --insecure-options=all --interactive sha512-cdb74a334f97f442a4da5230610ccf46
image: using image from file /home/jell/Data/src/go/gopath_src/github.com/coreos/rkt/build-rkt-1.4.0+git/bin/stage1-kvm.aci
image: using image from the store with hash sha512-cdb74a334f97f442a4da5230610ccf46757688b964ccd3eddc604ab5afb48e85
run: group "rkt" not found, will use default gid when rendering images
networking: loading networks from /etc/rkt/net.d
stage1: warning: error setting journal ACLs, you'll need root to read the pod journal: group "rkt" not found
kvm: network unit created: "interface-eth0.service" in "stage1/rootfs/usr/lib/systemd/system" (iface="eth0", addr="<IP_ADDRESS>/24")
[    0.226850] Kernel panic - not syncing: Requested init /usr/lib/systemd/systemd failed (error -2).
[    0.227102] Kernel Offset: disabled
[    0.227132] Rebooting in 1 seconds..
  # KVM session ended normally.

I'm now bisecting which particular commit added this.

Blocking 1.5.0 release.

Latest master works for me:
$  sudo rkt run coreos.com/etcd:v2.0.10
image: using image from local store for image name coreos.com/rkt/stage1-kvm:1.4.0+gitdfee465
image: using image from local store for image name coreos.com/etcd:v2.0.10
networking: loading networks from /etc/rkt/net.d
kvm: network unit created: "interface-eth0.service" in "stage1/rootfs/usr/lib/systemd/system" (iface="eth0", addr="<IP_ADDRESS>/24")
[    0.461038] etcd[141]: 2016/04/28 13:27:13 etcd: no data-dir provided, using default data-dir ./default.etcd
[    0.462845] etcd[141]: 2016/04/28 13:27:13 etcd: listening for peers on http://localhost:2380
[    0.463120] etcd[141]: 2016/04/28 13:27:13 etcd: listening for peers on http://localhost:7001
[    0.463328] etcd[141]: 2016/04/28 13:27:13 etcd: listening for client requests on http://localhost:2379
[    0.463522] etcd[141]: 2016/04/28 13:27:13 etcd: listening for client requests on http://localhost:4001
[    0.463719] etcd[141]: 2016/04/28 13:27:13 etcdserver: datadir is valid for the 2.0.1 format
[    0.463970] etcd[141]: 2016/04/28 13:27:13 etcdserver: name = default
[    0.464177] etcd[141]: 2016/04/28 13:27:13 etcdserver: data dir = default.etcd
[    0.464376] etcd[141]: 2016/04/28 13:27:13 etcdserver: member dir = default.etcd/member
[    0.464565] etcd[141]: 2016/04/28 13:27:13 etcdserver: heartbeat = 100ms
[    0.464773] etcd[141]: 2016/04/28 13:27:13 etcdserver: election = 1000ms
[    0.464957] etcd[141]: 2016/04/28 13:27:13 etcdserver: snapshot count = 10000
[    0.465158] etcd[141]: 2016/04/28 13:27:13 etcdserver: advertise client URLs = http://localhost:2379,http://localhost:4001
[    0.465352] etcd[141]: 2016/04/28 13:27:13 etcdserver: initial advertise peer URLs = http://localhost:2380,http://localhost:7001
[    0.465553] etcd[141]: 2016/04/28 13:27:13 etcdserver: initial cluster = default=http://localhost:2380,default=http://localhost:7001
[    0.475686] etcd[141]: 2016/04/28 13:27:13 etcdserver: start member ce2a822cea30bfca in cluster 7e27652122e8b2ae
[    0.476605] etcd[141]: 2016/04/28 13:27:13 raft: ce2a822cea30bfca became follower at term 0
[    0.476883] etcd[141]: 2016/04/28 13:27:13 raft: newRaft ce2a822cea30bfca [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
[    0.477169] etcd[141]: 2016/04/28 13:27:13 raft: ce2a822cea30bfca became follower at term 1
[    0.492526] etcd[141]: 2016/04/28 13:27:13 etcdserver: added local member ce2a822cea30bfca [http://localhost:2380 http://localhost:7001] to cluster 7e27652122e8b2ae
[    1.777971] etcd[141]: 2016/04/28 13:27:15 raft: ce2a822cea30bfca is starting a new election at term 1
[    1.779652] etcd[141]: 2016/04/28 13:27:15 raft: ce2a822cea30bfca became candidate at term 2
[    1.780484] etcd[141]: 2016/04/28 13:27:15 raft: ce2a822cea30bfca received vote from ce2a822cea30bfca at term 2
[    1.781164] etcd[141]: 2016/04/28 13:27:15 raft: ce2a822cea30bfca became leader at term 2
[    1.781717] etcd[141]: 2016/04/28 13:27:15 raft.node: ce2a822cea30bfca elected leader ce2a822cea30bfca at term 2
[    1.797137] etcd[141]: 2016/04/28 13:27:15 etcdserver: published {Name:default ClientURLs:[http://localhost:2379 http://localhost:4001]} to cluster 7e27652122e8b2ae

Are you sure you don't have a corrupt/wrongly generated stage1?

I could repro locally, and turns out blowing away the build environment is necessary between builds.
So not a regression in the KVM stage1, but a serious problem in the build system.

False alarm. Problem lies in buildsystem. Will be described in more details by @mstachowski ;)
hint: rm -rf ./build-*  resolved this problem.

Are we keeping this open to track the build system problems?

It looks like one of stamps(which is responsible for tracking changes inside flavor aci) has been deleted and another(which is responsible for tracking changes in systemd binaries) is not. I didn't diagnose it, because there is simple workarond for this(mentioned by @jellonek rm -rf ./build-*)
@iaguis we should keep this open(because it's build system bug), but IMO it's not P1

Moving to P2 then :)

Ok, so whole issue screams for rename ;)

What is the issue exactly? No /usr/lib/systemd/systemd in the stage1 image? How can I reproduce it?

@krnowak not sure, it turns up intermittently when re-building without blowing away the build directly. Maybe just try a few consecutive builds of the kvm stage1? or one failed build followed by one build that should succeed

I can't remember exact procedure to reproduce this bug, but i'm pretty sure that it was connected with rerunning ./configure and make without make clean.


Generated field of an View DataClass is not nullable

I have this table and have filled it with some data:
CREATE TABLE IF NOT EXISTS foobar
(
    foo TEXT,
    bar TEXT
);

INSERT INTO foobar (foo, bar) VALUES ('foo 1', 'bar 2');
INSERT INTO foobar (foo, bar) VALUES ('foo 2', NULL);

A select with concatenation has this result:
SELECT foo, bar, foo || ' ' || bar FROM foobar;

foo
bar
foo || ' ' || bar

foo 1
bar 2
foo 1 bar 2

foo 2
NULL
NULL

Now when I use this select statement to create a view in a drift file, the created field foobar must be nullable, but it isn't:
CREATE VIEW IF NOT EXISTS foobarview AS
SELECT foo, bar, foo || ' ' || bar as foobar FROM foobar;

class FoobarviewData extends DataClass {
  final String? foo;
  final String? bar;
  final String foobar;
  FoobarviewData({this.foo, this.bar, required this.foobar});

...

Thanks for the report and the very helpful repro! I've fixed this in 9c80fb047b579eca0811be0d81bf78bc2da280f3.


go/types: wrong line numbers in errors for constant overflows involving iota

go test -run Check$ -files $GOROOT/test/fixedbugs/issue8183.go --errlist

produces
    check_test.go:267: .../issue8183.go:12:12: cannot convert iota + 253 (untyped int constant 256) to byte
    check_test.go:267: .../issue8183.go:19:11: invalid array length 1 - iota (untyped int constant -1)
    check_test.go:267: .../issue8183.go:19:11: invalid array length 1 - iota (untyped int constant -2)

yet the correct line numbers are 15, 21, and 22.

go/types doesn't make a copy of the syntax trees for "copied" constant expressions in grouped constant declarations; it evaluates them with the correct iota value but at their original position. As a result we get the wrong line numbers in the result. I'm amazed this has not come up in the last few years of go/types use.
One possibility might be to remember a line correction delta when we evaluate an expression containing an iota. The line correction delta is the iota value.

Thanks for investigating this @griesemer.  I'm not sure I understand your point about using the iota value to compute correction delta, since there need not be any correlation between iota value and line number, for example https://play.golang.org/p/FQfRsDMMv8v.

@findleyr Yes, you're correct - I've realized that last night as well. Turns out we just need to remember the position of the actual constant being initialized; in fact we need that position anyway to be able to position the error correctly. In short: Whenever we evaluate a constant initialization expression that is "inherited" from (shared with) other constants, we remember the position of the constant identifier. If there's an error in the initialization expression, we use the position of the constant identifier (this is stored in the current Checker context) for the error location (and we can still point to the original expression as well).


bug: New pipette calibration procedure causes tip collision in version 4.0.0 of Opentrons App

Overview
When following the new pipette calibration procedure in version 4.0.0 of Opentrons App and using the calibration block to calibrate a right-mounted pipette, the calibration steps lead to a tip collision with the calibration block.
Steps to reproduce
Opentrons App version 4.0.0
Using right-mounted P20 and calibration block.
Perform tip-length calibration as instructed (P20 tips positioned in slot 8, calibration block in 1).
Proceed to pipette-offset calibration.
Clicking to continue through pipette-offset calibration moves pipette to slot 1 and lowers pipette without first prompting user to remove calibration block from previous calibration steps resulting in severe tip collision.
Current behavior
Following the onscreen calibration instructions for the right-mounted pipette (placing calibration block in slot 1) and proceeding directly from pipette tip length calibration to pipette offset calibration results in the pipette tip colliding with the calibration block during tip length calibration.
Expected behavior
User should be prompted to remove calibration block from 1 first. Alternatively, calibration block should be placed in a different deck slot (such as 3, which is used for the calibration procedure for the left-mounted pipette.

Closing ticket due to age. If this issue has not been resolved, please do file a new ticket!