Add section on compiling CRC locally to developing.adoc

Update the developing.adoc developer documentation and add a section on
how to build the crc binary locally.
Fixes: Issue #N
Relates to: Issue #N, PR #N, ...
Solution/Idea
Describe in plain English what you solved and how. For instance, Added start command to CRC so the user can create a VM and set-up a single-node OpenShift cluster on it with one command. It requires blablabla...
Proposed changes
List main as well as consequential changes you introduced or had to introduce.

Add start command.
Add setup as prerequisite to start.
...

Testing
What is the bottom-line functionality that needs testing? Describe in pseudo-code or in English. Use verifiable statements that tie your changes to existing functionality.

start succeeds first time after setup succeeded
stdout contains ... if start succeeded
stderr contains ... after start failed
status returns ... if start succeeded
status returns ... if start failed
start fails after start succeeded or after status says CRC is Running
...

Can one of the admins verify this patch?

I took a stab at adding this documentation as it wasn't immediately clear to me how to build the binaries locally when inspecting the root Makefile. I'm open to closing this if we don't think there's value in documenting this behavior here - I just had some free time while waiting for a cluster to spin up.

@timflannagan Are you planning to update this PR as per review?

@praveenkumar I'm fairly tied up with work atm - I can likely get back to this by Friday.


[Bug Report] <UploadList inside render(h) function not working

Element UI version
1.4.1
OS/Browsers version
chrome
Vue version
2.4.2
Reproduction Link
https://jsfiddle.net/pj71jkyw/439/
Steps to reproduce
I am using upload component in my project but am getting error in render(h) function as following:
render(h) {
var uploadList;
if (this.showFileList) {
  uploadList = (
    <UploadList
      disabled={this.disabled}
      listType={this.listType}
      files={this.uploadFiles}
      on-remove={this.handleRemove}
      handlePreview={this.onPreview}>
    </UploadList>
  )
}

my cli showing error "unexpected token" here at  tab . I think it is not understating how to render uploadList object with custom HTML tag.
What is Expected?
my cli showing error "unexpected token" here at  tab . I think it is not understating how to render uploadList object with custom HTML tag.
It should render template of uploadList.
What is actually happening?
my cli showing error "unexpected token" here at  tab . I think it is not understating how to render uploadList object with custom HTML tag.

babel-plugin-transform-vue-jsx is required when writing render functions in JSX.

Thanks Leopoldthecoder it's works again thanks for sharing knowledge


[stable-mongodb-replicaset] What URL to use to connect to a replica set

Is this a request for help?:
Yes
Is this a BUG REPORT or FEATURE REQUEST? (choose one): NONE

Version of Helm and Kubernetes: 1.12.4, 2.11
Which chart: stable/mongodb-replicaset
Is there a way to connect to a mongodb-replicaset inside the cluster using only one URL? Would I achieve the same thing by using the kubernetes service URL as passing in all 3 of my mongodb replica's hostnames separated by a comma? What's the best approach here?
Does the chart enable me somehow to leverage the DNS Seedlist Connection so I can do something like mongod+srv?
I tried looking for documentation as to how to connect to the replicaSet deployed by the chart, but I couldn't find what I was looking for.

@steven-sheehy
i am trying to use client service inside k8s cluster as suggested by you but i am getting following error.
i am using mongodb-replicaset as sub chart and my release name is skeleton
[1;30m2019-04-28 14:34:34,483 [0;39m => [34mINFO [0;39m [ [32mlocalhost-startStop-1 [0;39m] [33mcom.mongodb.diagnostics.logging.SLF4JLogger [0;39m: Cluster created with settings {hosts=[skeleton-mongodb-replicaset-client:27001], mode=MULTIPLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
[1;30m2019-04-28 14:34:34,485 [0;39m => [34mINFO [0;39m [ [32mlocalhost-startStop-1 [0;39m] [33mcom.mongodb.diagnostics.logging.SLF4JLogger [0;39m: Adding discovered server skeleton-mongodb-replicaset-client:27001 to client view of cluster
[1;30m2019-04-28 14:34:34,984 [0;39m => [34mINFO [0;39m [ [32mcluster-ClusterId{value='5cc5b9fab13658000122961a', description='null'}-skeleton-mongodb-replicaset-client:27001 [0;39m] [33mcom.mongodb.diagnostics.logging.SLF4JLogger [0;39m: Exception in monitor thread while connecting to server skeleton-mongodb-replicaset-client:27001
com.mongodb.MongoSocketOpenException: Exception opening socket
        at com.mongodb.connection.netty.NettyStream$2.operationComplete(NettyStream.java:158)
        at com.mongodb.connection.netty.NettyStream$2.operationComplete(NettyStream.java:145)
        at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:511)
        at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:504)
        at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:483)

can you please suggest any pointers if i am missing something


ApplicationEmoji Intergration

I would love to have a syntax for applicationemoji. They new in jda.
https://docs.jda.wiki/net/dv8tion/jda/api/entities/emoji/ApplicationEmoji.html
i already tried to import things but skript-reflect is not that good

This is currently planned for 4.21 😄


Create new admin graph

This creates a new graph on the admin page
It shows checks performed against time,
this allows us to see times that are optimal for
publishing updates.
It also increases test coverage of the index view
for different roles.

Looks fine


Air Spain VA

Dear Friends,
We admire you for your work and wish you all the best.
We would like you to add our package to BlueBell in the same way that LeipzigAir is included.
I am enclosing the package.
Thank you very much
BB_Air_Spain_VA.zip

done


Rebranding the fork

Copied from #3: "I also want to rebrand the fork so it doesn't use the same name and icon as the original where possible. I'll change the copyright thing to "...Forked as (name) by Drew Naylor"."

Decided to name it "libinidotnet" as I couldn't find anything online for that search term after a quick glance.

I think I'll just delete the icon instead of making my own. The rebranding is otherwise done except that the namespace is the same due to the number of files I'd have to modify.


typings error

Im using typescript and when i import the module it gives an error saying it cannot find the types for the module
i looked at the module folder and found that u put the index.d.ts file inside a typings folder instead of the root folder. i move the index.d.ts file to the root folder

and my error is gone and now i just need to change the paths inside the typings

my package json file has   "types": "./types/index.d.ts",
so you should have been able to find the the types at that location?


Add gruntwork badge to readme

I cant merge this one, btw, I think you need to add me somewhere on the settings of this repo.

Just sent you an invite to this repo!

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement
Learn more about why HashiCorp requires a CLA and what the CLA includes
Have you signed the CLA already but the status is still pending? Recheck it.


Updates should be in reverse order (desending)

Updates should go into a new collection ideally
Then we can run mongodb aggregate profiler on it to do better queries such as pagination


Deep atmosphere

@tapios suggested adding support for a deep atmosphere configuration. Here is what I think would need to get done:

Update the metric terms so that the horizontal metric terms will scale as
$$\frac{z+r}{r}$$
where $r$ is the radius of the reference sphere, and $z$ is the height from this.

Change the Coriolis terms to vary about the planetary rotation axis, basically
cross(Cartesian3Vector(2 * omega), u)

(note this should be a Cartesian3Vector, not a WVector).

We would need to distinguish between vertical line integrals, and vertical "wedge" integrals (which is probably what we would typically want?)

Gravity: White (2005) suggests scaling gravitational acceleration vertically by
$$\frac{(z+r)^2}{r^2}$$
Note that we should not  vary gravity by lat or long, as that would no longer correspond to the gradient of a gravitational potential, which could introduce spurious vorticity

If we did want to account for centrifugal effects in apparent gravity (i.e. lower gravitational acceleration at the equator vs the poles), we could switch to an spheroidal earth. I actually don't think this would be too difficult: main difficulty would be figuring out the appropriate conversions (geodetic lat, long, z) <-> (x1,x2,x3) for computing the metric terms.
Links

The opposite issue from ClimateMachine.jl: https://github.com/CliMA/ClimateMachine.jl/issues/1270
White, A.A., Hoskins, B.J., Roulstone, I. and Staniforth, A. (2005), Consistent approximate models of the global atmosphere: shallow, deep, hydrostatic, quasi-hydrostatic and non-hydrostatic. Q.J.R. Meteorol. Soc., 131: 2081-2107. https://doi.org/10.1256/qj.04.49

Thanks, @simonbyrne. This looks good.
Re 3: We should just support one set of vertical integrals. Usually, that remains a line integral, so that volume integral = line integral x surface integral, and the outward expanding surface integral takes care of the "wedge."
Re 4: Let's just consistently define gravitational acceleration = gradient geopotential. Then choose geopotential  = g r for shallow Earth (with constant g), and a corresponding effective potential for a deep atmosphere when we need it. For now, Phi  = g r suffices, and we can augment that function one day when we need it (e.g., for giant planet simulations).
Also, let's focus on spherical geopotential surfaces and a spherical geoid.
The key points are 1 and 2.


What is the iters for Sintel and KITTI training and testing datasets?

Hi!
Can share the iters for Sintel and KITTI training and testing datasets when running the evaluate.py? For the example of RAFT, the iters of Sintel and KITTI training dataset is 32 and 24, and the iters of Sintel and KITTI testing datasets is also 32 and 24.

In addition, can you share the pretrained model trained only by C+T data?

Hello,
Thank you for your interest in our work. We finally set it to 12 for the Sintel training and test sets. For KITTI, it is 18. The pre-trained model by C+T data is available at here.

Thanks!


Add sweta sadan school

@dawn-swetasadan First stage of verification passed, official domain is swetasadanschool.edu.np as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@dawn-swetasadan Pull request merged. Thank you.


pylance reports missing imports when "pip install -e ."

Not sure if this is a bug or feature request, but here it goes:
I have a local module that I am importing in another module, and I use "pip install -e ." to keep changing and working on both modules.
Doing this, in the VSCode editor, my imports are reported as missing, flagging them in yellow.
The code runs totally fine and python can find them.
In both modules the environment is the same and is the one that is activated.
This gets solved by installing the modules without the -e flag ("pip install ."), so it is a specific issue about how pip behaves when using that flag.
It is not crucial, but it would be nice to see in the editor that all is fine.
Thanks,
VS Code version: Code 1.75.1 (https://github.com/microsoft/vscode/commit/441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:32:34.589Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes

Please refer to the troubleshooting section for information about editable installs and how to fix this issue.


Add UI tests for existing lints

Part of #31.
This is a continuation of #125 that actually adds UI tests for all of the current lints. It was split off to make #125 easier to review.
To test this, run:
cargo test -p bevy_lint --test ui

To bless changes, run:
cargo test -p bevy_lint --test ui -- --bless

There are a few additional options available if you replace --bless with --help, too.

You'll probably notice the large file count when reviewing this PR. This is due to a multitude of reasons:

Seeing a wall of green checkmarks brings me happiness.
I like testing every single aspect of my code, even the bugs, to ensure I always know when something changes.
Certain tests are required to be split into multiple files, such as main_return_without_appexit where you cannot have multiple fn main() in the same file. (Other examples include //@check-pass comments, which ensure no warnings are emitted for a file.)
For each test that emits warnings / errors, a .stderr file is emitted with the plain-text content of the warning. If these diagnostics contain machine-applicable fixes, a .fixed file is also emitted by rustfix.

If you ever have trouble understanding a test, it's usually my fault and not yours. Please let me know if that's the case! You can also consult ui_test's README and examples.

With that all out of the way, I've finished writing tests for all of our lints! This is ready for review, once #125 is merged. :)

#125 is merged, so this is ready for review now!


Tool to assess accessibility of a list of references

[ Project Lead ] @JGDove99
[ GitHub Repo ]
[ Track ] Looking to inspire someone to build such a tool
[ Level ] Advanced
[ Timezone ]
Description
Use-case:  An author of a new scholarly article has assembled a list of references, possibly in Zotero or other bibliographic tool, possibly just in Word.  This author is a supporter of Open Access and so wants to assess which of her/his referenced sources are going to be accessible to readers of her/his new article.
Possible approach:  I understand that Google Scholar does not have an API that would allow one to build a tool that uses Google Scholar to search for open versions of each of the articles in a list of references.  And apparently Google Scholar will detect and then prevent attempts to use screen-scraping to do so.  But perhaps one of the other search engines like Bing or Baidu or something I've not heard of could do this.
Limiting the search to just articles with DOIs is not sufficient for this purpose, and CrossRef will usually just lead one to the "article of record" (often behind a paywall).  For the purposes of this use-case, the author will want to know which of her/his referenced sources are accessible to an end-user free on the open web.  Availability of any version of the article (so-called "green" OA) should be acceptible.  Possible places the article might reside includes repositories (institutional or subject or government), departmental or personal websites, academia.edu, ResearchGate, etc.
The author, armed with information about which referenced sources they are using are still behind paywalls may want to contact those authors to urge them to provide open versions of their articles so readers of the new article will have access to the references sources.
Open Source code from the OA Button, or from http://dissem.in might be useful for some, but not all of this task.  So might code from http://doai.io.

Want to Contribute?
Join us at the Global Sprint June 2-3. Leave a comment in this issue to let the project lead know you're interested in contributing during #mozsprint 2016!

Note to the Project Lead
Congrats, John! This is your official project listing for the Mozilla Science Global Sprint 2016. To confirm your submission, please complete the following:

[x] Provide a GitHub repository for work and discussion on your project
[x] Confirm in a comment that at least one person will be available to review and answer questions on this project from 9-5 in their timezone on both June 2 & 3. Please specify timezone. :clock1:

Do you want to become a featured project? :tada:
Here are some exercises that will help your project be more inviting to new contributors. We hope you'll try to complete some of these as you prepare for #mozsprint.
If you complete all the exercises, your project will be eligible to be featured in our collection of open source science projects! Once you've finished this list, contact @acabunoc to submit your project for review.

[x] README.md:
[ ] LICENSE:
[ ] CONTRIBUTING.md:
[ ] Roadmap or an Issue Tracker (with tasks to complete):
[ ] Data Reuse Plan (if applicable):
[ ] Code of Conduct:
[ ] Personas:

Hey John! This sounds a lot like this project: https://github.com/mozillascience/global-sprint-2016/issues/13

Similar, but taking it to a much broader level.  #13 assesses what percentages of a reference list represent articles available on PubMed Central.  That's one very important repository but primarily focused on medical science subjects.  #50 would work across all disciplines and will most likely involve use of a general search engine (probably not Google Scholar because GS has no API and prevents screen-scraping) to find out if an article is anywhere on the web (repositories, publisher cites, author's cites like academia.edu or researchgate, etc.) and needs to find "green" versions of the article if the article of record is not open.

I like the idea. Maybe you could also approach OA publishers, a small OA icon in their reference lists (next to OA references) might be nice. But I don't know if that is feasible.

first of all, general comment - I don't think a single thread issue is going to be the right medium for this discussion, which is tres interesting. Take that as you may :smiley_cat:
Secondly, have you considered using the DataCite APIs to immplement this tool ? Resolving objects via DOI and then parsing the metadata (which should usually be entirely consumable) to extract cited objects via DOI should be a respectable and implementable baseline study.

Andreas,
I completely agree.  LinkResolvers, which were the breakthru standard
for ease-of-use access in the behind-the-fire-wall world of the 90s, have a
feature which is an API which can pre-test whether or not clicking on the
link is going to reveal full-text, on-line, access so the library-product
can show a different icon if full-text is going to be available.  [Saves
enormous time when examining a reference list and you know you don't have
time for any inter-library-loan requests.]
What the user needs is a similar feature for links after a citation so
that know which ones will resolve to free-full-text access even before
clicking on it.
I've just started having conversations with publishers about this, but
first showing that it can be done would be a big help.
-john
On Tue, May 31, 2016 at 4:07 AM, Andreas Leimbach<EMAIL_ADDRESS>wrote:

I like the idea. Maybe you could also approach OA publishers, a small OA
icon in their reference lists (next to OA references) might be nice. But I
don't know if that is feasible.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mozillascience/global-sprint-2016/issues/50#issuecomment-222619765,
or mute the thread
https://github.com/notifications/unsubscribe/ASsJWSdrjKbYdTqbpw5dk3FHWmwbN1K5ks5qG-xZgaJpZM4IpyBw
.

Not all citations have DOIs.
Even those that do, DOIs are under the control of the publisher of the
article-of-record, and so for most traditional journals they rarely provide
a path to a shared version of the article. 79% of scholarly publishers
acknowledge that the author may share a version of their article, but they
are not [yet] making it easy for researchers to find those shared
articles.   This is a topic I've brought up with Cross Ref.

-john
On Tue, May 31, 2016 at 4:15 AM, Bruce Becker<EMAIL_ADDRESS>wrote:

first of all, general comment - I don't think a single thread issue is
going to be the right medium for this discussion, which is tres
interesting. Take that as you may 😺
Secondly, have you considered using the DataCite APIs to immplement this
tool ? Resolving objects via DOI and then parsing the metadata (which
should usually be entirely consumable) to extract cited objects via DOI
should be a respectable and implementable baseline study.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mozillascience/global-sprint-2016/issues/50#issuecomment-222621359,
or mute the thread
https://github.com/notifications/unsubscribe/ASsJWVO8uhHmNnpjAK9YJyvusOyXqFrWks5qG-4zgaJpZM4IpyBw
.

Very interesting project - I'm running into this at the moment in a side project I'm doing, wanting to check a list of doi's (in casu Sci-Hub downloads) for green OA availability.
I won't be able to join this sprint project as I have my own to attend to :-) but will be following with interest.
One additional source (in addition to the dissem.in api and the OA button already mentioned) might be the DOAI initiative built on BASE: http://doai.io/

You can scrape Google Scholar from a chrome extension- I do it for mine. Although if you load too frequently Google Scholar will still serve a captcha. https://chrome.google.com/webstore/detail/lazy-scholar/fpbdcofpbclblalghaepibbagkkgpkak It checks GScholar, PubMed, EuropePMC, and DOAI in search of free texts. Note: I've found that many of Google Scholar's "free texts" aren't always free, which is why I color the icon link yellow in the extension for lower confidence. I drop all the results in a database for each paper which could be queried by DOI, PMID, title, etc, but the number of papers is limited at this point.

What the user needs is a similar feature for links after a citation so
that know which ones will resolve to free-full-text access even before
clicking on it.<

This is what my extension does for PDFs, and you can be confident if full texts are free when linked on PubMed and EuropePMC based on html tags.

bmkramer,
DOAI is really neat.  And does a lot of what's needed.  I notice that
it's run by CAPSH which also does DISSEM.IN, and is based on an academic
search engine:
[image: BASE Logo] https://www.base-search.net/
which I've not heard of before.  Thanks for this suggestion.
-john dove
On Tue, May 31, 2016 at 8:05 AM, bmkramer<EMAIL_ADDRESS>wrote:

Very interesting project - I'm running into this at the moment in a side
project I'm doing, wanting to check a list of doi's (in casu Sci-Hub
downloads) for green OA availability.
I won't be able to join this sprint project as I have my own to attend to
:-) but will be following with interest.
One additional source (in addition to the dissem.in api and the OA button
already mentioned) might be the DOAI initiative built on BASE:
http://doai.io/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mozillascience/global-sprint-2016/issues/50#issuecomment-222668967,
or mute the thread
https://github.com/notifications/unsubscribe/ASsJWcRaIqDxPgqY5WDXl5g6pZ_t8yStks5qHCQIgaJpZM4IpyBw
.

BASE (already mentioned) and CORE (don't think mentioned yet) will cover a lot of this ground.

Richard,
I think http://dissem.in uses
CORE as part of its scoring of an author's published record. So that portion of testing accessibility could build on their code.
For some use cases the search for "accessible" needs to throw a wide net. This means departmental websites and sites like ResearchGate and Academia.edu.

-john
Sent from my iPad.

On Jun 1, 2016, at 4:47 PM, Richard Smith-Unna<EMAIL_ADDRESS>wrote:
BASE (already mentioned) and CORE (don't think mentioned yet) will cover a lot of this ground.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@JGDove99 do you have a chat room where we can talk about this project? I have a load of ideas to offload before turning in for the evening :)

How about WhatsApp?  I'm at +1-781-964-2325.
-john
Sent from my iPad.

On Jun 2, 2016, at 1:34 PM, Richard Smith-Unna<EMAIL_ADDRESS>wrote:
@JGDove99 do you have a chat room where we can talk about this project? I have a load of ideas to offload before turning in for the evening :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@JGDove99 yes dissem.in does use CORE.
I think what you're describing is very much within the scope of dissem.in actually, and also within the scope of science fair. I'll describe below how I would go about solving the problem...
Briefly, I'd make a node.js module that, given some metadata about a scholarly document, tries to find all sources for that document and evaluate whether they are freely accessible. Also I would call it hypatia - because she was the last librarian at the library of Alexandria 📚.
hypatia would be plugin based, so each possible source of information or fulltexts would be a plugin. For example, you could start with the following plugins:

crossref
doai.io

The simplest case would work like this:

First check the crossref API to get complete metadata about the document, if it's there.
If the metadata is there, check if the article is open access according to the license field
If it's open access, download the fulltext using the URL provided by crossref
If it's not open access, now resolve the same identifier via the doai.io resolver.
Compare the resolved URL via doai.io and the one given by crossref to see if they are the same. If not, you've got a free version via doai.io that wasn't in crossref.

That will cover more papers than any other single approach I think.
Then we could go on adding more plugins that would extend the reach of hypatia:

arxiv
figshare
ssrn
zenodo
CORE
BASE
dissem.in
microsoft academic graph
free text web searches looking for author / departmental sites

Then hypatia could be integrated into any node.js project, or any web service.
All of this stuff fits well in the framework of tools we're developing at ContentMine, and at Science Fair, and what the OA button folks and Cottage Labs are working on.
Does it sound like this is the sort of thing you were imagining?

Richard,
Yes, you're on the right track. I've already worked with the dissem.in team to take a citation list in marked up format to score them for accessibility. And they are helping SJ Klein and myself on a project at MIT.
However, there are some philosophical objections which keeps them from handling accessibility for some of the use cases I have in mind.  For example they do not consider my nephew's article to be open. He shares it on Academia.edu.  Google Scholar finds that article perfectly well. I tried DOAI with one of his articles and it fails to find the Academia.edu version as well.
I think we should arrange a Skype call in the next week or so, if you're able. It could be that there are ways ContentMine could help with this, or build on each other.
For the Sprint, I am hoping there is someone who can explore using Bing, Baidu, or something else for the last of your bullet points.
I won't be available tomorrow.
Perhaps we can talk next week.
Thanks for your suggestions already.
-John
Sent from my iPad.

On Jun 2, 2016, at 1:55 PM, Richard Smith-Unna<EMAIL_ADDRESS>wrote:
@JGDove99 yes dissem.in does use CORE.
I think what you're describing is very much within the scope of dissem.in actually, and also within the scope of science fair. I'll describe below how I would go about solving the problem...
Briefly, I'd make a node.js module that, given some metadata about a scholarly document, tries to find all sources for that document and evaluate whether they are freely accessible. Also I would call it hypatia - because she was the last librarian at the library of Alexandria 📚.
hypatia would be plugin based, so each possible source of information or fulltexts would be a plugin. For example, you could start with the following plugins:
crossref
doai.io
The simplest case would work like this:
First check the crossref API to get complete metadata about the document, if it's there.
If the metadata is there, check if the article is open access according to the license field
If it's open access, download the fulltext using the URL provided by crossref
If it's not open access, now resolve the same identifier via the doai.io resolver.
Compare the resolved URL via doai.io and the one given by crossref to see if they are the same. If not, you've got a free version via doai.io that wasn't in crossref.
That will cover more papers than any other single approach I think.
Then we could go on adding more plugins that would extend the reach of hypatia:
arxiv
figshare
ssrn
zenodo
CORE
BASE
dissem.in
microsoft academic graph
free text web searches looking for author / departmental sites
Then hypatia could be integrated into any node.js project, or any web service.
All of this stuff fits well in the framework of tools we're developing at ContentMine, and at Science Fair, and what the OA button folks and Cottage Labs are working on.
Does it sound like this is the sort of thing you were imagining?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

ps I have to go and do parenting duty - will catch up again in the morning :)

@JGDove99 I think I would agree with the dissem.in team that an article posted on Academia is not open unless it's under an open license. If it's just posted there without an open license, it technically possible to read it but it isn't open.
I'm interested in the problem of providing pragmatic access where open access is not available, but it's the long tail of the problem and has much lower payoff... eventually it's much easier to just use SciHub (which I am carefully not endorsing).

There are use cases where the world is a better place when a curious mind is not unnecessarily fettered from reading something that an author wants them to have free access to.
Those use cases also present the opportunity to educate a scholar about better ways to share. My main scheme and a couple others easily imagined allows both. SciHub is only STEM. The article my son needs (a four page article published by Cambridge University Press in 1994 for which they want 35 Euros for [salary for humanities instructors at Matej Bel University in Slovakia where he teaches are less than 1,000 euros a month]) is not in SciHub.
I think if we speak we'll find common ground, because I agree with you that either my nephew or academia.edu needs to change.
-john
PS:   You might find this post interesting.  It's about a lot more than SciHub. It has a good description of the use-case of an author assembling references for a paper to publish. And the Twitter trick using #icanhazPDF, is one that I've never heard of before. It successfully produced by email a copy of the Hungarian phonetics article for my son.
<EMAIL_ADDRESS>Sent from my iPad.

On Jun 2, 2016, at 2:29 PM, Richard Smith-Unna<EMAIL_ADDRESS>wrote:
@JGDove99 I think I would agree with the dissem.in team that an article posted on Academia is not open unless it's under an open license. If it's just posted there without an open license, it technically possible to read it but it isn't open.
I'm interested in the problem of providing pragmatic access where open access is not available, but it's the long tail of the problem and has much lower payoff... eventually it's much easier to just use SciHub (which I am carefully not endorsing).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@JGDove99 @blahah As a step towards my own use case (Sci-Hub data), but possibly also of interest here, I've now cobbled together a (crude) R-script that queries the Dissemin API for a list of DOIs and returns a table with information on both OA availability (in so far as determined by Dissemin) and publisher policies regarding sharing preprint, postprint and publisher versions (also from Dissemin, sourced from SherpaRomeo).
Script and description here: [Dissemin_API_R] (https://github.com/bmkramer/scihub_netherlands/tree/Dissemin_API_R)
And in reference to the discussion above, I have confirmed with the Dissemin/DOAI team that DOAI (not Disssemin)  includes ResearchGate (but not Academia.net) in checking online availability: [Twitter thread] (https://twitter.com/MsPhelps/status/748831746297298946)


delay issue

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: [Windows 10]
scrcpy version: [e.g. 1.17]
device model: oneplus 8 pro
Android version: [11]

i've been wanting to stream a game on my phone, and this program seems like a great solution. however, i wanted to test out the program, and it works great. except for when im in game, whenever i play a game, i get random lag spikes where the video slows down for like 1-2 seconds, and after it's done slowing down, there is a delay. i was wondering if this would be a problem with the program, my computer or my phone just not being fast enough. i am currently using these parameters: -b 18m --render-driver=opengl
this fixed  most of my issues, because before i was using these it would be very pixelated. however the delay still occurs.
INFO: scrcpy 1.17 <https://github.com/Genymobile/scrcpy>
C:\adbnew\scrcpy-server: 1 file pushed, 0 skipped. 50.5 MB/s (34930 bytes in 0.001s)
[server] INFO: Device: OnePlus IN2023 (Android 11)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 445.75
INFO: Trilinear filtering enabled
INFO: Initial texture: 3168x1440

See #798.

INFO: Initial texture: 3168x1440

Does it still occur with a lower definition (scrcpy -m1024 fo example)?

See #798.

INFO: Initial texture: 3168x1440

Does it still occur with a lower definition (scrcpy -m1024 fo example)?

this does fix it, however it greatly decreases the quality.
i've tried -m2048 now, and this seems to fix the quality as well as the delay, thank you for helping

this does fix it, however it greatly decreases the quality.
i've tried -m2048 now, and this seems to fix the quality as well as the delay, thank you for helping


resourceGroupName issue

Does this occur consistently?
Repro steps:

Action: appService.Deploy
Error type: Error
Error Message: "resourceGroupName" should satisfy the constraint - "Pattern": /^[-w._()]+[^.]$/
Version: 0.16.3
OS: darwin
OS Release: 18.7.0
Product: Visual Studio Code
Product Version: 1.43.1
Language: en

Call Stack
WebApps._getConfiguration extension.bundle.js:218:1884606
extension.bundle.js:218:3167300
WebApps.getConfiguration extension.bundle.js:218:3167278
SiteClient.<anonymous> extension.bundle.js:316:13399
extension.bundle.js:316:10417
i extension.bundle.js:316:10103
SiteClient.getSiteConfig extension.bundle.js:316:13221
extension.bundle.js:157:396411
fulfilled extension.bundle.js:157:395201

Hi @squarezw
Thanks for reporting.  Are you able to use your resource group name in the Azure Portal?

Yes. I am able to use it on Portal, but for VSCode is not work now.

Could you provide the resource group name that you are trying to use for repro purposes?

The group name is "squareenix". it doesn't show on portal somehow. but only show on my VSCode.

Hi @squarezw
I was able to create and deploy an app with the resource group name "squareenix" with no issues.  Could you provide more steps to repro this? Are you using some special characters along with "squareenix"?


Latest image for core 11.2.0 fails to start the core service

The latest image (core 11.2.0) is missing the new required "run" command when invoking the "stellar-core" executable. Stellar core fails to start with the current build printing out the cli usage help to the stdout log.
`#!/bin/bash
while ! psql -U stellar -c 'select 1' core &> /dev/null ; do
echo "Waiting for postgres to be available..."
sleep 1
done
echo "starting core..."
set -e
exec /usr/local/bin/stellar-core --conf "/opt/stellar/core/etc/stellar-core.cfg"
`
NOTE: the change appears committed, but the freshly pulled docker image did not contain it as of today (Sat 6th July 2019). Something went wrong during the build process maybe?

This is really strange, I manually triggered a build July 4th. Let me check what's going on here.

@voidburn what is the hash of the image you are using?

Image ID as reported by docker is:
stellar/quickstart   latest              b211b3181d8d        3 days ago          708MB
Worth noting that @chrisnickel on Keybase is right, this change wasn't picked up because the core/bin/start script is part of the persistent volumes setup, and did not get updated!
The image is most likely OK, this was only a breaking change that needed to be documented.


Fixed disabling oms-plugin

Signed-off-by: Dmytro Oboznyi<EMAIL_ADDRESS>
If you try to disable log-analytics in existing cluster with enabled oms plugin you will get such error:
Error: waiting for update of Managed Kubernetes Cluster "<cluster_name>" (Resource Group "<rg_name>"): Code="GetLogAnalyticsWorkspaceError" Message="Unable to get log analytics workspace info. Resource ID: /subscriptions/<subscription_id>/resourcegroups/<rg_name>/providers/microsoft.operationalinsights/workspaces/<log_analytics_workspace_id>. Details: autorest/azure: Service returned an error. Status=404 Code=\"ResourceNotFound\" Message=\"The Resource 'Microsoft.OperationalInsights/workspaces/<log_analytics_workspace_id>' under resource group '<rg_name>' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\". For more details about how to create and use log analytics workspace,  please refer to: https://aka.ms/new-log-analytics"

According to the official docs in order to disable oms plugin its section shouldn't be removed completely. We should change enabled from true to false and put in workspace id null value. In such way you will not get an issue.
Changes proposed in the pull request:

Changed addon profiles from dynamic fields to static
Changed default value for enable_kube_dashboard from null to false

I can verify that this was an issue and the fix worked.

I can confirm this is an issue and the PR resolved the issues

Thanks for the fix @DOboznyi

Hi @DOboznyi, thanks for your contribution! 🚀  I could reproduce this problem. Would you change https://github.com/Azure/terraform-azurerm-aks/blob/master/test/fixture/main.tf#L33-L34 kubernetes_version and orchestrator_version into 1.19.6 to pass the CI test? Though it's not related to your changes, but 1.19.3 is not supported any more for eastus. After that, this PR will be good to me.

1.19.3

Done, review please


Changing language and results list display

Original report on BitBucket by Taina Jääskeläinen.

When the user switches from e.g. Danish to English catalogue, s/he remains on the same page in the results list. So if has selected sorting by ‘collection date (newest)’ and switching on page 4 of the results list to another language, the user is brought to page 4 in the other language’s catalogue. The user may not realise this and think this is the most recent data in that language even if it is not.
If easy to change, change the system so that when changing language, the user always gets the first page of the results list based on whatever the sorting is selected.
If not easy, forget it.

Markus take a quick look if there is an easy fix, if not wait for fix in coordinate


Can beqz simply jump to 0(ra) ?

Hi,
In looking at the functions such as memclr and memcpy, I noticed there's a line like this:
memclr:
    beqz a1, memclr_done  # loop til size == 0
    ...
memclr_done:
    ret

I wonder if it's necessary to jump to a label which only performs a ret .. jalr zero, 0(ra).
Could that label simply be omitted and the code changed to this?:
memclr:
    beqz a1, 0(ra)  # loop til size == 0 then return

I haven't made a PR because I thought maybe there was a reason you did it that way.

Oh nice, I didn't even consider doing it this way. I do think that while this does save an instruction / label, it would make the func less consistent with the others. I use the func, func_loop, func_done setup in a few different places. Unless this shortcut would also work for the others? I'd have to go through em and see. I suppose it'd be fine unless the func does something extra in the func_done label, which some do (dbj2_hash does some finalization, for example).

Hi Andrew, I actually tested it and it doesn't work:
ValueError: too many values to unpack (expected 2)

I think it's because beq jumps to an offset whereas jalr performs a jump and link, so we would need to add an instruction to save the ra register.. which defeats the purpose of this optimization.

Ahh, that's good to know!


Lock didn't break, now I'm stuck

Seed:<PHONE_NUMBER>
Flags: NTE1OTk0NzE3IDc=
In the second world (World 6), I beat all three forts but the final lock on the way to the castle did not break. I have hammers break locks enabled and not sure if the logic accounts for the hammers I received from hammer bros along the way, but I feel it should be looked into regardless since people can misuse their hammers and become softlocked if that is the case.
Also in this world, I encountered two disabled autoscrollers (6 > 6-2 and 9 > 6-7) that are pretty much unbeatable without a P-wing due to the way vertical scrolling works. It should be corrected similar to fcoughlin's randomizer so that they will vertical scroll at will.
Overall I enjoy this version a lot with the random colors, sound effects, and chaotic enemy combinations. Thank you for all of your hard work migrating it to web and I hope you'll continue to develop the remaining features of Fred's randomizer (especially map shuffle (Shuffle World Locations) and removing the castle autoscrolling/cutscenes).

I also had this issue in World 6. I used a warp whistle to go to a new world but upon beating the boss of that world I was brought back a second time to World 6 to get softlocked again by the first lock, not the same one as shown above. Truly bizarre.
Seed:<PHONE_NUMBER>
Flags: MTExNyA2

yea im pretty sure this is because my assembly patches are buggy and broken. this is like the primary reason i stopped development on this randomizer,
https://github.com/ssjtroly/smb3-nes-web-randomizer/blob/f04b5524f904d1f34d6d8cd773c1423f753fd236/js/patch.js#L222 would need to fix this mess...


ITVR: Update Denial Email Language for Clarity

Describe the task
Adjust the language in the ITVR system-generated denial email. Incorporate the updated changes in yellow.
Purpose
To improve the clarity and tone of the denial email, so applicants understand why their application was denied.
Acceptance Criteria

[ ] Revise the email language to include the updated changes (highlighted in yellow).

Additional context

Updated language can be found here: ( see highlighted changes in yellow).

Proposed changes to the income-testing denial template:
This email was generated by the CleanBC Go Electric Passenger Vehicle Rebate program application.
Dear Applicant,
Your application has not been approved.
Some examples of why this may have happened include:
No record of your 2023 Notice of Assessment on file with the Canada Revenue Agency (CRA).
The identity records that you have supplied do not match CRA records. This could be due to any spelling errors or mistakes in your application.
Your income does not qualify/exceeds the maximum eligible amount under the program.
If you think you made mistakes in your application, please reapply.
Questions?
Please feel free to contact us at<EMAIL_ADDRESS>

@tim738745 - thank you.
Email confirmation from BA:


Installation with Parallels Desktop

Hello,
Could you please add a Parallels Desktop image or provide me with some additional information on how to use it with Parallels Desktop instead of VirtualBox??
Thank you in advance,
Prodromos

Hi,
thanks for contacting us. We will check the possibilities of providing an image of VoCol in Parallels Desktop. Once it is done, we will let you know. However, you can find more information for installing VoCol on a clean image or server on the link https://github.com/vocol/vocol#installation-on-a-web-server.
For further information, please do not hesitate to contact us.

Unfortunately, it was not possible to provide the VoCol on Parallels Destop. In addition we provide as a docker image on the following link: https://hub.docker.com/r/lavdim/vocol/.


Updating component versions.

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/1116397737

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/1116397737
Status: failure


Remove unnecessary use of com.sun.corba API

It seems very unlikely to me that com.sun.corba (private API) Exceptions would be thrown by the invoked code. I suppose the addition of this in 521bf72739f7f0e6a6ff1fb4ef0697ba7a561a27 was unintentional.

Ah! Changed to just fix the import.


Report An Issue opens a blank browser window in Azure Data Studio

Caused by #476?

Happens in ARM extension also, in vscode.


[Snyk] Security upgrade fastlane from 2.191.0 to 2.191.0

Snyk has created this PR to fix one or more vulnerable packages in the `rubygems` dependencies of this project.
As this is a private repository, Snyk-bot does not have access. Therefore, this PR has been created automatically, but appears to have been created by a real user.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

Gemfile.lock

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

691/1000  Why? Recently disclosed, Has a fix available, CVSS 8.1
Deserialization of Untrusted Data SNYK-RUBY-JMESPATH-2859799
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Deserialization of Untrusted Data

Hey @timrozum - looks like this one might be for you. Can you take a look at it?


downloadBlobToBuffer batchTransferOptions.operation function doesn't check for errors after running blobURL.Download

Which version of the SDK was used?
v0.0.0-20181022225951-5152f14ace1c
Which platform are you using? (ex: Windows, Linux, Debian)
Linux
What problem was encountered?
panic: runtime error: invalid memory address or nil pointer dereference
level=info ts=2019-05-31T03:41:16.250869767Z caller=compact.go:908 msg="start sync of metas"
level=info ts=2019-05-31T03:41:16.522751016Z caller=compact.go:914 msg="start of GC"
level=info ts=2019-05-31T03:41:16.524491465Z caller=compact.go:920 msg="start of compaction"
level=info ts=2019-05-31T03:41:16.615530225Z caller=compact.go:218 msg="compaction iterations done"
level=info ts=2019-05-31T03:41:16.615588744Z caller=compact.go:225 msg="start first pass of downsampling"
level=info ts=2019-05-31T03:41:32.912774859Z caller=compact.go:231 msg="start second pass of downsampling"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9020ee]

goroutine 10395792 [running]:
github.com/Azure/azure-storage-blob-go/azblob.(*DownloadResponse).Body(0x0, 0x0, 0x0, 0x0, 0x0, 0xc00076b408)
	/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.0.0-20181022225951-5152f14ace1c/azblob/zz_response_helpers.go:62 +0x24e
github.com/Azure/azure-storage-blob-go/azblob.downloadBlobToBuffer.func1(0x0, 0x745, 0x435901, 0x1260101)
	/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.0.0-20181022225951-5152f14ace1c/azblob/highlevel.go:208 +0x162
github.com/Azure/azure-storage-blob-go/azblob.doBatchTransfer.func2(0xc0006b0360, 0xc000419fa8)
	/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.0.0-20181022225951-5152f14ace1c/azblob/highlevel.go:329 +0x3b
github.com/Azure/azure-storage-blob-go/azblob.doBatchTransfer.func1(0xc0006b0360, 0xc0006b05a0)
	/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.0.0-20181022225951-5152f14ace1c/azblob/highlevel.go:312 +0x3f
created by github.com/Azure/azure-storage-blob-go/azblob.doBatchTransfer
	/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.0.0-20181022225951-5152f14ace1c/azblob/highlevel.go:309 +0x191

(This was encountered in the Thanos project )
How can we reproduce the problem in the simplest way?
Make blobURL.Download fail in the downloadBlobToBuffer
Have you found a mitigation/solution?
Yes. I'll submit a PR for this shortly after submitting this issue.

Hi @wbh1, thanks a lot for catching this!

The fix will be deployed with the next release. :shipit:

Closing, as this is fixed in v0.7.0


Free RDP do not working over gateway.

the steps to reproduce the bug, command line you have used:
There are two terminal Windows 2008 R2 servers, united in a farm. Connection to them is carried out through gateway available from the Internet.
Means of RemoteApp created the RDP file.
In the RDP file:
The application name to which connection is carried out is entered.
FQDN of a termanal farm, as knot to which the appendix is carried out is registered.
The external name gateway through which connection is carried out is entered.
Custom parameters of connection "authentication level:i:0, enablecredsspsupport:i:0".
The RDP file is signed by the certificate of the external CA.
Command "wfreerdp.exe NameRDPFile.rdp" do nor working. Note: Thus classical the Windows RDP client works correctly.
I tried to start commands with RDP file and without:
"wfreerdp.exe NameRDPFile.rdp /u:domainuser /d:domain /p:password /gu:domainuser /gd:domainuser/ gp:password/ v:terminalfarmname /g:gatewayname"
and
"wfreerdp.exe /u:domainuser /d:domain /p:password /gu:domainuser /gd:domainuser /gp:password /v:terminalfarmname /g:gatewayname"
In all cases the debug console window is closed too quickly, with what mistake work of freerdp comes to the end it is impossible to see. The log of files in the FreeRDP client any isn't present. In system events also aren't registered.
to what system did you connect to? (win8, 2008, ..)
Client side - Windows 7, server side - Windows 2008 R2.
what did you expect to happen? what actually happened?
Want to connect to terminal farm? but now it'snot works.
freerdp version (e.g. xfreerdp --version) or package version or git commit; operating System, architecture, distribution e.g. linux, amd64, debian; if you built it yourself add some notes which branch you have used, also your cmake parameters can help:
FreeRDP 1.0. Client side - Windows 7, server side - Windows 2008 R2.

How to force to work as FreeRDP with the RDP file? Or what keys need to be used to be connected to the opublirovanny appendix directly?
I studied the link https://github.com/FreeRDP/FreeRDP/wiki/CommandLineInterface. I tried to start FreeRDP with different keys but since dens in the client of FreeRDP aren't present, search of keys looks senselessly.

There have been fixes for gateway and redirection #4547, #4539 and #4548

Closing due to lack of feedback and successful connection attempts to (some) gateway configurations.
Look in referenced issues #4875 and #4781 for remaining issues.


Any way to load faster?

I put it into a background thread, still not fast enough. Any suggestions?
int i = 0;             for (UIImageView *imageView in self.featuredPhotoImageViewCollection) {                 dispatch_async(dispatch_queue_create("imageQueue", NULL), ^{                     NSURL *url = [NSURL URLWithString:[featuredPhotos[i] valueForKey:@"url"]];                     UIImage *image = [UIImage animatedImageWithAnimatedGIFURL:url];                     dispatch_async(dispatch_get_main_queue(), ^{                         imageView.image = image;                     });                 });                 i++;             }

int i = 0;             for (UIImageView *imageView in self.featuredPhotoImageViewCollection) {                 dispatch_async(dispatch_queue_create("imageQueue", NULL), ^{                     NSURL *url = [NSURL URLWithString:[featuredPhotos[i] valueForKey:@"url"]];                     UIImage *image = [UIImage animatedImageWithAnimatedGIFURL:url];                     dispatch_async(dispatch_get_main_queue(), ^{                         imageView.image = image;                     });                 });                 i++;             }

Use a real movie format instead of animated GIF.


Rows template: Gap between window and taskbar even with space set to 0

Environment
Windows build number: 18362.329
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce
Apply layout Rows with number set to 3 and space around zones set to 0
Expected behavior
No gap between the bottom window and taskbar or at least not larger than the gap between windows
Actual behavior
Gap between the bottom window and taskbar:

Gap between windows:

I'm seeing the same issue, specifically can't seem to get the first zone to not have a gap. Subsequent zones have no gaps.

The fix is now available in 0.16 https://github.com/microsoft/PowerToys/releases


add env proxy support

What use case is this for out of curiosity?

for some countries, it is not easy to connect openai, of course, including google bard
https://platform.openai.com/docs/supported-countries

I may refactor this such that users will have to pass in aClient themselves with whatever specs they want, but this is fine for now.


Problem generating pdf

Hello,
I'm trying to use htmltopdf to generate a pdf file whenever a service is called.
The first time I initialize the application and call the service, the PDF is correctly rendered; however, every time I call the service after that, the HTML is not rendered - instead, there is just plain text.
I was looking into the source code and I noticed that if I force the load() method call (that belongs to the WkHtmlToPdfLoader), copying the LIB to a new directory and its load in memory, it works as expected.
Below is my code to generate the PDF and the code that is generated after the first conversion:
My code
HtmlToPdf.create().object(HtmlToPdfObject.forHtml(html)).convert(tempFile.toAbsolutePath().toString());
Code generated after the first conversion...
 body, html { padding: 0; margin: 0; font-family: 'Nunito', sans-serif; width: 100%; } .row { display: - webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; margin-bottom: 17px; }

Thanks for contributing,
This has been resolved in 1.0.2, which should be available within the next couple of hours on Maven Central.


Example for Traefik

Hi,
Can you provide an example on how to run the VPN via Traefik? Goal is to make the 2FA portal and Management UI available via SSL:
I've added the following labels:
    labels:
      traefik.enable: "1"
      traefik.http.routers.wireguard-token.rule: "Host(`vpn.<URL>.com`) && Path(`/token`)"
      traefik.http.routers.wireguard-token.service: wireguard-token
      traefik.http.services.wireguard-token.loadbalancer.server.port: "8081"

      traefik.http.routers.wireguard-admin.rule: "Host(`vpn.<URL>.com`) && Path(`/admin`)"
      traefik.http.routers.wireguard-admin.service: wireguard-admin
      traefik.http.services.wireguard-admin.loadbalancer.server.port: "8082"

Relevant pieces of config.json:
   "Proxied": true,
    "ExposePorts": [
         "443/tcp"
    ],
    "NAT": true,
    "ManagementUI": {
        "ListenAddress": ":8082",
        "Enabled": true
    },
    "Webserver": {
        "Public": {
            "ListenAddress": ":8081"
        },
        "Tunnel": {
            "Port": "8080"
        }
    },

However, I keep getting a Gateway Timeout error from Traefik

If your goal is only to use ssl for the management ui.
You can use the CertPath and KeyPath to provide  a tls certificate path.
The Proxied option is only for when you've put a reverse proxy in front of the Mfa sign in portal as it makes wag respect the x-forwarded-for directive which can be dangerous if you're not running a reverse proxy in front of it (otherwise the client can pretend to be another client).
All Web server options take a key and cert pair.

Well I want to use the auto renew function traefik offers, and make sure both the management portal and token endpoint don't require an additional port forwarding

Van: NHAS @.>
Verzonden: Monday, August 28, 2023 8:47:39 PM
Aan: NHAS/wag @.>
CC: Bart van Wiggen @.>; Author @.>
Onderwerp: Re: [NHAS/wag] Example for Traefik (Issue #59)
If your goal is only to use ssl for the management ui.
You can use the CertPath and KeyPath to provide a tls certificate path.
The Proxied option is only for when you've put a reverse proxy in front of the Mfa sign in portal as it makes wag respect the x-forwarded-for directive which can be dangerous if you're not running a reverse proxy in front of it (otherwise the client can pretend to be another client).
All Web server options take a key and cert pair.
—
Reply to this email directly, view it on GitHubhttps://github.com/NHAS/wag/issues/59#issuecomment-1696194308, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXIEF2NXLVSOR3Y3X6UVKNLXXTRUXANCNFSM6AAAAAA4BHF6SA.
You are receiving this because you authored the thread.Message ID: @.***>

Yep! That makes sense.
I unfortunately haven't used Traefik so I don't have an example on hand to do this.
But your config for wag looks fine to me.
It's worth noting that the Mfa portal only listens on the wireguard interface, so you might need to specify an ip address in your reverse proxy config.
Side note.
Not sure if it's a good idea to allow your vpn clients to always be able to hit your management login page.


Define highlight colors depending on the secondary color

Hi, thank you for your work! I'm really enjoying this plugin and I'd be glad if I can help to make it better 😃
Issue
When I do ls | grep something and also when vim shows an alert message,
output text is not readable since the font color is the same as the background.
macOS
hyper version: 2.0.0
hyper-pokemon version: 0.4.3

What I did
I added constants highlight and secondHighlight, and set them to lightWhite and white respectively. The constants are defined depending on the value of secondary. When secondary is a dark color, highlight colors will be white, otherwise black.  I chose #000000 and #FFFFFF for lightWhite, and #686868 and #C7C7C7 for white because those are default colors in .hyper.js and easy to recognize. I've checked almost all themes.

Looks nice! Thank you a lot taking the time to submit the PR : )


Add java doc for interface 241

Codecov Report

Merging #282 into support-cosmosdb-async-sdk will increase coverage by 1.39%.
The diff coverage is 100%.

@@                      Coverage Diff                       @@
##           support-cosmosdb-async-sdk     #282      +/-   ##
==============================================================
+ Coverage                       82.82%   84.21%   +1.39%
==============================================================
  Files                              41       41
  Lines                            1147     1128      -19
  Branches                          132      132
==============================================================
  Hits                              950      950
+ Misses                            129      113      -16
+ Partials                           68       65       -3

Impacted Files
Coverage Δ

.../spring/data/cosmosdb/core/DocumentDbTemplate.java
94.69% <100%> (+1.33%)
:arrow_up:

...repository/support/SimpleDocumentDbRepository.java
93.2% <100%> (+11.46%)
:arrow_up:

...osmosdb/core/generator/AbstractQueryGenerator.java
87.34% <0%> (+1.26%)
:arrow_up:

Continue to review full report at Codecov.

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


Support Certificate Transparency

Certificate Transparency is not checked when using the HttpClient to connect using https.
If I send a https request to https://no-sct.badssl.com/ I would expect the request to be rejected because of a bad certificate.
The request is not rejected.

Here is a code snippet that executes a GET request against: https://no-sct.badssl.com/
import 'package:http/http.dart' as http;

Future<void> main(List<String> arguments) async {
    var response = await http.get('https://no-sct.badssl.com/');
    print('Response status: ${response.statusCode}');
    print('Response body: ${response.body}');
}

The behaviour I expect  is that the request is rejected on the client because of a bad certificate.

I am not sure it should be handled in this project. This issue has already been tagged: https://github.com/dart-lang/sdk/issues/43352 so no reason to also track it here.


Host name can't be blank error

Hello,
I'm trying to add a new Openstack Infra provider and I'm getting a 'Host name can't be blank error' when submitting the form. The Host Name field contains the IP address. Screenshot attached.
Thanks

Fixed in #3093.
Reverted a fix to a jquery change until it can be fixed for real.


planning better way to config plugins

🧩 Feature request
Description
Now I add a cli-option for support options in the marked plugin... This is a POC, and we need for the web, but we need planning and implement a better solution
 A clear and concise description of the problem or missing capability...
Describe the solution you'd like
 If you have a solution in mind, please describe it.
Describe alternatives you've considered
 Have you considered any alternative solutions or workarounds?

@SanderElias @aaronfrost we need create a meet for this

provided in #446


chore: update renovate bot configuration

This PR

Addresses the Renovate bot configuration issues

Related Issues
Fixes #201
Signed-off-by: Michael Beemer<EMAIL_ADDRESS>

Codecov Report

Merging #204 (dbb2347) into main (7786762) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main     #204   +/-   ##
=========================================
  Coverage     91.60%   91.60%
  Complexity      187      187
=========================================
  Files            20       20
  Lines           417      417
  Branches         22       22
=========================================
  Hits            382      382
  Misses           23       23
  Partials         12       12

Flag
Coverage Δ

unittests
91.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Support Elastic IP in the ec2-controller

Is your feature request related to a problem?
I need an Elastic IP to allocate for a NATGateway in my private subnets. This is supported in the AWS SDK for Go as AllocateAddress.
Describe the solution you'd like
A new ElasticIP or EIP resource

Added in https://github.com/aws-controllers-k8s/ec2-controller/pull/39


Model for Mobilenet v2

@yeephycho
Can you release a similar model but for mobilenet v2 ?
Thanks.

Were you able to do this? And how did you convert to v2


X.509 Certificates with ECDSA based keys supported?

I have a x509 cert with an ECDsa based key - here's the metadata:
{
"keys": [
{
"kty": "EC",
"use": "sig",
"kid": "68D797916CE7509DBC9CE7F601708CA16E367303",
"x5t": "aNeXkWznUJ28nOf2AXCMoW42cwM",
"x5c": [
"MIIDyjCCAjKgAwIBAgIQb62fi1RDUoKp8kStYW5uYDANBgkqhkiG9w0BAQsFADCBjTEeMBwGA1UEChMVbWtjZXJ0IGRldmVsb3BtZW50IENBMTEwLwYDVQQLDChET01JTklDS0JBSUFFODBcZG9taW5pY2tARE9NSU5JQ0tCQUlBRTgwMTgwNgYDVQQDDC9ta2NlcnQgRE9NSU5JQ0tCQUlBRTgwXGRvbWluaWNrQERPTUlOSUNLQkFJQUU4MDAeFw0xOTA2MDEwMDAwMDBaFw0yOTExMDExMDQ0NTVaMIGAMScwJQYDVQQKEx5ta2NlcnQgZGV2ZWxvcG1lbnQgY2VydGlmaWNhdGUxMTAvBgNVBAsMKERPTUlOSUNLQkFJQUU4MFxkb21pbmlja0BET01JTklDS0JBSUFFODAxIjAgBgNVBAMTGWlkZW50aXR5c2VydmVyLmVjZHNhLnRlc3QwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARYOEwgVXiaCl/Sj9GZDjOItFsTFRZ2B9VlBdYxzwgr52oyn1xMBlJbPMIu2nXptsy8Qssz34ODuEcUHOZ4PVCho3wwejAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBRJVNNoaS/qJG2yyA1U5ZHxrnh5/TAkBgNVHREEHTAbghlpZGVudGl0eXNlcnZlci5lY2RzYS50ZXN0MA0GCSqGSIb3DQEBCwUAA4IBgQBWVwsGedFAgPNNWrm+kW31Kss1q2iQVxKDuupoGmRAUfmGSjtVMZgU56vaIbKo33wWIVkuEfh+prwv8/5CjMbY7TjUSpN710vIFEN13oPEcaSdyeanopkOyUxC/cRNH2WlSK2qpTeyluxpFU0sXCgJWZS149eNxqxb7jKjf3TN2R7KDdfkdU3wg6tqSycMhYaX4IefI2gyeOmhcV79jSJIVhoqePrSGHr0oQWgwOeQQ+o6rFU69kOT3juxtRm7fbbh1GQEzcMdWxc56m+WYhaZmAxKRLM8ydCILwJQktCblusR1EOov9fnstYe9Y6RO4s2IwjooWItkF4csFlkO5ps2ui8XXFewAUWJEJtML8pbev3K7Et6NpArItn7bOlUpno0e3h49PNF4UvkSRwT7uQ0hlvbnkxjTP6zpnD4NZeK1mgiMycH3WGi4K/tfNZyzsP2hubunLSy3AbykATK2nYoHxWRfoApt/guqQhZYMG6M478pwbt2lZFliP+9JN6cU="
],
"alg": "ES256",
"x": "WDhMIFV4mgpf0o_RmQ4ziLRbExUWdgfVZQXWMc8IK-c",
"y": "ajKfXEwGUls8wi7adem2zLxCyzPfg4O4RxQc5ng9UKE",
"crv": "P-256"
}
]
}

I can't access the e.g. PublicKey property of the X509SecurityKey but worked around that using Certificate.GetECDsaPublicKey() - but the JWT handler also throws on singing:
An unhandled exception has occurred while executing the request.
System.NotSupportedException: The certificate key algorithm is not supported.
   at System.Security.Cryptography.X509Certificates.PublicKey.get_Key()
   at Microsoft.IdentityModel.Tokens.X509SecurityKey.get_PublicKey()
   at Microsoft.IdentityModel.Tokens.SupportedAlgorithms.IsSupportedAlgorithm(String algorithm, SecurityKey key)
   at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.IsSupportedAlgorithm(String algorithm, SecurityKey key)
   at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CreateSignatureProvider(SecurityKey key, String algorithm, Boolean willCreateSignatures)
   at Microsoft.IdentityModel.Tokens.CryptoProviderFactory.CreateForSigning(SecurityKey key, String algorithm)
   at Microsoft.IdentityModel.JsonWebTokens.JwtTokenUtilities.CreateEncodedSignature(String input, SigningCredentials signingCredentials)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.WriteToken(SecurityToken token)

Are these keys supported?

@leastprivilege this is a case I don't think we have considered.
EC keys are supported, but we have never tested this scenario.
It seems reasonable, are you exploring a new scenario OR blocked?

I am not blocked right now. But this is a very reasonable scenario. So I was surprised.

@brentschmaltz I noticed one of your colleagues saying that the PublicKey.Key and PrivateKey properties are "unofficially deprecated" and that's why X509's with ECC keys throw a NotSupportedException on those properties. Is that true?
In the FIDO component that I've built, I basically ended up calling GetECDsaPublicKey and checking for null. Is that expected? If so, it looks like SupportedAlgorithms needs an update to fix Dom's issue: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/dev/src/Microsoft.IdentityModel.Tokens/SupportedAlgorithms.cs#L50

I see no reason not to support the ECDSA as an X509SecurityKey, as it is supported by using the ECDSASecurityKey.
Because you can actually do something like this:
var cert= new X509Certificate2("somedsa.pfx","somepassword");
var key = new ECDsaSecurityKey(cert.GetECDsaPrivateKey());
var signingCredentials = new SigningCredentials(key,"ES256");
 var header = new JwtHeader(signingCredentials);
var jwtToken = new JwtSecurityToken(header, somePayload);
var securityTokenHandler = new JwtSecurityTokenHandler();
securityTokenHandler.WriteToken(jwtToken);

However than you need to set the x5t and kid manually on the JWT, if using that.
So kind of a mess.

@jaanclaeys @scottbrady91 @leastprivilege I agree with you folks, we should make this work. ECD is preferred by many people. We can't fit this into our SignedHttpRequest effort (our next release), but will get it in the next one.

@leastprivilege we are working on pushing our 6.x release. We would like to make sure we don't break IdentityServer.
The main issues we are:

removal of Newtonsoft from public API's, we will be switching to the new System.Text.Json in the future.
switching from JsonWebToken from JwtSecurityToken {claim mapping, speed, API}

There are some small breaking changes, but we feel there are corner cases.
These PR's are related to that work.

https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/1320
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/1127
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/1243
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/1331

1131 has been pushed, if you build against a 6.4.2 preview you we can get a sense if we have broken you. Please let us know of any issues.

If there are breaking changes, then you will probably break us. But that's the way it is.
More importantly is that there a not features missing that we rely on.
See this separate issue: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/1341

When is 6.8.1 planned?

Is this still being worked on? We have common customers that need this feature, @brentschmaltz

According to this issue, seems this is for the 6.9.1 milestone - oh wait...

We are working on ECDH-ES and will deliver that in April.

Any news about the support of ECDSA-based key?

Any news about the support of ECDSA-based keys?

@ciaozhang to check how far Cesar got in this work. thanks.

Done by: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/1866

@ciaozhang, I must be missing something, but the following does not work for me:
var cert = FindSingnigECDsaCertificate();
var now = DateTime.UtcNow;
var desc = new SecurityTokenDescriptor
            {
                Audience = "audience",
                Issuer = "issuer",
                NotBefore = now,
                Expires = now + TimeSpan.FromHours(1),
                Subject = new ClaimsIdentity(),
                SigningCredentials = new X509SigningCredentials(cert)
            };
var handler = new JsonWebTokenHandler();
var token = handler.CreateToken(desc);

In effect, this actually is not solved.
Problem is that X509SecurityKey only still looks at RSA as a means of finding the private and public key, and extracting x5t out of it.
The actual issue is that we want to sign with an X509Certificate2 backed with an ECDSA key.
This would leverage certificates and the reference for validating them (and on the validation side then also check if the certificate is still ok).
This can be done now with custom code, changing the x5t itself, but it is actually harder to do know with JsonWebToken than it was with previous JWTSecurityToken

Should this issue be reopened or a new one created?

There seems another issue reported #2377 that already has a pr.


fmt: %#v doesn't print type name for built-in underlying types

What version of Go are you using (go version)?
go version go1.10.1 darwin/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/willfaught/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/willfaught/Developer/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10.1/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/_1/ggvd2t1x7hz_185crsb36zlr0000gp/T/go-build166135441=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
https://play.golang.org/p/A22cqb47FB9
What did you expect to see?
(main.Chan)(0x1043a080) (main.Func)(0xd5960) main.Int(1) main.Map{1:1} main.Slice{1} main.Struct{X:1}
Note the main.Int(1) part.
What did you see instead?
(main.Chan)(0x1043a080) (main.Func)(0xd5960) 1 main.Map{1:1} main.Slice{1} main.Struct{X:1}
Note the 1 part.

The type name isn't shown for Int like it is for the composite types like Slice and Map. This can make it difficult to understand the values in a composite type whose nested type(s) is an interface. For example, if the below code prints []Syntax{"a", "b"}, the types of the slice values are ambiguous:
type Syntax interface{ syntax() }

type Comment string
type Identifier string

func (Comment) syntax(){}
func (Identifier) syntax(){}

func main() {
	var s []Syntax = ...
	fmt.Printf("%#v\n", s)
}

This seems to violate the point of the %#v format:

a Go-syntax representation of the value

func main() {
	var s []Syntax = []Syntax{"a", "b"}
	fmt.Printf("%#v\n", s)
}

because the "Go-syntax representation of the value" is invalid:
prog.go:16:28: cannot use "a" (type string) as type Syntax in array or slice literal:
	string does not implement Syntax (missing syntax method)
prog.go:16:33: cannot use "b" (type string) as type Syntax in array or slice literal:
	string does not implement Syntax (missing syntax method)

Maybe this can at least be changed for Go v2?

I think there are two different issues here.  One is that we don't print a type when printing a numeric or string value with %#v.  I think that is working as intended.  The other is that when using %#v to print a slice of an interface type, we still don't print the type when printing a numeric value even though the actual type implements the interface.  That may be a bug.
CC @robpike

Thanks for clarifying.
For the second case, I think it should apply outside slices as well. For example, interface{}(Comment("a")) should print as something like main.Comment("a"), whereas Comment("a") can print as just "a".

@willfaught But Printf can't distinguish between these two cases, since all of its arguments after the format have static type interface{}. Your second example gets implicitly converted into the first.

Good point.
Maybe it makes sense then to always print the type if it's a named built-in type. Otherwise, the "a" printed by
type T string
fmt.Printf("%#v", T("a"))

isn't syntax for a value with type T.
You can omit it if the type is part of the composite type, like []T{"a"}.

Closing due to no activity.


Non transparent tiles show border on v2.4.0 but not on v2.3.1

In this codepen, if opened with Firefox 64.0.2 (64-bit) on MacOS, you will see that each tile has a border.

If library "2.4.0" is replaced with "2.3.1" then the issue disappears. This looks very similar to issue https://github.com/openseadragon/openseadragon/pull/1470 but we are not really trying to overlay/ or underlay other tiles or make them transparent at the moment. We have not used "clearReact" so I am not sure how this would affect this issue in our case. Switching to jpeg tile format is not an option. Also, we are using overlap "2" in our dzi file which worked just fine.
What are the options?

We reverted the change in the library that was related with the transparent image and it works fine now.

Yes, it makes sense that it would work fine for your case, but reverting the change in OSD itself would break the case covered by #1470. The goal is to find something that works in both cases.
That said, of course if you're okay with having your own modified OSD, sounds like you have a fix that works for your project.

Oh I hear you, it would be great to cover both cases! Looks like Dvidan and Avandecreme are familiar with the granular details. I'll see if I can have one of our guys to dig deeper into this.

@Kampii Great!
@Dvidan @avandecreme FYI, #1470 evidently wasn't completely perfect. Any thoughts on how to find the happy medium?

While we have been unable to find an automatic fix for this issue, we've now landed a set of options that allow you to fix the issue based on your needs and preferences: #2075. I'm going to close this issue and we can start a fresh one if there are new ideas for how to fix it more robustly and/or automatically.


Add dependencies to gemspec

Currently the gemspec does not contain the dependencies. This leads to weird errors like LoadError: cannot load such file -- rest-client after you install the gem. I may have missed dependencies as i just added what i needed in order to install this gem, but i already have quite a lot of gems on my system.

Hi,
Thank you for this. I don't know how I missed that. The dependencies are specified in the Gemfile and you can install them with bundle install but they don't get installed when you use it as a gem (my bad).
Can you please move the dependencies from the Gemfile into the gemspec as mentioned here. This way we avoid duplication and you can use this both as a gem or as a library.
Thank you,
Rob

This looks perfect now, thanks. The tests seem to be failing because of a bundler bug. I have applied a workaround in master for that so everything should be fine.


ASP.NET core 2.0 Authentication does persist more than 30 minutes.

I do not manage to keep users logged in for more than 30 minutes.
Lets take default Visual Studio example "ASP.NET Core Web Application" -> .NET Framework 4.6.1 + ASP.NET Core 2.0 + MVC + Individual User Accounts.
ConfigureServices:
services.AddDbContext<ApplicationDbContext>(options =>                 options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));             services.AddIdentity<ApplicationUser, IdentityRole>()                 .AddEntityFrameworkStores<ApplicationDbContext>()                 .AddDefaultTokenProviders();
Configure:
app.UseAuthentication();
Action Login:
var result = await _signInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, lockoutOnFailure: false);
If user logs in + remember me (isPersistent = true) user gets rejected after 30 minutes. You can navigate between pages or reopen browser during those 30 minutes and everything is ok. But after 30 minutes you are asked to login again.
Setting this does not solve the problem:
services.ConfigureApplicationCookie(options => {   options.ExpireTimeSpan = TimeSpan.FromDays(1); });

Can you check the security stamp column for your users?  30 minutes is the default timespan for the cookie to be rechecked against the security stamp for the user, i.e. if the user changes his password, that will expire all login cookies...
https://github.com/aspnet/Identity/blob/dev/src/Microsoft.AspNetCore.Identity/SecurityStampValidatorOptions.cs#L20
If there is something wrong with the security stamp storage for your users, this would cause what you are seeing

Thanks for reply. How should I identify a problem with security stamp?
In my database it looks like this:

Then I mention 30 minutes, nothing is done during this interval that could change password or any of user data. I just refresh the page.

You can try nulling out the security stamp validator logic to see if that fixes the issue to start:
services.ConfigureApplicationCookie(o => o.Events = new CookieAuthenticationEvents())

ok. after setting this I got logged out in 2 minutes 30 seconds.

What does the cookie header actually look like?

By saying cookie header you mean this:

Is services.ConfigureApplicationCookie defined before or after the services.AddIdentity. If you define it before the services.AddIdentity, your custom values will be overwritten.
And this how you can change the ValidationInterval interval:
services.Configure<SecurityStampValidatorOptions>(options =>
            {
                // enables immediate logout, after updating the user's stat.
                options.ValidationInterval = TimeSpan.Zero;
            });

Strange things happens... My current CofigureServices method looks like this:
        services.AddDbContext<ApplicationDbContext>(options =>
            options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));

        services.AddIdentity<ApplicationUser, IdentityRole>()
            .AddEntityFrameworkStores<ApplicationDbContext>()
            .AddDefaultTokenProviders();
        services.Configure<SecurityStampValidatorOptions>(options =>
        {
            // enables immediate logout, after updating the user's stat.
            options.ValidationInterval = TimeSpan.Zero;
        });
        services.AddMvc();

and i can login. TimeSpan.Zero does not behave as you have written.

Thank you @VahidN and @HaoK . Setting ValidationInterval to more than 30 minutes, seems to solve the problem.
   options.ValidationInterval = TimeSpan.FromHours(12);
However, options.ValidationInterval = TimeSpan.Zero; does not work as you have noted; user does not get logged out instantly.
Now if would not mind, please explain me shortly how does this ValidationInterval work. Is it global for the whole webapplication? I mean that:

when i start web app it does a check every 12 hours for all users
or is it user specific and starts counting since user login?

And since options.ValidationInterval is no longer under services.AddIdentity, I would expect to find this change mentioned in https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/identity-2x

SecurityStampValidator will be called for every single request to the server, but it will decide based on the ValidationInterval value and cookie issue time to determine when it should check the validity of the cookie again. If you set the ValidationInterval to zero, it will check and call the ValidateSecurityStampAsync method every time. So it's not related to the ExpireTimeSpan value. It's about the SecurityStamp property value of the current user. This values will be changed internally by the framework if you update the user's properties.

It seems there was a big gap in my understanding about how does this all work. I also found that I have lied a little.  Server checks security stamps upon every request to the server options.ValidationInterval = TimeSpan.FromSeconds(10)).
cookie is valid at minimum for 30 minutesoptions.ExpireTimeSpan = TimeSpan.FromMinutes(30);, but can be extended with options.SlidingExpiration = true; if page is refreshed or navigated.
important! do not be too "smart" like me and do no run _userManager.UpdateSecurityStampAsync(user); just after successful login. Because this updates security stamp and next  options.ValidationInterval validation will fail.

I had this problem as well when updating to 2.0, but the cause was that I using signInManager.SignInAsync with a non existent user (I'm handling the logins manually using an API, not a good idea).
I'm not using existent users and it works fine when setting the cookie opt ExpireTimeSpan to higher than 30 minutes.

@gtarsia
I had this problem when I am using Cookie authentication without identity setup. Does anyone know what is the maximum value for the ValidationInterval. I set it like 7 days, but it expires already in 30 minutes or redirected me to log in page.
` services.AddAntiforgery(options =>
{
options.Cookie.Expiration = TimeSpan.FromDays(1);
            options.Cookie.Name = "M";
            options.HeaderName = "VerificationTkn";
        });

        services.AddAuthentication(options =>
            {
                options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                //options.DefaultChallengeScheme =  CookieAuthenticationDefaults.AuthenticationScheme;
            })

        .AddCookie(
            CookieAuthenticationDefaults.AuthenticationScheme,
            options =>
            {
                options.Cookie.Expiration = TimeSpan.FromDays(1);
                options.ExpireTimeSpan = TimeSpan.FromDays(1);
                options.LoginPath = "/Account/Index";
                options.LogoutPath = "/Account/SignOut";
                options.ReturnUrlParameter = "ReturnUrl";
                //options.Events.OnRedirectToLogin = context =>
                //{

                //    context.Response.Headers["Location"] = context.RedirectUri;
                //    context.Response.StatusCode = 401;
                //    return Task.CompletedTask;
                //};

            });

        services.Configure<SecurityStampValidatorOptions>(options =>
        {
            // enables immediate logout, after updating the user's stat.
            options.ValidationInterval = TimeSpan.FromDays(1);
        });

        services.AddMvc();`

In my AccountController.cs:
await HttpContext.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme,                      items, new AuthenticationProperties                     {                         AllowRefresh = true,                         IsPersistent = true,                         ExpiresUtc = DateTime.UtcNow.AddDays(1)                     });


Fix up outdated README

[ ] Update the package on NPM
[ ] Tag the 2.1.0 release

Hi @foklepoint, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@HamletDRC

Thanks. The 2.0.10 version is not released yet, we'll do that this week.
The README.md file displayed on the GitHub page is the version from the master branch. So it is always slightly ahead of the npm releases.


Settings screen - node.

Guy Corem, [Jan 8, 2020 at 10:19:22 AM]:
iOS wallet is a little buggy but at least u have one
I sent feedback
On node setting screen

2020-01-14 15.08.48.mp4.zip


Pivot models $table variable not respected / overridden

Laravel Version
11.7.0
PHP Version
8.3.6
Database Driver & Version
mysql-community-server 8.0.35-1ubuntu22.04
Description
I created a pivot model to connect two tables, and set the protected $table attribute to a different table name that exists in my database. When attaching records, the $table property was not respected, and the getTable function must be overridden.
If no table is passed to Illuminate\Database\Eloquent\Concerns\HasRelationships::belongsToMany it generates a new table name and (eventually) sets the table name of the model to that value once that value is passed to `Illuminate\Database\Eloquent\Relations\Concerns\AsPivot::fromAttributes.
There is no check on the model to ensure that the table name is set, and while I might imagine there could be concerns that the one writing the relationship would like to override the table, resolving the table name should be done later so that there's the possibility that it may be left to the Pivot once instantiated, given that the same table name resolution behavior is present in Illuminate\Database\Eloquent\Relations\BelongsToMany::resolveTableName and Illuminate\Database\Eloquent\Relations\Concerns\AsPivot::getTable
That is to say, they both transform the model name to snake case in singular form.
There is an undocumented behavior, in that you can pass a Pivot instance to the $table parameter, which does not run into this issue, but the name of the variable gives no hint at this behavior (and is undocumented).
Steps To Reproduce

Create two models
Use a belongsToMany relationship with a Pivot class $this->belongsToMany($relation)->using(PivotClass::class)
Override private $table on the Pivot class
Attempt to attach the models together using the Pivot.

I created the two regular models and one pivot model to connect the two, and when attaching one to the other I get the error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_proj.card_category' doesn't exist (Connection: mysql, SQL: insert into `card_category` (`category_id`, `card_id`) values (3, ?))
When I use tinker to check the table name, everything appears normal, which means that the Pivot model's $table attribute is being modified by setTable()
Psy Shell v0.12.3 (PHP 8.3.6 — cli) by Justin Hileman
> app(CardCategory::class)->getTable()
[!] Aliasing 'CardCategory' to 'App\Models\CardCategory' for this Tinker session.
= "card_categories"

App\Models\CardCategory:
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\Pivot;
class CardCategory extends \Illuminate\Database\Eloquent\Relations\Pivot {
    protected $table = "card_categories";
}

App\Models\Card:
<?php
namespace App\Models;
class Card extends \Illuminate\Database\Eloquent\Model
{
    public function categories()
    {
        return $this->belongsToMany(Category::class)->using(CardCategory::class);
    }
}

Could you maybe try the solution from this issue? https://github.com/laravel/framework/issues/48277

Hey @driesvints I started work on a possible fix but unsure if it's the right way to go forward.
I left it as a draft for now as the get functionality is still broken. :(

Thanks @edwwaarrdd. To be very honest, often when Pivot models are stretched like this we recommend to just use a dedicated eloquent model. I'm not sure if we should do any major changes.

@shortontech @edwwaarrdd This is a very fundamental issue that can't be solved (without dirty hacks):
Calling $this->belongsToMany(Category::class) already creates the relationship's base query and so applying ->using() afterwards doesn't change the pivot table anymore.

There is an undocumented behavior, in that you can pass a Pivot instance to the $table parameter, which does not run into this issue, but the name of the variable gives no hint at this behavior (and is undocumented).

I agree that the solution should be documented, as this topic comes up regularly.

@staudenmeir Yes I agree with this. Started tinkering a little bit but it became clear pretty fast that it's not something easy to fix.
So @shortontech if you want to fix your issue instead of declaring your belongs to many like this:
public function categories()
    {
        return $this->belongsToMany(Category::class)->using(CardCategory::class);
    }

You can write it this way:
public function categories()
    {
        return $this->belongsToMany(Category::class, CardCategory::class);
    }

And it will work the same as ->using() but the $table variable will be respected as it calls the using() function in the construct of the belongsToMany class.
I am going to close my PR
Thanks for the quick responses @driesvints & @staudenmeir

Yeah I think we should as well. Thanks @staudenmeir. Would appreciate a PR to the docs if possible!

Added a small extra section for it in the docs.


Click events get triggered twice. An iScroll within iScroll problem.

My current set up uses a vertical iScroll inside of a horizontal iScroll. I think this is causing a problem where touch events get triggered twice, disabling either one of the scrolls (horizontal or vertical) solves the problem.
What is the best way to workaround, or fix this issue?
Thanks for the great lib.

I just hacked together this fix. Need up update with non-globals once I figure out where iScroll would want me to place them.
if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA' && window.iScrollClickFIX != true) {
    window.iScrollClickFIX = true;
    setTimeout(function(){
        window.iScrollClickFIX = false;
    }, 250)


Download mp4 as 320*180 resolution

How can I download youtube videos in mp4 format with 320*180 resolution?
ex. https://www.youtube.com/watch?v=_ePP54z-w98
Using TubeMate under Android I can do it by single click (without need to convert) but using youtube-dlg (or youtube-dl) I don't know how to do it :(

I do not think this resolution is supported by Youtube, youtube-dl pulls me these formats available
http://pastebin.com/GwS9263U
To download it, it would be
youtube-dl --format 134 https://www.youtube.com/watch?v=_ePP54z-w98

@eliluminado
Thanks but I don't think this correct argument because format 134 is 640x360 as shown below:
youtube-dl -F https://www.youtube.com/watch?v=_ePP54z-w98
[youtube] _ePP54z-w98: Downloading webpage
[youtube] _ePP54z-w98: Downloading video info webpage
[youtube] _ePP54z-w98: Extracting video information
[youtube] _ePP54z-w98: Downloading js player en_US-vfl_cdzrt
[info] Available formats for _ePP54z-w98:
format code  extension  resolution note
249          webm       audio only DASH audio   55k , opus @ 50k, 1.49MiB
250          webm       audio only DASH audio   79k , opus @ 70k, 2.05MiB
140          m4a        audio only DASH audio  128k , m4a_dash container, mp4a.40.2@128k, 3.62MiB
171          webm       audio only DASH audio  138k , vorbis@128k, 3.77MiB
251          webm       audio only DASH audio  152k , opus @160k, 4.01MiB
160          mp4        256x144    144p  110k , avc1.42c00c, 13fps, video only, 3.10MiB
278          webm       256x144    144p  123k , webm container, vp9, 13fps, video only, 2.54MiB
242          webm       426x240    240p  194k , vp9, 25fps, video only, 3.14MiB
133          mp4        426x240    240p  246k , avc1.4d4015, 25fps, video only, 6.94MiB
134          mp4        640x360    360p  293k , avc1.4d401e, 25fps, video only, 6.64MiB
243          webm       640x360    360p  339k , vp9, 25fps, video only, 5.62MiB
244          webm       854x480    480p  560k , vp9, 25fps, video only, 9.39MiB
135          mp4        854x480    480p  595k , avc1.4d401e, 25fps, video only, 14.04MiB
136          mp4        1280x720   720p 1103k , avc1.4d401f, 25fps, video only, 27.86MiB
247          webm       1280x720   720p 1119k , vp9, 25fps, video only, 18.45MiB
137          mp4        1920x1080  1080p 2136k , avc1.640028, 25fps, video only, 52.24MiB
248          webm       1920x1080  1080p 2172k , vp9, 25fps, video only, 34.91MiB
36           3gp        320x?      small , mp4v.20.3,  mp4a.40.2
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
5            flv        400x240    small , h263, mp3  @ 64k
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)

The format 36 has a resolution of 320x180

@eliluminado

The format 36 has a resolution of 320x180

It's not mp4!!! it's 3gp

It is only the extension, the codec is MPEG-4 for video and audio MPEG ACC


Feature #5729 Add Description to DHCP Leases list RELENG_2_2

The start and end columns are n/a for static leases, and it is static leases for which we (might) have a description. So we could reuse the Start and End columns to show the description. That avoids any issue of using more screen width and how to fit all the columns.
I tried it at home on my 2.2.6 system and actually it is useful for me - the descriptions can be a lot more descriptive than the host name that I have put in the static mappings, so it is easier to know what is what on the status DHCP leases display with the description shown.
This is just an example based on RELENG_2_2 - but it might be the way to go?

@sbeaver-netgate has done this in master for 2.3 and it works.
So either:
a) This could be done in 2.2.* also - so merge this
or
b) This sort of enhancement should not be back-ported to 2.2.*, in which case just close this PR.

Thanks Phil. We'll leave 2_2 as is.


feat(tests): added getBans, unban, ban

Made the tests for ban (With and Without reason), unban and getBans

This closes #1176 #1303 #1234