text:
Issue with bcrypt

I have an issue with npm bcrypt. I have tried to follow similar issues but seem to be having no luck.
Building Started: /Users/chrishill/dev/tlfbz
Started TaskList: Deploy app 'lf1uk' (linux)
[95.138.190.64] - Uploading bundle
[95.138.190.64] ✔ Uploading bundle: SUCCESS
[95.138.190.64] - Setting up Environment Variables
[95.138.190.64] ✔ Setting up Environment Variables: SUCCESS
[95.138.190.64] - Invoking deployment process
[95.138.190.64] ✘ Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
ypto_lock_cb(int, int, const char*, int)’ defined but not used [-Wunused-function]
 static void crypto_lock_cb(int mode, int n, const char* file, int line) {
             ^
../src/bcrypt_node.cc:105:22: warning: ‘long unsigned int crypto_id_cb()’ defined but not used [-Wunused-function]
 static unsigned long crypto_id_cb(void) {
                      ^
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 3.13.0-45-generic
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/lf1uk/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
-----------------------------------STDOUT-----------------------------------
=> re-installing binary npm module 'bcrypt' of package 'npm-bcrypt'
make: Entering directory `/opt/lf1uk/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
make: Leaving directory `/opt/lf1uk/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build'
----------------------------------------------------------------------------

Meteor is at the latest version and I have asked mup to use node version 0.10.33 and also tried 0.10.36 due to the Meteor change logs.
Thanks!

Same issue here.
I removed the accounts-password package and the error message changed to:
-----------------------------------STDERR-----------------------------------
	r/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
	gyp ERR! cwd /opt/mergers/tmp/bundle/programs/server/node_modules/fibers
	gyp ERR! node -v v0.12.0
	gyp ERR! node-gyp -v v1.0.2
	gyp ERR! not ok
	Build failed
	npm ERR! Linux 3.13.0-43-generic
	npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
	npm ERR! node v0.12.0
	npm ERR! npm  v2.5.1
	npm ERR! code ELIFECYCLE

	npm ERR! fibers@1.0.1 install: `node ./build.js`
	npm ERR! Exit status 1
	npm ERR!
	npm ERR! Failed at the fibers@1.0.1 install script 'node ./build.js'.
	npm ERR! This is most likely a problem with the fibers package,
	npm ERR! not with npm itself.
	npm ERR! Tell the author that this fails on your system:
	npm ERR!     node ./build.js
	npm ERR! You can get their info via:
	npm ERR!     npm owner ls fibers
	npm ERR! There is likely additional logging output above.

	npm ERR! Please include the following file with any support request:
	npm ERR!     /opt/mergers/tmp/bundle/programs/server/npm-debug.log
	-----------------------------------STDOUT-----------------------------------

	> fibers@1.0.1 install /opt/mergers/tmp/bundle/programs/server/node_modules/fibers
	> node ./build.js

	make: Entering directory `/opt/mergers/tmp/bundle/programs/server/node_modules/fibers/build'
	  CXX(target) Release/obj.target/fibers/src/fibers.o
	make: Leaving directory `/opt/mergers/tmp/bundle/programs/server/node_modules/fibers/build'
	----------------------------------------------------------------------------

This is an issue with node 0.12
Try to use 0.10.x
Configure it in mup.json and setup again.
On 2015 මාර්තු 5, බ්‍රහස් at පෙ.ව. 11.39 Joshua Leasure <
notifications@github.com> wrote:

Same issue here.
I removed the accounts-password package and the error message changed to:
-----------------------------------STDERR-----------------------------------
r/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/mergers/tmp/bundle/programs/server/node_modules/fibers
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
Build failed
npm ERR! Linux 3.13.0-43-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! fibers@1.0.1 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.1 install script 'node ./build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls fibers
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/mergers/tmp/bundle/programs/server/npm-debug.log
-----------------------------------STDOUT-----------------------------------

> fibers@1.0.1 install /opt/mergers/tmp/bundle/programs/server/node_modules/fibers
> node ./build.js

make: Entering directory `/opt/mergers/tmp/bundle/programs/server/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
make: Leaving directory `/opt/mergers/tmp/bundle/programs/server/node_modules/fibers/build'
----------------------------------------------------------------------------

—
Reply to this email directly or view it on GitHub
https://github.com/arunoda/meteor-up/issues/299#issuecomment-77312251.

node -v showed me 0.10.36
I removed node completely on the server and allowed mup to install 0.10.33 and the problem seems to be solved now.

I am also using node 0.10.33 and I have tried 0.10.36 My problem is not solved. I have also removed node from the server and allowed mup to install it

@chrishill627 are you still the above error with 0.12.0 issue on it.
May be try to get a fresh servers without installing anything or try to remove node completely.
Seems like 0.12.0 is still there.

Hi arunoda, Ok I will get a fresh one and reply soon.

Hi Arunoda.
I am up and running now in terms of the deploy errors. I have it opening now but I am getting Spacebars is not defined and process is not defined, obviously nothing is showing up in the page.
Is there another issue to reference? I think this one can be closed but I would like to get past the next one!

I am using cron jobs in my app and they are logging to the server when I look with mup logs just have a completely blanc screen and those errors

Just to add I am also getting data in Kadira just cannot see anything but blanc screen.

Seems like something in your client side package. Just try to debug it
locally by running meteor --production
On 2015 මාර්තු 5, බ්‍රහස් at ප.ව. 9.11 Chris Hill notifications@github.com
wrote:

Just to add I am also getting data in Kadira just cannot see anything but
blanc screen.
—
Reply to this email directly or view it on GitHub
https://github.com/arunoda/meteor-up/issues/299#issuecomment-77386412.

Awesome, thanks. Unsupported package meteor-stubs was not causing an issue locally but did in production.

Been really helpful thanks

authors: RevMen arunoda chrishill627


text:
menifest.json 中 permissions 不支持如下内容

"http://*/*",
"https://*/*"

相关 Issue ：https://github.com/arvinxx/umi-plugin-extensions/issues/18

相关 Issue ：https://github.com/arvinxx/umi-plugin-extensions/issues/18

template 会自动升级 umi-plugin-extensions 依赖，这个 issue 先关了

template 会自动升级 umi-plugin-extensions 依赖，这个 issue 先关了

source: gharchive/issue

authors: arvinxx pyfs

repo: arvinxx/umi-chrome-extensions-template

license: MIT

license_type: permissive

license_source: github-api


text:
Improve Docs for predictive functions

Description

[x] Remove Thebe Functionality #463.
[ ] Improve the docs to handle optional dependency of bambi and pymc #464 and #462

Checklist

[x] Code style is correct (follows pylint and black guidelines)
[x] Includes new or updated tests to cover the new feature
[x] New features are properly documented (with an example if appropriate)
[x]  Includes a sample plot to visually illustrate the changes (only for plot-related functions)
[x] Widget states have been properly saved (only for notebooks with widgets) see for details.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.35%. Comparing base (cd776ae) to head (4db5f13).
Report is 23 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #468      +/-   ##
==========================================
+ Coverage   80.74%   82.35%   +1.61%
==========================================
  Files          92       96       +4
  Lines        7556     7896     +340
==========================================
+ Hits         6101     6503     +402
+ Misses       1455     1393      -62

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

You should also remove the thebe related dependencies and configuration:

https://github.com/arviz-devs/preliz/blob/main/docs/conf.py#L50
https://github.com/arviz-devs/preliz/blob/main/docs/conf.py#L60
https://github.com/arviz-devs/preliz/blob/main/requirements-docs.txt#L4

Oops, I merge this by mistake. You can modify the rest in a separated PR

source: gharchive/pull-request

authors: OriolAbril aloctavodia codecov-commenter rohanbabbar04

repo: arviz-devs/preliz


text:
getting ErrorException Undefined variable: pollMillis

Hi, I've followed the Readme file but it looks like I can't use the component. I'm on Laravel 8.13
as far as I understand this should be enough:
<?php

namespace App\Http\Livewire;
use Asantibanez\LivewireCalendar\LivewireCalendar;
use Illuminate\Support\Collection;
use Carbon\Carbon;

class AppointmentsCalendar extends LivewireCalendar
{

    public function events() : Collection
    {

        return collect([
            [
                'id' => 1,
                'title' => 'Breakfast',
                'description' => 'Pancakes! 🥞',
                'date' => Carbon::today(),
            ],
            [
                'id' => 2,
                'title' => 'Meeting with Pamela',
                'description' => 'Work stuff',
                'date' => Carbon::tomorrow(),
            ],
        ]);

    }
}

I'm then calling
<livewire:appointments-calendar />
on my view, but I receive this error
ErrorException
Undefined variable: pollMillis (View: [...]/vendor/asantibanez/livewire-calendar/resources/views/calendar.blade.php)

any idea what might be wrong?

Hi @sathio
Please try reinstalling the package and removing any previously exported views. Polling was added afterwards and may be interfering with your current setup.

Hi @sathio
Please try reinstalling the package and removing any previously exported views. Polling was added afterwards and may be interfering with your current setup.

authors: asantibanez sathio

repo: asantibanez/livewire-calendar


text:
Pass in correct start and end times

@birdage @FBRTMaka  please review

nice!

authors: Bobfrat FBRTMaka

repo: asascience-open/ooi-ui

license: mit

license_source: bigquery


text:
Change enum to lowercase

Make it more swift.

Thanks, but this has already been addressed.

authors: aschuch chinsyo

repo: aschuch/StatefulViewController


text:
Repo files is not available

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

General infomration
Repo files is not available
Prerequisites

[x] Are you running the latest version?

Description
https://johtru.com/repo/repo_files is not accessible.
[Description of the bug or feature]
Steps to Reproduce

Trying to install Netflix from repository
[Second Step]
[and so on...]

Expected behavior: [What you expected to happen]
Netflix added to osmc
Actual behavior: [What actually happened]
https://johtru.com/repo/repo_files is not accessible.
Context (Environment)
OSMC
Installation

[ ] I installed the plugin via zip from the Releases page
[x] I´m using the Netflix Repo
[ ] I´m using a different source (Please tell which)

Operating System

[x] Linux (x86/x64)
[ ] OSX (x86/x64)
[ ] Windows (x86/x64)
[ ] Linux (ARM)
[ ] Android

Additional informatin on the environment
[Descripe your environment a bit more detailed, are you using LibreElec f.e.]
Debug log
[Please include a link to your debug log (use something like http://sprunge.us/) or similar, please do not paste]
Other information
[e.g. detailed explanation, related issues, suggestions how to fix, links for us to have context, etc.]
Screenshots
[Please add a screenshot if that helps understanding your problem]
[You can erase any parts of this template not applicable to your Issue.]

Same here with OSMC & kodi 18.2 RC1

Same for me - kodi 18.2

The same for me too.
Raspberry pi 2
LibreELEC 9.0.1
Kodi 18.1

"Could not connect to repository".
RPi 2.
Raspbian stretch (April 2019).
Kodi 18.2

Same here.... :'(

Same here. Page is unreachable

Guys, for your info, I'm using this one: https://github.com/CastagnaIT/plugin.video.netflix and that works perfectly.
Cheers

Is it possible to edit the repro file to use that adress instead?

Is it possible to edit the repro file to use that adress instead?

Wouldn't think so; it's a fork and a"more" advanced one apparently.

I tested CastagnaIT fork on almost every Kodi 18.2 system I have (Debian, RPI2 OSMC, RPI2 LibreELEC, Mecool M8S Pro L) and it works fine so I changed everything to this repo.

Thank U. The fork works great :)
https://github.com/CastagnaIT/plugin.video.netflix

I tried CastagnaIT and I could not go back to where I was in a movie/serie and I was not able to move to a position in the movie so If I watch 1 hour of 2, then turn off the movie to see something else I have to watch the first hour again or set a timer for 1 hour and wait so not an option for me.

Thank U. The fork works great :)
https://github.com/CastagnaIT/plugin.video.netflix

I tried CastagnaIT and I could not go back to where I was in a movie/serie and I was not able to move to a position in the movie so If I watch 1 hour of 2, then turn off the movie to see something else I have to watch the first hour again or set a timer for 1 hour and wait so not an option for me.

Can someone in the know please comment on the CastagnaIT fork and its role?  Their github page says "The initial project is on the repository of asciidisco no longer maintained but used as a reference."  - Is this accurate information? It looks like people are still contributing to this project.  My preference is to treat the asciidisco repo as the canonical one until the maintainers state that it is no longer being maintained.

Trying to install from your repository.netflix-1.0.1.zip but the download just hangs at 0%. @asciidisco?

authors: chaoscommander cryonicblue dfdario gregleb ivydree jairoraiol jgaudet mishka81 t4rif4ri thodoris85


text:
Paste image/screenshot from Windows Clipboard.

The only feature of MS Word that my end users of AsciidocFX complain about is the inability to do the old alt+printscr to capture the screen image and then paste it into Word.
I am thinking of a feature that allows for an image file or clipboard image to be pasted into AsciidocFX.
On paste (ctrl+v), the image would be turned into a png file that would be saved into the default images directory.  At the cursor position, there would be an image reference similar to what we see now when we drag an image out of the file tree and into the editor.
This would change how many people see the ease of use and adoption of text based document formats like AsciiDoc.

:+1: I think this is a key feature towards the goal of an "IDE for writers". Specifically, it addresses a workflow. Instead of making the author copy an image to the images directory, then typing (or auto-completing) that image path in an image macro, all that work is hidden behind a drag-and-drop operation. We capture the author's intent and can automate the steps that the author would otherwise have to do.

Hi @bwklein @mojavelinux , it is a good feature request. I will look at that, it is in the queue. Thanks.

@rahmanusta Please see the Atom Package that I forked and converted over to support AsciiDoc.  This is some of the functionality that would be nice to have in AsciidocFX.
https://atom.io/packages/asciidoc-image-helper

Please try version 1.4.6 https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.4.6
I now close this issue, if you think your issue is not fixed, please don't hesitate to reopen or comment the issue.

authors: bwklein mojavelinux rahmanusta

repo: asciidocfx/AsciidocFX


text:
Add Cell.getRawText() and ListItem.getRawText() to get unsubstituted …

…text of table cells and list items.
This PR goes for the first point in https://github.com/asciidoctor/asciidoctorj/issues/513#issuecomment-247933943 :
Add accessors to get the raw, unsubstituted text from a Table Cell or a ListItem.
The methods are each called getRawText() and they get the field @text of the associated nodes instead of invoking the accessor method text on the respective Ruby nodes, as these apply the substitutions.
I am not really happy with the naming of the methods yet, as we have String getContent() and List<String> getLines() on Blocks, but String getText() and String getRawText() on Cells and ListItems.
But the thing that we're even able now to directly access members of the Ruby objects is already a great thing! This approach wouldn't work on 1.5.x without reimplementing all the functionality in the Java nodes in the same way as it works in the Ruby nodes.

I agree we need to think about the naming. That's one of the reasons I haven't added these methods in core yet. I'd prefer either getSourceText or just getSource. I don't like the term "raw".

Absolutely right.
I renamed getRawText() to getSource().
Then the methods also align with their pendants in org.asciidoctor.ast.Block.
Wonder if it would make sense to put an interface on it containing getContent() and getSource()?

Those methods probably belong on ContentNode (though we may still have some children that don't yet implement them).

Will merge it now then.
Regarding where to put those methods: Don't these methods only make sense for nodes that are leafs in the AST? Sections or List don't have an own source or content, do they?
This only under the premise that it isn't defined as the source or content collected from the contained subtree.
This would also create problems with the corresponding setSource() methods.

That's a good point. They do only apply for leafs at the moment. Though it's reasonable to assume, I suppose, that all nodes should be able to access their source. It's a bit of a fuzzy area in the AST right now.

authors: mojavelinux robertpanzer

repo: asciidoctor/asciidoctorj


text:
Allowing only plugins to run, and allowing options for them

This is a prototype solution for issue https://github.com/ascopes/protobuf-maven-plugin/issues/168.
I would prefer a more cleaned up solution, especially regarding the plugin options.

Thanks for raising this! I've added some comments on here and on the issue... like you say,
I think it is worth making sure we've covered all the cases we need so we don't have to come back and change this in a breaking way in the future. Will look forward to hearing your thoughts.

Just a side note that I've had to make some structural changes to the repo to keep versions more consistent between tests... so this will need to be rebased (sorry to cause hassle!)
Another change that has been made on the main today since you raised this is that I've changed how the ArgLineBuilder class works a bit. Originally this was to make it easier to test some behaviours and how they differ based on argline ordering, but it has the side effect that it introduces an internal Target interface in that class that can now hold stuff like additional parameters to inject. That means we can probably extend that to achieve a similar effect if we decide to go ahead with this solution.

I've been thinking about this and I think that in the long run, it is going to be more beneficial to make a breaking change for this so that the plugin attributes in the config can take an options parameter each. This allows directing options to individual plugins rather than all plugins.
This would be breaking purely on the basis that I'd have to slightly change how URL and Path based plugins get provided in config.
I have some code locally that I can push later once I have tidied it up a bit, I will run that past you once it is ready.
Going to close this for now as there are some other architectural changes that I will likely include in this solution to keep stuff easy to test going forwards.
Thanks for taking the time to put this together though, and thanks for your patience, it is greatly appreciated!

@ascopes thanks! For that solution, could you also add an option to not fail of the plugin binary is not found? That was another angle that just came up yesterday for me. The current code supports this for missing proto sources, but not missing plugins. (I have optional plugins).

Will see what I can do, are you able to raise a separate issue for it?

Done -- https://github.com/ascopes/protobuf-maven-plugin/issues/182

authors: anthonyalayo ascopes

repo: ascopes/protobuf-maven-plugin


text:
Remove jQuery dependency?

bigSlide works by adding some inline CSS to an element. This is pretty simple and could be accomplished without jQuery and still support IE8+.

:+1:


text:
Right side is not working if left side is also existing

I want to implement left & right side nav similar to http://www.vouchercodes.co.uk/ but right side nav is not working. Because style of .wrap has left: 0px (left side causes it).
To solve it: set left: auto when toggling right side

To solve it: set left: auto when toggling right side

Does this resolve the issue? If so, does this just need to be documented?
Thanks!

Hi ascott1,
Yes, I solved it by using beforeOpen. Full code is
        $('.left-menu-link').bigSlide({
                                          menu: '#left-menu',
                                          side: 'left'
                                      });
        $('.right-menu-link').bigSlide({
                                           menu      : '#right-menu',
                                           side      : 'right',
                                           beforeOpen: function () {
                                               $('.push').css('left', 'auto');
                                           }
                                       });

I think the plugin should take care the case when both 2 sides are existing.
Anyway, thank you for your great plugin.

I think the plugin should take care the case when both 2 sides are existing.

I agree! Thank you for documenting your fix in the meantime.


text:
Error While Attempting Basic Python Example

Hello,
I have reviewed the documentation but haven't found a clear way to use it in Python. The task I would like to accomplish is to perform simple insert and search queries.
I attempted the following approach, but unfortunately, the vss_search function didn't work for me.

Code
import sqlite_vss
import sqlite3
import json

# Dummy data. just for example
text = "hello world"
embeddings = [0.1, 0.2, 0.3]
embeddings_to_search = [0.2, 0.3, 0.4]

# Initiate sqlite with sqlite-vss
conn = sqlite3.connect('db.sqlite')
conn.enable_load_extension(True)
cur = conn.cursor()
sqlite_vss.load(conn)

# Create virtual table with text_embedding column which has vectors of size 3
cur.executescript("""
    CREATE VIRTUAL TABLE IF NOT EXISTS vss_post USING vss0(
        embeddings(3)
    );
    CREATE TABLE IF NOT EXISTS post(
        id INTEGER PRIMARY KEY,
        text TEXT
    );
""")

# Insert into data table example data and get rowid
cur.execute("""
    INSERT INTO post(text)
    VALUES (?)
""", (text,))
rowid = cur.lastrowid

# Insert actual embeddings, associate it with rowid of data table
cur.execute("""
    INSERT INTO vss_post(
        rowid, embeddings
    )
    VALUES (?, ?)
""", (rowid, json.dumps(embeddings)))

# Search in virtual table to get rowid which we will use to get the data assicated in rowid
cur.execute("""
SELECT rowid
FROM vss_post
WHERE vss_search(
    embeddings,
    vss_search_params(?, 1)
)
LIMIT 1
""", (json.dumps(embeddings),))

# We should get here the row ID which is similar to vectors_to_search value
result = cur.fetchone()
print(result)

# Close database and cursor
cur.close()
conn.close()

Error
terminate called after throwing an instance of 'faiss::FaissException'
  what():  Error in virtual void faiss::IndexFlat::search(faiss::idx_t, const float*, faiss::idx_t, float*, faiss::idx_t*, const faiss::SearchParameters*) const at /home/runner/work/sqlite-vss/sqlite-vss/vendor/faiss/faiss/IndexFlat.cpp:34: Error: 'k > 0' failed
Aborted

I believe the issue is that the virtual table is empty, as I inadvertently omitted the use of db.commit() after inserting both the embeddings and the post text.


text:
How to add Image and label to collectionview cell

I want to add image and label to collection view please help us to add label and image to collection cell

It's just like any other cell – here is a free and in-depth resource that will help you.

repo: ashfurrow/AFTabledCollectionView


text:
🛑 Website (ashhhleyyy.dev) is down

In f5af721, Website (ashhhleyyy.dev) (https://ashhhleyyy.dev/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Website (ashhhleyyy.dev) is back up in 26d9a59.

repo: ashhhleyyy/status-page


text:
🛑 Nucleoid website is down

In f2d3e18, Nucleoid website (https://nucleoid.xyz/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nucleoid website is back up in 29e0e67.


text:
ROS version?

Hi @ashuang ,
We use procman on our bots here in Oxford. But have shifted to ROS otherwise.
We are planning to rewrite the communications part of procman to use ROS.
Do you envisage any major problems with shifting to ROS? (Beyond the roscore being detected)
Ideally it could be an "official" fork, as procman is pretty feature complete.
(FYI @mcamurri)

Sounds great. Porting for ROS compatibility seems pretty feasible. I'd be happy to discuss ways that it could be merged into master so that you don't need to maintain a separate fork, but whatever works for you.

I'm glad to see this program has been ported to C++, this would make the porting to ROS easier for me. I'll have a look at the code from this repository and let you know what I think it's best.
Inevitably, the new repository would depend on catkin and roscpp/rospy.

A small FYI, we have created a ROS version of Procman. It's fully functional in the previous manner of lcm-procman
https://github.com/ori-drs/procman_ros
we have made minimal modifications so far. However we may need to modify the communications further to support the situation of PCs become disconnected from the sheriff. So it seems it might be difficult to keep it compatible with this repo.
FYI: @heuristicus

authors: ashuang mauricefallon mcamurri

repo: ashuang/procman


text:
gitignore

changes gitignore

gitignore backend

repo: askaaqib/netbrowsee


text:
SVGs from Assets folder don't render in Image

Renders a blank space
<Image
  source="ms-appx:///Assets/check-circle-fill.svg"
  width={20}
  height={20}
/>

Renders correctly
<Image
  source="https://unpkg.com/bootstrap-icons@1.5.0/icons/check-circle-fill.svg"
  width={20}
  height={20}
/>

(For reference, PNGs from Assets render correctly.)

derp. Looks like I just needed to add the SVG file to the Assets folder in Visual Studio.

repo: asklar/react-native-xaml


text:
Update DEMA.js

In line 5 a semicolon is added

:+1:

authors: Sergey-Chudov askmike

repo: askmike/gekko


text:
[WIP] handle binance insufficient funds because of partial fills

Binance does not provide partial fill information on cancel, as such Gekko might not be aware a partial fill happened between the last order check and the cancel. See #2405 and #2308.
This workaround catches situations where this occurrence results in a "insufficient funds" error by catching it and manually the checking the order which was last cancelled.
This branch needs more testing, please help out so we can get this in Gekko quicker! If you are not sure how read this: https://gekko.wizb.it/docs/installation/updating_gekko.html#Updating-the-develop-branch and replace git checkout develop with git checkout hotfix/binance-insufficient-funds

@askmike Encountered an insufficient balance trade today, but it looks like your fix worked and it adjusted accordingly and went on to sell in the end.
Current market: bull
      Percent change predicted: -0.6438373169538809
      Current price: 0.023167
      Last buy price: 0.022895
      Current position: long
2018-08-18 04:59:10 (INFO):     Trader Received advice to go short. Selling  ZEC
2018-08-18 04:59:10 (DEBUG):    Creating order to sell 12.567788 ZEC
2018-08-18 04:59:16 (DEBUG):    [ORDER] statusChange: SUBMITTED
2018-08-18 04:59:16 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 04:59:19 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 04:59:19 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 04:59:20 (DEBUG):    Processing 8 new trades. From 2018-08-18 02:59:10 UTC to 2018-08-18 02:59:19 UTC. (a few seconds)
2018-08-18T02:59:20.894Z '[GB/insufficientFunds] on limitedCancelConfirmation market:'
2018-08-18T02:59:23.272Z '[GB/insufficientFunds] found a partial fill of' 3.851
2018-08-18 04:59:25 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 04:59:29 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 04:59:30 (DEBUG):    Processing 5 new trades. From 2018-08-18 02:59:19 UTC to 2018-08-18 02:59:23 UTC. (a few seconds)
2018-08-18 04:59:39 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 04:59:40 (DEBUG):    No new trades.
2018-08-18 04:59:42 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 04:59:43 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 04:59:49 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 04:59:50 (DEBUG):    No new trades.
2018-08-18 04:59:54 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 04:59:55 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 04:59:58 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 04:59:59 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 04:59:59 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:00 (DEBUG):    Processing 2 new trades. From 2018-08-18 02:59:51 UTC to 2018-08-18 02:59:51 UTC. (a few seconds)
2018-08-18 05:00:02 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:03 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:06 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:07 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:09 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:00:10 (DEBUG):    No new trades.
2018-08-18 05:00:13 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:14 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:16 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:17 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:19 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:00:20 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:00:10 UTC to 2018-08-18 03:00:10 UTC. (a few seconds)
2018-08-18 05:00:20 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:21 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:24 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:26 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:29 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:00:29 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:30 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:30 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:00:22 UTC to 2018-08-18 03:00:22 UTC. (a few seconds)
2018-08-18 05:00:33 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:34 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:37 (DEBUG):    [ORDER] statusChange: MOVING
2018-08-18 05:00:38 (DEBUG):    [ORDER] statusChange: OPEN
2018-08-18 05:00:39 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:00:40 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:00:36 UTC to 2018-08-18 03:00:36 UTC. (a few seconds)
2018-08-18 05:00:49 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:00:50 (DEBUG):    No new trades.
2018-08-18 05:00:59 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:00 (DEBUG):    Processing 6 new trades. From 2018-08-18 03:00:50 UTC to 2018-08-18 03:00:51 UTC. (a few seconds)
2018-08-18 05:01:09 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:10 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:01:07 UTC to 2018-08-18 03:01:07 UTC. (a few seconds)
2018-08-18 05:01:19 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:20 (DEBUG):    No new trades.
2018-08-18 05:01:29 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:30 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:01:26 UTC to 2018-08-18 03:01:26 UTC. (a few seconds)
2018-08-18 05:01:39 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:40 (DEBUG):    Processing 3 new trades. From 2018-08-18 03:01:33 UTC to 2018-08-18 03:01:38 UTC. (a few seconds)
2018-08-18 05:01:49 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:50 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:01:45 UTC to 2018-08-18 03:01:45 UTC. (a few seconds)
2018-08-18 05:01:59 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:00 (DEBUG):    Processing 6 new trades. From 2018-08-18 03:00:50 UTC to 2018-08-18 03:00:51 UTC. (a few seconds)
2018-08-18 05:01:09 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:10 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:01:07 UTC to 2018-08-18 03:01:07 UTC. (a few seconds)
2018-08-18 05:01:19 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:20 (DEBUG):    No new trades.
2018-08-18 05:01:29 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:30 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:01:26 UTC to 2018-08-18 03:01:26 UTC. (a few seconds)
2018-08-18 05:01:39 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:40 (DEBUG):    Processing 3 new trades. From 2018-08-18 03:01:33 UTC to 2018-08-18 03:01:38 UTC. (a few seconds)
2018-08-18 05:01:49 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:01:50 (DEBUG):    Processing 1 new trades. From 2018-08-18 03:01:45 UTC to 2018-08-18 03:01:45 UTC. (a few seconds)
2018-08-18 05:01:59 (DEBUG):    Requested ZEC/BTC trade data from Binance ...
2018-08-18 05:02:00 (DEBUG):    Processing 5 new trades. From 2018-08-18 03:01:50 UTC to 2018-08-18 03:01:59 UTC. (a few seconds)
2018-08-18 05:02:00 (DEBUG):    [ORDER] statusChange: FILLED
2018-08-18 05:02:05 (INFO):     [ORDER] summary: { price: 0.023081514999602138,
  amount: 12.567,
  date: moment("2018-08-18T05:01:59.376"),
  side: 'sell',
  orders: 2,
  fees: { BTC: 0.00029007 },
  feePercent: 0.1 }

@cstegmann awesome, thanks for confirming! My own gekkos don't encounter this for some reason..

authors: askmike cstegmann


text:
Progress Callback for Encrypt/Decrypt

When encrypting/decrypting large buffers, there is no progress report. This results in a poor user experience, so I have added a progress callback for the decryption method I am using. Is there any chance of getting something similar incorporated into asmcrypto? I have tried to keep it efficient, and  it makes very little difference to the overall encryption/decryption time,
In Decrypt_process I added:
:
var progress_step = data.length / 100;
var progress_mark = data.length - progress_step;
:
before "while ( dlen > tlen ) "
:
and then in the loop at the end (inside the loop) I added:
:
if (onprogress && (dlen <= progress_mark)) {
onprogress((data.length - dlen) / data.length);
progress_mark -= progress_step;
}
I also added the additional arguments to that the 'onprogress' callback can be passes into decrypt like this (the encryption is done inside a web worker to avoid blocking the main thread):
var plaintext = asmCrypto.AES_GCM.decrypt(
ciphertext, aes_key, aes_iv, '', 16, function onprogress(p) {
self.postMessage({msg:'onprogress', val:p});
}
).buffer;
Is something like this possible?

You can use the progressive API, documentation of the API will come later.

authors: alippai keean


text:
有没有大佬用过？

说一下如何使用？效果怎样?

目前仅处于能用状态，本项目依赖于appdbg，部分更新还没移过来。


text:
CPUMesh::transform panics if inverting transform fails

The title. In my case this occurs when I transform with a scale matrix where one axis is set to zero. In this example, dist is sometimes zero.
    let dist = to.distance(from);
    let mut cylinder = CPUMesh::cylinder(4);

    cylinder.transform(&Mat4::from_nonuniform_scale(dist, 0.001, 0.001));
   ...

The panic happens here:
https://github.com/asny/three-d/blob/0.10/src/core/cpu_mesh.rs#L87
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value'

I see three options for improvement

Continue to fail fast, but unwrap would be replaced with expect
Fail silently by not transforming the normals or tangents
Return a Result telling whether the transformation was successful

In any case, transform doesn't even need to fail if normal vectors and tangents are not set. I suppose that could be checked before trying to compute the inverse matrix.

Thanks for reporting 👍
I agree that the error handling could be better in this case, so I will return a result and I will also only do the inverse if it is needed, I think they are the better options.
But I'm also curious to know what you expect to happen? The cylinder becomes a line and is not visible when drawing it.

Sounds good
I am in fact using cylinders to draw 3D lines. I'm using three-d to develop a visual debugging tool for my actual program. In my case it doesn't matter if a zero-length line is not visible (or so I think)

That makes sense 👍 Now it returns an error instead of panicking and only if normals or tangents are defined 💪

authors: asny wlinna

repo: asny/three-d


text:
No terminations scheduled problem

Hello, I am facing similar issue which you already close it before #80. However, I am working on it from past few days and I am not able to solve it.
    I0721 19:41:07.985992       1 config.go:82] Successfully validated configs
    I0721 19:41:07.986015       1 main.go:54] Starting kube-monkey with v logging level 5 and local log directory /var/log/kube-monkey
    I0721 19:41:08.011412       1 kubemonkey.go:19] Debug mode detected!
    I0721 19:41:08.011452       1 kubemonkey.go:20] Status Update: Generating next schedule in 300 sec
    I0721 19:46:08.011598       1 schedule.go:64] Status Update: Generating schedule for terminations
    I0721 19:46:08.179514       1 schedule.go:57] Status Update: 0 terminations scheduled today
        ********** Today's schedule **********
    No terminations scheduled
        ********** End of schedule **********
    I0721 19:46:08.179589       1 kubemonkey.go:62] Status Update: Waiting to run scheduled terminations.
    I0721 19:46:08.179603       1 kubemonkey.go:76] Status Update: All terminations done.

Below are my config file for more details:

configmap.yaml
     ---
       apiVersion: v1
       kind: ConfigMap
       metadata:
         name: kube-monkey-config-map
         namespace: kube-system
       data:
         config.toml: |
           [kubemonkey]
           run_hour = 8
           start_hour = 10
           end_hour = 16
           grace period_sec=120
           blacklisted_namespaces = ["kube-system"]
           whitelisted_namespaces=["default"]
           time_zone="Canada/Eastern"
           [debug]
           enabled = true
           schedule_delay=300
           force_should_kill = true
           schedule_immediate_kill = true

deployment.yaml
     ---
       apiVersion: apps/v1
       kind: Deployment
       metadata:
         name: kube-monkey
         namespace: kube-system
       spec:
         replicas: 1
         selector:
           matchLabels:
             app: kube-monkey
         template:
           metadata:
             labels:
               app: kube-monkey
           spec:
             serviceAccount:default
             serviceAccountName:default
             containers:
               -  name: kube-monkey
                  command:
                    - "/kube-monkey"
                  args: ["-v=5", "-log_dir=/var/log/kube-monkey"]
                  image: ayushsobti/kube-monkey:v0.3.0
                  env:
                    - name: KUBE_MONKEY_ID
                      value: CLUSTER_A
                  volumeMounts:
                    - name: config-volume
                      mountPath: "/etc/kube-monkey"
             volumes:
               - name: config-volume
                 configMap:
                   name: kube-monkey-config-map

docker-registry yaml(Victim application yaml)
       apiVersion: apps.openshift.io/v1
       kind: DeploymentConfig
       metadata:
         creationTimestamp: '2021-07-14T18:09:09Z'
         generation: 6
         labels:
           docker-registry: default
           kube-monkey/enabled: enabled
           kube-monkey/identifier: docker-registry
           kube-monkey/kill-mode: fixed
           kube-monkey/kill-value: '1'
           kube-monkey/mtbf: '1'
         name: docker-registry
         namespace: default
         resourceVersion: '313891'
         selfLink: >-
           /apis/apps.openshift.io/v1/namespaces/default/deploymentconfigs/docker-registry
         uid: 9604c68c-e4ce-11eb-bd40-08002774d158
       spec:
         replicas: 3
         revisionHistoryLimit: 10
         selector:
           docker-registry: default
         strategy:
           activeDeadlineSeconds: 21600
           resources: {}
           rollingParams:
             intervalSeconds: 1
             maxSurge: 25%
             maxUnavailable: 25%
             timeoutSeconds: 600
             updatePeriodSeconds: 1
           type: Rolling
         template:
           metadata:
             creationTimestamp: null
             labels:
               docker-registry: default
               kube-monkey/enabled: enabled
               kube-monkey/identifier: docker-registry
               kube-monkey/kill-mode: fixed
               kube-monkey/kill-value: '1'
               kube-monkey/mtbf: '1'
           spec:
             containers:
               - env:
                   - name: REGISTRY_HTTP_ADDR
                     value: ':5000'
                   - name: REGISTRY_HTTP_NET
                     value: tcp
                   - name: REGISTRY_HTTP_SECRET
                     value: t84he+iqXzoG4l3QNS4Y02m4TxV2P7Ww53k/BvoNZKU=
                   - name: REGISTRY_MIDDLEWARE_REPOSITORY_OPENSHIFT_ENFORCEQUOTA
                     value: 'false'
                 image: 'openshift/origin-docker-registry:v3.11.0'
                 imagePullPolicy: IfNotPresent
                 livenessProbe:
                   failureThreshold: 3
                   httpGet:
                     path: /healthz
                     port: 5000
                     scheme: HTTP
                   initialDelaySeconds: 10
                   periodSeconds: 10
                   successThreshold: 1
                   timeoutSeconds: 5
                 name: registry
                 ports:
                   - containerPort: 5000
                     protocol: TCP
                 readinessProbe:
                   failureThreshold: 3
                   httpGet:
                     path: /healthz
                     port: 5000
                     scheme: HTTP
                   periodSeconds: 10
                   successThreshold: 1
                   timeoutSeconds: 5
                 resources:
                   requests:
                     cpu: 100m
                     memory: 256Mi
                 securityContext:
                   privileged: true
                 terminationMessagePath: /dev/termination-log
                 terminationMessagePolicy: File
                 volumeMounts:
                   - mountPath: /registry
                     name: registry-storage
             dnsPolicy: ClusterFirst
             restartPolicy: Always
             schedulerName: default-scheduler
             securityContext: {}
             serviceAccount: registry
             serviceAccountName: registry
             terminationGracePeriodSeconds: 30
             volumes:
               - hostPath:
                   path: /var/lib/minishift/base/openshift.local.pv/registry
                   type: ''
                 name: registry-storage
         test: false
         triggers:
           - type: ConfigChange
       status:
         availableReplicas: 3
         conditions:
           - lastTransitionTime: '2021-07-20T20:07:16Z'
             lastUpdateTime: '2021-07-20T20:07:16Z'
             message: Deployment config has minimum availability.
             status: 'True'
             type: Available
           - lastTransitionTime: '2021-07-20T21:01:15Z'
             lastUpdateTime: '2021-07-20T21:01:18Z'
             message: replication controller "docker-registry-4" successfully rolled out
             reason: NewReplicationControllerAvailable
             status: 'True'
             type: Progressing
         details:
           causes:
             - type: ConfigChange
           message: config change
         latestVersion: 4
         observedGeneration: 6
         readyReplicas: 3
         replicas: 3
         unavailableReplicas: 0
         updatedReplicas: 3

I have also tried with same configmap.yaml that Kube-monkey repository has but hit the wall.
I have deploy Kube-monkey on OCP 4. It is using Kubernetes Version 1.19.0.
Note: I have also tried same thing with OpenShift 3.11.
Could anyone please help me with this problem ?

Hi @shreya8887! I'm not familiar with openshift so I'm not sure if I'll be able to help much.
But you can see here that kube-monkey only targets apps/v1 Deployments but in your case you are using a apps.openshift.io/v1 DeploymentConfig.
Does that create a regular deployment behind the scenes? And if so, does it carry over the labels?

It looks like someone tried to solve this before and that it requires code changes: https://github.com/faust64/kube-monkey/commit/6b9956dc6157b05387c0b1e5c569aa95e6903310

repo: asobti/kube-monkey


text:
filters update

Fixes  #11011 Fixes #12363
Internal review URL

@serpent5 please review
To review the doc build

download this DB file
unzip
view HTML file in FF (Fire Fox). It best to view the doc with the widest window that has no left or right TOC (Table  of contents)

@Rick-Anderson As you can see, I've made a start on reviewing this. I'll stop where I am right now so you can just let me know if this is the kind of feedback you're after. I can pick it up again tomorrow.

@serpent5  This is really great feedback, keep it coming.

I'm in the process of reviewing this right now, but I just want to make a higher-level suggestion in case it's useful and can be worked towards before I manage to finish reviewing what is a larger-than-I-ever-truly-realised document. :)
I think the coverage of IFilterFactory comes a bit too early in the document. I view it as an advanced use-case, but it's covered before more fundamental concepts such as applying the filters, execution order and short-circuiting. I'd expect IFilterFactory to come up after DI and for the DI section reference to IFilterFactory to bring the reader down to this.
Just a thought - From what I see from questions on Stack Overflow, requirements for using IFilterFactory are few and far between but short-circuiting comes up more often, for example.

@serpent5  great suggestion. I agree.

To review the doc build

download this DB file
unzip
view HTML file in FF (Fire Fox). It best to view the doc with the widest window that has no left or right TOC (Table  of contents)

@serpent5  I'm removing * Ensuring that all requests use HTTPS. because we no longer use a filter for that. It's now done with middleware UseHttpsRedirection

@Rick-Anderson I think that's it for my feedback. Let me know if there's anything else I can do.

@serpent5  really great feedback. Did you notice I listed you as first author?

@serpent5 really great feedback. Did you notice I listed you as first author?

Yeah, I did notice that and I really appreciate it. Thank you - it made my week :grin:.
It's a real pleasure being able to help out here and I hope I can continue to do so.

@serpent5 do you have a twitter account?

@Rick-Anderson Yeah, I don't use it much but I've got @serpent5 on twitter too.


text:
Unable to connect the azure service from the java using AccessToken and get response "Unexpected status code returned from negotiate: 404 Not Found." from the

If you believe you have an issue that affects the security of the platform please do NOT create an issue and instead email your issue details to secure@microsoft.com. Your report may be eligible for our bug bounty but ONLY if it is reported through email.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Using this version of ASP.NET Core '...'
Run this code '....'
With these arguments '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Include the output of dotnet --info

Thanks for contacting us, @r6h7b.
Please provide more details about your scenario and how you try to do it. Also, a repro project with the behavior you think is broken would help with investigation.

String url = "https://abc.service.signalr.net/client/?hub=chat";
HubConnection hubConnection = HubConnectionBuilder.create(url)
.withAccessTokenProvider(Single.defer(()->{
return Single.just("qwertyuiop/qwertyuiop");
})).build();
    hubConnection.start().blockingAwait();

    hubConnection.on("Send", (message)->{
    },String.class);

    hubConnection.send("Send", "Hello form java");

I am doing with this first i got 404 issue but now i am facing authentication issue.
Unexpected status code returned from negotiate: 401 Unauthorized.

repo: aspnet/AspNetCore


text:
Validate Localization not working after changing rootnamespace

Need to play around with https://github.com/aspnet/AspNetCore/issues/10639

@pranavkm I think we fixed this one, Is there a scenario or example that we need to provide for this one?

authors: hishamco pranavkm


text:
Scenarios are not running: ConnectionClose, ConnectionClose, DbFortunesDapper, DbFortunesEf, DbFortunesRaw ...

Some scenarios have stopped running:

Scenario
Environment
Last Run

ConnectionClose
Linux, Physical, http, KestrelSockets
9/16/19 12:45:21 AM +00:00

ConnectionClose
Linux, Physical, https, KestrelSockets
9/16/19 12:45:39 AM +00:00

DbFortunesDapper
Linux, Physical, http, KestrelSockets
9/16/19 12:39:58 AM +00:00

DbFortunesEf
Linux, Physical, http, KestrelSockets
9/16/19 12:40:40 AM +00:00

DbFortunesRaw
Linux, Physical, http, KestrelSockets
9/16/19 12:39:15 AM +00:00

DbMultiQueryDapper
Linux, Physical, http, KestrelSockets
9/16/19 12:31:39 AM +00:00

DbMultiQueryEf
Linux, Physical, http, KestrelSockets
9/16/19 12:32:20 AM +00:00

DbMultiQueryRaw
Linux, Physical, http, KestrelSockets
9/16/19 12:30:56 AM +00:00

DbMultiUpdateDapper
Linux, Physical, http, KestrelSockets
9/16/19 12:35:49 AM +00:00

DbMultiUpdateEf
Linux, Physical, http, KestrelSockets
9/16/19 12:36:30 AM +00:00

DbMultiUpdateRaw
Linux, Physical, http, KestrelSockets
9/16/19 12:35:06 AM +00:00

DbSingleQueryDapper
Linux, Physical, http, KestrelSockets
9/16/19 12:27:24 AM +00:00

DbSingleQueryEf
Linux, Physical, http, KestrelSockets
9/16/19 12:28:07 AM +00:00

DbSingleQueryRaw
Linux, Physical, http, KestrelSockets
9/16/19 12:26:43 AM +00:00

HttpClient
Linux, Physical, http, KestrelSockets
9/16/19 12:43:35 AM +00:00

HttpClientFactory
Linux, Physical, http, KestrelSockets
9/16/19 12:45:02 AM +00:00

HttpClientParallel
Linux, Physical, http, KestrelSockets
9/16/19 12:44:16 AM +00:00

Json
Linux, Physical, h2, KestrelSockets
9/16/19 12:21:11 AM +00:00

Json
Linux, Physical, h2c, KestrelSockets
9/16/19 12:21:51 AM +00:00

MemoryCachePlaintext
Linux, Physical, http, KestrelSockets
9/16/19 12:22:34 AM +00:00

MemoryCachePlaintextSetRemove
Linux, Physical, http, KestrelSockets
9/16/19 12:23:16 AM +00:00

MvcDbFortunesDapper
Linux, Physical, http, KestrelSockets
9/16/19 12:42:04 AM +00:00

MvcDbFortunesEf
Linux, Physical, http, KestrelSockets
9/16/19 12:42:47 AM +00:00

MvcDbFortunesRaw
Linux, Physical, http, KestrelSockets
9/16/19 12:41:22 AM +00:00

MvcDbMultiQueryDapper
Linux, Physical, http, KestrelSockets
9/16/19 12:33:44 AM +00:00

MvcDbMultiQueryEf
Linux, Physical, http, KestrelSockets
9/16/19 12:34:25 AM +00:00

MvcDbMultiQueryRaw
Linux, Physical, http, KestrelSockets
9/16/19 12:33:01 AM +00:00

MvcDbMultiUpdateDapper
Linux, Physical, http, KestrelSockets
9/16/19 12:37:53 AM +00:00

MvcDbMultiUpdateEf
Linux, Physical, http, KestrelSockets
9/16/19 12:38:34 AM +00:00

MvcDbSingleQueryDapper
Linux, Physical, http, KestrelSockets
9/16/19 12:29:30 AM +00:00

MvcDbSingleQueryEf
Linux, Physical, http, KestrelSockets
9/16/19 12:30:12 AM +00:00

MvcDbSingleQueryRaw
Linux, Physical, http, KestrelSockets
9/16/19 12:28:48 AM +00:00

PlaintextNonPipelined
Linux, Physical, https, KestrelSockets
9/16/19 12:19:07 AM +00:00

PlaintextNonPipelined
Linux, Physical, h2, KestrelSockets
9/16/19 12:19:49 AM +00:00

PlaintextNonPipelined
Linux, Physical, h2c, KestrelSockets
9/16/19 12:20:29 AM +00:00

PlaintextNonPipelinedLogging
Linux, Physical, http, KestrelSockets
9/16/19 12:47:34 AM +00:00

PlaintextNonPipelinedLoggingNoScopes
Linux, Physical, http, KestrelSockets
9/16/19 12:48:17 AM +00:00

ResponseCachingPlaintextCached
Linux, Physical, http, KestrelSockets
9/16/19 12:23:58 AM +00:00

ResponseCachingPlaintextRequestNoCache
Linux, Physical, http, KestrelSockets
9/16/19 12:25:20 AM +00:00

ResponseCachingPlaintextResponseNoCache
Linux, Physical, http, KestrelSockets
9/16/19 12:24:39 AM +00:00

ResponseCachingPlaintextVaryByCached
Linux, Physical, http, KestrelSockets
9/16/19 12:26:02 AM +00:00

Logs

Fixed

authors: aspnet-hello sebastienros


text:
ASP.NET Core 3.0 - "Unable to cast object of type 'System.Collections.Generic.HashSet`1[System.String]' to type 'System.Collections.IList

Describe the bug
I'm running into this really weird behavior when trying to upgrade to with asp.net core 3.0 and use the new serializer. The SystemTextJsonInputFormatter.ReadRequestBodyAsync seems to be throwing this exception and I'm at a loss (I've enabled source debugging and I can't get it to hit any code after the ResourceInvoker and didn't have time to pull in all the source):
System.Net.Http.HttpRequestException : Expected status code Created but received status code InternalServerError (Internal Server Error).
{"message":"Unable to cast object of type 'System.Collections.Generic.HashSet`1[System.String]' to type 'System.Collections.IList'.","is_error":true,"detail":"
at System.Text.Json.JsonSerializer.ApplyObjectToEnumerable(Object value, ReadStack& state, Utf8JsonReader& reader, Boolean setPropertyDirectly)
at System.Text.Json.JsonSerializer.HandleEndArray(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack)
at System.Text.Json.JsonSerializer.ReadCore(JsonReaderState& readerState, Boolean isFinalBlock, ReadOnlySpan`1 buffer, JsonSerializerOptions options, ReadStack& readStack)
at System.Text.Json.JsonSerializer.ReadAsync[TValue](Stream utf8Json, Type returnType, JsonSerializerOptions options, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonInputFormatter.ReadRequestBodyAsync(InputFormatter

----

33:13.43493 I:Diagnostics - Request starting HTTP/1.1 POST http://localhost/api/v2/tokens application/json; charset=utf-8
33:13.58845 I:DefaultAuthorizationService - Authorization was successful.
33:13.60239 I:EndpointMiddleware - Executing endpoint 'Exceptionless.App.Controllers.API.TokenController.PostAsync (Exceptionless.Web)'
33:13.62541 I:ControllerActionInvoker - Route matched with {action = "Post", controller = "Token"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Exceptionless.Web.Models.ViewToken]] PostAsync(Exceptionless.Web.Models.NewToken) on controller Exceptionless.App.Controllers.API.TokenController (Exceptionless.Web).
33:16.35146 I:ObjectResultExecutor - Executing ObjectResult, writing value of type 'Exceptionless.Web.Utility.Handlers.ApiError'.
33:16.41809 I:ControllerActionInvoker - Executed action Exceptionless.App.Controllers.API.TokenController.PostAsync (Exceptionless.Web) in 2762.0513ms
33:16.41872 I:EndpointMiddleware - Executed endpoint 'Exceptionless.App.Controllers.API.TokenController.PostAsync (Exceptionless.Web)'
33:16.42189 I:Diagnostics - Request finished in 2986.945ms 500 application/json; charset=utf-8

I've written a serializer test to ensure that the model can be round tripped:
    public class NewToken {
        public NewToken() {
            Scopes = new HashSet<string>();
        }

        public string OrganizationId { get; set; }
        public string ProjectId { get; set; }
        public string DefaultProjectId { get; set; }
        public HashSet<string> Scopes { get; set; }
        public DateTime? ExpiresUtc { get; set; }
        public string Notes { get; set; }
    }

        [Fact]
        public void CanSerializeSimpleModel() {
            var token = new NewToken {
                OrganizationId = "TEST_ORG_ID",
                ProjectId = "TEST_PROJECT_ID",
                Scopes = new HashSet<string> { "Client", "User" }
            };

            string json = System.Text.Json.JsonSerializer.Serialize(token);
            _logger.LogInformation(json);
            var token2 = System.Text.Json.JsonSerializer.Deserialize<NewToken>(json);
        }

Here is the model that's being posted
new NewToken {
                   OrganizationId = "TEST_ORG_ID",
                   ProjectId ="TEST_PROJECT_ID",
                   Scopes = new HashSet<string> { "Client", "User" }
               }

To a controller that looks like this:
[HttpPost]
public Task<ActionResult<Object>> PostAsync(NewToken token) {
}

with serializer settings defined as:
            options.AllowTrailingCommas = true;
            options.DictionaryKeyPolicy = null;
            options.IgnoreNullValues = true;
            options.IgnoreReadOnlyProperties = false;
            options.PropertyNameCaseInsensitive = true;
            options.PropertyNamingPolicy = new SnakeCaseJsonNamingPolicy();
            options.ReadCommentHandling = JsonCommentHandling.Skip;
            options.WriteIndented = false;

To Reproduce
Steps to reproduce the behavior:

Using this version of ASP.NET Core:  3.0.100
Run this code ' as shown above
See error

I removed the scopes property from the model and it worked on my end. So something definitely todo with serialization but it's just odd that it works when I do it directly as the test shown above.
Expected behavior
A clear and concise description of what you expected to happen.
There should not be any issues with posting the model.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Include the output of dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.15
 OS Platform: Darwin
 RID:         osx.10.15-x64
 Base Path:   /usr/local/share/dotnet/sdk/3.0.100/

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  2.2.402 [/usr/local/share/dotnet/sdk]
  3.0.100 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

@niemyjski do you have a minimal repro you could share?
@ahsonkhan \ @layomia does this ring a bell?

@pakrym not yet but if you clone the exceptionless repo you can run the single test (https://github.com/exceptionless/Exceptionless/blob/feature/elastic7/tests/Exceptionless.Tests/Controllers/TokenControllerTests.cs#L31-L35) I linked to that's pretty minimal. I'll try creating a sample and link it here

@pranavkm  Ok I created a super simple file -> new project sample here: https://github.com/niemyjski/aspnet-serializer-issue
and posted it with  curl -d '{"organizationId":"value1", "scopes":["value2"]}' -H "Content-Type: application/json" -X POST http://localhost:5000/token
System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.HashSet`1[System.String]' to type 'System.Collections.IList'.
   at System.Text.Json.JsonSerializer.ApplyObjectToEnumerable(Object value, ReadStack& state, Utf8JsonReader& reader, Boolean setPropertyDirectly)
   at System.Text.Json.JsonSerializer.HandleEndArray(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack)
   at System.Text.Json.JsonSerializer.ReadCore(JsonReaderState& readerState, Boolean isFinalBlock, ReadOnlySpan`1 buffer, JsonSerializerOptions options, ReadStack& readStack)
   at System.Text.Json.JsonSerializer.ReadAsync[TValue](Stream utf8Json, Type returnType, JsonSerializerOptions options, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding)
   at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding)
   at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext)
   at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value)
   at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

HEADERS
=======
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/json
Accept: */*
Accept-Encoding: gzip, deflate
Host: localhost:5000
Referer: http://localhost:5000/token
User-Agent: PostmanRuntime/7.17.1
Content-Length: 48
Postman-Token: 375ff808-cd03-4250-812f-229426d40ec8

@pranavkm / @ahsonkhan / @layomia let me know if you need any additional information, this seems to be my last blocking issue.

I'm taking a look at this to see if this issue needs to be raised in corefx.

@layomia any update here?

Core 3.0 does not deserialize Json array as HashSet in the model. Looks like it expects that any json array should be IList. Workaround is to make model as IList.
Strange, because System.Text.Json does not have such HashSet issue by default.

This issue has been fixed in release/3.1 (https://github.com/dotnet/corefx/pull/41523). cc @pranavkm
@niemyjski, can you please use the 3.1-preview1 (or master) build and verify the fix?
https://www.nuget.org/packages/System.Text.Json/4.7.0-preview1.19504.10
You can reference the latest master System.Text.Json NuGet package from https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json

Closing the issue here.  @pranavkm can you verify with a recent 3.1 build?

Awesome thanks!

authors: Pilchie Rambalac layomia niemyjski pranavkm


text:
Error CS0029 Cannot implicitly convert type 'System.Collections.Generic.List<BlazorApp.Data.Room>' to 'System.Collections.Generic.List<BlazorApp.Pages.Room>'

How to access Json data from services on the Blazor Server-Side?
This is my RoomService.cs file
using System.Collections.Generic;
using System.Threading.Tasks;

namespace BlazorApp.Data
{
    public class RoomService
    {
        public List<Room> _rooms;

        public RoomService()
        {
            _rooms = new List<Room>()
            {
                new Room()
                {
                    ImgSource = "https://domain.com/cdn/img/sweet-room.webp",
                    Title = "Sweet Residence",
                    Price = 300,
                    City = "South Jakarta",
                    Country = "Indonesia"
                },
               .......
            };
        }

        public Task<List<Room>> GetRoomAsync()
        {
            return Task.FromResult(_rooms);
        }
    }
}

and my Startup.cs file adds an RoomService on ConfigureServices
.............
services.AddSingleton<RoomService>();
.............

while I tried to get data from razor page, I always got an error messages, something like this:
FullStress.razor file
....
@inject BlazorApp.Data.RoomService RoomRepository

<RoomTemplate Items="rooms" TItem="Room">
    <ItemTemplate Context="roomItem">
        .....
    </ItemTemplate>
</RoomTemplate>

@code {
    public List<Room> rooms = new List<Room>();

    protected override async Task OnInitializedAsync()
    {
        _rooms = await RoomRepository.GetRoomAsync();
    }
}

and the error is:
Error CS0029 Cannot implicitly convert type 'System.Collections.Generic.List<BlazorApp.Data.Room>' to 'System.Collections.Generic.List<BlazorApp.Pages.Room>'

can you tell me, where is the error in the code above?

It looks like you have two different Room classes. One is in the BlazorApp.Data namespace, and the other is in BlazorApp.Pages (for example, perhaps you have a component file Room.razor).
You can avoid this problem by having only one Room class, or if the issue is the existence of Room.razor, try renaming that file to something else.

I see, thank you @SteveSandersonMS
u save my life.. ;)

authors: SteveSandersonMS Yuant-tobing


text:
Child-Binding don't work

I want to make a inputlayout for all my paramters on my hero-object. i start with the name of the instance of my hero-object.
In first Line the normal Inputfield. It works, in second line, the Inputfield-Component, that don't work.
        <input type="text" bind-value-oninput="@hero.Name" />
        <InputField Label="Name" bind-Value="@hero.Name"></InputField>

inputfield.csthml

    @Label

        <input class="form-control form-control-dark w-100" type="text" placeholder="@Label" bind-value-oninput="@Value" />

@functions {
    [Parameter] private string Label { get; set; }
    [Parameter] private string Value { get; set; }
    [Parameter] private Action<string> ValueChanged { get; set; }
    [Parameter] private InputFieldOrientation Orientation { get; set; } = InputFieldOrientation.Horizontal;
}

The answer is in here https://github.com/aspnet/AspNetCore/issues/8386

@UrielMhezzek Could you please clarify what exactly isn't working? What is the expected behavior and what behavior are you seeing?

In the code posted, nothing invokes ValueChanged, so it will never apply any updates to the bound value.
For an example of how to do this as intended, please see the answer that @medeirosraul linked to: https://github.com/aspnet/AspNetCore/issues/8386#issuecomment-473622549

@danroth27  Forgive me if I don't find the right words. My English is modest.
I have a Hero object. But it can be any other object.  I would like to build an element that interprets all my definitions and outputs them in a standard way.
What I have already achieved is that I create Hero objects via my page and have a form there in which I assign an input field to each of the corresponding properties. Let's start with Name. Name is a string. So the input field is selected as input. With Gender, which is a list, the properties create a list accordingly. This already works. The corresponding default values are also displayed in the input fields. A property of the hero object is not a classic basic type but a small object with further information that is relevant for the input field (e.g. which list elements are possible, whether it is a string, integer or a complex object, etc.).
What doesn't happen is that I create a two-way-binding, so when I make a change to the name, the change is written back to the hero object.
So I just want to say my input field
<InputField Value="@hero.Name" />
And then a Redering shall take place, which resembles that.
<input type="text" bind-value-oninput="@hero.Name.Value" />
This means that the Hero element should also be changed each time the button is pressed. I hope this is more understandable now.
I have noticed in my property object that Value is changed from Name. But other elements that use Name.Value don't get any information about it.
A test with Set Manuals (via a button) showed me that the value seems to have arrived in the Hero object.

i have found a solution. But i don't understand, why twowaybinding is not possible here.
<input value="@Value.Value" oninput="@((e) => ValueChanged.InvokeAsync((string)e.Value))">
[Parameter] EventCallback<string> ValueChanged { get; set; }

authors: SteveSandersonMS UrielMhezzek danroth27 medeirosraul


text:
Native Electron/Cordova Support

One thing that I think would be valuable and would help broaden the use cases and appeal of Blazor would be first class integration with Electron and Cordova. This would include things like tooling in Visual Studio, debugging support, etc. A tight integration with these two other platforms would allow a high degree of code-base sharing across Web (backend / frontend), Desktop, and Mobile in a single language and programming paradigm. I think this would be a great boost to productivity.

Thanks for the suggestion.
Yes, I agree these are interesting scenarios. In fact we are already looking into them. For the time being we don’t have definite plans but I hope we will at some stage.
I’ll close because it’s not something we currently have as an active deliverable but please feel free to continue discussing below if desired.

I came here just for this discussion. I strongly suggest some significant effort is made to have a cordova project  with Blazor. Indeed i can not wait to stop writing sql scripts. Who does not love context.Books.Add(book); instead of writing that long sqlite script.
I am currently afraid of desktop development because i cannot do if(ModelState.IsValid). For the love of c#, kindly put in some efforts into that and i can see a whole new shift in mobile and web technologies.
It can actually serve as a killer blow to JavaScript and bring sanity to web development.
I just cannot finish typing enough

This would be completely awesome.

@SteveSandersonMS  I could throw away most Xamarin stuff if this was supported.  The idea of having Blazor, AutoFixture, Microsoft.Extensions.DependencyInjection, SignalR, etc. all available in a mobile app would significantly reduce my development costs.

Blazor "Native" is the next logical step and it could be huge. But let's get blazor wasm right first.

Hi Stavros,
I think, for me, next step is adapting Uber's RIBS architecture I'm a fan of to Blazor. Let me know if you want to discuss offline on gitter or elsewhere.

@stavroskasidis Yes I agree, it will be huge. Another thing, I think progressive web apps will outcompete the "simple" native apps. In other words, Blazor will be your perfect "Swiss Army Knife" tool :)

Redirect your feedback here https://github.com/aspnet/AspNetCore/issues/11082#issuecomment-501424063
This repository is deprecated as far as issues go

authors: GoranHalvarsson SteveSandersonMS Suchiman jzabroski kstewart83 kwakuduahc1 stavroskasidis

repo: aspnet/Blazor


text:
Blazor client side view page source

I'ld like to find out if this will expose all client side code base with browser view page source, However i did test out and realised Below , Will be glad to know if this is the expected behavior.
  | <!DOCTYPE html>
-- | --
  | <html>
  | <head>
  | <meta charset="utf-8" />
  | <title>BlazorTest</title>
  | <base href="/" />
  | <link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
  | <link href="css/site.css" rel="stylesheet" />
  | </head>
  | <body>
  | <app>Loading...</app>
  |
  | <script src="css/bootstrap/bootstrap-native.min.js"></script>
  | <script src="_framework/blazor.js" main="BlazorTest.Client.dll" entrypoint="BlazorTest.Client.Program::Main" references="BlazorTest.Shared.dll,Microsoft.AspNetCore.Blazor.Browser.dll,Microsoft.AspNetCore.Blazor.dll,Microsoft.Extensions.DependencyInjection.Abstractions.dll,Microsoft.Extensions.DependencyInjection.dll,mscorlib.dll,netstandard.dll,System.Core.dll,System.Diagnostics.StackTrace.dll,System.dll,System.Globalization.Extensions.dll,System.Net.Http.dll,System.Runtime.Serialization.Primitives.dll,System.Security.Cryptography.Algorithms.dll" linker-enabled="true">
</script>
</body>
</html>

 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.:x: RichieCr7 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


text:
Why DistributedCacheExtensions not has tryegetvakue,getorcreate extend

i find GetOrCreateAsync,TryGetValue good extend in memerycache,but in DistributedCacheExtensions  there is not have this,. why we have not add this method。
What is the reason for not adding these methods, it is because of performance or other problems
thanks

Duplicate of #390

Doesn't sound like a dupe to me.
This one is asking for existing methods to be replicated across different cache types. My #390 is asking for a brand new method.

Correct, my bad.
https://github.com/aspnet/Caching/issues/220.
@YINZHU2016, please see https://github.com/aspnet/Caching/issues/220#issuecomment-241229013 for David's comment for more explanation on this.

authors: YINZHU2016 mungojam muratg

repo: aspnet/Caching


text:
ChangeToken.OnChange fires twice when listening for configuration changes

When I use ChangeToken.OnChange to listen to configuration changes as described in https://github.com/aspnet/Configuration/issues/432, my handler usually gets called twice in quick succession.
To reproduce:

Create a new ASP.NET Core targeting .NET Framework project using the Web API template (I haven't tested targeting .NET Core).
Add this line in the Configure method in Startup.cs: ChangeToken.OnChange(Configuration.GetReloadToken, () => loggerFactory.CreateLogger<Startup>().LogWarning("Configuration changed"));
Start the app.
While the app is running, make a change in appsettings.json and save the file.

The line "Configuration changed" shows up twice in the console output.
I've tried to make the file change from multiple programs (Visual Studio, Notepad, emacs), and by copying and replacing the file in its entirety. At least once I think I saw the change only being logged once, but usually you get it twice with just a few milliseconds between the log events.
I've attached the call stacks I see from the debugger for the first and second call respectively:
first-callstack.txt
second-callstack.txt
The only difference is the following five lines in the middle of the second stack:
mscorlib.dll!System.Threading.CancellationTokenSource.InternalRegister(System.Action<object> callback, object stateForCallback, System.Threading.SynchronizationContext targetSyncContext, System.Threading.ExecutionContext executionContext)	Unknown
mscorlib.dll!System.Threading.CancellationToken.Register(System.Action<object> callback, object state, bool useSynchronizationContext, bool useExecutionContext)	Unknown
mscorlib.dll!System.Threading.CancellationToken.Register(System.Action<object> callback, object state)	Unknown
Microsoft.Extensions.Primitives.dll!Microsoft.Extensions.Primitives.CancellationChangeToken.RegisterChangeCallback(System.Action<object> callback, object state)	Unknown
Microsoft.Extensions.Primitives.dll!Microsoft.Extensions.Primitives.ChangeToken.OnChange.AnonymousMethod__0(object s)	Unknown

Reproduced also on .NET Framework 4.5.1

Yeah this is just how change tokens work, what we did to mitgate this somewhat was add a delay before invoking callback so the changes hopefully will be finished:
https://github.com/aspnet/Configuration/blob/dev/src/Microsoft.Extensions.Configuration.FileExtensions/FileConfigurationProvider.cs#L35
                ChangeToken.OnChange(
                    () => Source.FileProvider.Watch(Source.Path),
                    () => {
                        Thread.Sleep(Source.ReloadDelay);
                        Load(reload: true);
                    });

You likely need to do something similar if you don't want to get called multiple times for the same underlying change.

This issue was moved to aspnet/FileSystem#287

The code referenced by @HaoK Source.ReloadDelay gives a 404 so I don't know what  Source.ReloadDelay is used.
For detecting configuration changes:
ChangeToken.OnChange(
  () => configuration.GetReloadToken(),
  state => { Thread.Sleep(2000); log("Configuration reloaded"); },
  (object)null
);

I've used a debounce delay of 2000 which is always effective (on linux), but is a bit long. What delay are people using for this?

authors: HaoK Tratcher hcoona lonix1 magnusbakken

repo: aspnet/Configuration


text:
Server-Side tip.

Since you'll get little or no error feedback at all when running a Server-Side and getting an exception (under VS 2019 preview 1) when using IIS Express as the host, change this option to use the [AppName].Server. This will show the exceptions being thrown in case of any.

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

ID: 4ba6222c-95d0-eb55-4d5c-7342a9dc916c
Version Independent ID: 851e452f-1c89-ffe2-e403-5dce6e482541
Content: Debug Razor Components
Content Source: aspnetcore/razor-components/debugging.md
Product: aspnet-core
GitHub Login: @guardrex
Microsoft Alias: riande

@danroth27

This is a temporary issue with VS. When using IIS Express you should be able to see the ASP.NET Core logs using the ASP.NET Core Web Server output tab, but this was broken when we moved to in-proc hosting. This issue will be fixed in a future VS update.

authors: RFDominguez danroth27 guardrex

repo: aspnet/Docs


text:
Anti-Request Forgery

ASP.NET 5 -> Security -> Anti-Request Forgery

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/Sending_and_retrieving_form_data

Should reference https://github.com/aspnet/Docs/issues/134

Hi there,
Will the URL at https://docs.asp.net/en/latest/security/anti-request-forgery.html stay stable once the docs drop?
As the project lead of OWASP Top 10 2007, OWASP Developer Guide 2.0, and OWASP Application Security Verification Standard 3.0, would love to give as much of the security documentation you've got ready a review before it goes final. I'm easily reachable by the usual means, but best through my owasp address.
I've been developing some unit tests around high functioning CSRF implementations, happy to share code if you don't have a lot of tests for the CSRF functionality in ASP.NET core at the moment.

@rynowak @blowdart @Tratcher see offer  of tests for the CSRF functionality in ASP.NET core
@danroth27  please respond to URL stability.

@vanderaj There may still be some URL churn before we go final.

@vanderaj Feel free to submit a PR to https://github.com/aspnet/antiforgery with additional tests.

@blowdart @rynowak  please review this request antiforgery doc plan:

Combine Web API  and MVC  XSRF/CSRF Prevention into one asp.net core article
introduce https://github.com/aspnet/Antiforgery middleware for Web API
show snippets from Angular JS with Antiforgery middleware  using https://github.com/aspnet/Antiforgery

We should include in this article documenting the new automatic anti-request forgery support in MVC

@spboyer take a look

@blowdart @rynowak please review this request antiforgery doc plan:

Yes, that's a doc plan :D
I'd like to see getting the form token part in javascript, rather than having to write a form

Document Plan

[ ] Combine Web API  and MVC  XSRF/CSRF Prevention into one asp.net core article
[ ] Show snippets from Angular JS with Antiforgery middleware  using https://github.com/aspnet/Antiforgery
[ ] Show Tag helper generated token & use

Document outline update after discussion with @rynowak

Introduction: What is Antiforgery.
IAntiforgery

Options : setting header, cookie name.

Fundamentals

UserTokens
Cookies

Filters

ValidateAntiforgeryToken
New Features

AutoValidateAntiforgeryToken
IgnoreAntiforgeryToken

MVC
Samples

MVC: TagHelpers, HTMLHelpers
SPA: sample using Angular and Web API

JavaScript (Ajax)

@danroth27 @spboyer  I might work on this with @fiyazbinhasan  - see his reventing XSRF in AngularJS Apps with ASP.NET CORE Anti-Forgery Middleware

@Rick-Anderson ok got it.

@danroth27 @spboyer  -  @fiyazbinhasan  is going to start working on this.  The outline after meeting with @rynowak  doesn't mention

Combine Web API  and MVC  XSRF/CSRF Prevention into one asp.net core article

But we'll want to combine these two articles - but at the same time follow the outline. @rynowak  is that OK with you?

@danroth27 @spboyer - @fiyazbinhasan is going to start working on this. The outline after meeting with @rynowak doesn't mention
•- Combine Web API  and MVC  XSRF/CSRF Prevention into one asp.net core article

@Rick-Anderson
It would be totally fantastic, if you could include some information on how to customise when the Anti Forgery token expires - instead of just at the end of the browser session.

CSRF tokens shouldn't expire, unless the underlying identity changes.

You can see the start of this at https://www.dropbox.com/sh/jfmncpp0z79m9mt/AAAAB98zC4J7f9g_l6egU8nta?dl=0

@Rick-Anderson
If you can spare the time, please include:

enabling only HTTPs anti-forgery tokens
how HttpOnly flag set to "true" would work with SPAs like Angular
about XST

I also really like this article:
http://resources.infosecinstitute.com/securing-cookies-httponly-secure-flags/

For reference: #1945

This sample is easily found: https://github.com/aspnet/Antiforgery/tree/dev/samples/AntiforgerySample
But we should update to the Entropy sample: https://github.com/aspnet/Entropy/tree/dev/samples/Mvc.AjaxAntiforgeryAuth.Web
The Angular way of passing the token is very angular-specific. A more generic approach would be more widely applicable.

@fiyazbinhasan  can you write a more generic sample? @danroth27  do we want both an angular and a generic sample? I was thinking angular is very popular and would justify a specific example.

Yes we just discussed and we want both an Angular and a generic example (or more than one: web vs. native clients for instance)

@ardalis you can find a ajax(javascript) example on the bottom of this doc @Rick-Anderson provided earlier. I used Jquery for making the task of cookie parsing easier. I can write a raw one if you want :) https://www.dropbox.com/sh/jfmncpp0z79m9mt/AACejY50rKGjSPpAnd5m2q_8a/Preventing XSRF in ASP.NET CORE.docx?dl=0

aspnet/antiforgery#119

@fiyazbinhasan thanks for the assistance; please review #1945

authors: Rick-Anderson Simply-Awesome Tratcher ardalis blowdart danroth27 fiyazbinhasan spboyer vanderaj


text:
Unable to Run Add-Migration Command in VS2017 RC2

The is a .net 4.6.1 class library project.
I run
PM> Add-Migration Initial
Cannot execute this command because Microsoft.EntityFrameworkCore.Design is not installed. Install the version of that package that matches the installed version of Microsoft.EntityFrameworkCore and try again.

Even though Microsoft.EntityFrameworkCore.Design is installed!
Any ideas?
packages.config
<package id="Microsoft.AspNetCore.Hosting.Abstractions" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.AspNetCore.Hosting.Server.Abstractions" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.AspNetCore.Http.Abstractions" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.AspNetCore.Http.Features" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.Data.Sqlite" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.EntityFrameworkCore" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.EntityFrameworkCore.Design" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.EntityFrameworkCore.Relational" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.EntityFrameworkCore.Relational.Design" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.EntityFrameworkCore.Sqlite" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.EntityFrameworkCore.Tools" version="1.1.0-preview4-final" targetFramework="net461" developmentDependency="true" />

I found that (as setting the solutions default project to the class library made it work) even though I had selected my class library in the package manager console.
Perhaps a bug in visual studio?

Stupid question for you: did you dotnet restore before trying the add migration?

Does adding -Verbose give any additional information?

I was having the same issues where EF components were not found. Try doing a cd to the project directory (where the VS Project file is) before running the command.
ie:
cd C:\MyDevFolder\ProjectFolder
Add-Migration Initial

if you have more than one Context, be sure to specify it with:
Add-Migration Initial --context MyDbContext

In case you can try the latest version of the tooling, here are some instructions: #7358.

EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.

authors: JDunaganFL asleight bricelam danwalmsley divega rowanmiller

repo: aspnet/EntityFramework


text:
API review: general renames and removals on builders

Remove APIs that accept strings for type names
Move from Many/One to Collection/Reference
Move from Referenced to Principal
Other miscellaneous changes

:shipit:

authors: ajcvickers anpete


text:
improvement to ExpressionPrinter for null conditional expression

Before we relied on NullConditionalExpression.ToString(), however this way we would not highlight dangling qsres that were inside the NCE. Also DRYing up printing of arguments.

ping @smitpatel


text:
Can EF have two database (mssql and postgres) in one project ?

Hi all
As title described, Can EF have two database (mssql and postgres) in one project ?
I will move mssql  to postgres, but I need two databases exist during transition.
It will insert the same data into mssql and postgres. Then read data from different API.
I created two DbContexts for two databases
but it seems to be only one defaultConnectionFactory  in the web.config to decide we use which one db provider. Do we have any solution for my requirement ?
Further technical details
EF version: 6.2
Database Provider:  EntityFramework.SqlServer, EntityFramework6.Npgsql
Operating system: Windows 10
IDE: Visual Studio 2017 15.9.13

@lunyi Yes, you can use multiple databases by using multiple models; one for each database. You will of course have to explicitly pass in the connection string since it will be different in each case.

authors: ajcvickers lunyi


text:
Scaffold-DbContext not correctly configuring auto incrementing primary key in from Sqlite database

I'm using EF.Core scaffold to create a datamodel for a DB with an auto increment primary key but the context is being generated with the key annotated with ValueGeneratedNever() instead of ValueGeneratedOnAdd().  As a result EF framework requires each record to have a primary key set instead of allowing the DB to set it.
Exception message:  N/A
Stack trace:  N/A

Steps to reproduce
Create an SQLite DB with this table:
CREATE TABLE "LastSyncTime"
(
ID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
SyncTime TEXT NOT NULL,
TableUpdated TEXT NOT NULL
)
In the package manager console run:
Scaffold-DbContext "DataSource=MyDatabase.sqlite;" Microsoft.EntityFrameworkCore.Sqlite -OutputDir Models -force
Examine the context class, it generates with:
        modelBuilder.Entity<LastSyncTime>(entity =>
        {
            entity.HasIndex(e => e.Id)
                .IsUnique();

            entity.Property(e => e.Id)
                .HasColumnName("ID")
                .ValueGeneratedNever();

            entity.Property(e => e.SyncTime).IsRequired();

            entity.Property(e => e.TableUpdated).IsRequired();
        });

ValueGeneratedNever() should be ValueGeneratedOnAdd()
Further technical details
EF Core version: (found in project.csproj or packages.config) 2.1.0-rc1-final  (also happens in 2.0.2)
Database Provider: (e.g. Microsoft.EntityFrameworkCore.Sqlite)
Operating system:  Win 10 1709
IDE: (e.g. Visual Studio 2017 15.6.3)

Possibly related, also in SQLite. I found out that with my entity:
public class Account
{
    [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public int Id { get; set; }

    public int Balance { get; set; }
}

giving Balance a default value in OnModelCreating:
modelBuilder.Entity<Account>()
    .Property(ac => ac.Balance)
    .HasDefaultValue(1500);

scaffolds the following in a migration:
migrationBuilder.CreateTable(
    name: "Accounts",
    columns: table => new
    {
        Id = table.Column<int>(nullable: false)
            .Annotation("Sqlite:Autoincrement", true),
        Balance = table.Column<int>(nullable: false, defaultValue: 1500)
            .Annotation("Sqlite:Autoincrement", true) //WTF?
    });

Why does the scaffolding think that the second column needs auto-increment?
Commenting out the bit in OnModelCreating doesn't emit the annotation for the Balance column to the migration scaffold.

I have the same problem with GUID.
[Id]        UNIQUEIDENTIFIER NOT NULL

I'm seeing this as well but with the error AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY. My database looks right. It looks like whatever is generating the SQL is trying to put auto increment on the wrong field.
Microsoft.EntityFrameworkCore.Database.Transaction:Debug: Beginning transaction with isolation level 'Serializable'.
Microsoft.EntityFrameworkCore.Database.Command:Debug: Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Device" (
    "id" INTEGER NOT NULL CONSTRAINT "PK_Device" PRIMARY KEY AUTOINCREMENT,
    "name" varchar(90) NULL,
    "publicId" uniqueidentifier NOT NULL
);
Microsoft.EntityFrameworkCore.Database.Command:Information: Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Device" (
    "id" INTEGER NOT NULL CONSTRAINT "PK_Device" PRIMARY KEY AUTOINCREMENT,
    "name" varchar(90) NULL,
    "publicId" uniqueidentifier NOT NULL
);
Microsoft.EntityFrameworkCore.Database.Command:Debug: Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "DeviceAction" (
    "deviceId" INTEGER NOT NULL,
    "id" int NOT NULL CONSTRAINT "PK_DeviceAction" PRIMARY KEY AUTOINCREMENT,
    "name" varchar(90) NULL,
    "value" varchar(4000) NULL,
    CONSTRAINT "FK_DeviceAction_Device_deviceId" FOREIGN KEY ("deviceId") REFERENCES "Device" ("id") ON DELETE CASCADE
);
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.0\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.0\System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Microsoft.EntityFrameworkCore.Database.Command:Error: Failed executing DbCommand (28ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "DeviceAction" (
    "deviceId" INTEGER NOT NULL,
    "id" int NOT NULL CONSTRAINT "PK_DeviceAction" PRIMARY KEY AUTOINCREMENT,
    "name" varchar(90) NULL,
    "value" varchar(4000) NULL,
    CONSTRAINT "FK_DeviceAction_Device_deviceId" FOREIGN KEY ("deviceId") REFERENCES "Device" ("id") ON DELETE CASCADE
);

Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements(Stopwatch timer)+MoveNext()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, DbCommandMethod executeMethod, IReadOnlyDictionary`2 parameterValues)
Exception thrown: 'Microsoft.Data.Sqlite.SqliteException' in Microsoft.EntityFrameworkCore.Relational.dll
SQLite Error 1: 'AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY'.

The thread 0x59d4 has exited with code 0 (0x0).
An exception of type 'Microsoft.Data.Sqlite.SqliteException' occurred in Microsoft.EntityFrameworkCore.Relational.dll but was not handled in user code
SQLite Error 1: 'AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY'.

Ran into the same issue with EFCore 2.1.2
dotnet ef dbcontext scaffold ... -f -d -v

renders a PRIMARY KEY AUTOINCREMENT field as a ValueGeneratedNever in the generated DbContext, and the reverse operation
dotnet ef migrations add ...

generates PRIMARY KEY AUTOINCREMENT columns in the SQLite db where the property either has no ValueGenerated... at all, or is explicitly ValueGeneratedNever().
Looking forward to 2.2.0 I guess.

Still no fixes for this ValueGeneratedNever() problem ?

I have a problem with Auto Increment when a table has more than one primary key column.
Model:
public class Product
{
    public int Id { get; set; }
    public int Tr {get; set; }
}

Configuration:
modelBuilder.Entity<Product>()
                .HasKey(model => new { model.Id, model.Tr });

modelBuilder.Entity<Product>()
                .Property(model => model.Id)
                .ValueGeneratedOnAdd();

which creates this:
CREATE TABLE "Products" (
    "Id" INTEGER NOT NULL,
    "Tr" INTEGER NOT NULL,
    CONSTRAINT "PK_Products" PRIMARY KEY ("Id", "Tr")
)

As you see, the Id column is not AutoIncrement. But if I change the configuration to have only one primary key, then it works!

Problem also exists while using SQL Server, not just Sqlite.

Any updates on this?

Willing to take a PR for this?

@ErikEJ Of course! It might depend on #10228

authors: DanNeely ErikEJ IOrlandoni JeremyFerreira Joe4evr Sina-Soltani bricelam chrisbecke codenesium jjung89 jsnells1

repo: aspnet/EntityFrameworkCore


text:
Don't enable foreign keys for read-only operations in SQLite

Currently EF Core for SQLite opens a new connection for each statement and sends PRAGMA FOREIGN_KEYS=ON for each statement. SELECT statements don't really need to be checked for foreign keys. Since a new connection is opened for each statement it should be possible to avoid doing that. It takes 2ms on my machine.
Steps to reproduce
var entity = context.Entities.Single(e=>e.ID==1);
Further technical details
EF Core version: 2.1.1
Database Provider: Microsoft.EntityFrameworkCore.SqlLite
Operating system: Windows
IDE: Visual Studio 2017 15.7

Note from triage: Issue #12151 is about removing this (since it's not needed) in 3.0. Assuming we do that, then this will no longer be an issue.

authors: ajcvickers j-hudecek