Questionnaire update fails when section names change

Changing a section name within a questionnaire will cause the upload of the updated questionnaire to fail.  Changing question names can only be done when implementing a new version of the questionnaire.

This is due to using the section name to look up the original section to be updated.  If the section name changes, it can not be found in the database.  Exception is thrown from here: https://github.com/OpenChain-Project/Online-Self-Certification-Web-App/blob/61f7629f0eb87940adcca093edaa21444796ed0b/src/org/openchain/certification/dbdao/SurveyDbDao.java#L357

Since the section name has to be used as a key, it should not be changed in an update.
The resolution of this issue is to generate a warning rather than throw an exception.


progress v1

Doubt/Suggestion

checkout the files  inside wsclient

Currently it doesn't have unsubscription support or any future subscription

One way to handle this make my client like this (just an example not the real implementation)

type wsclient struct {
    tradeSubUnsubCh chan subUnsubRequest
}

func (c *wsclient) tradeSubUnsubHelper(topics []string) {
    c.tradeSubUnsubCh <- subUnsubRequest{
        // example
        topics: topics
    }
}

// rest of the code

Now this way I can handle the sub unsub to topics of a particular stream.
Let me know any further ideas

@prathmesh-bhalekar just make a simple todo of improvements you want, it will be easy for me to work upon

@prathmesh-bhalekar can you check the wsclient code. I will commit login part, once I could test run it (currently server is down I guess)


Added Materio Free Bootstrap 5 Admin Template

Added Materio Free Bootstrap 5 Admin Template & corrected spelling in Sneat Bootstrap 5 Admin Template Description
[Materio Free Bootstrap 5 HTML Admin Template] -> [HTML & CSS Templates]
Materio Free Bootstrap 5 HTML Admin Template
Most Powerful & Comprehensive Free Bootstrap 5 HTML Admin Dashboard Template built for developers!
Link: https://github.com/themeselection/materio-bootstrap-html-admin-template-free
Checklist:

[x] I have performed a self-review of submitted resource and its follows the guidelines of the project.

Hello,
May I know if I made any mistake in submitting the pull request?
I submitted an open-source HTML CSS admin template which has an MIT license & is free to use.
Thought it would be great to submit here.
Let me know what can I do to get included this product in the list.

not 100% free as it has a premium version.
Also pushing the user to upgrade to pro.


BVC-88 :: Invalid data received from the server fails silently in exposure matching capability of the app

The mobile app can be rendered useless if it receives an invalid value for one of the parameters within the exposure configuration data, which is received from the server after initial app setup. The app does not validate the data received from the server, but the invalid value is rejected later with a silent failure just before an attempt is made to check if the user has been exposed to an infected person.
The app retrieves the exposure configuration from the server via the HTTP GET exposure-configuration request, but does not perform any data validation on the retrieved data.  Later on, the data is used to build the ExposureConfiguration object which is a mandatory parameter of the provideDiagnosisKeys method. The provideDiagnosisKeys is part of the Exposure Notification framework that checks to see if the user was exposed to an infected person. An attempt to update an ExposureConfiguration object with an invalid value (e.g. attenuationWeight = 150) will fail with an IllegalArgument exception. The application does not handle the error nor notify the user nor log the issue. This scenario results in a silent failure that occurs every time an attempt is made to check if the user has been exposed to an infected person essentially disabling the most important feature of the application, thereby rendering it useless as it is unable to recover from this problem.
To reproduce this problem, update the ON.json, that is returned by server, with an invalid value for attenuationWeight (use a value > 100), then install and launch the app to go through the setup process.
Refer to the first line in ExposureNotificationModule:detectExposure() where the failure occurs. Note, an exception is thrown at this point so the call to provideDiagnosiskeys (a few lines below) is never executed. Also, the file with the diagnosis keys(stored in keys.zip) that are meant to be stored temporarily are never deleted.
The app should be robust enough to deal with invalid values that can occur as a result of user configuration errors or a man-in-the-middle attack.
Recommended fix:

define valid default values for all parameters that are part of the exposure configuration data structure
validate all parameters extracted from the JSON file and replace invalid values with default ones.
Handle all errors as part of the ExposureNotification interface
ensure keys.zip files don't accumulate

=-=-=-=-
John's note: Apologies, this is like 2-3 tickets, feel free to split apart as needed based on a triage of the potential fix.

I have made a PR that addresses a part of this ticket. If the configuration is unable to be downloaded or is non-parseable JSON, then the app will use either a configuration that is included with the app, or will use the previously saved (from download) configuration.

The next part of this is to verify that the downloaded configuration is indeed parseable as an ExposureConfiguration object and that the values within it are valid.

First part is merged https://github.com/cds-snc/covid-shield-mobile/pull/463

The changes made do a significant amount to ensure a configuration was downloaded.
It throws any network errors, and it throws an error if the downloaded data is not parseable JSON.
The next steps will be to validate:

that the JSON is a proper configuration,
and that the values within the configuration are valid.

I believe we should close this ticket and create another one with just those 2 tasks.

Discussed the above with @jeberhardt
The JSON config is served by us and needs Github review on our side if anyone is submitting a new config.
@obrien-j let's pick this up in another ticket as need be.


Add sniffer support

This allows the tests to run automatically when a file has changed.

:+1:

Haven't had a change to test it, but can't see any great danger in it. There's definitely a demand for something like this. I'll go ahead an merge, thanks!


[FEATURE] Testing compatibility on different platforms

Is your feature request related to a problem?
We test our clients for Linux platform but we do not know if these clients work smoothly on platforms like windows/mac etc.
Coming from https://github.com/opensearch-project/opensearch-clients/issues/18
What solution would you like?
Test the client with most popular platforms and CPU architectures:

x64
ARM
Linux
Windows
MacOS

I got all unit tests passed on

Windows x64
Linux x64
Mac x64

And they failed on

Mac ARM

Integration tests passed on

Linux x64
Mac x64

Integration doesn't work on Windows.
Rest combinations weren't tested yet.

Information might be outdated, most recent test runs were on Linux x64 only.

Thanks @Yury-Fridlyand, it would help to add the different OS in the CI workflow similar to https://github.com/opensearch-project/opensearch-java/pull/208


Add Yosys formal equivalence checking to Travis regressions

This adds a helper script for running equivalence checks using Yosys. For now it only checks BOOM's Rob because there are namespace issues with circuits with multiple modules. The check only runs on PRs and only if the emitted Verilog is actually different.
I have run the script locally and it seems to work well, but I can't test it on actual Travis without a PR. I'm going to see if creating a PR against this branch that trivially changes Verilog emission will trigger it.

This is pretty cool.  Once we sort out the namespace issues, does it make sense to rely exclusively on LEC for Firrtl PRs, instead of Verilog simulation?

I think utilizing LEC to help verify even more of the codebase is the right way forward (along with more focesed unit tests for code coverage). I’m not sure about completely ditching simulation since we at least want sanity checks that our emitted code works with verilator; especially in circumstances where the LEC checks might fail because of undefined behavior or we do actually tweek the formal semantics slightly. I think we’ll just have to see how effective and robust this test is.

I have a PR against this branch to test the LEC checking, currently failing but once it passes I think this PR is good to go.
The other PR https://github.com/freechipsproject/firrtl/pull/672

This is great!  For a split second, I thought Yosys was reading FIRRTL directly, and thought that would've been super cool.  :)

Another thing we could do in the mean time is inline everything for rocket.fir. Not sure how long it would take though.

Alright after fighting with git and Travis for a while I think this PR is ready. To show that it worked, I created to PRs against this branch: one that should pass LEQ and one that should fail.

This PR does not change code generation at all - Against master, my script found the emitted Verilog files were identical so no reason to run LEQ
#672 just added a space to emission - Yosys showed the emitted Verilog is equivalent
#673 emits all <= as just < - Yosys caught it and Travis failed

Additionally, all branch Travis runs skipped LEQ as expected because this test requires branches to compare. I plan on adding more LEQ tests in the future to test the compiler more directly.

To summarize what this PR actually does:  For PRs only, check that the Verilog generated from regress/Rob.fir by the PR and the branch the is formally equivalent. This is intended to detect bugs introduced by a PR. If a PR is supposed to change the formal semantics, include "[skip formal checks]" in the commit message.
[Possible] future uses of LEQ in Firrtl testing:

Show that passes that notionally do not change the circuit actually do not change the circuit (like optimization passes)
Show that passes that DO change the circuit are equivalent to the original circuit under certain circumstances

eg. FAME-1 should be the same so long as all stall signals are false

Include printfs and assertions in LEQ
Use LEQ as a more robust correctness definition for some current tests that use incredibly brittle string comparison (small enough unit tests like this are probably okay)
Prove that certain Chisel/Firrtl circuits are the same as equivalent Verilog


[Snyk] Upgrade @apollo/client from 3.8.9 to 3.8.10

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade @apollo/client from 3.8.9 to 3.8.10.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released a month ago, on 2024-01-18.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Check out a preview of your pull request here: https://app-servicecanadalabs-dev-pr-preview-0.azurewebsites.net


xclass

xclass is not working for me in either scenario, column or image
[carousel-item active="true"]
    [column md="5" xclass="archi"]
        [img responsive="true" xclass="monde"][/img]
    [/column]
    [column md="7"]
        [img responsive="true"][/img]

Alliance

US - Sargeras

    [/column]
[/carousel-item]

Generated code

Alliance

US – Sargeras

Using version Version 3.3.6 and WordPress 4.2.2

I tested this on a fresh install on another macintosh. I am running into the same issue. Xclass classes are getting ripped out. Tested on the latest versions of Firefox developer ed. Chrome and Safari. Is anyone watching github?

Thank you for the report. I'll look into this issue as soon as possible.
—
Sent from Mailbox
On Sat, May 23, 2015 at 5:32 PM, Nate<EMAIL_ADDRESS>wrote:

I tested this on a fresh install on another macintosh. I am running into the same issue. Xclass classes are getting ripped out. Tested on the latest versions of Firefox developer ed. Chrome and Safari. Is anyone watching github?
Reply to this email directly or view it on GitHub:
https://github.com/filipstefansson/bootstrap-3-shortcodes/issues/108#issuecomment-104946001

Hello,
I reviewed this issue and the stripping of classes is actually intentional to avoid spacing and alignment issues that usually accompany using a carousel for images inserted with the WordPress editor. I've just committed a change that strips ONLY the alignment classes that cause the most issues. Can you test this change and let  us know if it does the trick?
Thanks again for the report.

MWDelaney, your update fixed the problem. Thank you.


Random Image Feed

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes:  #(issue no.)
#662

Type of change

[x ] New feature (non-breaking change which adds functionality)

Checklist:

[x ] I have taken help from some online resourses
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

After Refreshing

what do you mean by link issue properly?

Done

https://deploy-preview-673--amazing-js-projects.netlify.app/random image feed/

look @DEEPALI-SUK this project is obviously not some out of the box project but I did make it myself. You ll find 100s of random image feeds online. But more than 50% of the projects in this repository can be found on the internet. This is just amusing.

The code isnt same, only the result is. And obviously the logic between the codes would be same because I mean that is the logic But anyway upto you!
Good luck :)

Bruh, who are you trying to fool? We have reviewed more than 150 PRs in this repo over the last 2 months. Changing the margin, height, and width does not make the project different. Rest all is totally the same. But hat's off to your confidence! Salute.
And yeah, don't worry we will make sure only valid contributions are counted. We will remove all the plagiarised ones. If you find any, you can send those PRs to us over discord DM

why you getting worked up lmao


RFC (WIP): parser

parser
(will be described later)

Ability to create money from decimal would be nice.
i.e.
createMoneyFromDecimal({ amount: "12.34", currency: "USD" })
createMoneyFromDecimal({ amount: "12.3", currency: "USD" })

@andrewwongyedpay it might be an interesting idea, trying to implement in next release, or you can try to implement such approach (feel free to pm me any time if you need help with implementation details)


[semantic-dom-diff] expect.dom.to.not.equal is not possible

whether not is chained or not, the test always checks the dom is equal.  this is true for dom, lightDom, and shadowDom

Oh stale, never change.

Hey, is this issue still relevant? and if so can I work on it? 🧐

Yeo go ahead

Coolio 😎


Accounts and Login Review Ticket

CB Create Task completed and documented on GH Pages - Prep to submit to CB on or before May, 2nd. (2 Points - Individual)

[x] CB Create Task Coding requirements documentedLink
[x] Runtime of Code(with comments) on Replit/Intellij

Accounts and Logins Challenges/Hacks ( 3 Points - Pair/Trio)
Start or add to existing project:  init.py, main.py, requirements.txt and cruddy blueprint directory are things you will  need to add to your existing project.  Additionally, you should start with some of the content in templates and static folders.  Find a pair and work on this together.  Ask questions.
Analysis: the csp.nighthawkcodingsociety.com implementation is for educational purposes.  It has some obvious flaws in its security.   Discuss some of the flaws that you see in its security as implemented.

[x] Hack 1 Add Phone Number to Sign Up / Authorization screen Link
[x] Hack 2 Add logout to CRUD screen Link
[x] Hack 3 Add login_required to another portion of the project Link

Has all three hacks 3/3
Has Create tax w/ documentation 2/2
Has create task coding requirements and runtime documented.
Login required on another page sends back to crud rather than the page requiring login -.25
Overall 4.75/5


godot_color_to_argb64 and godot_color_to_rgba64 Return Values Downcasting

Not sure if this is the correct place to open the issue. If not, please let me know where best to forward this to.
Within Godot Core both godot_color_to_argb64 and godot_color_to_rgba64 return int64_t, however in the API exposed
https://github.com/godotengine/godot/blob/3ed5ff244f679da590d360b38e35adcdcb0aeaf7/core/color.h#L51-L56
Through godot_headers, as well as GDNative itself, the returned value is down-cast to int32_t, aliased as godot_int.
https://github.com/godotengine/godot_headers/blob/d93984d8201ae6952f200ca55d91f1b6f58daeec/gdnative_api_struct.gen.h#L180-L183
This is most likely causing the returned result to be truncating and creating both erroneous and divergent behavior between GDNative and GDScript.

Forgot to mention that godot_color_to_abgr64 has the same problem.

This repository is just a copy of the Godot source, so this issue needs to be made in Godot itself.


Vulnerability roundup 85: libtorrent-0.13.8: 1 advisory [7.5]

search, files

[ ] CVE-2016-5301 CVSSv3=7.5 (nixos-20.03, nixos-unstable)

Scanned versions: nixos-20.03: a84b797b28e; nixos-unstable: 22c98819ccd. May contain false positives.
Cc @codyopel
Cc @ebzzry

The CVE is about libtorrent-rasterbar.

The CVE is about libtorrent-rasterbar.


can entrust support content access control?

That's a pretty broad question. I think, in general, yes. Depends on how you write your controllers but you can make decisions based on roles/permissions such as:
if ( \Entrust::can('view-public-content' ){ //use any manner of checking and route to your content accordingly.
   //show them your content
}


Added code for Pencil Sketch using OpenCV

I have added code for Pencil Sketch using OpenCV ( issue number-342) successfully .

Sure.
On Tue 16 Mar, 2021, 8:12 PM AKSHITA GUPTA @.*** wrote:

@.**** requested changes on this pull request.
Can you add some sample output images tested on some celebrity images in
readme.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/akshitagupta15june/Face-X/pull/353#pullrequestreview-613331770,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOBBRHWBULSCZZOT4RJPRJTTD5U4JANCNFSM4ZIVQ4OA
.

Can I add a readme.doc file because I'm not able to add output images in a text file

it should be readme.md file

Okay.

Make changes and let me know

Sure. I will do the required changes today itself.
On Wed 17 Mar, 2021, 7:44 AM AKSHITA GUPTA @.*** wrote:

Closed #353 https://github.com/akshitagupta15june/Face-X/pull/353.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/akshitagupta15june/Face-X/pull/353#event-4467736817,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOBBRHSCRCNZZ42IE3LBUS3TEAGB3ANCNFSM4ZIVQ4OA
.


Update RequestListener.php

fixes #263 and #264

Added entries in changelog - we are still using the AuthorizationChecker to check, if user-handling is activated. Seems not to be an error for me.

Are you sure? We already have this check on the TokenStorage for that:
https://github.com/getsentry/sentry-symfony/blob/0a71ea681854bbe419bd14953ba8a7aa54d53dc2/src/EventListener/RequestListener.php#L63-L65

Are you sure? We already have this check on the TokenStorage for that:

you are right - thats a double-check - removed it

@Jean85 can you have a look here?


Fix empty Overlunky console and add new launcher options

Better late than never to fix more things in tk version.
This depends on both https://github.com/spelunky-fyi/overlunky/pull/283 and https://github.com/spelunky-fyi/Playlunky/pull/40 to roll out first.

Well the OL stuff is merged and that one PL checkbox that won't work is not really a blocker 🤷🏻

Both things should be up and running now.


Add highlighting support for code spans

As seen here https://github.github.com/gfm/#code-spans

If given a bit of direction I'd be happy to implement this myself and submit at PR!

I was using it with neovim, it looks like back ticks are a slightly different color, but don't highlight the text inside any differently than without.

Hm, did you try updating nvim-treesitter or running :TSUpdate. It is working for me. It might also be that your color scheme is highlighting the TSLiteral group the same as TSText you might want to have a look at that.


Error

New-AzStorageAccount : A parameter cannot be found that matches parameter name 'EnableEncryptionService'.

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

ID: 770e21da-2a29-9576-483f-a0f6dc48c25f
Version Independent ID: ca870882-63ec-4bf7-2f60-6ac6a5fb6b64
Content: Create a VM and storage account for a scalable application in Azure
Content Source: articles/storage/blobs/storage-blob-scalable-app-create-vm.md
Service: storage
GitHub Login: @roygara
Microsoft Alias: rogarana

@mcurko Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@mcurko Hello, thanks for bringing this to our attention. The parameter no longer exists because the functionality is actually now on by default. We'll remove the parameter from the article.
#please-close


Supabase vector search improvements

Hey all -- love the work & support for Supabase. It seems that the vector search is only enabled across an entire table. It would be really helpful to query just a subset of the table based on input parameters (eg. specific ids).

Hi this makes sense, we should add filtering ability to each of the vector stores that supports it

Filtering is already built in the base similaritySearch function which calls the Supabase similarityVectorWithScore function where the filter param is missing. I think it's just a matter of adding a filter object as parameter https://github.com/hwchase17/langchainjs/blob/main/langchain/src/vectorstores/supabase.ts (line 69). We could use a json object to list all filter criteria and feed it into the RPC match_document function as input parameter. Then the RPC function would just apply the filter as it matches document embeddings. This way we could filter by document name, type, and even user id!

@mz1979 I just ran into an issue where it would be so nice to be able to store documents with an associated user id. This would allow me to embed documents per user in the same table, instead of having to create a map table.

Continue discussion here?
https://github.com/hwchase17/langchainjs/issues/773

I added a PR for this https://github.com/hwchase17/langchainjs/pull/905


Feature suggestion: timer to specific time

First of all, thank you for lovely package.
Many times I use sleep to execute a function at certain time, especially over night. Usual steps I take are to calculate number of seconds, say to 02:14am and then simply use sleep nbSeconds; ./functionToExecute.sh.
It would be aweseome e.g. to have something like this:
timer -t 02:14am like -t or --time to time
Please consider implementing it.

seems nice, happy to review a pr

It would be aweseome e.g. to have something like this: timer -t 02:14am like -t or --time to time

This would be a nice feature to have.
This is a bash function that achieves that. Hope it helps smjure
sleepuntil() {
    if [[ $# -eq 0 ]]; then
        echo "Syntax:"
        echo "sleepUntil [-q] <HH[:MM[:SS]]> [more days]"
        echo "    -q Quiet: don't print sleep computed argument"
        echo "    HH          Hours (minimal required argument)"
        echo "    MM          Minutes (00 if not set)"
        echo "    SS          Seconds (00 if not set)"
        echo "    more days   multiplied by 86400 (0 by default)"
        return
    fi

    local slp tzoff now quiet=false
    [ "$1" = "-q" ] && { quiet=true; shift; }
    local -a hms=(${1//:/ })
    now=$(date +%s)
    tzoff=$(date +%z)
    tzoff=$((0${tzoff:0:1}(3600*${tzoff:1:2}+60*${tzoff:3:2})))
    slp=$(( (86400+(now-now%86400) + 10#$hms*3600 + 10#${hms[1]}*60 + ${hms[2]}-tzoff-now) % 86400 + ${2:-0}*86400 ))
    $quiet || printf 'sleep %ss, -> %(%c)T\n' $slp $((now+slp))
    sleep $slp
}


HTTP Error 403: Forbidden (caused by HTTPError())

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.04.03. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2018.04.03

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--username', u'PRIVATE', u'--password', u'PRIVATE', u'--verbose', u'--sleep-interval', u'120', u'https://
app.pluralsight.com/library/courses/protocol-deep-dive-arp/', u'-o', u'/network/%(playlist)s/%(chapter_number)s. %(cha
pter)s/%(playlist_index)s.%(title)s.%(ext)s']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.04.03
[debug] Python version 2.7.5 (CPython) - Linux-4.4.96-mainline-rev1-x86_64-with-centos-7.4.1708-Core
[debug] exe versions: none
[debug] Proxy map: {}
[pluralsight:course] protocol-deep-dive-arp: Downloading course JSON
[pluralsight:course] protocol-deep-dive-arp: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.o
rg/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag
 and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 519, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2199, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

Description of your issue, suggested solution and other information
youtube-dl has been working until I notice it.
thanks for your help

The same for me. Normal working until the error 403.

If you cannot reproduce and I can give you steps...
yes , it's duplicate, but I noticed that you're closing all of them with "can't reproduce"....
If many are saying this, it's mean there is a real issue that need to have a look at, right ?

There is already an open issue. By posting another duplicates you achieve nothing but hinder fixing the problem. Many saying but nobody bother to do anything. As usual though.


Listen to events on the correct events instance

There is also no need to deal with propagation in the handler.

This is really slick.  Thanks @ahocevar!


The Resource 'Microsoft.Network/expressRouteGateways/hk-ergw-eastasia' under resource group 'someResourcegroup' was not found.

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command

az network express-route gateway connection create \
  --gateway-name hk-ergw-eastasia \
  --name hk-nonprod-erconn-000 \
  --peering /subscriptions/REDACTED/resourceGroups/hk-connectivity-eastasia/providers/Microsoft.Network/expressRouteCircuits/hk-nonprod/peerings/AzurePrivatePeering \
  --resource-group hk-connectivity-eastasia

Describe the bug

The resource should accept the ExpressRouteGateway ID as copied from the the properties panel in the Azure Portal, which has the following format:

/subscriptions/319b5c03-xxxxxxxxxx/resourceGroups/hk-connectivity-eastasia/providers/Microsoft.Network/virtualNetworkGateways/hk-ergw-eastasia

However, E.R gateway uses the descriptor "virtualNetworkGateways" but the provider is expecting "expressRouteGateways" in the ER Gateway ID:

ERROR: (ResourceNotFound) The Resource 'Microsoft.Network/expressRouteGateways/subscriptions' under resource group 'hk-connectivity-eastasia' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

To Reproduce

Run the following command on an exist ER connection which has not yet been configured with a "connection". Ensure there is an existing Azure ER gateway deployed:

az network express-route gateway connection create \
  --gateway-name hk-ergw-eastasia \
  --name hk-nonprod-erconn-000 \
  --peering /subscriptions/REDACTED/resourceGroups/hk-connectivity-eastasia/providers/Microsoft.Network/expressRouteCircuits/hk-nonprod/peerings/AzurePrivatePeering \
  --resource-group hk-connectivity-eastasia

Expected behavior
Running the following command with an existing ER Circuit, Gateway and peering established should result in the connection being created:
az network express-route gateway connection create \
  --gateway-name hk-ergw-eastasia \
  --name hk-nonprod-erconn-000 \
  --peering /subscriptions/REDACTED/resourceGroups/hk-connectivity-eastasia/providers/Microsoft.Network/expressRouteCircuits/hk-nonprod/peerings/AzurePrivatePeering \
  --resource-group hk-connectivity-eastasia

Environment summary

MacOS:

Darwin My-MacBook-Pro.local 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64

az cli version

{
  "azure-cli": "2.36.0",
  "azure-cli-core": "2.36.0",
  "azure-cli-telemetry": "1.0.6",
  "extensions": {
    "account": "0.2.3",
    "aks-preview": "0.5.82",
    "azure-firewall": "0.14.3",
    "resource-graph": "2.1.0",
    "subscription": "0.1.5"
  }
}

Additional context
When attempting the same operation using Terraform, the result is the same. This seems to indicate a problem with either the API or the MS documentation:
resource "azurerm_express_route_connection" "hk_caf_level1_network_hub00_expressroute_connection" {
  name                             = format("%s-%s", azurecaf_name.hk_caf_level1_network_hub00_expressroute_circuit_name.result, "connection")
  express_route_gateway_id         = var.express_route_gateway_id //from hub vnet, therefore obtained from variable because no data source available
  express_route_circuit_peering_id = azurerm_express_route_circuit_peering.hk_caf_level1_network_hub00_expressroute_circuit_peering.id
}

The expressroute gw id is as follows:
variable "express_route_gateway_id" {
  type    = string
  default = "/subscriptions/319b5c03-xxxxxxxxxx/resourceGroups/hk-connectivity-eastasia/providers/Microsoft.Network/virtualNetworkGateways/hk-ergw-eastasia"
}

@necusjz for awareness

Hi archmangler, you created the wrong resource, you should create resource Microsoft.Network/expressRouteGateways, not Microsoft.Network/virtualNetworkGateways.
Reference document:
https://learn.microsoft.com/en-us/cli/azure/network/express-route/gateway?view=azure-cli-latest#az-network-express-route-gateway-create
https://learn.microsoft.com/en-us/azure/expressroute/

Hi @ZengTaoxu - thanks for the response. Why is it possible to create a VirtualNetwork Gateway of Type "ExpressRoute" then?
Note that I have tested using a fully functional expressroute connection via this gateway which was created via the portal, and it works.
The portal shows this gateway as type "expressroute" even though it is a "virtual network gateway", and it works fine with expressroute peering and circuit.
See the following ARM export of the Gateway configuration:
{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "<IP_ADDRESS>",
    "parameters": {
        "virtualNetworkGateways_hk_ergw_eastasia_name": {
            "defaultValue": "hk-ergw-eastasia",
            "type": "String"
        },
        "publicIPAddresses_hk_ergw_eastasia_pip_externalid": {
            "defaultValue": "/subscriptions/REDACTED/resourceGroups/hk-connectivity-eastasia/providers/Microsoft.Network/publicIPAddresses/hk-ergw-eastasia-pip",
            "type": "String"
        },
        "virtualNetworks_hk_hub_eastasia_externalid": {
            "defaultValue": "/subscriptions/REDACTED/resourceGroups/hk-connectivity-eastasia/providers/Microsoft.Network/virtualNetworks/hk-hub-eastasia",
            "type": "String"
        }
    },
    "variables": {},
    "resources": [
        {
            "type": "Microsoft.Network/virtualNetworkGateways",
            "apiVersion": "2022-05-01",
            "name": "[parameters('virtualNetworkGateways_hk_ergw_eastasia_name')]",
            "location": "eastasia",
            "tags": {
                "deployedBy": "terraform/azure/caf-enterprise-scale"
            },
            "properties": {
                "enablePrivateIpAddress": false,
                "ipConfigurations": [
                    {
                        "name": "[concat(parameters('virtualNetworkGateways_hk_ergw_eastasia_name'), '-pip')]",
                        "id": "[concat(resourceId('Microsoft.Network/virtualNetworkGateways', parameters('virtualNetworkGateways_hk_ergw_eastasia_name')), concat('/ipConfigurations/', parameters('virtualNetworkGateways_hk_ergw_eastasia_name'), '-pip'))]",
                        "properties": {
                            "privateIPAllocationMethod": "Dynamic",
                            "publicIPAddress": {
                                "id": "[parameters('publicIPAddresses_hk_ergw_eastasia_pip_externalid')]"
                            },
                            "subnet": {
                                "id": "[concat(parameters('virtualNetworks_hk_hub_eastasia_externalid'), '/subnets/GatewaySubnet')]"
                            }
                        }
                    }
                ],
                "natRules": [],
                "virtualNetworkGatewayPolicyGroups": [],
                "enableBgpRouteTranslationForNat": false,
                "disableIPSecReplayProtection": false,
                "sku": {
                    "name": "ErGw2AZ",
                    "tier": "ErGw2AZ"
                },
                "gatewayType": "ExpressRoute",
                "vpnType": "RouteBased",
                "enableBgp": false,
                "activeActive": false,
                "vpnGatewayGeneration": "None",
                "allowRemoteVnetTraffic": false,
                "allowVirtualWanTraffic": false
            }
        }
    ]
}

This should be the gateway type of the virtualNetworkGateway, but you should create expressRouteGateway, not virtualNetworkGateway.

Just a test, using the command (since I'm getting errors with):
az network vnet-gateway create \
  -g  "lolcorp-connectivity-eastasia" \
  -n myTestERgw \
  --gateway-type ExpressRoute \
  --sku Standard \
  -l "eastasia" \
  --vnet "lolcorp-hub-eastasia"\
  --public-ip-addresses "conntest-ip"

(MultipleExpressRouteGatewaysNotAllowed) Only one Expressroute gateway can be created for each vnet. Delete the Expressroute gateway /subscriptions/3redacted/resourceGroups/lolcorp-connectivity-eastasia/providers/Microsoft.Network/virtualNetworkGateways/lolcorp-ergw-eastasia and retry.
Code: MultipleExpressRouteGatewaysNotAllowed

Message: Only one Expressroute gateway can be created for each vnet. Delete the Expressroute gateway /subscriptions/3redacted/resourceGroups/lolcorp-connectivity-eastasia/providers/Microsoft.Network/virtualNetworkGateways/lolcorp-ergw-eastasia and retry.
~

This seems to indicate:

az network vnet-gateway create command recognises the existing gw as an ExpressRoute gateway, even though it find it under the path ...Microsoft.Network/virtualNetworkGateways/...
If the command succeeds it will create an ExpressRoute gateway, but under the ...Microsoft.Network/virtualNetworkGateways/ ... path

You can try to delete the existing virtualNetworkGateways and then create expressRouteGateways.
The id of the  express route gateway is as follows:
/subscriptions/{}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{}

Hi @ZengTaoxu - here is a dump of the debug output for command:
az network express-route gateway create \
   --name testExpressRouteGateway \
   --resource-group NetworkWatcherRG \
   --min-val 5 --debug

PastBin: https://pastebin.com/nRCLFQ6y
NOTE: This is when there is no  ER GW in the VNET.

You can try to recreate the command with --virtual-hub, the procedure for creating Microsoft.Network/virtualHubs is as follows:
az network vhub create --resource-group {} --name {} --hub-routing-preference ExpressRoute

Hi @ZengTaoxu  - we do not  want the virtual hub, we want a traditional hub and spoke architecture based on a VNET used as a Hub.
The Virtual WAN architecture, based on the Virtual Hub is not a part of our intended network architecture.

I can't create express route related resources at my side, so I can't repeat your question. I found an article, and I think you can try to create it with portal to see whether it can be successful.
https://azureis.fun/posts/Adding-new-Connection-to-Azure-ExpressRoute-circuit/#:~:text=new ExpressRoute Connection-,Azure Portal%3A,We are going to create a new one%2C so click Add.,-Connection type%2C ExpressRoute

Hi @ZengTaoxu  - I will setup a powershell environment and test these commands. Thanks for the suggestion.
An initial observation:
The powershell command is creating a "virtual network gateway" of type "ExpressRoute" so it seems that even with this command ExpressRouteGateway is treated as a form of "virtual network gateway".

Any update on this?


Cifar-10 example not converging when image_dim_ordering == 'tf'

For some reason, the cifar-10 example is not converging when image_dim_ordering is set to tf. I have tried both with theano and with tensorflow – neither version works. When I switch image_dim_ordering to th all works as expected.
I have checked the data and it seems it gets loaded correctly – is it perhaps some quirk of the model or a bug in one of the layers' implementation?

If you are referring to https://github.com/fchollet/keras/blob/master/examples/cifar10_cnn.py, I just tested it using data augmentation and it seems to work fine (ran up it up to 10 epochs without issue).
Some of the output:
Using real-time data augmentation.
Epoch 1/200
50000/50000 [==============================] - 27s - loss: 2.2058 - acc: 0.1573 - val_loss: 1.9498 - val_acc: 0.2782
Epoch 2/200
50000/50000 [==============================] - 24s - loss: 1.7706 - acc: 0.3368 - val_loss: 1.4774 - val_acc: 0.4613
Epoch 3/200
50000/50000 [==============================] - 24s - loss: 1.4741 - acc: 0.4629 - val_loss: 1.2354 - val_acc: 0.5595
Epoch 4/200
50000/50000 [==============================] - 24s - loss: 1.3342 - acc: 0.5190 - val_loss: 1.1356 - val_acc: 0.5985
Epoch 5/200
50000/50000 [==============================] - 24s - loss: 1.2240 - acc: 0.5604 - val_loss: 0.9912 - val_acc: 0.6454
Epoch 6/200
50000/50000 [==============================] - 24s - loss: 1.1415 - acc: 0.5944 - val_loss: 0.9371 - val_acc: 0.6706
Epoch 7/200
50000/50000 [==============================] - 25s - loss: 1.0796 - acc: 0.6177 - val_loss: 0.9240 - val_acc: 0.6764
Epoch 8/200
50000/50000 [==============================] - 26s - loss: 1.0293 - acc: 0.6367 - val_loss: 0.8730 - val_acc: 0.6931
Epoch 9/200
50000/50000 [==============================] - 25s - loss: 0.9979 - acc: 0.6483 - val_loss: 0.8241 - val_acc: 0.7107
Epoch 10/200
50000/50000 [==============================] - 25s - loss: 0.9691 - acc: 0.6586 - val_loss: 0.7846 - val_acc: 0.7237

Training without data augmentation, on the other hand, indeed failed to converge.
Train on 50000 samples, validate on 10000 samples
Epoch 1/200
50000/50000 [==============================] - 24s - loss: 2.3036 - acc: 0.1000 - val_loss: 2.3031 - val_acc: 0.1000
Epoch 2/200
50000/50000 [==============================] - 24s - loss: 2.3035 - acc: 0.0997 - val_loss: 2.3028 - val_acc: 0.1000
Epoch 3/200
50000/50000 [==============================] - 24s - loss: 2.3033 - acc: 0.0992 - val_loss: 2.3031 - val_acc: 0.1000
Epoch 4/200
50000/50000 [==============================] - 24s - loss: 2.3032 - acc: 0.1007 - val_loss: 2.3031 - val_acc: 0.1000
Epoch 5/200
50000/50000 [==============================] - 24s - loss: 2.3035 - acc: 0.0978 - val_loss: 2.3030 - val_acc: 0.1000
Epoch 6/200
50000/50000 [==============================] - 25s - loss: 2.3033 - acc: 0.0982 - val_loss: 2.3036 - val_acc: 0.1000
Epoch 7/200
50000/50000 [==============================] - 24s - loss: 2.3035 - acc: 0.1004 - val_loss: 2.3031 - val_acc: 0.1000
Epoch 8/200
50000/50000 [==============================] - 24s - loss: 2.3033 - acc: 0.0992 - val_loss: 2.3034 - val_acc: 0.1000
Epoch 9/200
50000/50000 [==============================] - 24s - loss: 2.3033 - acc: 0.0983 - val_loss: 2.3031 - val_acc: 0.1000
Epoch 10/200
50000/50000 [==============================] - 23s - loss: 2.3033 - acc: 0.1014 - val_loss: 2.3032 - val_acc: 0.1000

Halving the learning rate seems to make it work though
sgd = SGD(lr=0.005, decay=1e-6, momentum=0.9, nesterov=True)
Here is the output:
Train on 50000 samples, validate on 10000 samples
Epoch 1/200
50000/50000 [==============================] - 23s - loss: 2.1969 - acc: 0.1602 - val_loss: 1.9509 - val_acc: 0.2893
Epoch 2/200
50000/50000 [==============================] - 23s - loss: 1.8309 - acc: 0.3226 - val_loss: 1.5908 - val_acc: 0.4150
Epoch 3/200
50000/50000 [==============================] - 23s - loss: 1.5357 - acc: 0.4365 - val_loss: 1.3379 - val_acc: 0.5164
Epoch 4/200
50000/50000 [==============================] - 23s - loss: 1.3193 - acc: 0.5258 - val_loss: 1.1658 - val_acc: 0.5791
Epoch 5/200
50000/50000 [==============================] - 23s - loss: 1.1856 - acc: 0.5778 - val_loss: 1.0265 - val_acc: 0.6368
Epoch 6/200
50000/50000 [==============================] - 23s - loss: 1.0866 - acc: 0.6145 - val_loss: 0.9659 - val_acc: 0.6626
Epoch 7/200
50000/50000 [==============================] - 23s - loss: 1.0085 - acc: 0.6428 - val_loss: 0.9099 - val_acc: 0.6820
Epoch 8/200
50000/50000 [==============================] - 23s - loss: 0.9347 - acc: 0.6724 - val_loss: 0.8704 - val_acc: 0.6951
Epoch 9/200
50000/50000 [==============================] - 23s - loss: 0.8786 - acc: 0.6903 - val_loss: 0.7961 - val_acc: 0.7202
Epoch 10/200
50000/50000 [==============================] - 23s - loss: 0.8298 - acc: 0.7082 - val_loss: 0.7889 - val_acc: 0.7255

I'm not sure why the image_dim_ordering would make a difference.

It doesn't look like this script seeds the RNG. Does it still exhibit this behavior if you call np.random.seed(some_int) before all Keras imports? Otherwise it could just be due to random differences in the initial weights.

I experience this too. After adding dim_ordering='th' to Convolution2D of cifar10_cnn.py  example, it started to converge.

OK, first of all, the issue is not augmentation-related. There is no convergence whether using augmentation or not. It also works the other way around: the "th" version converges whether using augmentation or not.
I have also tried the idea with RNG seeding. It does not really resolve the issue, but I do observe a change. E.g. with seed 74 and not using image augmentation the loss is pretty much frozen as usual at first, but then, after about 25000 steps it slowly starts decreasing. Note that this is not the correct behaviour – the error should decrease steadily from the start. With image augmentation on, even this limited amount of success is not achieved and the error stays frozen.
For reference, I am currently testing with the CPU version of tensorflow 0.11.0rc2 and keras master [https://github.com/fchollet/keras/commit/71494ffdbc8193ece7a82496ec7835f195fb8309].
I can confirm that supplying dim_ordering='th' to Convolution2D does help to work around the issue. We could, then, perhaps narrow our attention down to this type of layer.

+1
Can confirm on MaxOSX 10.11.6, keras 1.1.0, tensorflow 0.10.0, and on Amazon g2.2xlarge, keras 1.1.1, tensorflow 0.9.0.
I build the same model and train on CIFAR10. Tested for one epoch, multiple times (from scratch). If image_dim_ordering is set to 'tf' network doesn't converge (get accuracy of ~10% which is pure random in this case). when switching to 'th' I get ~50% after first epoch.
Doesn't matter if I use CPU or GPU (on the AWS machine).

I meet the  same question
Can confirm on ubuntu16,04,Keras (1.1.0),tensorflow (0.11.0rc0) without GPU and another on ubuntu16,04 GPU gtx965m，cuda8.0,  keras 1.1.1,tensorflow (0.11.0rc0).， both  don't converge (get accuracy of ~10% ), Both use tf backend.
Another interesting thing is that when I run cifar10 example  different times, sometimes it just converge and get the right result ,  but most times it doesn't converge,  val_loss result of each epoch is 0.1, so  why ?

https://github.com/fchollet/keras/issues/4066   this link  may  solve  the question , using Adam instead of SGD.  I just try 5 times, each is  converge  with adams optimizer

@michalgregor

That is indeed good news, thank you for pointing it out!
However, I naturally still think that it is very necessary to identify the bug that causes this behaviour because otherwise we can never be certain where it will pop up next. Essentially, I am not comfortable using the tensorflow backend for anything CNN-related at the moment, because I can never tell afterwards whether any inferior results I obtain are not due to the bug...

yeah, what you said is really the same feeling  I  get with keras, otherwise I find the user define  callback class  may doesn't work , such like
`class EarlyStoppingByLossVal(Callback):
def init(self, monitor='val_loss', value=0.25, verbose=2):
super(Callback, self).init()
self.monitor = monitor
self.value = value
self.verbose = verbose
def on_epoch_end(self, epoch, logs={}):
    current = logs.get(self.monitor)
    if current is None:
        warnings.warn("Early stopping requires %s available!" % self.monitor, RuntimeWarning)

    if current < self.value:
        if self.verbose > 0:
            print("Epoch %05d: early stopping THR" % epoch)
        self.model.stop_training = True`

I use the code class as the  model.fit  parameter， but when the val_loss reach the  bound， the whole model doesn't stop by the callback parameter I defined above
result = model.fit(X_train, Y_train,                   batch_size=batch_size,                   nb_epoch=nb_epoch,                   verbose=1,                   validation_data=(X_test, Y_test),                   callbacks=[EarlyStoppingByLossVal(monitor='val_loss', value=0.15, verbose=2)],                   shuffle=True)
That‘s a really  magic thing

yeah, what you said is really the same feeling  I  get with keras, otherwise I find the user define  callback class  may doesn't work , such like
class EarlyStoppingByLossVal(Callback):     def __init__(self, monitor='val_loss', value=0.25, verbose=2):         super(Callback, self).__init__()         self.monitor = monitor         self.value = value         self.verbose = verbose     def on_epoch_end(self, epoch, logs={}):         current = logs.get(self.monitor)         if current is None:             warnings.warn("Early stopping requires %s available!" % self.monitor, RuntimeWarning)         if current < self.value:             if self.verbose > 0:                 print("Epoch %05d: early stopping THR" % epoch)             self.model.stop_training = True
I use the code class as the  model.fit  parameter， but when the val_loss reach the  bound， the whole model doesn't stop by the callback parameter I defined above:
result = model.fit(X_train, Y_train,                   batch_size=batch_size,                   nb_epoch=nb_epoch,                   verbose=1,                   validation_data=(X_test, Y_test),                   callbacks=[EarlyStoppingByLossVal(monitor='val_loss', value=0.15, verbose=2)],                   shuffle=True)
That‘s a really  magic thing

I believe the issue is fixed with the current version of keras (1.2.1; testing with master: f41d5f021acdf29726c05f32abfbcca78edcdf21) and tensorflow (0.12.1).
If anyone still experiences it, we can reopen this.

Just tried this using tf 0.12.1 and latest keras, it seems rmsprop still has trouble converging, switch to adam does solve the issue.

Well, I cannot reproduce that behaviour at all. I was testing with the original version of the cifar example, which uses SGD by default. That works. I have also tested just now with rmsprop like 20 times and it didn't freeze once. I wonder what could the difference be in your case...

Hmm, I think this still may be an issue.  I just noticed the problem (rmsprop has trouble converging; switching to adam works) on keras 1.2.2 and tensorflow 1.0.0.  I'm on ubuntu 16.10.

My loss is decreasing, but I see the accuracy always at 10%. I tried RmSProp, Adam, SGD with various learning rate values.  Is there anything which I am missing on?

I have the same issue. Simple MNIST example from the Keras website, clean install on Ubuntu 14.04, accuracy at 10% after 50 epochs..
Anyone with a working solution (I've tried every solution above)?


quality assessment through the error-versus-reject curves

hi, about evaluate the quality assessment on LFW/CFPFP/AgeDB via the error-versus-reject curves,Can you provide the corresponding code?thanks!

Hi,
Code for plotting the curves is now available in the repo.
Best,
Qiang

ok,thanks！:)
---Original---
From: "Qiang @.>
Date: Thu, Sep 9, 2021 12:32 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [IrvingMeng/MagFace] quality assessment through the error-versus-reject curves (#24)
Hi,
Code for plotting the curves is now available in the repo.
Best,
Qiang
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

by the way, please provide the model used in the quality assessment ,thanks
---Original---
From: "Qiang @.>
Date: Thu, Sep 9, 2021 12:32 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [IrvingMeng/MagFace] quality assessment through the error-versus-reject curves (#24)
Hi,
Code for plotting the curves is now available in the repo.
Best,
Qiang
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Using current released model should be enough to get similar results.
For interests of our company, we can only release that model for research purpose (e.g., using that model as a baseline in your own paper). Please send us an official email with detailed explanations if you want it.

@.***
---Original---
From: "Qiang @.>
Date: Thu, Sep 9, 2021 13:52 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [IrvingMeng/MagFace] quality assessment through the error-versus-reject curves (#24)
Using current released model should be enough to get similar results.
For interests of our company, we can only release that model for research purpose (e.g., using that model as a baseline in your own paper). Please send us an official email with detailed explanations if you want it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

21725028atzju.edu.cn
---Original---
From: "Qiang @.>
Date: Thu, Sep 9, 2021 13:52 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [IrvingMeng/MagFace] quality assessment through the error-versus-reject curves (#24)
Using current released model should be enough to get similar results.
For interests of our company, we can only release that model for research purpose (e.g., using that model as a baseline in your own paper). Please send us an official email with detailed explanations if you want it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

ok,thanks
---Original---
From: "Qiang @.>
Date: Thu, Sep 9, 2021 13:52 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [IrvingMeng/MagFace] quality assessment through the error-versus-reject curves (#24)
Using current released model should be enough to get similar results.
For interests of our company, we can only release that model for research purpose (e.g., using that model as a baseline in your own paper). Please send us an official email with detailed explanations if you want it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


NaN ?????

Hello all,

My Observation sequences  can be read from a file, I have 501 observations such
as the length of  the longest sequence is 9

My initial HMM is as follows:

static Hmm<ObservationInteger > buildInitHmm()
    {

        Hmm <ObservationInteger > hmm = new Hmm <ObservationInteger >(9,new OpdfIntegerFactory (9));

        hmm.setPi (0, 1);
        hmm.setPi (1, 0);
        hmm.setPi (2, 0);
        hmm.setPi (3, 0);
        hmm.setPi (4, 0);
        hmm.setPi (5, 0);
        hmm.setPi (6, 0);
        hmm.setPi (7, 0);
        hmm.setPi (8, 0);

        hmm.setOpdf (0, new OpdfInteger (new double [] {17.68,57.26,0.0,10.74,0.0,13.52,0.0,0.0,0.20,0.0,0.40,0.0,0.20,0.0,0.0}));
        hmm.setOpdf (1, new OpdfInteger (new double [] {24,27.98,0.20,6.35,0.0,8.14,0.0,25.80,5.15,0.0,0.40,0.20,1.78,0.0,0.0}));
        hmm.setOpdf (2, new OpdfInteger (new double [] {21.76,26.99,0.0,10.25,1.26,11.93,0.84,12.97,10.65,0.0,0.84,0.21,2.30,0.0,0.0}));
        hmm.setOpdf (3, new OpdfInteger (new double [] {28.57,21.82,2.08,19.48,3.64,9.87,1.30,9.35,2.59,0.0,0.78,0.0,0.52,0.0,0.0}));
        hmm.setOpdf (4, new OpdfInteger (new double [] {38.37,15.87,2.58,14.76,2.21,12.92,1.11,10.70,0.37,0.0,0.0,0.37,0.74,0.0,0.0}));
        hmm.setOpdf (5, new OpdfInteger (new double [] {22.87,25.71,1.14,12,0.57,16.57,0.57,20,0.57,0.0,0.0,0.0,0.0,0.0,0.0}));
        hmm.setOpdf (6, new OpdfInteger (new double [] {33.79,25.35,1.41,8.45,0.0,15.49,0.0,15.49,0.0,0.0,0.0,0.0,0.0,0.0,0.0}));
        hmm.setOpdf (7, new OpdfInteger (new double [] {10.71,50,0.0,3.57,0.0,17.86,0.0,17.86,0.0,0.0,0.0,0.0,0.0,0.0,0.0}));
        hmm.setOpdf (8, new OpdfInteger (new double []
{0,50,0.0,0.0,0.0,0.0,0.0,50,0.0,0.0,0.0,0.0,0.0,0.0,0.0}));

        hmm.setAij (0, 1, 0.5);
        hmm.setAij (0, 0, 0.5);
        hmm.setAij (1, 2, 0.5);
        hmm.setAij (1, 1, 0.5);
        hmm.setAij (2, 3, 0.5);
        hmm.setAij (2, 2, 0.5);
        hmm.setAij (3, 4, 0.5);
        hmm.setAij (3, 3, 0.5);
        hmm.setAij (4, 5, 0.5);
        hmm.setAij (4, 4, 0.5);
        hmm.setAij (5, 6, 0.5);
        hmm.setAij (5, 5, 0.5);
        hmm.setAij (6, 7, 0.5);
        hmm.setAij (6, 6, 0.5);
        hmm.setAij (7, 8, 0.5);
        hmm.setAij (7, 7, 0.5);
        hmm.setAij (8, 8, 1);

        return hmm;
    }

After having introduced these parameters to "BaumWelchLearner", the system
generates a new HMM  or all states have the following values:

State 0
   Pi: NaN
   Aij:? ? ? ? ? ? ? ? ?
   Opdf: Integer distribution --- 0? ? ? ? ? ? ? ? ? 0 0 0 0 0

Please tell me the cause of this problem and help me to correct it.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 20 Nov 2012 at 1:37

Hi,
If you have a fix for this problem, I would appreciate it if you sent me an email
<EMAIL_ADDRESS>BR;
Zahra

@ZahraFH
Did you find a fix for this? Also have the problem.


Landscape Option

Hey, I love that someone came out with this.
I was wondering if you plan on, or could add an option to use it in Landscape rather than in Portrait only.

Hey, @DhruveShah. Thanks.
Not right now.

Would I simply be able to rotate the view to get it in landscape? or would I have to go into the code and swap the heights and widths that are being set?

I don't think this would work because the dragging is calculated by the view's height. But if you change that in the code might work.

Hey @LeonardoCardoso
I've managed to get it working horizontally, but it seems to work from right-to-left rather than left-to-right. Any idea what in the modified code that I've attached could be causing this?
SectionedSlider.swift.zip

@DhruveShah What lines have you changed?

I changed quite a lot so it uses the width instead of the height.
First, at the top, I changed on line 21, the ResizingBehavior to .stretch
I swapped the values of width and height around, so the width is 400 instead, and the height is now 156
On line 37, I changed from let sectionHeight: CGFloat = sectionOriginalHeight / sectionsSafe to let sectionWidth: CGFloat = sectionOriginalWidth / sectionsSafe, and everywhere sectionHeight was being called to sectionWidth.
Then, I changed the y1-y20 to x1-x20, and changed the calculation in there from using sectionOriginalHeight to sectionOriginalWidth.
Then in bodyBackgroundViewPath and bodyViewPath I swapped the x and y values.  Again, from line 100 to 110, I swapped the x and y values.
In the rectangle20Path to rectangle1Path, I swapped the width from sectionOriginalWidth to sectionWidth, and the height from sectionHeight to sectionOriginalHeight. I also set the x values to 0, and set the y values to y20-y1.
I then changed the scales.height and scales.width values in each switch case in the ResizingBehavior.
Lastly, in the function, touchedX, I swapped it from:
var x = self.frame.height - touch.location(in: self).y
x = x < 0 ? -1 : (x > self.frame.height ? self.frame.height : x)

factor = x / self.frame.height

to
var x = self.frame.width - touch.location(in: self).x
x = x < 0 ? -1 : (x > self.frame.width ? self.frame.width : x)

factor = x / self.frame.width

I'll take a look when I have more time. I have to rethink that.

@LeonardoCardoso So, I found a "rough working solution". Probably not the best way to get it working, but I changed the following and it seems to work. I'm sure there is a more elegant solution that can be derived from this
In the touchedX function at the bottom, I changed it to:
        var x = self.frame.width - touch.location(in: self).x
        x = x < -1 ? 0 : (x > self.frame.width ? self.frame.width : x)

        print("1testing", x)

        if x == self.frame.width {
            x = -1
            print("2testing", x/self.frame.width)
        }
        else {
            x = self.frame.width - x
            print("3testing", x)
        }
        factor = x / self.frame.width

and changed context.rotate(by: -180 * CGFloat.pi/180) to context.rotate(by: 0 * CGFloat.pi/180) in the // SectionedMask Drawing

@dhruveonmars, @LeonardoCardoso, this is 2 years late, but I put together a version of this sectioned slider myself. Along with some minor improvements, my version allows you to initialize the SectionedSlider with a portrait or landscape orientation.
I might make it its own page at some point, but for now the code is here. All you have to do is copy the file into your project. If it doesn't help you, hopefully it helps someone else passing through this thread.

@danielVebman I think you forgot to call the delegate.
Add this to the end of your handleGesture func:
if gesture.state == .ended {
    delegate?.sectionedSlider(self, selected: value)
}

Also you should always declare protocols as a class type and make the delegate a weak var.
Apart from that your version worked fine for me. Thanks a bunch! 🍻


Change password in BasicAuthCredentials from String to char array

@Mosrod commented 3 hours ago
It would be awesome if you could change the return type for password in BasicAuthCredentials (from ctx.basicAuthCredentials()) from String to char array (strings are immutable--therefore you are unable to manually override the value and the password would be stored in memory until the garbage collector deallocates it).

Good suggestion @Mosrod, would you like to submit a PR for this?

Absolutely David,
I'm new to Kotlin, but would love the opportunity to submit a PR for this.
Thanks,
Nathan
On Mon, Feb 22, 2021 at 4:14 PM David<EMAIL_ADDRESS>wrote:

Good suggestion @Mosrod https://github.com/Mosrod, would you like to
submit a PR for this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tipsy/javalin/issues/1183#issuecomment-783678713, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AELHAHJNV73VI2NDCBEU6HLTALCLBANCNFSM4YBIDPDQ
.

Hi David,
After experiencing for an hour, I'm not sure if it is possible without
changing the Javax servlet class (it returns a header in terms of a String)
Please let me know if you have any suggestions,
Nathan
On Mon, Feb 22, 2021 at 5:11 PM Nathan Raikman<EMAIL_ADDRESS>wrote:

Absolutely David,
I'm new to Kotlin, but would love the opportunity to submit a PR for this.
Thanks,
Nathan
On Mon, Feb 22, 2021 at 4:14 PM David<EMAIL_ADDRESS>wrote:

Good suggestion @Mosrod https://github.com/Mosrod, would you like to
submit a PR for this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tipsy/javalin/issues/1183#issuecomment-783678713,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AELHAHJNV73VI2NDCBEU6HLTALCLBANCNFSM4YBIDPDQ
.

It would appear it's not easy: https://stackoverflow.com/questions/15016250/in-java-how-do-i-extract-a-password-from-a-httpservletrequest-header-without-ge
I think we'll just have to accept having them as Strings.


Disable extendability

Thank you for a nice and clean idea and a reference implementation to provide a standard way to define a sentinel.
I'd like to ask to improve reference implementation with closing ability to define any properties or extending the object.
With reference implementation I see usage of slots mechanism and making this class final. There's no reason to provide extendable implementation for sentinels as they are as a None just singletons.

Thank you for the kind words and for the suggestion!
Note that I've recently added explicit support for sub-classing Sentinel.
Since there is no technical reason to disallow sub-classing and extending Sentinel, I'd rather not make such limitations. This is in keeping with the spirit of Python and the stdlib.
I'm also leaning against using slots. I don't expect there to be very many such objects created in normal circumstances. And with the recently added support for sub-classing, would could create a sub-class which uses slots if desired.

Thanks for an explanation!


chore!: Remove logger dependency from core

Closes #922
Leftover dependency from some refactors.

This is actually a devDep currently but I think we should drop it and just mock a logger.


New package: GenomicOffsets v1.0.1

Registering package: GenomicOffsets
Repository: https://github.com/currocam/GenomicOffsets.jl
Created by: @currocam
Version: v1.0.1
Commit: 104b479fb0c8414cdae14a93e6befe2d9a88c0cd
Reviewed by: @currocam
Reference: https://github.com/currocam/GenomicOffsets.jl/commit/104b479fb0c8414cdae14a93e6befe2d9a88c0cd#commitcomment-141720296

Closing in favor of https://github.com/JuliaRegistries/General/pull/106265
@currocam I'm assuming you opened a new PR because the version v1.0.1 was accidental, and you wanted v0.0.1 instead (although IMO, the package seems mature enough for the standard v0.1.0). But just in case: To fix the compat issue for NumericalIntegration, you don't need a new registration. Simply update your Project.toml to fix the issue, but leave the version the same. If you then retrigger the registration, the bot will update the existing PR instead of creating a new one.


Possible memory leak

Encountered several crashes due to running out of heap space. Might be linked to a memory leak. I think I've fixed the root cause of it, but should be run overnight for testing.

Squashed.


chore: Error Management and Releases

Please describe the changes this PR makes
Introduces Sentry for Error Management
As part of this we also introduced a release workflow
All of this code is untested, god save me when it breaks

🛑 Blocked until finalisation of client code

Status and versioning classification:

Code changes have been tested against the Discord API, or there are no code changes
This PR includes major changes

TODO:
Deployment to the server after release made
https://github.com/marketplace/actions/create-deployment-status-update


Northern Ireland QR Codes not valid

Describe the bug
When I scan my Northern Ireland issued NHS QR code with the app, I receive the error message "Certificazione non valida", despite UK QR codes now being accepted.

Expected behaviour
The QR code should be valid in line with other UK codes.

Steps to reproduce the issue
Scan an Northern Ireland QR code.

Possible Fix
Perhaps the NI code has a different key to the rest of the UK, it may be a case of obtaining these keys to convert it into an EU-accepted certificate.

Does the team know if it’s a public keys issue or possibly some difference to how the NI QR codes are generated?

I have got in touch with the Northern Ireland authorities who issue the code. They have said that they have provided the public keys to the UK Foreign and Commonwealth Office for dissemination to other countries so it is a public keys issue.

Hey guys, I am going to close this issue - have tested it out this morning and Northern Ireland QR codes work so keys must have been added. Thank you for your work on this.


not enough values to unpack (expected 2, got 0)

self.nummasks, self.masklen = self.masks.shape
ValueError: not enough values to unpack (expected 2, got 0)
I hope to be able to get help. Thank you very much.

I also encountered the same problem, may I ask if you have solved it.
It seems that the author used hard coding and obviously the features should not be 32.
if high_way:
            features = 32
            self.hwm = Generic_Newnet(self.in_channels - 1, features, 1, 5)

I'm sorry, I didn't solve the problem either
------------------ 原始邮件 ------------------
发件人:                                                                                "SeeMeInCrown/CoLa_Diff_MultiModal_MRI_Synthesis"                                                                                @.>;
发送时间: 2023年12月1日(星期五) 下午4:59
@.>;
<EMAIL_ADDRESS>主题: Re: [SeeMeInCrown/CoLa_Diff_MultiModal_MRI_Synthesis] not enough values to unpack (expected 2, got 0) (Issue #4)
I also encountered the same problem, may I ask if you have solved it.
It seems that the author used hard coding and obviously the features should not be 32.
if high_way:             features = 32             self.hwm = Generic_Newnet(self.in_channels - 1, features, 1, 5)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

I want to implement T1 to MRA method. Also encounter the same problem. Are there some solutions?

I think this is version conflict, may author could descripe package and torch version?

self.nummasks, self.masklen = self.masks.shape ValueError: not enough values to unpack (expected 2, got 0)
I hope to be able to get help. Thank you very much.

Hello, can I ask if the author's code can be executed correctly?

I think this is version conflict, may author could descripe package and torch version?

Hello, can I ask if the author's code can be executed correctly?

I want to implement T1 to MRA method. Also encounter the same problem. Are there some solutions?

Hello, can I ask if the author's code can be executed correctly?

Any update on this issue?

I didn't run it successfully either
------------------ 原始邮件 ------------------
发件人:                                                                                "SeeMeInCrown/CoLa_Diff_MultiModal_MRI_Synthesis"                                                                                @.>;
发送时间: 2024年3月3日(星期天) 中午12:17
@.>;
<EMAIL_ADDRESS>主题: Re: [SeeMeInCrown/CoLa_Diff_MultiModal_MRI_Synthesis] not enough values to unpack (expected 2, got 0) (Issue #4)
I want to implement T1 to MRA method. Also encounter the same problem. Are there some solutions?
Hello, can I ask if the author's code can be executed correctly?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

I got the same error and I am wondering if any of you solved it.

I encountered the same error, does anyone have a solution?


Update ReadMe

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

This PR updates docs in the README.md file.

What is the current behavior? (You can also link to an open issue here)

Some of the functionality is not described in the ReadMe & some of the settings are no longer used.

What is the new behavior (if this is a feature change)?

This PR updates the README.md file with information about new features and changes in the UI settings.

Other information:

Hmm... That is an interesting discussion. I agree that it would make documenting it much easier, but then it requires you to look at the source code, even if you don't want to do any development. I suppose, since we publish the docker images on GitHub, it wouldn't be a bad thing if all the necessary documentation would be available 'on the outside', and you would be able to just download the image and run. I think that would be much more 'friendly' towards prospective users.

Codecov Report

Merging #123 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #123   +/-   ##
=======================================
  Coverage   61.21%   61.21%
=======================================
  Files         101      101
  Lines        7753     7753
  Branches     1770     1770
=======================================
  Hits         4746     4746
  Misses       2984     2984
  Partials       23       23

Impacted Files
Coverage Δ

meteor/lib/Settings.ts
100% <ø> (ø)
: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 4a4bb78...2356281. Read the comment docs.


198 clean memory utilisation

Fix context error with UUID manipulation inside Byte operation.
Implementing half of the missing free inside Network Operation. (From 800 missing free to 350 in a regular game).

Codecov Report

Merging #208 (fc7a140) into master (0f91f18) will increase coverage by 0.01%.
The diff coverage is 4.65%.

 Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Worktree and new Repository Contructors

This PR includes a very basic implementation of Worktree, the Checkout only can be done when the worktree is completely clean.
Also all the Repository constructors where replaced with a more clean and easy ones.
Also some fixes discovered during the process where found like: https://github.com/src-d/go-git/commit/22cdc3bd9cd8c60984e3d8cfb89b366c3dd7d902 https://github.com/src-d/go-git/commit/ae86293c30a0e31db2054e64ab1054c345a88cc6
TODO:

find a way to provide the Progress before Clone
proper clean up between checkouts

Fixes https://github.com/src-d/go-git/issues/225

Codecov Report

:exclamation: No coverage uploaded for pull request head (worktree@baa382a).

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 002d85c...baa382a. Read the comment docs.


AppSync Simulator: TypeError: Cannot read property 'path' of undefined

Describe the bug
Getting error while setting up serverless-appysnc-emulator on windows
AppSync Simulator: TypeError: Cannot read property 'path' of undefined
To Reproduce
Steps to reproduce the behavior
Expected behavior
A clear and concise description of what you expected to happen.
TypeError: Cannot read property 'path' of undefined
at getAppSyncConfig (C:\Users\Administrator\Documents\appdatasoft\sumiventures\codemarket\parkyourselfbackend\node_modules\serverless-appsync-simulator\lib\getAppSyncConfig.js:247:38)
at ServerlessAppSyncSimulator.initServer (C:\Users\Administrator\Documents\appdatasoft\sumiventures\codemarket\parkyourselfbackend\node_modules\serverless-appsync-simulator\lib\index.js:85:50)
at Client. (C:\Users\Administrator\Documents\appdatasoft\sumiventures\codemarket\parkyourselfbackend\node_modules\serverless-appsync-simulator\lib\index.js:147:14)
at Client.emit (events.js:315:20)
at Client.EventEmitter.emit (domain.js:482:12)
at BunserBuf. (C:\Users\Administrator\Documents\appdatasoft\sumiventures\codemarket\parkyourselfbackend\node_modules\fb-watchman\index.js:90:14)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.EventEmitter.emit (domain.js:482:12)
at BunserBuf.process (C:\Users\Administrator\Documents\appdatasoft\sumiventures\codemarket\parkyourselfbackend\node_modules\bser\index.js:292:10)
at C:\Users\Administrator\Documents\appdatasoft\sumiventures\codemarket\parkyourselfbackend\node_modules\bser\index.js:247:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

Get Support --------------------------------------------
Docs:          docs.serverless.com
Bugs:          github.com/serverless/serverless/issues
Issues:        forum.serverless.com
Your Environment Information ---------------------------
Operating System:          win32
Node Version:              12.18.2
Framework Version:         2.12.0
Plugin Version:            4.1.2
SDK Version:               2.3.2
Components Version:        3.4.1
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Thank you @appdatasoft for raising this.
I see 2 different errors here
Cannot read property 'path' of undefined (title of hte ticket)
Cannot read defaultAuthenticationtype of undefined in the screenshot.
Could you please clarify the issue, show any output of the console, serverless.yml file, etc
It would help understand the problem better
thank you

Hi, I'm also facing Cannot read defaultAuthenticationtype of undefined error.
Here's my serverless.yml file:
service: graphql-api
frameworkVersion: ^2.34.0

plugins:
    - serverless-appsync-plugin
    - serverless-plugin-typescript
    - serverless-appsync-simulator
    - serverless-offline

provider:
    name: aws
    region: eu-central-1
    runtime: nodejs14.x
    stage: ${opt:stage, 'local'}
    lambdaHashingVersion: '20201221'
    iam:
        role:
            statements:
                - Effect: Allow
                  Action:
                      - lambda:*
                  Resource:
                      - arn:aws:lambda:${self:provider.region}:*:*
    environment:
        REGION: '${self:provider.region}'
        STAGE: '${self:provider.stage}'
        APPSYNC_NAME: '${self:custom.defaultPrefix}-appsync'

custom:
    appSync: # appsync plugin configuration
        name: '${self:provider.environment.APPSYNC_NAME}'
        authenticationType: API_KEY
        serviceRole: 'AppSyncServiceRole'
        dataSources: ${file(resources/data-sources.yml)}
        mappingTemplates: ${file(resources/resolvers.yml)}
    appsync-simulator: # appsync-simulator configuration https://github.com/bboure/serverless-appsync-simulator#configuration
        apiKey: 'da2-fakeApiId1234567'
        port: 4000
    defaultPrefix: ${self:service}-${self:provider.stage}

functions:
    - ${file(resources/lambda-functions.yml)}

resources:
    - ${file(resources/roles.yml)} # Roles

The error occurs a few seconds after I run sls offline start - no API request is necessary.

@skix123  @appdatasoft Tryp to set the SLS_DEBUG env var to * (export SLS_DEBUG="*") and run sls offline start again.
Then check the logs, look for AppSync Simulator: and try to see why there is no defaultAuthenticationType
you should see something like
AppSync Simulator: {
  appSync: {
    name: '********',
    apiKey: '0123456789',
    defaultAuthenticationType: { authenticationType: 'API_KEY' },
    additionalAuthenticationProviders: []
  },
  schema: {
    path: 'appsync/schema.graphql',
    content: '.....'
  },
  resolvers: [
    ...
  ],
  dataSources: [
	...
  ],
  functions: []
}

@skix123 @appdatasoft Tryp to set the SLS_DEBUG env var to * (export SLS_DEBUG="*") and run sls offline start again.
Then check the logs, look for AppSync Simulator: and try to see why there is no defaultAuthenticationType
you should see something like
AppSync Simulator: {
  appSync: {
    name: '********',
    apiKey: '0123456789',
    defaultAuthenticationType: { authenticationType: 'API_KEY' },
    additionalAuthenticationProviders: []
  },
  schema: {
    path: 'appsync/schema.graphql',
    content: '.....'
  },
  resolvers: [
    ...
  ],
  dataSources: [
	...
  ],
  functions: []
}

@bboure
Here is the log after SSL_BEBUG IS SET:

serverless offline start
Serverless: To ensure safe major version upgrades ensure "frameworkVersion" setting in service configuration (recommended setup: "frameworkVersion: ^2.35.0")
Serverless: Invoke offline:start

AppSync Simulator: TypeError: Cannot read property 'path' of undefined
offline: Starting Offline: dev/us-east-2.
[offline] options: {
allowCache: false,
apiKey: 'd41d8abcdf00b204e9800998ecf1234',

@bboure nothing there.  Below listed plugins do not predefine type for introduced options:
             - ServerlessAppsyncPlugin for "clientId", "username", "password", "jwtToken", "apiKey", "port"
             - ServerlessOffline for "apiKey", "corsAllowHeaders", "corsAllowOrigin", "corsDisallowCredentials", "corsExposedHeaders", "disableCookieValidation", "enforceSecureCookies", "hideStackTraces", "host", "httpPort", "httpsProtocol", "lambdaPort", "noPrependStageInUrl", "noAuth", "ignoreJWTSignature", "noTimeout", "prefix", "printOutput", "resourceRoutes", "useChildProcesses", "useWorkerThreads", "websocketPort", "webSocketHardTimeout", "webSocketIdleTimeout", "useDocker", "layersDir", "dockerReadOnly", "functionCleanupIdleTimeSeconds", "allowCache", "dockerHost", "dockerHostServicePath", "dockerNetwork"
            Please report this issue in plugin issue tracker.
            Starting with next major release, this will be communicated with a thrown error.
            More Info: https://www.serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA
Serverless: Skipping variables resolution with old resolver (new resolver reported no more variables to resolve)
Serverless: Invoke offline:start
Serverless: Compiling with Typescript...
Serverless: Using local tsconfig.json
Serverless: Typescript compiled.
Serverless: Watching typescript files...
AppSync Simulator: AppSync endpoint: http://<IP_ADDRESS>:4000/graphql
AppSync Simulator: GraphiQl: http://<IP_ADDRESS>:4000
offline: Starting Offline: local/eu-central-1.
[offline] options: {
  allowCache: false,
  apiKey: 'd41d8cd98f00b204e9800998ecf8427e',
  corsAllowCredentials: true,
  corsAllowHeaders: [ 'accept', 'content-type', 'x-api-key', 'authorization' ],
  corsAllowOrigin: [ '*' ],
  corsExposedHeaders: [ 'WWW-Authenticate', 'Server-Authorization' ],
  disableCookieValidation: false,
  dockerHost: 'localhost',
  dockerHostServicePath: null,
  dockerNetwork: null,
  dockerReadOnly: true,
  enforceSecureCookies: false,
  functionCleanupIdleTimeSeconds: 60,
  hideStackTraces: false,
  host: 'localhost',
  httpPort: 3000,
  httpsProtocol: '',
  lambdaPort: 3002,
  layersDir: null,
  noAuth: false,
  noPrependStageInUrl: false,
  noTimeout: false,
  prefix: '',
  printOutput: true,
  resourceRoutes: false,
  useChildProcesses: false,
  useDocker: false,
  useWorkerThreads: false,
  webSocketHardTimeout: 7200,
  webSocketIdleTimeout: 600,
  websocketPort: 3001,
  stage: 'local',
  corsConfig: {
    credentials: true,
    exposedHeaders: [ 'WWW-Authenticate', 'Server-Authorization' ],
    headers: [ 'accept', 'content-type', 'x-api-key', 'authorization' ],
    origin: [ '*' ]
  }
}
offline: Offline [http for lambda] listening on http://localhost:3002
offline: Function names exposed for local invocation by aws-sdk:
           * getOrganizations: radvana-api-local-getOrganizations
           * getTeams: radvana-api-local-getTeams
[offline] Lambda Invocation Routes (for AWS SDK or AWS CLI):
           * POST http://localhost:3002/2015-03-31/functions/radvana-api-local-getOrganizations/invocations
           * POST http://localhost:3002/2015-03-31/functions/radvana-api-local-getTeams/invocations
[offline] Lambda Async Invocation Routes (for AWS SDK or AWS CLI):
           * POST http://localhost:3002/2014-11-13/functions/radvana-api-local-getOrganizations/invoke-async/
           * POST http://localhost:3002/2014-11-13/functions/radvana-api-local-getTeams/invoke-async/
TypeError: Cannot read property 'defaultAuthenticationType' of undefined
    at Object.getAllowedAuthTypes (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/utils/auth-helpers/helpers.js:44:35)
    at Object.getAuthorizationMode (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/utils/auth-helpers/current-auth-mode.js:18:38)
    at AppSyncSimulatorSubscriptionServer.authorizeRequest (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/websocket-subscription.js:80:35)
    at AppSyncSimulatorSubscriptionServer.onConnect (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/websocket-subscription.js:77:19)
    at WebsocketSubscriptionServer.<anonymous> (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:134:59)
    at step (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:63:23)
    at Object.next (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:44:53)
    at /Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:38:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:34:12)
    at WebSocketServer.WebsocketSubscriptionServer.onSocketConnection (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:114:71)
    at WebSocketServer.emit (events.js:315:20)
    at WebSocketServer.EventEmitter.emit (domain.js:486:12)
    at WebSocketServer.completeUpgrade (/Users/SkiX/www/radvana-api/node_modules/ws/lib/websocket-server.js:330:5)
    at WebSocketServer.handleUpgrade (/Users/SkiX/www/radvana-api/node_modules/ws/lib/websocket-server.js:246:10)
    at Server.upgrade (/Users/SkiX/www/radvana-api/node_modules/ws/lib/websocket-server.js:92:16)
    at Server.emit (events.js:315:20)
    at Server.EventEmitter.emit (domain.js:486:12)
    at onParserExecuteCommon (_http_server.js:695:14)
    at onParserExecute (_http_server.js:608:3)```

Node v14.14.0 if that matters

Maybe bumping amplify-appsync-simulator to the latest version would help?

Update: I had serverless-plugin-typescript plugin and it caused this error. Now I've remove it and have another one: Error: UnauthorizedException: Missing authorization
Log:
Error: UnauthorizedException: Missing authorization
    at Object.getAuthorizationMode (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/utils/auth-helpers/current-auth-mode.js:56:11)
    at AppSyncSimulatorSubscriptionServer.authorizeRequest (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/websocket-subscription.js:80:35)
    at AppSyncSimulatorSubscriptionServer.onConnect (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/websocket-subscription.js:77:19)
    at WebsocketSubscriptionServer.<anonymous> (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:134:59)
    at step (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:63:23)
    at Object.next (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:44:53)
    at /Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:38:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:34:12)
    at WebSocketServer.WebsocketSubscriptionServer.onSocketConnection (/Users/SkiX/www/radvana-api/node_modules/amplify-appsync-simulator/lib/server/subscription/websocket-server/server.js:114:71)
    at WebSocketServer.emit (events.js:315:20)
    at WebSocketServer.EventEmitter.emit (domain.js:486:12)
    at WebSocketServer.completeUpgrade (/Users/SkiX/www/radvana-api/node_modules/ws/lib/websocket-server.js:330:5)
    at WebSocketServer.handleUpgrade (/Users/SkiX/www/radvana-api/node_modules/ws/lib/websocket-server.js:246:10)
    at Server.upgrade (/Users/SkiX/www/radvana-api/node_modules/ws/lib/websocket-server.js:92:16)
    at Server.emit (events.js:315:20)
    at Server.EventEmitter.emit (domain.js:486:12)
    at onParserExecuteCommon (_http_server.js:695:14)
    at onParserExecute (_http_server.js:608:3)

As before, it occurs a few seconds after sls offline start but it doesn't crash the app and I'm able to make a graphql request and execute queries like nothing happened. However, error occurs at every request and it's hard to use terminal when it's filled with this wall of error messages :)

@skix123 OK, if you are using typescript or any bundler, you have to update the path where the simulator looks for compiled code.
Example:
appsync-simulator:
    location: .build

Still the same (location: dist)

OK, just realized your issue is about defaultAuthenticationType
can we please separate issues in 2 different tickets for clarity and tracking?

OK, just realized your issue is about defaultAuthenticationType
can we please separate issues in 2 different tickets for clarity and tracking?

@bboure looks like both the 2 issues are connected to each other.

Related issue/duplicate: #91

@appdatasoft Hi
Have the same issue
Have you figured it out?

It is failing because the plugin is looking for a graphql.schema file inside the servicePath which is .build in case of TypeScript project. By default, this folder doesn't contain the schema file.
If you are using the serverless-plugin-typescript, then just update the package options with the following:
package:
    patterns:
        - 'schema.graphql'

@bboure Please, add this to the documentation to simplify TS integration.


[D3D11] Respect InstanceStepRate when creating InputLayoutCacheKey

Currently, input layouts with a non-zero InstanceStepRate aren't properly cached. Requesting the same input layout twice results in an exception. https://github.com/mellinoe/veldrid/blob/d7b6425fe1b502bfefe7eebd4002801a13881eb1/src/Veldrid/D3D11/D3D11ResourceCache.cs#L167
There is a mismatch between the "temporary" key and the "permanent" key in the dictionary, since only the temporary key has the correct InstanceStepRate value. This results in an attempt to add the same InputLayout to the cache under the same (incorrectly generated) key,
Repro:
(Shader vs, Shader fs) = LoadShaderSet(factory, "ShaderSetName");
var shaderSetDesc = new ShaderSetDescription(
    new[] { vertexLayout, perInstanceDataLayout }, // has a VertexLayout with a non-0 InstanceStepRate
    new[] { vs, fs });

// ...

var pipelineDesc = new GraphicsPipelineDescription(...);
// Create two pipelines with the same vertex layouts
Pipeline pipeline0 = factory.CreateGraphicsPipeline(ref pipelineDesc);
// Will crash in D3D11ResourceCache.GetInputLayout
Pipeline pipeline1 = factory.CreateGraphicsPipeline(ref pipelineDesc);

Thanks for the fix. I also merged in a test case for this.


Timesheet - 21/04/2021 - Mr. K

Task 1
Landing page - HiFi Design - Responsive Design
Worked on the 1366 size layout to make pixel perfect by 8px grid, since 1366 is not divisible by 8, researched to figure out which grid layout would give pixel-perfect padding and spacing to the overall page, sections, and elements.
Started work on a handoff. Made 1366 page ready with specs.
Proof of Work

https://www.figma.com/file/JCGeIX9fFrrpZiqE0XzH9s/Homepage?node-id=3%3A0

Time Spent
6.0 hours
Account Number
c93ee24b89991a1438b45444cf06e5bb167ed1796d54a800174def4480f98ed0

Approved


ci: clean up workflows

Clean up the CI logic and workflows:

always use cache when building images
only push cache to registries in the dev workflow
add a reusable workflow for building and pushing images, use it in other workflows to keep things DRY

The reusable workflow requires moving tag computation to a separate job, whose output is then used as an input to the build/push job. This is simply how reusable workflows work in GHA. There's a question of whether the reference to the reusable workflow should be pinned to a specific revision rather than following main, but since we control this, I think it's fine the way it is, and much easier to manage.
Should the dev workflow really be run on release-v[0-9]+.[0-9]+, by the way? Do we use release branches in this repo?

Should the dev workflow really be run on release-v[0-9]+.[0-9]+, by the way? Do we use release branches in this repo?

We don't for now but let's leave this. If someone decides to use these branches it'll be ready and it doesn't cost us anything.


adminjs pass a string instead of entity when using a relationship on typeorm

Describe the bug
The bug happens when a many to many relationship is created.
When the Resource class(from @adminjs/typeorm) is instantiated adminjs will pass a string to Resource constructor, then prepareProps function throws "this.model.getRepository is not a function".
I added some a console.log on<EMAIL_ADDRESS>
It logs:

Usuarios_Usinas is the NtoN table, it does not have a entity, I also tried creating a entity to it but the error persists.

relationships code:
@Entity({ name: "Usuario" })
export class User extends BaseEntity {
...
@ManyToMany(() => PowerPlant)
  @JoinTable({
    name: "Usuarios_Usinas",
    joinColumn: {
      name: "usuario_id",
      referencedColumnName: "id",
    },
    inverseJoinColumn: {
      name: "usina_us_id",
      referencedColumnName: "US_ID",
    },
  })
  powerPlants!: PowerPlant[];
...
}

@Entity({name: "Usina"})
export class PowerPlant extends BaseEntity {
...
@ManyToMany(() => User)
  @JoinTable({
    name: "Usuarios_Usinas",
    joinColumn: {
      name: "usina_us_id",
      referencedColumnName: "US_ID",
    },
    inverseJoinColumn: {
      name: "usuario_id",
      referencedColumnName: "id",
    },
  })
  users!: User[];
...
}

adminjs resources
import { Database, Resource } from "@adminjs/typeorm";

type TypeOrmResource = {
  resource: any;
  options?: any;
  actions?: any;
};

Resource.validate = validate;
AdminJS.registerAdapter({ Database, Resource });

const adminOnly = ({ user }: any) => user.isAdmin();

const adminResources: TypeOrmResource[] = [
  {
    resource: User,
    options: {
      encryptedPassword: { isVisible: false },
      password: {
        type: "string",
        isVisible: {
          list: false,
          edit: true,
          filter: false,
          show: false,
        },
      },
    },
    actions: {
      edit: { isAccessible: adminOnly },
      delete: { isAccessible: adminOnly },
      new: { isAccessible: adminOnly },
    },
  },
  {
    resource: PowerPlant,
    actions: {
      edit: { isAccessible: adminOnly },
      delete: { isAccessible: adminOnly },
      new: { isAccessible: adminOnly },
    },
  }
];
...

migration code
  ...
  public async up(queryRunner: QueryRunner): Promise<void> {
    await queryRunner.createTable(
      new Table({
        name: "Usuarios_Usinas",
        columns: [
          {
            name: "id",
            type: "int",
            isPrimary: true,
            isGenerated: true,
          },
          {
            name: "usuario_id",
            type: "int",
          },
          {
            name: "usina_us_id",
            type: "int",
          },
        ],
      }),
      true
    );

  await queryRunner.createForeignKey(
      "Usuarios_Usinas",
      new TableForeignKey({
        columnNames: ["usuario_id"],
        referencedTableName: "Usuario",
        referencedColumnNames: ["id"],
        onDelete: "CASCADE",
      })
    );

    await queryRunner.createForeignKey(
      "Usuarios_Usinas",
      new TableForeignKey({
        columnNames: ["usina_us_id"],
        referencedTableName: "Usina",
        referencedColumnNames: ["US_ID"],
        onDelete: "CASCADE",
      })
    );
  }
...

Installed libraries and their versions

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Usuarios_Usinas is the NtoN table, it does not have a entity, I also tried creating a entity to it but the error persists.

After creating an entity for the N-N table, did you add it to resources in AdminJS options? The error itself is odd as I've previously worked with N-N tables just fine 🤔

Sorry, for my late response. I managed to fix the error, basically I wasn't doing the
Entity.useConnection(connection);

So by using the "useConnection" on my entities and I needed to remove the
databases: [connection]

from the adminjs config.
Also, if using the "databases: [connection]" on adminjs configs, the error will happend even with "Entity.useConnection".


[AutoPR imds/data-plane] Instance Metadata Service: Initial Commit

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4493

(message created by the CI based on PR content)


Change Favicon

Hey @avinashkranjan, @Utkarsh1999 @abhishek2x   I am a GSSOC, 2021 participant. I want to make changes in favicon in the website. Can I work on this issue?


[Feature] Add collapsible divs to CSS

There should be two types:

Regular collapsible div with a title
Collapsible div that only appears on mobiles - on desktops it should be a completely normal div.

https://www.digitalocean.com/community/tutorials/css-collapsible


New include doesn't evaluate in locals block

Terraform version 0.14.11
Terragrunt version 0.30.4
First, thank you for this cool feature to access the include's atttributes!
But we have issues to use it in the child's locals block.
here is a dummy test code
test/terragrunt.hcl
locals {
 environment = "test"
}

test/child/terragrunt.hcl
include {
  path   = find_in_parent_folders()
  expose = true
}

locals {
  test = include.locals.environment
}

❯ cd test/child
❯ terragrunt validate --terragrunt-log-level trace
DEBU[0000] Found locals block: evaluating the expressions.
DEBU[0000] Found locals block: evaluating the expressions.
DEBU[0000] Evaluated 1 locals (remaining 0): environment
DEBU[0000] Evaluated 0 locals (remaining 1):
ERRO[0000] Not all locals could be evaluated:
ERRO[0000] 	- test
ERRO[0000] Could not evaluate all locals in block.
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1

It works if we use it in the inputs block directly.

This is now fixed in https://github.com/gruntwork-io/terragrunt/releases/tag/v0.30.5 (binaries will show up shortly)


Not able to run load-grunt-config with jshint and customtask

Can you please help me what I am missing in configuration mentioned in below SO question :
http://stackoverflow.com/questions/33854582/task-not-found-when-grunt-is-run-using-load-grunt-config
I didn't repeat the whole content just to keep it at one place, I am sure I am not understanding how it all works.

where is your test task code?
P.S.: My suggestion, first of all try to make it work without load-grunt-config...

code for test task? its in test.js as follows :
module.exports = {
test :{
local : {
}
}
};
I guess I am missing very basic thing.

This is configuration for task, not task itself. To get more detailed info please read official Grunt documentation first http://gruntjs.com/getting-started.
Closing this issue for now, as it is not connected with functionality of load-grunt-config. Feel free to open new issue if you will have problems with load-grunt-config functionality. :)