Issue after modifying the DOM

Hello,
I am working on a project where I kind of want to color the dates , similarly to what Github does on the profile page with the days colored.
I use jquery to select the .day element and modify the content of the one that have activities.
However, those days now stop working when clicked on, with the following error:
hello.week.min.js:1 Uncaught TypeError: Cannot read property 'locked' of undefined
    at HTMLDivElement.<anonymous> (hello.week.min.js:1)

It is minified which makes it hard to find out exactly where it comes from, but I supposed it is somewhere around here ? https://github.com/mauroreisvieira/hello-week/blob/0ebb7255f057f4d31218d0402c1ab32965dfe259/src/core/calendar.ts#L309-L343 ?

Hi @leobenkel can you share a snippet how do you are initialise HelloWeek?
Also you can customize color of highlight dates, that way: https://hello-week.now.sh/#/docs/v2/highlight-dates

Here is how I initialize the calendar. I am using requirejs
   let calendar = new calendarLib({
                selector: '.calendar-container',
                lang: 'en',
                langFolder: '/config/calendar/langs/',
                format: 'YYYY-MM-DD',
                defaultDate: null,
                todayHighlight: true,
                weekStart: 1,
                monthShort: false,
                weekShort: true,
                minDate: null,
                maxDate: today,
                daysSelected: null,
                daysHighlight: null,
                multiplePick: false,
                disableDaysOfWeek: null,
                disableDates: null,
                disablePastDays: false,
                range: false,
                locked: false,
                rtl: false,
                nav: ['◀', '▶'],
                timezoneOffset: new Date().getTimezoneOffset(),
                onLoad: function () {
                    $('.calendar-action-today').click(function () {
                        return calendar.goToDate(date.todayDashSeparated());
                    });

                    setupMonth(this);
                },
                onNavigation: function () {
                    setupMonth(this);
                },
                onSelect: function () {
                    let dateSelected = dateUtil.reduceDate(this.daysSelected[0]);

                    let findDataForDate = _.find(data, function (d) {
                        return d.data.date == dateSelected;
                    });

                    if (findDataForDate) {
                        renderEvents([findDataForDate]);
                    } else {
                        renderEvents(data);
                    }
                },
                beforeLoad: function () { },
                beforeCreateDay: function (data) { }
            });

Thank you for your suggestion but I need to have something richer than just one color.

Ok, you are using version 3.0.0 (beta) right?
So, what do you want is customize color of dates. Do you have an array with dates that you want customize?

I got the latest from the Release which is 2.10.3.
I have an array of date with an array of color, and I need to add blocks for all those colors inside each of the date. Something like this:

In that case, you are using options that are not available in that version (2.10.3).
For example: beforeLoad or beforeCreateDay.
So version 2.x don't allow an option to customize DOM, that option is only available on version 3.
So I give an example of what you can do with version 3.0:
import HelloWeek, { el } from<EMAIL_ADDRESS>
const days = [
    {
        date: '2020-11-20',
        style: { color: '#fff', backgroundColor: '#F44336' },
    },
    {
        date: '2020-11-21',
        style: { color: '#fff', backgroundColor: '#9C27B0' },
    },
    {
        date: '2020-11-22',
        style: { color: '#fff', backgroundColor: '#673AB7' },
    },
    {
        date: '2020-11-23',
        style: { color: '#fff', backgroundColor: '#2196F3' },
    },
    {
        date: '2020-11-24',
        style: { color: '#fff', backgroundColor: '#009688' },
    },
];

const customizeDate = (date) => days.find((day) => day.date === date) || {};

new HelloWeek({
    selector: '.calendar',
    format: 'YYYY-MM-DD',
    defaultDate: null,
    todayHighlight: true,
    weekStart: 1,
    monthShort: false,
    weekShort: true,
    minDate: null,
    maxDate: new Date(),
    daysSelected: null,
    daysHighlight: null,
    multiplePick: false,
    disableDaysOfWeek: null,
    disableDates: null,
    disablePastDays: false,
    range: false,
    locked: false,
    rtl: false,
    nav: ['◀', '▶'],
    timezoneOffset: new Date().getTimezoneOffset(),
    beforeCreateDay: (data) => {
        const { date } = data;
        const { style } = customizeDate(date);

        return {
            ...data,
            ...{
                node: el(
                    'div',
                    data.node.attributes,
                    el(
                        'span',
                        { class: ['day-color'], style },
                        data.day.toString()
                    )
                ),
            },
        };
    },
});

As you can see on that snippet it's possible manipulate day node before rendering using beforeCreateDay.
Also using el allow a possibility to customize everything on node element, like add styles or an array of class as adding other different attributes.
Look that exemple working: https://jsfiddle.net/x5d724gy/3/

ok, i am trying to load the v3 but for some reason requireJS is not happy about it. works perfectly with v2.x that i was using tho.

Ok, version 3 it's available in cjs,iife(default) and esm.
but for you understand what is the problem with that error:
hello.week.min.js:1 Uncaught TypeError: Cannot read property 'locked' of undefined
    at HTMLDivElement.<anonymous> (hello.week.min.js:1)

What I understand from you explanation you are adding a new HTMLElement inside the HTMLElement with class day.
The problem is that you are adding a new element but that element will preventing the click on HTMLElement with class day.
To fixed that you should add pointer-events: none in element that you are adding inside HTMLElement with class day.

  ....

        24

ok , I made some progress. I was able to add the library to RequireJS , using
 paths: {
        ...other libraries...
        calendarLib: [
            // https://github.com/mauroreisvieira/hello-week
<EMAIL_ADDRESS>            // '/scripts/lib/hello.week.3.0.4.min'
            // '/scripts/lib/hello.week.min'
        ]
    },
    shim: {
        calendarLib: {
            exports: 'HelloWeek'
        }
    }

I am able to render the calendar, using your example and what i have previously done.
Right now, I am having trouble understanding how to get/use your el magic thing :)

What I am doing right now:
beforeCreateDay: function (input) {
// ... more code ...
let container = // ... build all the colors ...

let dayContent = $(`<div></div>`);
dayContent.append(container);
dayContent.append(`<div class="day-number">${input.day}</div>`);
dayContent.addClass('day-with-activities');
input['node'] = dayContent.el;

return input;
}

but i am getting:
Uncaught (in promise) TypeError: Cannot read property 'split' of undefined
    at T (hello.week.min.js:1)
    at X.createDay (hello.week.min.js:1)
    at X.createMonth (hello.week.min.js:1)
    at X.mounted (hello.week.min.js:1)
    at X.beforeMount (hello.week.min.js:1)

Ok, good to know that you made progress :)
Ok, you don't need that:
    let dayContent = $(`<div></div>`);
    dayContent.append(container);
    dayContent.append(`<div class="day-number">${input.day}</div>`);
    dayContent.addClass('day-with-activities');
    input['node'] = dayContent.el;

You can use only el() function.
So let me explain how that function works:
function el(nodeName: string, attributes: any, ...args: any)

nodeName: will create your node element (p, div, a, ul, li, nav....)
attributes: Object with attributes, you can pass id, class, styles....
args: you can pass a string our a other el.
Confused??? Ok, let's see an exemple:
If you call that function el(div, { id: "foo" }, "Hello");  will return a virtual node element like that:
{
  nodeName: "div",
  attributes: {
    "id": "foo"
  },
  children: ["Hello!"]
}

Back to you code, you can replace your jQuery code for that:
beforeCreateDay: (data) => {
    const container = el(
        'div',
        {},
        el('div', { style: { color: '#f00' } }),
        el('div', { style: { color: '#ff0' } }),
        el('div', { style: { color: '#00f' } }),
        el('div', { style: { color: '#f0f' } })
    );
    return {
        ...data,
        ...{
            node: el(
                'div',
                data.node.attributes,
                el(
                    'div',
                    { class: 'day-with-activities' },
                    el(
                        'div',
                        { class: 'day-number' },
                        container,
                        data.day.toString()
                    )
                )
            ),
        },
    };
},

HTML results:

         25

I understood how to use el but I dont understand how to bring into my code using RequireJS.
the file where i use HelloWeek looks like:
define([
    // ...lot more..
    'jquery',
    'calendarLib',
],
    function (/* ...lot more... */, $, calendarLibl) {
        let startHelloWeek = function(selector) {
             let calendar = new calendarLib({
                 selector: selector,
                 // the other thing we discussed above...
                beforeCreateDay: function(input) {
                    // the code i copied above.
               }
            });
      }
});

If I try to use el it does not exist.

I never work in RequireJS.
But try to use that way: calendarLib.el()
Any way why do you need RequireJS?

I am building a client side only app and requirejs is the only way i know how to do it without the need to use any construction CI/CD pipeline.
I found a way to make it work.
I downloaded the release js locally.
And wrapped it into a define , it works now :)
It is an open source app , I will send you the link when it is all working out

Ok, I happy to see that working.
I will waiting for for that link. 👍
and thanks for choose Hello Week.

I found why it does not work, it is at https://github.com/mauroreisvieira/hello-week/blob/0ebb7255f057f4d31218d0402c1ab32965dfe259/src/util/index-of.ts#L5
The array is containing the original days DOM created. But the target is what has been clicked on which might not be the right thing.
I now understand what you meant by pointer-events: none !

Yea, I will fix that to avoid that kind of workarounds.

@mauroreisvieira , just for you: https://daily-achievements.netlify.app/ , it is a WIP. It is not public yet. But this is where I use the library :)


No voice option in Omnichannel

Step 7 B

In the Voice section, set the Add voice toggle to Yes to enable the voice channel. Ensure that you select the Voice and SMS Terms checkbox.

What happens if the voice section is NOT appearing despite having appropriate licences, meeting system requirements and being in a region with voice in preview or GA? We are currently experiencing this problem and the support team do not seem to know what to do.

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

ID: c294571c-06be-6598-8501-9315724cdfa3
Version Independent ID: 0a8050c3-b67a-29c0-885a-de61bd93d292
Content: Provision Omnichannel for Customer Service and voice channel
Content Source: ce/customer-service/omnichannel-provision-license.md
Service: dynamics-365-customerservice
GitHub Login: @lalexms
Microsoft Alias: laalexan

Thanks for your comment, @Dan-Newton. This issue has been assigned to the doc author for review.

@Dan-Newton,
Thank you for sharing your product experience feedback with us. Please share the geographic location information of your Dynamics 365 tenant and any other details that'll help troubleshoot your issue. Is there an ICM ticket that I can share with the internal stakeholders?
Best regards,
Neeraja

@neeranelli Hi, the geographic location is United Kingdom where the voice channel is showing as generally available, but also has been in preview for several months. I do not have an ICM number but the SR is<PHONE_NUMBER>001193. Note I am now being told I do not have the correct licence despite purchasing the "Digital Messaging and Voice Add-in" licence so any help from internal stakeholders or feedback would be useful.

@Dan-Newton,
I have looped in the stakeholders and await their feedback; I will share their response soon as I get any.
Meanwhile, please see if your license meets the requirements listed in the Dynamics 365 Licensing Guide.
Best regards,
Neeraja

@Dan-Newton,
The message from the internal team is to continue to interact with Microsoft Support to troubleshoot the issue. Because there's no action for docs, I will close this GitHub issue.
Please let me know if you have further questions.
Best regards,
Neeraja


Get attached VM name for attached volume in admin CLI

Modified to get the VM name for attached disks from VM UUID.
...
snap-disk1        bigone     Ubuntu-16-04                    Wed Nov  9 12:43:47 2016  detached        N/A     100.00MB  17.00MB   ext4             read-write  persistent
clonedisk         bigone     photon-custom-hw10-1.0-13c08b6  Fri Oct 28 07:12:04 2016  detached        N/A     100.00MB  100.00MB  ext4             read-write  independent_persistent
try-attach        bigone     1                               Thu Nov 17 05:10:33 2016  detached        N/A     100.00MB  15.00MB   ext4             read-write  independent_persistent
docker run --rm -it -w /data -v try-attach:/data busybox
/data #
...
snap-disk1        bigone     Ubuntu-16-04                    Wed Nov  9 12:43:47 2016  detached        N/A     100.00MB  17.00MB   ext4             read-write  persistent
clonedisk         bigone     photon-custom-hw10-1.0-13c08b6  Fri Oct 28 07:12:04 2016  detached        N/A     100.00MB  100.00MB  ext4             read-write  independent_persistent
try-attach        bigone     1                               Thu Nov 17 05:10:33 2016  1               N/A     100.00MB  15.00MB   ext4             read-write  independent_persistent

Updated changes to address review comments. Tried running with Python 3.5 and there are exception and print statements that are incompatible. Fixed those also.

@govint - the actual fix looks good and ready to merge. The changes related to whitespaces and fixing except to comply with 6.5 , while correct, do not belong in the same commit. And generally do not belong in this PR at all. They have a potential to introduce conflicts for PRs still in flight (for tenants), and they do not make product run on the latest ESX (CI will fail there), not do they clean up trailing whitespaces in the whole code base (there are still many)
For now, let's merge (since it's a fairly small set of changes and the commit is squashed) , but please - do  not mix different work in the same commit. Also, I am planning to do a pass on Py3/whitespaces work, so please do not do anymore fixes in this area to avoid conflicts.

Sure, I couldn't run on 6.5 which I have here as a test bed and hence had
to fix these.
On Thu, Nov 17, 2016 at 11:57 PM, Mark Sterin<EMAIL_ADDRESS>wrote:

@govint https://github.com/govint - the actual fix looks good and ready
to merge. The changes related to whitespaces and fixing except to comply
with 6.5 , while correct, do not belong in the same commit. And generally
do not belong in this PR at all. They have a potential to introduce
conflicts for PRs still in flight (for tenants), and they do not make
product run on the latest ESX (CI will fail there), not do they clean up
trailing whitespaces in the whole code base (there are still many)
For now, let's merge (since it's a fairly small set of changes and the
commit is squashed) , but please - do not mix different work in the same
commit. Also, I am planning to do a pass on Py3/whitespaces work, so please
do not do anymore fixes in this area to avoid conflicts.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vmware/docker-volume-vsphere/pull/745#issuecomment-261327565,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APHseNBw_cYmgJBR-xunovp4Vg9vdr0Hks5q_Jx0gaJpZM4K049s
.

Fixes https://github.com/vmware/docker-volume-vsphere/issues/738


Issue 55: Select Copier using yaml file

This is a fix for issue #55
I was unable to run modules circus-train-integration-tests, circus-train-common-test on cloning this repository on my local. If someone can validate those tests are running fine wud b great.

Coverage decreased (-0.03%) to 74.896% when pulling 1a74c8af6ee25c13342869c59e1217d82354045e on yashrajrs:master into 95d1548b55fa41fdbc6759fd9ee4def4485a5603 on HotelsDotCom:master.

First off, thanks for contributing!
All tests should run, you get any specific errors?
I've made some comments.
Could you also add a line in the CHANGELOG.md

@patduin Following are the errors I see while running test module
Exception in thread "pool-201-thread-2" java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.fs.shell.XAttrCommands$GetfattrCommand 	at sun.reflect.GeneratedConstructorAccessor243.newInstance(Unknown Source) 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 2018-04-10 03:13:38,103 INFO  hive.metastore:564 - Closed a connection to metastore, current connections: 28 	at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:132) 	at org.apache.hadoop.fs.shell.CommandFactory.getInstance(CommandFactory.java:125) 	at org.apache.hadoop.fs.shell.CommandFactory.getInstance(CommandFactory.java:109) 	at org.apache.hadoop.fs.FsShell.printInfo(FsShell.java:222) 	at org.apache.hadoop.fs.FsShell.printUsage(FsShell.java:185) 	at org.apache.hadoop.fs.FsShell.run(FsShell.java:326) 	at org.apache.hadoop.hive.io.HdfsUtils.run(HdfsUtils.java:201) 	at org.apache.hadoop.hive.io.HdfsUtils.setFullFileStatus(HdfsUtils.java:124) 	at org.apache.hadoop.hive.io.HdfsUtils.setFullFileStatus(HdfsUtils.java:94) 	at org.apache.hadoop.hive.io.HdfsUtils.setFullFileStatus(HdfsUtils.java:77) 	at org.apache.hadoop.hive.common.FileUtils.mkdir(FileUtils.java:544) 	at org.apache.hadoop.hive.metastore.Warehouse.mkdirs(Warehouse.java:194) 	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_database_core(HiveMetaStore.java:876) 	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_database(HiveMetaStore.java:935) 	at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Updated PR with changes. Please review

That test error doesn't look familiar at all, not sure what's going on but let's not block you on that. We'll run our testsuite before a release.

@yashrajrs which project is giving you that error? does is includes hadoop common jar?

The module is circus-train-integration-tests and the project does have dependency on hadoop common

The integration tests are working for me on Linux, are you on Mac? Also, could you try remove your local Maven repo and see if perhaps its incorrectly cached a version of one of the Hadoop jars? In the meantime if you can just add the tests that @patduin mentioned above we'll assume the tests unrelated to your changes are fine and we can move forward on getting this merged and can deal with the test failures if they actually occur on our side post-merge.

Yes I am working on mac. Let me try deleting my local maven repo

Changes added. Please review @massdosage

@yashrajrs one hopefully final comment from me and then we should be done!

@massdosage Okay. I am thinking of squashing commits once I get all approvals and we are get to merge. Let me know if you differ.

Don't worry about, GH let's you do that when you merge from PR into master and is what we also do so this will show up as one commit.

@massdosage Let me know if the PR looks good to be merged

Looks good @yashrajrs, I'll squash and merge. We'll get the builds going and prepare a release.
Thanks very much for contributing!


hyprlock: mention dot's config options

ref https://github.com/hyprwm/hyprlock/pull/24

probably we need to make variables section or each widget because it grows quickly enough


chore: add Node.js 10

Codecov Report

Merging #212 into master will increase coverage by 0.64%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #212      +/-   ##
==========================================
+ Coverage   85.38%   86.03%   +0.64%
==========================================
  Files           7        7
  Lines         308      308
==========================================
+ Hits          263      265       +2
+ Misses         45       43       -2

Impacted Files
Coverage Δ

dat.js
91.11% <0%> (+2.22%)
: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 84ed042...0f7fac9. Read the comment docs.


Update README.md

I did a temporary README.md file for the project, also mudhyaran change ur name in the file

Perfect! Merged


slider: with step set slider is sometimes showing rail beyond or short of value

Is this related to resizing the browser via web inspector toggle?


Does PRAGMA branch_truncate() deletes the "future" or the "past"?

At first look, I thought this would be great for "game saves", but one thing is not clear to me: how to prevent the DB from growing infinitely.
Keeping the entire transaction history of a DB, which is the only way one can implement "branching from a previous transaction",  has a significant cost.
Is "PRAGMA branch_truncate()" used to truncate the "history of the past", thereby "compacting" it, or is it there to remove all changes after some point, thereby performing a "revert"?
If "PRAGMA branch_truncate()" is used to "revert" a branch to a previous state, then how do you "merge all changes" before some point, thereby loosing the history, to compact the database? Without it, the DB will grow infinitely, even if you only ever modify one single row in one single table.

Hi!
The branch_truncate function deletes the commits at the end (future).
And the database grows. It has some space reuse but not that much. It is the price we pay.
It is interesting to have a way to merge commits. This is not possible at this version.
I will add this to the wishlist.

Good news:
A truncation at the start of the history may be possible up to where the first child branch starts.
Although the implementation may take a while due to the new features list.

Hi!
The support for merging commits is available in the merge-commits branch.
If you find any bug, please report it as a new issue.


Cache /root/.m2/repository

Description:
I use containers (Ubuntu, Fedora, Almalinux) in GitHub Actions. In my workflows, I am using this action. In the "Post Setup Java" step, I see a warning about a path validation error.
What I have discovered is that the Maven local repository path by default is /root/.m2/repository, so ~/.m2/repository doesn't exist.
Justification:
This is a very hard issue to discover, and since this path seems to the default on many images, or at least the ones I am using, it should be cached in addition to the usual ~/.m2/repository.
https://github.com/actions/cache/issues/814
Are you willing to submit a PR?
Potentially.
Alternatively, allow us as users to configure the cache path ourselves.

hello @tristan957
Thanks for sharing your use case, as a quick solution there's an action for custom caching https://github.com/actions/cache
Meanwhile we will investigate the issue and make a  decision about adding the directory to the automatic cache.

Yep, I think I'll probably implement that today now that I know what the problem is. Thanks!

@tristan957 from this  "path by default is /root/.m2/repository" i could suggest there's sudo or su call somewhere.

That would make sense. Here is a minimal GitHub Actions file that can recreate the path.
jobs:
  fedora:
    runs-on: ubuntu-latest
    container:
      image: fedora:36

    steps:
      - run: |
          dnf install maven
          mvn help:evaluate -Dexpression=settings.localRepository | grep 'm2/repository'

Notice how you don't need sudo for dnf. Seems like GitHub drops you in as a privileged user within the container.

Makes sense. Thanks for your continued work on this issue.

Hey everyone,
I will try to provide more context to why is this happening.
When starting a job within a container, the runner will add system volume mounts. The volume mount interesting for this issue is /github/home which will be mapped to the PATH_TO_YOUR_RUNNER_WORK/_temp/_github_home. It is that directory that is going to be used as a HOME, and can ensure that $HOME directory exists regardless of the container you are using.
But on the other hand, this introduces problems when users or scripts rely on the predefined $HOME variable that they expect to be set by the container. The issue is especially tricky when you create a docker container action, with the USER directive env HOME env set.
The reason the workaround works, is that the env field overwrites environment in context of this step, so when you invoke a command, it will use envs specified for that step, which is great for this particular use-case.
In situations where you want to customize containers used by jobs, and you are using self-hosted runners, you can use container hooks.
We are aware of this issue, and we are looking at ways to solve it without breaking existing workflows that rely on current behaviour.
I hope this is helpful, and please, let me know if you have any questions regarding this :relaxed:

@nikola-jokic thanks for your input. Can we close this issue as not related to the action and create another one in this repo https://github.com/actions/runner ?

@tristan957 i am closing the issue because of the problem relates to https://github.com/actions/runner repository and  there's no activity for 2 weeks. Please feel free to create the issue in this project in case of any problem.


Waybar un-runnable with spdlog-git (fixed!)

FIX:
switch spdlog-git dependency in pkgbuild file with normal spdlog. also i dont know if that was the problem but i also reinstalled/updated meson and ninja
tested on waybar-hyprland-cava-git
// Spelis :3

i would like it if someone noticed this. spdlog-git is kinda wack


Missing files for reproducing results

Hi,
Thanks for sharing this data along with the detailed analysis!
I'm trying to reproduce the results from the paper, and found that there are some files are missing in order to do that. These files are loaded from the following workspace: "../JDR/".
For example, in the MoA prediction notebook:
rgcca_factors_ge=pd.read_csv("../JDR/results_CP_GE_cdrpbio/factors_rgcca_ge.txt",sep="\t").reset_index(drop=True).add_suffix('_ge')
Is there a possibility to add these to the repo?
In addition, the scripts for MoA clustering will also be beneficiary if shared.
Thanks!

@alonshpigler thanks for your interest in our work and for pointing us to this missing component.
It appears that this folder was never committed to the repository, and we'd need to recreate it from scratch. I don't have an ETA on that right now.
We will loop back about the MOA clustering scripts.

MOA clustering scrips can indeed be found here and are not part of this repository. You will need to feed this the data provided in this benchmark into these scrips to generate the results in this paper!

yes， same problem miss JDR folder. when run
rgcca_factors_cp=pd.read_csv("../JDR/results_CP_GE_lincs/factors_rgcca_cp.txt",sep="\t").reset_index(drop=True)


add block production

Should this include block sizing and tx validation or would those be in a separate ticket?

yes there should be at least some tx validation, in particular the checks dependent on the ledger state (the input utxos being available)
the rest of tx validation (balanced tx, plutus, etc...) should be added instead on tx submission, so a separate ticket


[azure-core-amqp-cpp][azure-messaging-eventhubs-cpp] Update to November releases

Update vcpkg ports for Azure SDK release. This release may contain multiple ports.

Adding azure-core-amqp to release
cc: @antkmsft

Adding azure-messaging-eventhubs to release
cc: @antkmsft


Eating a lot of memory ram

I've been testing with a simple task like doing an Stored Procedure or checking some tables, I got a few open tabs and in some times the app rise up to almost the limit of my physical ram, this is unacceptable, please verify this, I don't want to go back to SSMS.
Note: I've checked this in 2 different systems with different hardware, both running Windows 10 Pro 64Bit with 12 GB and 16 GB respectively.

@ranasaria This is with the last version 1.4.5

Thank you zilverjk!.  This is helpful. Already the below shows that the main consumption is in ‘MicrosoftSqlToolsServiceLayer’ process so now we will be able to focus our effort there. I will write later on best way to drill further into that. But for starters follow the instructions at: https://github.com/Microsoft/azuredatastudio/wiki/How-to-turn-on-Backend-Logging  and share the log from the ‘MicrosoftSqlToolsServiceLayer’.
Also, can you capture the same information as below but from the details view of the task manager with ‘Command Line’, Peak working set and active working set column expanded and broad enough to capture sufficient details. This will help shine light further and help narrow down which of. Be sure to capture these for all the processes that you have below. In particular capture all ‘azure data studio’ processes and SqlTools processes. Sorting by commandline is likely to bring these processes near each other to capture in a single screenshot. Here is an example from my machine:
<EMAIL_ADDRESS>From: zilverjk<EMAIL_ADDRESS>Sent: Wednesday, February 20, 2019 1:47 PM
To: Microsoft/azuredatastudio<EMAIL_ADDRESS>Cc: Arvind Ranasaria<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Microsoft/azuredatastudio] Eating a lot of memory ram (#3717)
@ranasariahttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Franasaria&data=02|01|Arvind.Ranasaria%40microsoft.com|20d83b70cc1f4285f9e508d6977ce6d4|72f988bf86f141af91ab2d7cd011db47|1|0|636862960037737424&sdata=P%2Bd0Spf8NFCj78tLnpfnC1fK64bfmNP7%2FJ4aCYSUexg%3D&reserved=0 This is with the last version 1.4.5
[image]https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F7515854%2F53126844-0b402900-352f-11e9-9d55-50e55b23367c.png&data=02|01|Arvind.Ranasaria%40microsoft.com|20d83b70cc1f4285f9e508d6977ce6d4|72f988bf86f141af91ab2d7cd011db47|1|0|636862960037747421&sdata=o%2BvApXT%2BypeAMAjAcSsX2ZDpAsm2yQBGITeJ8pwjOPM%3D&reserved=0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fazuredatastudio%2Fissues%2F3717%23issuecomment-465767512&data=02|01|Arvind.Ranasaria%40microsoft.com|20d83b70cc1f4285f9e508d6977ce6d4|72f988bf86f141af91ab2d7cd011db47|1|0|636862960037747421&sdata=3ujbQoLOWYzC9b5rPZGBO%2BcC9TWPlMmHWWKvRBIktNk%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAnqWVlXuzR3j-wqD5Y_ixVWcpHnGc4UNks5vPcJBgaJpZM4Z7fKQ&data=02|01|Arvind.Ranasaria%40microsoft.com|20d83b70cc1f4285f9e508d6977ce6d4|72f988bf86f141af91ab2d7cd011db47|1|0|636862960037757410&sdata=CloLlSgkWbL7bDJlxxOuo9mAYCilYxS719IUTf6e2uc%3D&reserved=0.

Checking in if this is still reproducible and could we get some logging/memory dumps for MicrosoftSqlToolsServiceLayer.exe if possible? It seems related with database metadata that is loaded by language service. I could not reproduce this in a database containing 10k tables or a server containing 10k databases.
Has anyone tried disabling intellisense?

Closing as inactive.


Getting the 404 Error

Hi Team ,
Below is main.yaml , I am getting 404 error while running , would you please help .

name: Publish ARM template & deploy
on:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
name: adb deploy dev
steps:
  - name: deploy notebooks
    uses<EMAIL_ADDRESS>    with:
      databricks-repo-branch: 'main'
      databricks-token: 'dapi9xxxxxxxxxxxxxxxxxxxxxxxxxxc41014-2'
      databricks-host: 'https://adb-xxxxxxxxxxxxxxx.7.azuredatabricks.net'
      databricks-repo-id: '75xxxxx96'

Hey, Thanks for reaching out. I am looking into it. Give me some time.

Thank you for quick response :)

@sleepy0owl  , would you please let me know what is causing the issue

can you please provide the log of the GitHub action?

3s
Run<EMAIL_ADDRESS>with:
databricks-repo-branch: main
databricks-token: dapi9bb159358eb08328036f998e4ac41014-2
databricks-host: https://adb-226156534095427.7.azuredatabricks.net
databricks-repo-id: 753618296
Starting to deploy......
Error: Request failed with status code 404


[Fix]: Fix workflows to use docker image & fix build-ss3-warnings.yml

Issue description
Need to fix the workflow files after Johnoel's branch is merged. @Rick-Methot-NOAA I added this to the change-log so that we know to include in the next release notes that there is now the capability to compile ss3 using docker.
Summary of issue history, discussion, and major aspects of code development
See PR #552 & PR #561
Items to do

[ ] Merge @johnoel's admb branch
[ ] Fix workflows to all use the admb docker image
[ ] Fix the build-ss3-warnings.yml and the ref file for it with it using the docker imager (the fixes are in the admb-docker-attempt2 branch).
[ ] Change to create a ss3.exe (including tpl names) across all build files (see work @Rick-Methot-NOAA started on the update-makefile branch)
[ ] Update any of the contributing material that there is now an option to compile ss3 using docker (if needed)

Does documentation already exist in the SS3 User Manual?
No, the documentation that should be added to the SS3 User Manual pertaining to this issue is provided below.
Documentation to add to the SS3 User Manual OR link to existing documentation
NA (all GitHub actions focused).
Are r4ss changes needed?
No, this issue doesn't require changes to r4ss
Are SSI changes needed?
No, this issue doesn't require changes to SSI

Excellent to see this success.  A final step could be a vignette showing how to work with docker.

Okay, will do.  Please hold off on the merge...

the build-ss3.yml tests building ss3 before installing ADMB.  I will update the manuals to describe the workflow with docker.


feat: Replace Newtonsoft.Json with System.Text.Json

Closes https://github.com/serilog-contrib/serilog-ui/issues/61.
This PR aims to remove jsonnet and replace it with STJ.
JsonNet was removed from Core and Web projects, including .nuspec of the web project.
Only 2 providers now use JsonNet, Elasticsearch (via Nest.JsonNetSerializer) and MongoDb.
MongoDb's ref to JsonNet could also be removed, but it serializes [BsonElement("Properties")] so it looked to risky. Perhaps in the future we can reevaluate this.
One test failed; It_serializes_an_error_on_exception which is because there was a double serialization for the error value.
I tried to fix the code so the test would remain intact, but that was hard to do.
Then when i decided i had to change the code anyways, and found no text references to 'errorMessage' anywhere else, i decided to upgrade the error feature to use the  RFC 7807 - Problem Details for HTTP APIs. this is an industry standard also used by net core. Easily implemented with help from the renowned Andrew Lock.
The test projects may still use JsonNet - i deemed that okay since its not a dependency shipped to the library consumer.
Tested with the sample app - it looks good to me. Feel free to edit or remove this PR, let me know what you think.

@followynne @mo-esmp review request 🚀 (i thought github had a 'request review' button? well could not find it...)

Hey @sommmen,
checked your PRs, thanks a lot for the work - I really appreciate the goal of replacing Newtonsoft! 💯
From what I saw, we shouldn't expect any hard/strange serialization in the library thus we should be safe to do this first replacement (usually the issue with STJ is that it's strict and less "gentle" on dirty data, while Newtonsoft accepts anything you throw at it :D)
In a second moment, we can work on replacing it in Elastic and Mongo libs.
The only request I have before closing the PR, if you have the time to do it, is to replace NJ in the tests projects, on files
tests/Serilog.Ui.Common.Tests/DataSamples/PropertiesFaker.cs
tests/Serilog.Ui.Web.Tests/Utilities/InMemoryDataProvider/InMemoryDataProvider.cs
tests/Serilog.Ui.Common.Tests/DataSamples/LogModelFaker.cs
tests/Serilog.Ui.Web.Tests/Endpoints/SerilogUiEndpointsTest.cs
We won't touch it in Mongo test setup but I think it should be done on all the other parts 😄

Hey @sommmen,
checked your PRs, thanks a lot for the work - I really appreciate the goal of replacing Newtonsoft! 💯
From what I saw, we shouldn't expect any hard/strange serialization in the library thus we should be safe to do this first replacement (usually the issue with STJ is that it's strict and less "gentle" on dirty data, while Newtonsoft accepts anything you throw at it :D)
In a second moment, we can work on replacing it in Elastic and Mongo libs.
The only request I have before closing the PR, if you have the time to do it, is to replace NJ in the tests projects, on files
tests/Serilog.Ui.Common.Tests/DataSamples/PropertiesFaker.cs
tests/Serilog.Ui.Web.Tests/Utilities/InMemoryDataProvider/InMemoryDataProvider.cs
tests/Serilog.Ui.Common.Tests/DataSamples/LogModelFaker.cs
tests/Serilog.Ui.Web.Tests/Endpoints/SerilogUiEndpointsTest.cs
We won't touch it in Mongo test setup but I think it should be done on all the other parts 😄

Yeah I'll check it probs tomorrow and if I don't have the time Friday I usually have a spare hour or two. 👍

Updated the PR.
Merged upstream.
Newtonsoft.Json is still required in the test projects due to ES/MongoDb requiring them, but i removed as much usings as i could.
LogModelFaker.cs The exception is now just stringified because STJ does not serialize an exception without a custom converter. This could be added or picked up from somewhere, but in theory no assumption should be made about the log model's exception field having a piece of json inside - so i decided the tests should also reflect this, and just using Exception.ToString() is the best expected value you'd see in the wild.
LogModelPropsCollector.cs has some calls to ElementAtOrDefault(0) but then nothing was done about possible null values, so i replaced it with ElementAt(0), failing fast and defensive programming and all that. Additionally i made it so it would run less loops by using ICollection (and .ToList()) instead of IEnumerable so the test should run ever slightly faster.
MongoDbLogModelFaker.cs Since the Exception property is no longer some json, i simply generate a new fake exception for the MongoDbLogModel.Exception. A serialization round-trip is not really possible due to things like MethodBase.
Properties.cs Changed the Properties.EventId property from object to the right EventId type because else STJ has a hard time (de)serializing. object could still be used but then you have issues with Newtonsoft because STJ does not imply anything for an object property type and instead returns its own JsonNode which Newtonsoft does not understand OOB. Alas, doing it like this seemed the best way to go about things and should still cover the test scenarios (as in we're testing what we should be testing).

@sommmen
looks good to me, I'm not 100% sure about the assumption that the Exception property could not contain JSON, since the user should be making the choice between JSON or XML (if I remember right), but from another point of view you're right in making them more generic for all possible entries.
Approved, I'll leave to @mo-esmp the last review :)

I think you're confused with the Properties field - which contains xml/json, assumptions can be made that this field contains something that can be parsed, the exceptions field contains just a plain string.
Like here's a sample from my production database. The Exception column is simply Exception.ToString() which is now also the case in the tests. It could be that MongoDb or ES pushes JSON to the Exception column, but since mssql does not, and the default way to store exceptions is to call .ToString() this is the best way.
@mo-esmp when you decide to merge this in, please also push a release since that would contain the fix to #108 which is not on nuget yet and i'd like that fix :).
Microsoft.Data.SqlClient.SqlException (0x80131904): Transaction (Process ID 124) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
   at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at Microsoft.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows)
   at Microsoft.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more)
   at Microsoft.Data.SqlClient.SqlDataReader.ReadAsyncExecute(Task task, Object state)
   at Microsoft.Data.SqlClient.SqlDataReader.InvokeAsyncCall[T](SqlDataReaderBaseAsyncCallContext`1 context)
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)
   at OPG.Web.Shared.Controllers.BaseController`1.GetCollectionResponseModel[TEntity,TViewModel](CollectionHttpRequestModel requestModel, IQueryable`1 queryable, Func`2 resultQueryableFunc, CancellationToken cancellationToken, ValueTuple`2[] defaultOrderBy) in [REDACTED]
   at OPG.Web.Shared.Controllers.BaseController`1.GetCollectionResponseModel[TEntity,TViewModel](IQueryable`1 queryable, CollectionHttpRequestModel requestModel, CancellationToken cancellationToken, ValueTuple`2[] defaultOrderBy) in [REDACTED]
   at OPG.Web.Shared.Controllers.BaseController`1.Ok[TEntity,TViewModel](IQueryable`1 queryable, CollectionHttpRequestModel requestModel, CancellationToken cancellationToken, ValueTuple`2[] defaultOrderBy) in [REDACTED]
   at OPG.WebApi.Controllers.OrderShipmentPackageController.Get(CollectionHttpRequestModel requestModel, CancellationToken cancellationToken) in [REDACTED]
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
   at NewRelic.Providers.Wrapper.AspNetCore.WrapPipelineMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
ClientConnectionId:dbd9cd83-67bc-41e3-beaf-a20c60543af9
Error Number:1205,State:51,Class:13

@sommmen Thanks for the PR.

@mo-esmp
Yep,I'll try to do it this weekend together with mssql 2.2.3, as soon as I can 👍


DINO missing detection

i trained my own dataset with dino, categories include faces, heads, people, etc. I found that some images miss detection result for whole class when inferencing...
normal：

all 'person' miss detection：

i am so confused....how can i resolve it?

It seems like we meet the same problem. After fine-tuning mm-grounding-dino,when I inference on a 'multi-objects' image,the  model can only detects one object.

If you solve this problem, thanks for sharing the methods!


Use separate branch for linguistic data

Create db branch in the repository to hold all language data that is currently stored in public/lects. This should make it easier to contribute and allows for a cleaner project structure. Definitely would need the ability to still utilize local data for rapid development.

Added store branch. Redirect to local store when NODE_ENV==="development", otherwise to https://raw.githubusercontent.com/alkaitagi/Avzag/store/.

Added store branch. Redirect to local store when NODE_ENV==="development", otherwise to https://raw.githubusercontent.com/alkaitagi/Avzag/store/.


[Youtube] 8k VR180 SBS videos no longer available

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
germany
Provide a description that is worded well enough to be understood
New 8k VR180 SBS videos on YouTube are not longer downloadable, because the 8k format is not seen in the API JSON by yt-dlp as available format. This is since some weeks. The 8k format (2x4k SBS) is working for this video with YouTube App on Meta Quest 3, so it must be definitly there. But yt-dlp sees only the 4k (2x2k SBS) format. The 8k format is hidden somewhere.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['--list-formats', 'https://www.youtube.com/watch?v=W51jdIrSsgk', '--extractor-args', 'youtube:player_client=all', '-vU']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds [6b54cccdc] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 4.3.2-2021-02-02-full_build-www.gyan.dev, ffprobe 4.3.2-2021-02-02-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds)
[youtube] Extracting URL: https://www.youtube.com/watch?v=W51jdIrSsgk
[youtube] W51jdIrSsgk: Downloading webpage
[youtube] W51jdIrSsgk: Downloading ios player API JSON
[youtube] W51jdIrSsgk: Downloading ios embedded player API JSON
WARNING: [youtube] YouTube said: ERROR - Requested entity was not found.
WARNING: [youtube] HTTP Error 404: Not Found. Retrying (1/3)...
[youtube] W51jdIrSsgk: Downloading ios embedded player API JSON
WARNING: [youtube] YouTube said: ERROR - Requested entity was not found.
WARNING: [youtube] HTTP Error 404: Not Found. Retrying (2/3)...
[youtube] W51jdIrSsgk: Downloading ios embedded player API JSON
WARNING: [youtube] YouTube said: ERROR - Requested entity was not found.
WARNING: [youtube] HTTP Error 404: Not Found. Retrying (3/3)...
[youtube] W51jdIrSsgk: Downloading ios embedded player API JSON
WARNING: [youtube] YouTube said: ERROR - Requested entity was not found.
WARNING: [youtube] Unable to download API page: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>)
[youtube] W51jdIrSsgk: Downloading ios music player API JSON
[youtube] W51jdIrSsgk: Downloading ios creator player API JSON
[youtube] W51jdIrSsgk: Downloading ios embedscreen player API JSON
[youtube] W51jdIrSsgk: Downloading android player API JSON
[youtube] W51jdIrSsgk: Downloading android embedded player API JSON
[youtube] W51jdIrSsgk: Downloading android music player API JSON
[youtube] W51jdIrSsgk: Downloading android creator player API JSON
[youtube] W51jdIrSsgk: Downloading android embedscreen player API JSON
[youtube] W51jdIrSsgk: Downloading web embedded client config
[youtube] W51jdIrSsgk: Downloading player 17fd9675
[youtube] W51jdIrSsgk: Downloading web embedded player API JSON
[youtube] W51jdIrSsgk: Downloading web music client config
[youtube] W51jdIrSsgk: Downloading web music player API JSON
[youtube] W51jdIrSsgk: Downloading web creator player API JSON
[youtube] W51jdIrSsgk: Downloading web embedscreen player API JSON
[youtube] W51jdIrSsgk: Downloading tv embedded player API JSON
[youtube] W51jdIrSsgk: Downloading mweb player API JSON
[youtube] W51jdIrSsgk: Downloading mweb embedscreen player API JSON
WARNING: [youtube] Skipping player responses from android/android_embedscreen clients (got player responses for video "aQvGIIdgFDM" instead of "W51jdIrSsgk")
[debug] Loading youtube-nsig.17fd9675 from cache
[debug] [youtube] Decrypted nsig 3FIf0FeDT3SuYx => -10eO2qq9RNVBA
[debug] Loading youtube-nsig.17fd9675 from cache
[debug] [youtube] Decrypted nsig 8J-KKQ4BRN590f => 2OT4zU8GM9RboA
[youtube] W51jdIrSsgk: Downloading m3u8 information
[youtube] W51jdIrSsgk: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[info] Available formats for W51jdIrSsgk:
ID      EXT   RESOLUTION FPS CH │   FILESIZE    TBR PROTO │ VCODEC           VBR ACODEC      ABR ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb3     mhtml 48x27        1    │                   mhtml │ images                                   storyboard
sb2     mhtml 79x45        1    │                   mhtml │ images                                   storyboard
sb1     mhtml 159x90       1    │                   mhtml │ images                                   storyboard
sb0     mhtml 319x180      1    │                   mhtml │ images                                   storyboard
233     mp4   audio only        │                   m3u8  │ audio only           unknown             Default, IOS
234     mp4   audio only        │                   m3u8  │ audio only           unknown             Default, IOS
599     m4a   audio only      2 │  619.48KiB    31k https │ audio only           mp4a.40.5   31k 22k ultralow, MWEB, m4a_dash
600     webm  audio only      2 │  584.82KiB    29k https │ audio only           opus        29k 48k ultralow, MWEB, webm_dash
139-drc m4a   audio only      2 │  980.78KiB    49k https │ audio only           mp4a.40.5   49k 22k low, DRC, IOS, m4a_dash
249-drc webm  audio only      2 │  898.02KiB    45k https │ audio only           opus        45k 48k low, DRC, WEB, webm_dash
250-drc webm  audio only      2 │    1.16MiB    59k https │ audio only           opus        59k 48k low, DRC, WEB, webm_dash
139     m4a   audio only      2 │  980.78KiB    49k https │ audio only           mp4a.40.5   49k 22k low, IOS, m4a_dash
249     webm  audio only      2 │  878.15KiB    44k https │ audio only           opus        44k 48k low, ANDR-E, webm_dash
250     webm  audio only      2 │    1.13MiB    58k https │ audio only           opus        58k 48k low, ANDR-E, webm_dash
140-drc m4a   audio only      2 │    2.54MiB   130k https │ audio only           mp4a.40.2  130k 44k medium, DRC, IOS, m4a_dash
251-drc webm  audio only      2 │    2.35MiB   120k https │ audio only           opus       120k 48k medium, DRC, WEB, webm_dash
140     m4a   audio only      2 │    2.54MiB   130k https │ audio only           mp4a.40.2  130k 44k medium, IOS, m4a_dash
251     webm  audio only      2 │    2.30MiB   117k https │ audio only           opus       117k 48k medium, ANDR-E, webm_dash
597     mp4   256x144     15    │  629.80KiB    31k https │ avc1.4d400b      31k video only          144p, MWEB, mp4_dash
602     mp4   256x144     15    │ ~  2.09MiB   107k m3u8  │ vp<IP_ADDRESS>   107k video only          IOS
598     webm  256x144     15    │  718.95KiB    36k https │ vp9              36k video only          144p, MWEB, webm_dash
394     mp4   256x144     30    │  785.95KiB    39k https │ av01.0.00M.08    39k video only          144s, mesh, WEB, mp4_dash
269     mp4   256x144     30    │ ~  3.55MiB   181k m3u8  │ avc1.4D400C     181k video only          IOS
160     mp4   256x144     30    │    2.19MiB   112k https │ avc1.4D400C     112k video only          144s, mesh, IOS, mp4_dash
603     mp4   256x144     30    │ ~  3.30MiB   169k m3u8  │ vp<IP_ADDRESS>   169k video only          IOS
278     webm  256x144     30    │  890.51KiB    44k https │ vp<IP_ADDRESS>    44k video only          144s, mesh, IOS, webm_dash
395     mp4   426x240     30    │    1.41MiB    72k https │ av01.0.00M.08    72k video only          240s, mesh, WEB, mp4_dash
229     mp4   426x240     30    │ ~  6.51MiB   333k m3u8  │ avc1.4D4015     333k video only          IOS
133     mp4   424x240     30    │    4.80MiB   245k https │ avc1.4D4015     245k video only          240s, mesh, IOS, mp4_dash
604     mp4   426x240     30    │ ~  6.33MiB   324k m3u8  │ vp<IP_ADDRESS>   324k video only          IOS
242     webm  424x240     30    │    1.81MiB    92k https │ vp<IP_ADDRESS>    92k video only          240s, mesh, IOS, webm_dash
396     mp4   640x360     30    │    2.93MiB   149k https │ av01.0.01M.08   149k video only          360s, mesh, WEB, mp4_dash
230     mp4   640x360     30    │ ~ 15.25MiB   780k m3u8  │ avc1.4D401E     780k video only          IOS
134     mp4   640x360     30    │    5.25MiB   268k https │ avc1.4D401E     268k video only          360s, mesh, IOS, mp4_dash
18      mp4   640x360     30  2 │ ≈  8.14MiB   415k https │ avc1.42001E          mp4a.40.2       44k 360p, IOS-C
605     mp4   640x360     30    │ ~ 11.99MiB   613k m3u8  │ vp<IP_ADDRESS>   613k video only          IOS
243     webm  640x360     30    │    3.58MiB   183k https │ vp<IP_ADDRESS>   183k video only          360s, mesh, IOS, webm_dash
397     mp4   854x480     30    │    5.82MiB   297k https │ av01.0.04M.08   297k video only          480s, mesh, WEB, mp4_dash
231     mp4   854x480     30    │ ~ 25.33MiB  1296k m3u8  │ avc1.4D401F    1296k video only          IOS
135     mp4   852x480     30    │   11.07MiB   565k https │ avc1.4D401F     565k video only          480s, mesh, IOS, mp4_dash
606     mp4   854x480     30    │ ~ 20.62MiB  1055k m3u8  │ vp<IP_ADDRESS>  1055k video only          IOS
244     webm  852x480     30    │    7.03MiB   359k https │ vp<IP_ADDRESS>   359k video only          480s, mesh, IOS, webm_dash
22      mp4   1280x720    30  2 │ ≈ 24.53MiB  1251k https │ avc1.64001F          mp4a.40.2       44k 720p, ANDR-E
398     mp4   1280x720    30    │   13.81MiB   705k https │ av01.0.05M.08   705k video only          720s, mesh, WEB, mp4_dash
232     mp4   1280x720    30    │ ~ 45.96MiB  2351k m3u8  │ avc1.64001F    2351k video only          IOS
136     mp4   1280x720    30    │   26.47MiB  1351k https │ avc1.4D401F    1351k video only          720s, mesh, IOS, mp4_dash
609     mp4   1280x720    30    │ ~ 42.05MiB  2151k m3u8  │ vp<IP_ADDRESS>  2151k video only          IOS
247     webm  1280x720    30    │   16.59MiB   847k https │ vp<IP_ADDRESS>   847k video only          720s, mesh, IOS, webm_dash
270     mp4   1920x1078   30    │ ~ 93.08MiB  4761k m3u8  │ avc1.640028    4761k video only          IOS
614     mp4   1920x1078   30    │ ~ 59.09MiB  3023k m3u8  │ vp<IP_ADDRESS>  3023k video only          IOS
399     mp4   1920x1080   30    │   30.41MiB  1552k https │ av01.0.08M.08  1552k video only          1080s, mesh, WEB, mp4_dash
137     mp4   1920x1080   30    │   50.22MiB  2563k https │ avc1.640028    2563k video only          1080s, mesh, IOS, mp4_dash
248     webm  1920x1080   30    │   29.45MiB  1503k https │ vp<IP_ADDRESS>  1503k video only          1080s, mesh, IOS, webm_dash
620     mp4   2560x1438   30    │ ~160.97MiB  8234k m3u8  │ vp<IP_ADDRESS>  8234k video only          IOS
400     mp4   2560x1440   30    │  102.42MiB  5226k https │ av01.0.12M.08  5226k video only          1440s, mesh, WEB, mp4_dash
271     webm  2560x1440   30    │  119.39MiB  6092k https │ vp<IP_ADDRESS>  6092k video only          1440s, mesh, IOS, webm_dash
401     mp4   3840x2160   30    │  215.94MiB 11018k https │ av01.0.12M.08 11018k video only          2160s, mesh, WEB, mp4_dash
313     webm  3840x2160   30    │  287.64MiB 14677k https │ vp<IP_ADDRESS> 14677k video only          2160s, mesh, IOS, webm_dash

This is a side-effect of #9554. VR180 formats are only available via the Android client(s). It's not possible for yt-dlp to get Android client formats anymore.
It's possible that the VR formats may be served to another client in the future, such as the upcoming client for VisionOS.

This is a side-effect of #9554. VR180 formats are only available via the Android client(s). It's not possible for yt-dlp to get Android client formats anymore.
It's possible that the VR formats may be served to another client in the future, such as the upcoming client for VisionOS.

Thanks for this information. But why can the official youtube app on meta quest get the 8k format? Is it using some other protocol?

Meta's VR gear uses the Android client

if you still need the android client, you may:

remove these two line

(it is not a real fix but I hope it may help in some use cases)
if someone still need the android client for specific format, you may:

remove these two lines
https://github.com/yt-dlp/yt-dlp/blob/351dc0bc334c4e1b5f00c152818c3ec0ed71f788/yt_dlp/extractor/youtube.py#L3617-L3618
run yt-dlp with --extractor-args "youtube:player-client=android"

Removing the 'params' will generate a valid download link which will expire after ~30 seconds.
i.e. you can successfully download the video in one attempt if download finishes within 30 seconds.
If it cannot finish within 30 seconds, you simply run yt-dlp again to resume download until the whole video is downloaded.
For example, the video mentioned in this post:
>python -m yt_dlp "https://www.youtube.com/watch?v=W51jdIrSsgk" --extractor-args "youtube:player_client=android" -f 571+140
[youtube] Extracting URL: https://www.youtube.com/watch?v=W51jdIrSsgk
[youtube] W51jdIrSsgk: Downloading webpage
[youtube] W51jdIrSsgk: Downloading android player API JSON
[info] W51jdIrSsgk: Downloading 1 format(s): 571+140
[download] Destination: NIS FORTRESS Archaeological site and modern Jazz Museum SERBIA 8K 4K VR180 3D Travel [W51jdIrSsgk].f571.mp4
[download]  64.0% of  532.55MiB at   13.26MiB/s ETA 00:14ERROR: unable to download video data: HTTP Error 403: Forbidden

>python -m yt_dlp "https://www.youtube.com/watch?v=W51jdIrSsgk" --extractor-args "youtube:player_client=android" -f 571+140
[youtube] Extracting URL: https://www.youtube.com/watch?v=W51jdIrSsgk
[youtube] W51jdIrSsgk: Downloading webpage
[youtube] W51jdIrSsgk: Downloading android player API JSON
[info] W51jdIrSsgk: Downloading 1 format(s): 571+140
[download] Resuming download at byte 357378580
[download] Destination: NIS FORTRESS Archaeological site and modern Jazz Museum SERBIA 8K 4K VR180 3D Travel [W51jdIrSsgk].f571.mp4
[download] 100% of  532.55MiB in 00:00:17 at 31.31MiB/s
[download] Destination: NIS FORTRESS Archaeological site and modern Jazz Museum SERBIA 8K 4K VR180 3D Travel [W51jdIrSsgk].f140.m4a
[download] 100% of    2.54MiB in 00:00:00 at 9.66MiB/s
[Merger] Merging formats into "NIS FORTRESS Archaeological site and modern Jazz Museum SERBIA 8K 4K VR180 3D Travel [W51jdIrSsgk].mp4"
Deleting original file NIS FORTRESS Archaeological site and modern Jazz Museum SERBIA 8K 4K VR180 3D Travel [W51jdIrSsgk].f140.m4a (pass -k to keep)
Deleting original file NIS FORTRESS Archaeological site and modern Jazz Museum SERBIA 8K 4K VR180 3D Travel [W51jdIrSsgk].f571.mp4 (pass -k to keep)

You can make a script to automate it. Here is a simple example for Windows:

@echo off
set arg=%1
for %%i in (%*) do call :concat %%i
set argc=%arg:"=%
set resume=0

python -m yt_dlp %arg%

:resume
if %ERRORLEVEL%==0 (goto :eof) else (
  if %resume%==5 (goto :eof) else (
    if "%argc:--extractor-args youtube:player_client=%" neq "%argc:"=%" if "%argc:android=%" neq "%argc:"=%" (
      python -m yt_dlp %arg%
      set /a "resume=%resume%+1"
    ) else goto :eof
  )
)
goto :resume

:concat
set arg=%arg% %1
goto :eof

use it as follow:

C:\yt-dlp>ex.bat "https://www.youtube.com/watch?v=W51jdIrSsgk" --extractor-args "youtube:player_client=android" -f 571+140

This script will stop downloading if it resumes more than 5 times. Change the number if needed.

@coletdjnz What do you think about removing the params from code and returning android formats with lower priority when requested with player-client=android?

What do you think about removing the params from code and returning android formats with lower priority when requested with player-client=android?

Now implemented in https://github.com/yt-dlp/yt-dlp/pull/9553

video has 8k version available. it shows with firefox desktop user agent:
curl 'https://www.youtube.com/watch?v=Ypu5k5GYGjE' --compressed -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0' | grep -oP ".{0,100}4320.{0,100}"
Zw%3D%3D","mimeType":"video/mp4; codecs="av01.0.16M.08"","bitrate":21732766,"width":3840,"height":4320,"initRange":{"start":"0","end":"2226"},"indexRange":{"start":"2227","end":"2786"},"lastModified":"1
,"quality":"highres","xtags":"Cg8KB3ZsYXlvdXQSBG1vbm8KDQoFdnByb2oSBG1lc2g","fps":60,"qualityLabel":"4320s60","projectionType":"MESH","averageBitrate":18057636,"colorInfo":{"primaries":"COLOR_PRIMARIES_BT7
without user agent its not shown:
curl 'https://www.youtube.com/watch?v=Ypu5k5GYGjE' --compressed | grep -oP ".{0,100}4320.{0,100}"
yt-dlp with default settings only list 2k option as best
yt-dlp -F "https://www.youtube.com/watch?v=70fgFmSE5e8&pp=ygULdnIgbW1kIGxvbGk%3D"
...
308     webm  2560x1438   60    │  261.22MiB 10379k https │ vp9           10379k video only          1440p60, webm_dash
yt-dlp with specified user agent and cookies from firefox shows only 4k as best:
yt-dlp --user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0' --cookies-from-browser firefox:/mnt/c/Users/me874/AppData/Roaming/Mozilla/Firefox/Profiles/sgcee35h.default-release -F "https://www.youtube.com/watch?v=70fgFmSE5e8&pp=ygULdnIgbW1kIGxvbGk%3D"
...
315 webm  3840x2160   60    │  396.01MiB 15734k https │ vp9           15734k video only          2160s60, mesh, webm_dash
screenshot to show video has 8k quality available in firefox:

this is the video. it was uploaded ~1 hour ago:
https://www.youtube.com/watch?v=Ypu5k5GYGjE

yt-dlp -F "https://www.youtube.com/watch?v=c_jOI6Wboc4"
yt-dlp with default settings only shows 2k quality as best
...
308     webm  2560x1438   60    │  342.56MiB 10388k https │ vp9           10388k video only          1440p60, webm_dash
with specified user agent from firefox, its the same:
yt-dlp --user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0' -F "https://www.youtube.com/watch?v=c_jOI6Wboc4"
308     webm  2560x1438   60    │  342.56MiB 10388k https │ vp9           10388k video only          1440p60, webm_dash
with user agent and cookies from browser, it shows 4k option:
yt-dlp --user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0' --cookies-from-browser firefox:path_to_profile -F "https://www.youtube.com/watch?v=c_jOI6Wboc4"
...
315 webm  3840x2160   60    │  682.67MiB 20703k https │ vp9           20703k video only          2160s60, mesh, webm_dash
according to video title, it was uploaded as 8k

Interesting, thank you! 👍
Now it would be great when yt-dlp would be able to resume the download when the error message "HTTP Error 403: Forbidden" occurs. I think that would fix the problem? 😀

the player_client=android option worked for me, thanks @kclauhk !
i didnt even need to retry after 30s. i am using the  --cookies-from-browser chrome  so you guys can try that.

i didnt even need to retry after 30s. i am using the  --cookies-from-browser chrome which might've helped keep the connection alive.

DO NOT PASS YOUR COOKIES unless it is really necessary...
or you may register a new account for the use of yt-dlp
https://github.com/yt-dlp/yt-dlp/issues/10128#issuecomment-2155037169

Thank you @user3534 , this solution works for many videos.
I am having a problem with a video like this, though: https://www.youtube.com/watch?v=HI7mTIxNotQ
The option I get for downloading is -f 313 but that outputs a wonky format: https://i.imgur.com/tQhbIwU.png
All other formats look equivalent, just lower quality. Is there a trick to getting those to post-process into a proper SBS video?

@rook218
That's a top/bottom 3D 360 video, not SBS 180. It looks like that because YouTube used to use the equi-angular cubemap (EAC) format for 360 videos (maybe still does for some) instead of the standard equirectangular format.
https://github.com/ytdl-org/youtube-dl/issues/15267
There are some VR video players that support the EAC format (like Skybox), but if you want the equirectangular version you can download it by adding --user-agent "".
Example:
yt-dlp --user-agent "" "https://www.youtube.com/watch?v=HI7mTIxNotQ" -f 313+338

@rook218 That's a top/bottom 3D 360 video, not SBS 180. It looks like that because YouTube used to use the equi-angular cubemap (EAC) format for 360 videos (maybe still does for some) instead of the standard equirectangular format. ytdl-org/youtube-dl#15267
There are some VR video players that support the EAC format (like Skybox), but if you want the equirectangular version you can download it by adding --user-agent "".
Example: yt-dlp --user-agent "" "https://www.youtube.com/watch?v=HI7mTIxNotQ" -f 313+338

Many thanks for the command. but the video downloaded is not stereoscopic but mono. how to download these cube format 360 videos in a 3d format recognized by default players (for e.g deovr, quest tv etc.)

Many thanks for the command. but the video downloaded is not stereoscopic but mono. how to download these cube format 360 videos in a 3d format recognized by default players (for e.g deovr, quest tv etc.)

Which video are you trying to download? The video I used in the example downloads in top/bottom format for me using that command.

Which video are you trying to download? The video I used in the example downloads in top/bottom format for me using that command.
https://www.youtube.com/watch?v=ZgYSKbaM5fg  or any 360 video i tried so far. yt-dlp downloads it in weird cube map format which no player recognizes. I just want it in sbs or top-bottom format

Which video are you trying to download? The video I used in the example downloads in top/bottom format for me using that command.

https://www.youtube.com/watch?v=ZgYSKbaM5fg or any 360 video i tried so far. yt-dlp downloads it in weird cube map format which no player recognizes. I just want it in sbs or top-bottom format

Which video are you trying to download? The video I used in the example downloads in top/bottom format for me using that command.

https://www.youtube.com/watch?v=ZgYSKbaM5fg or any 360 video i tried so far. yt-dlp downloads it in weird cube map format which no player recognizes. I just want it in sbs or top-bottom format

That video is 2D 360, so there's no stereoscopic format available. I downloaded the 8K equirectangular (not cubemap) version of it using this command: yt-dlp --user-agent "" "https://www.youtube.com/watch?v=ZgYSKbaM5fg" -f 571+140

As of version 2024.08.01 you can try --extractor-arg "youtube:player_client=android_vr"


feat(download-count): implement unsplash download count increment

#82
#81  👈
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @libhide and the rest of your teammates on  Graphite

Merge activity

Jun 9, 4:29 PM EDT: @libhide started a stack merge that includes this pull request via Graphite.


Error "ENAMETOOLONG: name too long" occurs during pre-rendering on versions 3.11 and 3.12

Environment
The issue persists in both versions 3.11 and 3.12.
Version 3.11

Operating System: Darwin
Node Version:     v18.19.0
Nuxt Version:     3.11.2
CLI Version:      3.12.0
Nitro Version:    2.9.6
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools
Runtime Modules:  -
Build Modules:    -

Version 3.12

Operating System: Darwin
Node Version:     v18.19.0
Nuxt Version:     3.12.2
CLI Version:      3.12.0
Nitro Version:    2.9.6
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools
Runtime Modules:  -
Build Modules:    -

Reproduction
Steps to reproduce:

Create an empty Nuxt project using versions 3.11 or 3.12 (the issue does not exist in v3.10).
Create a pages directory.
Inside the pages directory, create an index.vue file and add content to it (it can be something simple like
Test
).
Create a աաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաաա.vue file in the pages directory and add content to it (again, it can be simple, like
Test
).
Run npm run generate.

You should receive this error during the pre-rendering process.

Describe the bug
I manage a multilingual blog that is integrated with a headless CMS, using slugs derived from the titles for routing to different blog pages.
Since the content is available in multiple languages, the slugs are also multilingual, including Armenian characters. It seems that during the pre-rendering process, Nuxt attempts to store the payload files locally for caching inside the <rootDir>/.nuxt/cache/nitro/prerender directory. However, before storing, it encodes the file names using US-ASCII characters.
This encoding process significantly increases the length of the file names, causing them to exceed the 255-character limit for file names and I get the "ENAMETOOLONG: name too long" error.

This issue did not occur in versions 3.10, 3.9, and 3.8. I have not used any versions older than these.
Unfortunately, this issue has become a blocker preventing me from upgrading beyond version 3.10.
Additional context
No response
Logs
No response

I just started experiencing the same issue. Were you able to find a workaround besides downgrading to 3.10?


Added extension methods to send a transaction and get receipt via Nethereum

Thanks for your PR!
Can you tell me some more about this PR? What does it do? Why is it needed?
It looks like it's calling a smart contract and show the result. It's already possible to call smart contracts using this library.
If you switch to the Kovan Network, it's also in the sample app.
See this:
https://github.com/michielpost/MetaMask.Blazor/blob/master/MetaMask.Blazor.SampleApp/Pages/Index.razor.cs#L153
and here for the parameters:
https://github.com/michielpost/MetaMask.Blazor/blob/master/MetaMask.Blazor.SampleApp/Pages/Index.razor.cs#L197-L221

Thanks for the reply! I did this to simplify the process if the user is seeking to retrieve an actual receipt and data within the completed transaction.
For example, the function you linked does indeed call the function, but it returns the transaction hash. What if you needed to access an event that would be emitted by the transaction? Or if you needed the address of a deployed smart contract resulting from that transaction? In Nethereum, you would need the TransactionReceipt.
With the function I added, you get the transaction receipt which is the result of the transaction. This is how you can access the data, to say, a smart contract function with a return value. Another example is if you're looking to retrieve event logs.
Basically, it's for when you need to send a transaction but also need to wait for the transaction to be completed the next block mined/staked/whatever.
Hope this explanation helps! Thanks!

Released in NuGet version 1.6.0
https://www.nuget.org/packages/MetaMask.Blazor/


A couple of pretrained models?

I have Lasagne versions of vgg-16, vgg-19 and googlenet with their pretrained parameters:
http://www.vlfeat.org/matconvnet/pretrained/
https://github.com/BVLC/caffe/tree/master/models/bvlc_googlenet
Would there be interest in adding these recipes? I reckon these recipes are more the microwave lasagne kind, but this might interest people too?

Would there be interest in adding these recipes?

I guess so, yes! In what form would these recipes be? Ideally, I guess they'd construct the network in Python code, download and read the original model files (e.g., in matlab format for the first web site) and use set_all_param_values() to set the parameters to the correct state. For demonstration purposes, they could compile a prediction function.
Not sure where to put such recipes, though... they could live in the "Examples" category or be given their own (something like a model zoo, although model fridge or model freezer might be more appropriate here).

I'm wondering if these should really be recipes.  Maybe a small add-on library is better suited?  Just a serving suggestion.

Since pretrained models are nearly all we have in Recipes so far, I think it's a pretty good fit :)
But maybe creating a new top level directory for models would make sense.

Yeah, I think we should also keep them here, this is where people will come looking for them. A separate subdirectory for pre-trained models is not a bad idea.

A separate subdirectory for pre-trained models is not a bad idea.

I'm still sad we didn't go for food-related directory names: starters (tutorials), mains (papers), sides (snippets), and now takeaway (premade models).

there's no guarantee that this (remarkably well working) analogy will keep being productive though :p


[Help] Relationship Issues

I am having trouble figuring out if this package fits my use case.  Previously I used Laracasts\Testdummy and I am trying to replace it with something framework agnostic.  At first glance this package looked like the solution to my problems.  However, after attempting to integrate it I have run into issues.  The problems I am having have to do with complex relationships.
For example in my application lets say I have 3 models:
<?php

use League\Factory\Facade as Factory;

Factory::define(Business::class, [
// ..... Many more attributes
    "facebook_page_id" => 'factory|' . FacebookPage::class
]);

Factory::define(Restaurant::class, [
    "biz_id" => "factory|" . Business::class,
// .... Many more attributes
    "facebook_page_id" => "factory|" . FacebookPage::class
]);

Factory::define(FacebookPage::class, [
    'facebook_page_id' => $faker->unqiue()->randomNumberBetween(0, 20000)
]);

So in this situation the way I created a restaurant in Laracasts\Testdummy in order to avoid creating multiple FacebookPages I would create a FacebookPage and pass the facebook_page_id to both the business and restaurant class like so.
<?php

$facebookPage = Factory::create(FacebookPage::class);

$business = Factory::create(Business::class, ['facebook_page_id' => $facebookPage->facebook_page_id);

$restaurant = Factory::create(Restaurant::class, [
    'facebook_page_id' => $facebookPage->facebook_page_id,
    'business_id' => $business->biz_id
]);

I have had success with models that do not have relationships where I try to override it with the Factory::create method, however, for this example I get MySQL Error: Duplicate entry '5614' for key 'PRIMARY' for my FacebookPage model.  So to me it seems like FactoryMuffin is still trying to save the relationship even though I am only passing an ID.  Is this correct?  I was wondering if what I am describing is possible?

Fixed this, it was an issue with trying to generate primary keys with faker and I used a closure like was suggested at this issue.


Proposals: Remove save as draft

As a User I want to have ability to save draft on the backend (stagging) instead to the local storage

[ ] remove drafts from proposal creation

@arsenijesavic backend ready for that?


envoy: bf0a16a0b84

Brings:

https://github.com/envoyproxy/envoy/pull/18078
https://github.com/envoyproxy/envoy/pull/18058

A separate upstream bump pulled this in.


Timesheet - 06/05/2021 - Mr. K

Task 1
Worked on the final version of Download Wallet Page Hifi design. Responsive design 1366, 992, 768, and 414. Also started working on a handoff for the FE team.
Proof of Work

https://www.figma.com/file/dniKTujBGiZmRha4OrtCOT/Download-Wallet?node-id=1%3A10

Time Spent
6.0 hours

Task 2
Started working on the wireframes ‘Rules & Guideline’ page.
Proof of Work

https://www.figma.com/file/ei4V944GJrWz78Kyr7IW9f/Project-Rules-and-Guidelines?node-id=1%3A9

Time Spent
1.0 hours

Total Time Spent
7.0 hours
Account Number
c93ee24b89991a1438b45444cf06e5bb167ed1796d54a800174def4480f98ed0

Approved


How do I figure out what engines I can use?

How do I figure out what engines I can use?

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

ID: b6d64a4e-816e-d545-6c37-c2b1f24174ef
Version Independent ID: c828776b-914b-31e7-158c-3bf672b496f8
Content: wscript
Content Source: WindowsServerDocs/administration/windows-commands/wscript.md
Product: windows-server
Technology: manage-windows-commands
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


[DevTestLab] Automatic PR from RestAPI-PR1067

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/1067

Codecov Report

Merging #1110 into master will decrease coverage by 1.02%.
The diff coverage is 32.86%.

@@            Coverage Diff             @@
##           master    #1110      +/-   ##
==========================================
- Coverage   56.46%   55.44%   -1.03%
==========================================
  Files        2050     2140      +90
  Lines       57454    59721    +2267
==========================================
+ Hits        32442    33111     +669
- Misses      25012    26610    +1598

Impacted Files
Coverage Δ

...tlabs/azure/mgmt/devtestlabs/models/day_details.py
80% <ø> (ø)
:arrow_up:

...bs/azure/mgmt/devtestlabs/models/schedule_paged.py
80% <ø> (ø)
:arrow_up:

...devtestlabs/models/generate_upload_uri_response.py
80% <ø> (ø)
:arrow_up:

...devtestlabs/models/evaluate_policies_properties.py
57.14% <ø> (ø)
:arrow_up:

...vtestlabs/azure/mgmt/devtestlabs/models/lab_vhd.py
80% <ø> (ø)
:arrow_up:

...e/mgmt/devtestlabs/models/virtual_network_paged.py
80% <ø> (ø)
:arrow_up:

...bs/azure/mgmt/devtestlabs/models/artifact_paged.py
80% <ø> (ø)
:arrow_up:

...labs/azure/mgmt/devtestlabs/models/week_details.py
66.66% <ø> (ø)
:arrow_up:

...t/devtestlabs/models/formula_properties_from_vm.py
80% <ø> (ø)
:arrow_up:

...evtestlabs/models/generate_upload_uri_parameter.py
80% <ø> (ø)
:arrow_up:

... and 278 more

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 ded0e80...ad62a30. Read the comment docs.


Revert "Limited gen reliability"

Reverts NREL/REopt.jl#73

@sericson0 do we need this still, since it was already reverted?


C# code and Objective C code gives two different set of results

We have followed exactly the same approach given here for IOS and C#. But unfortunately we are getting two different results.
We hardcoded IV key and Secret key and tested. Even this scenario into different results.
Let us know that any one has resolved this issue.
Any help is appreciated.
Thanks in advance

I'm seeing the same thing.  I have my Android and iOS apps producing the same encrypted result (they both use the same IV) but I can't get the windows side to produce the same result...  have you found a fix for this, per chance?

Update: I solved my problem... the "how to use" code for CS showed this line wrong.  once I corrected to 32, I now get the same results from C#/iOS/Android:
string key = CryptLib.getHashSha256("1111111111111111", 32); //32 bytes = 256 bits


Issues when using a SFTP repository

Hi there,
I have some issues when I try to use this image with a SFTP repository by mounting a volume in /root/.ssh with a config file and a private key.
First issue is that I have to disable the StrictHostKeyChecking option in my config to bypass the prompt for key fingerprint verification, otherwise the script will fail at init.
Second issue is that I couldn't find any way to change the permissions or owner on the mounted volume, so I have to run docker-compose as root (ssh will fail if owner of config file is different than the user running the command). Also, this is not an issue for me but I believe it will fail on windows because the files are mounted with 777 permissions, and ssh won't allow that on the private key.
Is there a better way to run the image with a restic SFTP repository ?

docker-compose.yml:
...
    volumes:
      - ./data:/data:ro
      - ./ssh_config:/root/.ssh

ssh_config/config:
host *
  StrictHostKeyChecking no

And of course my private key in ssh_config/id_rsa.

I am not using restic with sftp, but have you tried to mount the .ssh folder as read-only with :ro flag?
    volumes:
      - ./ssh_config:/root/.ssh:ro

I am not using restic with sftp, but have you tried to mount the .ssh folder as read-only with :ro flag?
    volumes:
      - ./ssh_config:/root/.ssh:ro

I tried, but docker needs write permissions in the folder for the known_hosts file.

I tried, but docker needs write permissions in the folder for the known_hosts file.

@drskullster Concerning the host key problem, you can just mount a known_hosts file containing the correct host key into the container.
Concerning the private key, you can chown to root and chmod 0600 it locally before mounting.
I am not doing this myself because I am using swarm mode which makes this much easier:
services:
  backup:
    # ...
    configs:
      - source: known_hosts
        target: /root/.ssh/known_hosts
        uid: '0'
        gid: '0'
        mode: 0600
    secrets:
      - source: backup_rsa
        target: /root/.ssh/id_rsa
        uid: '0'
        gid: '0'
        mode: 0600

(I heartly recommend using swarm mode even when running on a single host only.)

@drskullster Concerning the host key problem, you can just mount a known_hosts file containing the correct host key into the container.
Concerning the private key, you can chown to root and chmod 0600 it locally before mounting.
I am not doing this myself because I am using swarm mode which makes this much easier:
services:
  backup:
    # ...
    configs:
      - source: known_hosts
        target: /root/.ssh/known_hosts
        uid: '0'
        gid: '0'
        mode: 0600
    secrets:
      - source: backup_rsa
        target: /root/.ssh/id_rsa
        uid: '0'
        gid: '0'
        mode: 0600

(I heartly recommend using swarm mode even when running on a single host only.)

@drskullster were you able to solve your issue? If you could post your solution here and close the issue, that would be wonderful. Thanks!

Sorry for the lack of follow-up ! I couldn't find a suitable solution so I ended up changing the permission of my files locally and using sudo to run docker-compose.


FlutterEngine init causing 'unrecognized selector sent to instance' crash on iOS

I'm trying to integrate Flutter into an existing iOS app. I followed the instructions here: https://flutter.dev/docs/development/add-to-app/ios/project-setup. It was working at one point and then not sure what I changed and now I'm getting an error at the line that initializes the FlutterEngine. Note - It works fine when flutter is on the "flutter-1.21-candidate.9" branch. But when on "stable", it throws the error.
The error is as follows:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean objectForKey:]: unrecognized selector sent to instance 0x1f8c9fdc0'

AppDelegate.h
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

@class NotificationsHandler;
@class BackgroundTasksManager;
@class ServiceCall;

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (readonly, strong) NSPersistentContainer *persistentContainer;

- (void)saveContext;

@end

AppDelegate.m:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // Override point for customization after application launch.
    //check if this fixes connection issue and random crashes
    [[NSURLCache sharedURLCache] setMemoryCapacity:0];
    [[NSURLCache sharedURLCache] setDiskCapacity:0];

    self.flutterEngine = [[FlutterEngine alloc] initWithName:@"my flutter engine"];
    // Runs the default Dart entrypoint with a default Flutter route.
    [self.flutterEngine run];

    return YES;
}

Podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'QBank_Redesigned' do

  flutter_application_path = '../flutter_project_folder'
    load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')

  install_all_flutter_pods(flutter_application_path)
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for QBank_Redesigned

pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Messaging'
pod 'Firebase/Firestore'
pod 'SSZipArchive'
pod 'Charts'
pod 'FittedSheets'

  target 'QBank_RedesignedTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

I've tried uninstalling and reinstalling Flutter. I've tried deleting my XCode and Flutter folders and re-cloning them and reverting to previous commits.
Note, it works in another brand new project but not this one I'm currently working on.
Flutter version 1.22.4
XCode 12.2
Attempting to run on iPhone 11 with iOS 13.5.1 and iPad mini 3 with iPadOS 12.4.8.
flutter doctor -v:
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-x64, locale
    en-US)
    • Flutter version 1.22.4 at /Users/ashohoud/Documents/flutter
    • Framework revision 1aafb3a8b9 (11 days ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/ashohoud/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.8.4

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (3 available)
    • iPhone 11 Pro Max (mobile)                     •
      77DCF44C-3B25-4392-978E-A92B08A230CA • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
    • iPhone 11 Pro Max (mobile)                     •
      B11E5A17-CF98-4AA2-8B73-F5C331D1E4EF • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
    • iPad Pro (12.9-inch) (4th generation) (mobile) •
      8CEF1E92-35AF-426C-B053-BC9C8140DE50 • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)

• No issues found!

@AmroShohoud
Please provide complete flutter doctor -v and a minimal complete reproducible code sample that we can use to replicate the issue.

I've added the flutter doctor -v output and the AppDelegate.h along with the Podfile. I think it has to do with the project configuration so I may not be able to provide a fully replicable code sample.

@AmroShohoud
As the exception says NSInvalidArgumentException', reason: '-[__NSCFBoolean objectForKey:]: , you are probably using YES instead of true.
Please check your info.plist XML file and compare it with the brand new project you created.

It works fine when flutter is on the "flutter-1.21-candidate.9" branch. But when on "stable", it shows the above error (without changing the info.plist). It's an objective-c project so info.plist converts true to YES.

@AmroShohoud
Not sure what is flutter-1.21-candidate.9 branch, but it doesn't sound like you are on either of dev, beta, stable or master on which we ideally should be.
Can you switch to latest master and try again ?

Sorry if it wasn't clear. I was originally running on '''stable''' branch and was getting the error. So I tried reverting to an older version of flutter (because I had it working before I upgraded) which is why I was on the '''flutter-1.21-candidate.9''' branch. The error exists on the '''stable''' branch

@AmroShohoud
Is it possible to compare your current project configuration with the new one you created and see where possibly the difference could be ?
In order to exactly check why it may be causing the crash, a minimal code sample would be very helpful.

Having same issues. Any solution yet?

i got this error now, Did anyone find the solution


ci: Tidy up build workflow

Changes:

Name all steps

Use imperative mood in all step names

Fetch Node.js version from .nvmrc file

nvm users can easily install the same version as the workflow
it can easily be renovated

Set Git user name/email when initializing platform like main repository

Output npm version when initializing platform

Remove Node.js dependencies installation from codeql-analyze job to speed up workflow as it does not scan dependencies unfortunately
| Successfully extracted files | 6 results |

Remove redundant condition on main brain when pushing image, we can solely rely on the .releaserc config
https://github.com/renovatebot/renovate-approve-bot-bitbucket-cloud/blob/77b714a5e436455f0987bf83d30ddef1fb3c9fc2/.releaserc.json#L87

Remove contents: read permission, only required for private repositories

Context:
Housekeeping
Documentation

[ ] I have updated the documentation, or
[x] No documentation update is required

How I've tested my work
I have verified these changes via:

[ ] Code inspection only, or
[x] Newly added/modified unit tests, or
[ ] No unit tests but ran on a real repository, or
[ ] Both unit tests + ran on a real repository

Thank you @viceice for the review! 🚀


Poor image quality even with 8M camera

Hello,  I am using a Dell Venue Windows 8.1 Pro 64-bit with an 8 Megapixel back camera.  When using the camera app on the Venue, it takes a very high quality photo.   When using webcam.js, the preview is very wavy and grainy, and the final snapshot is as well.  I've tried different settings in "Webcam.set", but still poor image quality even when I attempt to match the resolution of the camera app.  Any ideas?  I've attached two files....one is a screen shot of the webcamjs, the other is an photo taken in the Venue camera app.  You can see a lot more detail in the camera app photo.

Yeah, I've had problems with HD images as well.  It seems the driver support in both Flash and HTML5 GetUserMedia is very poor for images greater than 640x480.  Chrome seems to warp / stretch the image, and other browsers deliver blurry / scaled results.  I've only gotten it to work with certain cameras in certain browsers.  I'm sorry you ran into this.  I will add a disclaimer to the README.

OK, Thanks for the feedback!

If you can, please try this again with the latest library (v1.0.1), as I added better HD settings in getUserMedia.  Thanks!
http://pixlcore.com/demos/webcamjs/demos/hd.html

It seems that I have to specify my camera solution?

i have  tried the latest library (v1.0.1) for better hd settings
but it didnt work and still poor image quality
can you help me to complete our issue about it

`
Webcam.set({
| width: 1280,
  | height: 720,
  | image_format: 'jpeg',
  | jpeg_quality: 90,
  | constraints: {
  | width: { exact: 1280 },
  | height: { exact: 720 }
  | }
  | });
  | Webcam.attach( '#my_camera' );
  |
`
that's the latest library (v1.01) for better hd settings right?
but still didn't work


Exception thrown when synthesizing array variables

The DOM throws an exception because the synthesizer tries to declare a variable with name (identifier) containing []. Fix this so that [] is part of the type and not the variable name.
Input to reproduce
Draft program: TestIO1.java (with just the "readLine" evidence)
AST:
{
  "asts": [
    {
      "node": "DSubTree",
      "_nodes": [
        {
          "node": "DExcept",
          "_try": [
            {
              "node": "DAPICall",
              "_call": "java.io.FileReader.FileReader(java.io.File)"
            },
            {
              "node": "DAPICall",
              "_call": "java.io.BufferedReader.BufferedReader(java.io.Reader)"
            },
            {
              "node": "DLoop",
              "_cond": [
                {
                  "node": "DAPICall",
                  "_call": "java.io.BufferedReader.readLine()"
                }
              ],
              "_body": []
            }
          ],
          "_catch": [
            {
              "node": "DAPICall",
              "_call": "java.lang.Throwable.getStackTrace()"
            },
            {
              "node": "DAPICall",
              "_call": "java.lang.Throwable.printStackTrace()"
            }
          ]
        }
      ]
    }
  ]
}

9478f46 fixes the crash, however, complete support for native array types is still pending. Closing this particular issue, and will open a feature for this.


Add good intro text in script

So newbies can find their way more easily :).

On second thought: this will only add length to the script. I'll leave it out.