Swift cant use MDTextField,MDSlider but MDButton goes well

I use Swift with a Header.h file of #import "MDTextfiel.h",but I cant use MDTextField
let frame = CGRectMake(....)
let a =  MDTextField(frame:frame)
self.view.addSubView(a)
code runs well,but I cannt see any TextField on the screen even I setted backgroundColor

Hi @havyre !
MDTextField and MDSlider only work with Auto Layout. So you need to use constraints instead of frame to positioning and resizing the views.


Update 3.1-to-5.0 migration guide for Preview 7

Fixes https://github.com/dotnet/AspNetCore.Docs/issues/19285
Internal review page

I'll take a look first thing Thursday AM.


[VCQ][DevDiv_VSO][VSCode][Source ambiguity: Focus Settings Search]

MS PM
Daniel Ye

MOR PM
Jan Baltus (Moravia IT)

String Resource ID
0; "src/vs/workbench/contrib/preferences/browser/preferences.contribution.settings.focusSearch"

Source String
Focus Settings Search

Subtenant
VSCode

Source Control Link

Filename
vscode-workbench\vs_workbench_contrib_preferences.xlf

Question
Is Focus a verb or part of the noun here? Interpreted as a noun, "focus settings", that you can search for. Please also check the following two strings:
0; "src/vs/workbench/contrib/preferences/browser/preferences.contribution.settings.focusSettingControl"
0; "src/vs/workbench/contrib/preferences/browser/preferences.contribution.settings.focusSettingsTOC"

Additional details

Core Team Response

It is a verb in all cases


Save some of console state in persistent storage

Save parts of the store to browser storage
Load these parts on load/log in
Covers things such as

collapsed panels
list component filtering/sorting
side nav state
In the future choice of language

This issue was moved to cloudfoundry-incubator/stratos#1524


Angular-specific rules

I was wondering if anyone have written some custom rules that can lint angular apps?
Much like eslint-plugin-angular for eslint.
Would be handy if there was a place where people could publish their custom rules :)

:+1:

agreed, this would be great to have. we haven't yet figured out the tslint plugin story (made #582 to start the discussion). feel free to leave suggestions for angular-specific rules in this thread.

My goto angular guidelines are these https://github.com/johnpapa/angular-styleguide

For folder structure I use these:
http://www.johnpapa.net/structuring-an-angular-project/
https://scotch.io/tutorials/angularjs-best-practices-directory-structure

Check out https://github.com/mgechev/ng2lint, it has a bunch of Angular 2 rules

We don't add any library specific rules to TSLint core. Angular shouldn't be an exception. Hence this issue is not really actionable.
https://github.com/mgechev/codelyzer provides some pretty good rules to enforce suggestions from the official angular styleguide.


Update aws-java-sdk to 1.12.771

About this PR
📦 Updates com.amazonaws:aws-java-sdk from 1.12.761 to 1.12.771
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk" }
}]

labels: test-library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #1028.


gnmic dropping certain paths when using event/prometheous output that do show up in json formatted output

I am having an issue with gnmic not presenting a value when using prometheus output. The data definitely exists in gnmi data when querying gnmi directly.
In order to debug, I changed the output to file, using event format. The data does not exist in my event formatted debug output.
So I then changed to json format, and the desired metric shows up:
      {
        "Path": "defaultStats/latency",
        "values": {
          "defaultStats/latency": 0.2329999953508377
        }
      },

From what I can tell, 0.2329999953508377 looks like it would be a valid value. I've tried various versions of gnmic, including the latest 0.34.3
I am using json/event solely for debugging. My end goal is to use a subscribe and processors to get prometheus output.

Can you share the output with format prototext?

HI @karimra , thanks, here is a snip using prototext:
  update:  {
    path:  {
      elem:  {
        name:  "defaultStats"
      }
      elem:  {
        name:  "latency"
      }
    }
    val:  {
      double_val:  0.05999999865889549
    }
  }

Thanks, double values are not handled when using the event format, will fix that shortly.

will fix that shortly.

You are amazing!!! Life saver.

@mdebord-dlr can you give v0.35.0 a try ? Thanks

@mdebord-dlr can you give v0.35.0 a try ? Thanks

I'm seeing results now @karimra thanks. Looking good. FYI this was on Arista EOS 4.3x platform if you were wondering.


Cut the rope [New game][gssoc23]

PR Description 📜
Cut the rope is a clone of an android game that can be played on your browser.
In this, a monster sits on a level and our aim is to feed him candy.
This web game stores progress on your local device so whenever you want to play this game it will not start from the beginning.
Our aim is to feed the monster, a candy while collecting as much stars as possible.
In a particular level you can collect max of 3 stars.
Fixes #923

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

https://github.com/kunjgit/GameZone/assets/111726483/0a54bc24-018e-4f82-ae4b-ac9d323dbe73
This video is screen recording of browser where Cut the Rope was being played.
For this game, I made a PR previously but I was asked to do some changes, the changes were-
->Adding an image to the assets/images directory. [DONE]
->modifying the main README.md file.[DONE]

Thank you soo much for contributing to our repository 💗

@kunjgit I have already added an image to the assets/images directory. And also modified the main README.md file.

Thank you  @thevirengarg , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Crunchyroll Calendar not appearing

I've run into an issue where the Crunchyroll release calendar doesn't appear on the calendar tab. The Refresh and language selection box  appear at the top but nothing below. The calendar appears as expected on a different computer. What would be the best way to troubleshoot this?

maybe you get an error in the log mode - but the calendar doesn't do much it more or less only loads the simulcast calendar from crunchyroll
so as long as the simulcast calendar from crunchroll loads the calendar should load as well

The simulcast calendar comes up via chrome browser. Here's what I get in the log:
Log mode enabled.
Error: System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at CRD.Utils.HttpClientReq.SendHttpRequest(HttpRequestMessage request)
Response: error to long
No days found in the HTML document.

does this also happen when you press reload on the calendar tab? i usually get that error if i go to the calendar tab right after starting the downloader but reloading or switching tabs usually works to load it afterwards

Refresh doesn't work, neither does switching between tabs.
I just tried copying the entire program and config files from the working computer to the non-working one, and the calendar still doesn't work with identical files. The biggest difference is that the working computer is running Windows 10, and the non-working computer is running Windows Server 2019. I'll have to do some further troubleshooting in the morning. I'll keep you posted.

try it again with the new release maybe it fixes the problem

The new update has loaded the calendar xd

Installed the new version 1.4.32, but the calendar still does not load (Windows Server 2019)
Log mode enabled.
Error: System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at CRD.Utils.HttpClientReq.SendHttpRequest(HttpRequestMessage request)
Response: error to long
No days found in the HTML document.
Calendar appears fine in Chrome (https://www.crunchyroll.com/simulcastcalendar?filter=premium)

I have enabled the log, and I get the same message with the new update, for the calendar, instead I go back to the previous version and zero problems.

The new update has loaded the calendar xd

@Vorffeed but you said it loaded the calendar? - the error also occurs in the older versions but for me it happens very rarely

The new update has loaded the calendar xd

@Vorffeed but you said it loaded the calendar? - the error also occurs in the older versions but for me it happens very rarely

I don't think I was understood 😅
I wanted to say that the new update has broken the calendar, I wanted to say load to break and not load to go well, the translator seems to have misunderstood what I wanted to express.

In short, the new update causes the calendar to show nothing, while the calendar in the previous version works perfectly.
Could you revert the changes you have made to the calendar part?
And be able to use the new improvements 😉

@Vorffeed should work again in the new v1.4.33 release.
@petenun, the problem with Windows Server 2019 is that Cloudflare blocks the request. While testing, it actually surprised me that it doesn't get blocked on a normal Windows installation 😅. A solution would be to include a browser in the downloader to load the page and get the HTML, but that's a lot of overhead just for this one request. Also, while testing this, the browser had to be opened in a new window, or else it would fail with the same error. Another solution would be to use FlareSolverr - this might be a good way to solve it, but I haven't tried it yet

Yes, it's working again, thank you 😉

@Elwador Thanks for looking into the Windows Server issue. I can deal with not a calendar. I'm probably an exception in running this as my OS. I do appreciate the explanation as to why it's not working. At least it's not the program itself that is the problem. :-)

@petenun i added a "Custom Calendar" option to the calendar tab that could work for you as well

You did it! The calendar now works using the Custom Calendar!! Thank you!

Now that I'm able to see the calendar, should the language drop-down filter the calendar to show dub episodes in that language? It's not clear what the language box does, though it does not appear to filter any calendar contents. Also, it appears that selecting the Custom Calendar checkbox works, but the check box does not retain it's value when switching to a different screen and back.
And while I'm being demanding (sorry), would it be difficult to add a sort option on the Library for date the series was added to History?

the custom calendar is not the same as the Simulcast Calendar from CR - for the custom calendar i look at the recently released episodes
i think the lang dropdown has no impact what so ever on the custom calendar
i removed all the "dub" releases because some episodes were listed like 5 times with the different dubs
and i can save the state of the checkbox if the custom calendar is selected
np, i could add something for that to the history but all series that are already added will have the date of the next refresh when i add it because currently there is no add date saved
i absolutly expect bugs with the new calendar and search 😅

I totally get the problem with the multiple dub releases. I've never been happy with the way that CR handles the dub languages it's both noisy and vague at the same time. Heck, even on their own site, they treat Dub like a binary value (True or False) even though there are multiple values based on the language. In MY perfect world, it would be nice to only see English dubs, but if Crunchyroll can't even do it, then it's probably an unrealistic ask. 😂
Thank you for looking into the checkbox persistence and the added date. I think both of those will be handy. And the search feature is an awesome addition! 🎉

i think with the new release this issue should be pretty much done if there are any issues just make a new one

It's looking beautiful, and the dub filter looks promising. Thanks for all the effort you put into this!


Patch framework

... to version 4.1.7

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.476%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
95

Relevant Lines:
105

💛  - Coveralls


Fix CodeExecutionAgent example

Why are these changes needed?
Fix CodeExecutionAgent example that does not match code block regex
Current example show error No code blocks found in the thread.
Related issue number
Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

@thainduy  thanks we will updated this in a separate PR

Close this PR since it's updated in a separate PR


[FSDE-993] Added Chi Vue Data Table E2E tests

Depends on #83

[x] Added e2e tests for Chi Vue Data Table.

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/1/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/2/. :x:

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/3/. :white_check_mark:

You can check this PRs instance in https://de5baf41eb601c1c7cd1056478c86dc1aecc0611-chi-pr.enterprise.ctl.io

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/4/. :white_check_mark:

You can check this PRs instance in https://8742b7f46721984cd3630cb6edb68bac24545512-chi-pr.enterprise.ctl.io

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/5/. :white_check_mark:

You can check this PRs instance in https://1e26c7fb61f4c889472ff9a71c7ff512fbf116b6-chi-pr.enterprise.ctl.io

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/6/. :x:

@evansito Very cool implementation and understanding of what needs to be checked! Let's make these minor improvements and it will be ready to go 😉

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/7/. :x:

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/8/. :white_check_mark:

You can check this PRs instance in https://e8c3f1a764b7f2141c5f2c6e7ad001e795e7286c-chi-pr.enterprise.ctl.io

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/9/. :white_check_mark:

You can check this PRs instance in https://fcd2ddd3f68f7f1676ef19363c91965fb2276221-chi-pr.enterprise.ctl.io

👏

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/10/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/11/. :x:

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/12/. :white_check_mark:

You can check this PRs instance in https://1d39f8e3c07ebc6eca2bc2e8b6018abe21f185e6-chi-pr.enterprise.ctl.io

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/13/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/14/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/15/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/16/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/17/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/18/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/20/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/21/. :x:

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-85/22/. :white_check_mark:

You can check this PRs instance in https://297bb8a23a7b52b8d30a885f57bc25157163c1b1-chi-pr.enterprise.ctl.io


[JSC_UNDEFINED_VARIABLE] variable console is undeclared

I have a nodejs program in commonJS.
it works normally, it also works with SIMPLE optimization.. but not with ADVANCED and gives these errors:
shell.js:56:13: ERROR - [JSC_UNDEFINED_VARIABLE] variable console is undeclared
56|     DEBUG && console.log('\nCFGFILE:\n',cfgfile);
^^^^^^^
shell.js:73:8: ERROR - [JSC_UNDEFINED_VARIABLE] variable process is undeclared
73|         process.exit(); // Exit the server process
^^^^^^^
shell.js:84:21: ERROR - [JSC_UNDEFINED_VARIABLE] variable signal is undeclared
84|     const id = await signal.send(                           ^^^^^^
shell.js:191:8: ERROR - [JSC_UNDEFINED_VARIABLE] variable setTimeout is undeclared
191|         setTimeout(() => process.exit(code), 1000);
why?!

In advanced mode you would need to specify externs used in your JS code. See -

https://developers.google.com/closure/compiler/docs/externs-and-exports
https://developers.google.com/closure/compiler/docs/compilation_levels#advanced_optimizations


Consider using more generic term for argument branch

In v0.12 the cli has an argument branch that is actually more generic. Consider aligning the name of the argument with GitHub terminology ("reflike"? not sure).

PR was merged, closing


Can not profile a script import scipy with nvprof

I have a script using scipy and cupy. When I tried to profile the running, I got an error.
Reproducing code example:

from scipy.ndimage import gaussian_filter

Run this t.py with
nvprof -o t.prof python t.py

Error message:
Missing definition of the OpenACC API routine/s in the OpenACC library linked to the application.

Is this error related to how scipy compiled?
Scipy/Numpy/Python version information:

system: Linux sz-desktop 5.12.10-arch1-1 x86_64 GNU/Linux
scipy: 1.6.3
numpy: 1.20.3
nvcc: Build cuda_11.3.r11.3/compiler.29745058_0

This question fell through the cracks, sorry @szsdk. SciPy is CPU-only so has nothing to do with either OpenACC or NVCC. I'll close this, since it seems irrelevant.


Failing to load IMAGE_ARG_*

When specifying running the following task:
      - get: content-source
      - get: node-image
      - get: hugo-builder
        params:
          format: oci
      - get: nginx
        params:
          format: oci
      - get: ecr-registry
        params:
          format: oci
     - task: build
        privileged: true
        config:
          platform: linux
          image_resource:
            type: registry-image
            source:
              repository: vito/oci-build-task
              tag: master
          inputs:
            - name: hugo-builder
              path: modified-sources/hugo-builder
            - name: nginx
              path: modified-sources/nginx
            - name: ecr-registry
              path: modified-sources/ecr-registry
            - name: modified-sources
          outputs:
            - name: image
          params:
            CONTEXT: ecr-registry
            IMAGE_ARG_hugo_image: "hugo-builder/image.tar"
            IMAGE_ARG_nginx_image: "nginx/image.tar"
            DOCKERFILE: Dockerfile.staging
          caches:
            - path: cache
          run:
            dir: modified-sources
            path: build

getting a failure of:
Dockerfile.staging:1
--------------------
   1 | >>> FROM ${hugo_image}
   2 |     COPY ./package.json ./package.json
   3 |     COPY ./package-lock.json ./package-lock.json
--------------------
error: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: base name (${hugo_image}) should not be blank
FATA[0000] failed to build: build: exit status 1
FATA[0000] failed to run task: exit status 1

Had to make a change to my dockerfile to include the ARG at the top.
ARG hugo_image=hugo_image
ARG nginx_image=nginx_image
FROM ${hugo_image} as builder
FROM ${nginx_image}


Node Material Editor - vNext

We will capture here all new features we could consider to add to NME for future release:

[x] Community repository of custom nodes
[x] Refraction node
[x] Reuse uniforms pointing to the same system value
[x] Add Swizzle Node
[x] Expand upon the collapse frame functionality to export the frame as a stand-alone json that can be imported into another graph. This is essentially a custom node functionality so we would need to add some logic around adding them to the node list under a custom header. Also consider some way to allow users to auto-load their preferred custom nodes or some easy way to import a library of custom nodes saved by the user.
[x] Ability to resize frame with a window resize icon in the lower right (standard behavior)
[x] Option to pack/unpack a group into a super-node
[x] Option to save a portion of a graph (and an option to import it as well)
[x] Comment field for frames. The comment could live right under the header of the frame as a way to summerize the whole function of that frame.
[x] Option to pop out the preview window like is done with the inspector
[x] UI in tNME to display all the updatable inputs (ala Inspector)
[x] Add an option to flag a float value as boolean (UI only)
[x] Add an new output for LightNode: Shadow (between 0 and 1)
[x] Center horizontally on collapse
[x] copy/paste with links
[x] Expose non connected  ports on collapsed frames
[x] Option to collapse/expand a portion of a graph
[x] Frames for blocks of nodes
[x] Comment field + floating above the node
[x] NLERP Block
[x] NME PBR
[x] Allow Frames to become NME Nodes
[x] String Ref refractor

UI:

[x] Is there a way to kick an error when you don’t build a node material?
[x] When making NME nodes "visible in the inspector," it would be awesome if there was a way for us to make a custom order in the inspector...instead of listing them alphabetically.
[x] Add icons to node header for exposed in inspector and constant data types

What would be really nice to help readability by reducing the number of intersecting lines would be to have the possibility to flip (mirror) the left/right sides of a node. So, after flipping, the inputs would be on the right and the outputs on the left.
For this to work, it must be obvious what are the inputs/outputs just by looking at the node and not having to refer to its definition to see if it has been flipped or not. So, current bullets would not work well because some input/outputs have the exact same graphical display. For eg:

It's not necessarily obvious to everyone what are the input / output sides of these nodes if they can be flipped.
So, maybe something like (programmer art...):

The inputs have the semi circle inside the frame (they are "in"puts) and the output have the semi circle outside the frame (they are "out"puts)... This way, it can be flipped and it's still obvious what are the inputs/outputs:

Of course the writings should be in the right direction, but you get the point.

I'm not sure @PatrickRyanMS will agree (Me neither as I do not feel it easy to read)

@Popov72, I'm not entirely sure I am following your design intent for being able to "flip" the inputs of a node. Node graphs typically have a strong "flow" or "direction" for their graph design. Some like Unity, Unreal, Maya, 3ds Max, and Substance Designer use a horizontal flow (primarily left to right but some like the old Unity plug-in Shader Forge actually changed their horizontal direction during its life cycle which can cause a usability issue while users remap their minds and muscle memory). Others like Houdini use a vertical flow, in their case it is top to bottom.
Right now if I have to backtrack in a graph for any reason, I will see a wire traversing the wrong way and working against the flow. This can be a simple layout issue (reorganizing your nodes may correct it), it can be for optimization purposes (using one world mesh normal node to drive many other nodes which can cause long or winding wires), or it can be a visual indication that you have some complexity in your graph that could be reduced (seeing a spaghetti of wires for a simple effect can indicate that you are doing more than you need). But the core issue here is that I know, as a user, that my graph is executed from left to right in every case. If I have a wire that runs against the flow temporarily, I still know that I will execute from left to right at the end of that wire.
From what you are describing, and please correct me if I am not understanding your design, you will effectively be giving the user discretion over the flow of execution of the nodes. This means that some parts of the graph might execute left to right and others right to left in the same graph.

This design will largely generate more switchbacks in wires (a right facing node and left facing node wired into a left facing node)
It will add complexity to the user's decision making process when laying out their nodes (do I want a left or right facing node here)
It will add a lot of extra steps for iteration (I created a left facing group of nodes that I need to change which requires them to now be right facing).

The other issue to think about is the next person to use the node graph. Right now every user can approach any node material with the expectation that we execute left to right. If we allow users to change that flow, "ground truth" of the node graph will change based on the author of the graph. Every node graph will need deciphering to understand the execution path before being able to fix, extend, or reuse parts of the graph.
I'd love to hear if you have a deeper design in mind that would necessitate or make an indeterminate flow a logical design choice. Right now, we have a way to simplify some of the spaghetti in a graph by making use of collapsible frames. This can simplify the view of a graph by turning this:

into this:

I have more ideas around frames that we need to explore before v2 of the node editor, but this is a good first step for the premiere of the entire editor. Please let me know if you have questions or other thoughts around why we should add an indeterminate flow to our graphs, but at this point, the added complexity of an indeterminate flow does not seem to be a good trade off to reduce overlapping in wiring.

Thank you for the detail explanation.
In fact, when doing this material:

https://nme.babylonjs.com/#ZBGPQ9#7
I recall saying to myself that in the building blocks (the blue / grey frames), I could have avoided some crossing of the lines had I been able to flip some nodes vertically - and so made those blocks clearer (imo). The general flow of reading is still left to right, but inside the blocks you could have some nodes flipped to help readability.
But it's a minor thing, I understand very well your concern to keep a single direction of reading for all elements in the material.

Another one :)
Do you plan to support the "bool" type? I understand it could be complicated because having bool and float types would make things harder when doing math operations.
However, supporting a bool as being internally a float with only the 0/1 values should be easier. It would make the intent of some variables clearer and also would allow to have a switch in the inspector for such variables, instead of a slider that can take any value between 0 and 1.
Or maybe a more generalized "discretized float", that would allow the user to fill it with a list of numbers, and when there are only two numbers with 0 and 1 values, it can be shown as a switch in the inspector...

+1 for node previews! it makes debugging your shaders so much easier!

@Popov72, are you just looking to have ab easy toggle in the inspector for your bool? Right now you can set float to have a min of 0 and max of 1 to get a slider, but I understand that this isn't quite as quick as a toggle. From a UX perspective, we would likely need to add a boolean option to floats to keep the math working correctly which would basically be a UI switch to input a 0 or 1 in the float in the inspector. The reason I am asking is that this would likely be something built into the inspector and editor rather than changing or adding a node for bool. Is this what you are thinking of?
As an aside, you can use the step node (which outputs 1 or 0 based on the input and the edge value) to give you a bool-type output. I like step because I can push an input into the node and then change either the edge value or the input to control the output between 0 and 1.

@PatrickRyanMS Yes, I was asking both for an easy toggle in the inspector and to make it clear the only allowed values are 0 and 1 and nothing in-between. Doing step(1, myVar) only to get a 0 or 1 value when myVar can range from 0 to 1 is a bit wasteful imo, better to be sure beforehand (by some provided mean) that myVar will ever be 0 or 1.
Maybe it could be an option on the float node: a checkbox "use as boolean", that would only allow the 0 and 1 values (?)
My use cases are really boolean (I'm recreating the standard material in the nme): https://nme.babylonjs.com/#6E8GQ2
The 3 floats "DIFFUSE", "ALPHATEST" and "ALPHAFROMDIFFUSE" in the Diffuse pane corresponds to some #define in the fragment shader and are really yes/no values.

Still another one!
How about reusing multiple times the same node without creating a new uniform each time?
For eg, I could create several "view matrix" nodes but I would like to have a single uniform view; in my shader and not as many as the number of "view matrix" nodes.
It's again for a visual clarity matter: in a complex shader, I can use a lot of times "mesh uv" or a standard matrix (view, world, ...). With a single node, I could have very long lines crossing the graph, it would be better to recreate the same node nearer the locations where it is used.
This "ghosting" system would only be for nodes with system values, as I don't think there's a point to create multiple uniforms for the same value (multiple view matrices or camera position, for eg).
However, allowing this would make less obvious which node(s) a given system variable is used by, as the variable would appear multiple times in the graph...

How about reusing multiple times the same node without creating a new uniform each time?

and

Maybe it could be an option on the float node: a checkbox "use as boolean", that would only allow the 0 and 1 values (?)

@Popov72, let's summon the mighty @deltakosh to get his reactions to these questions from your last two posts as he will likely have the answers as to feasibility and complexity behind the scenes.

I'm not for the second one.  If you have two nodes they should mean something from the code and not just be syntax sugar. What I would prefer is a system optimization that reuse uniform if they are pointing to the same system value (added to the list of features for vnext)
I also added the option to flag a float as boolean (from the UI standpoint only)

Thanks!

Will be in next nightly:

The node editor is amazing, especially the "Generate code" option. However, if you use the same frame multiple times, it will generate duplicate nodes.
I think it would be very cool if the "Generate code" would generate a function for each frame, to avoid this code duplication. As an example, for a frame containing a Multiply node:
interface MyFrameInputs {
    foo: NodeMaterialConnectionPoint;
    bar: NodeMaterialConnectionPoint;
}

interface MyFrameOutputs {
    qux: NodeMaterialConnectionPoint;
}

function MyFrame(inputs: MyFrameInputs): MyFrameOutputs {
    // This creates the nodes for the frame
    var Multiply = new BABYLON.MultiplyBlock("Multiply");
    Multiply.visibleInInspector = false;
    Multiply.visibleOnFrame = false;

    // This connects up the frame inputs to the nodes
    inputs.foo.connectTo(Multiply.left);
    inputs.bar.connectTo(Multiply.right);

    // This returns the outputs of the frame
    return {
        qux: Multiply.output,
    };
}

Now rather than needing to duplicate the frame nodes, it can instead just call the frame function.
This would also make it easier to reuse the same frame across multiple different materials.

Hey wanna try to submit a PR to see how it could work?

@deltakosh Sure, I could do that.

@deltakosh After some investigation, it would require some very large changes:

Frames would have to be synchronized, so that if you change one of the frames it will automatically change all of the copies (like how Blender does it).
Frames (plus their copies) would have to be stored with a unique ID in the JSON, and it would have to handle migration of old JSON files.

A different solution would be to simply look for frames which are structurally identical and use a function for those. It's a hack, but it might work well enough in practice.

Hi, excuse me if this is the wrong place for this, but I am wondering if there is a reason why the only input for the TextureBlock node is uv? Why not expose the uv scale, uv offset, and rotations? These are commonly used in node based shader development. As well it would be good to have the choice of which uv map.
I am considering making an extension library of frames / custom nodes including either exposing this, or making a special uv offset / manip node.  I am wondering if this is worthwhile effort considering what the original intentions were or other plans.
On a side note, does anyone think linking in glsify for things like blend modes etc would be cool? I am wondering if these could actually be indexable / searchable, then stuffed into frames.
Let me know thoughts or better place for this..  also please let me know thoughts on PRs for this kind of content.
Thanks in advance, and for the awesome work on BabylonJS!

This is not the good place ;) we want discussion to happen on our forum for everyone to see it
That being said, for your question, this information is available on the texture and not the block. Same for uv map. You can configure all of that in the block node property though (it will set the underlying texture this way)

This is not the good place ;) we want discussion to happen on our forum for everyone to see it
👍🏼 Gotcha! I will open discussions on the forum. Just following up here before I head over there. Thanks!

+1 for node previews! it makes debugging your shaders so much easier!

Based on Babylon.js and CocosCreator, I made a node visualization preview scheme. This has been posted at http://store.cocos.com/app/en/detail/3369.


Unable to access the outputs of another action

Hello,
I'm running an action which has several outputs.
When using the said action directly, all outputs are available for other jobs, however, when running the said action using the wretry.action those outputs are not exposed.
An example code block:
jobs:
  do-some-work:
    if: always()
    name: Some name...
    runs-on: ubuntu-latest
    outputs:
      output1: ${{ steps.do-something.outputs.output1 }}
      output2: ${{ steps.do-something.outputs.output2 }}
      output3: ${{ steps.do-something.outputs.output3 }}
  steps:
    - name: Do something
        id: do-something
        uses: Wandalen/wretry.action@master
        with:
          attempt_limit: 3
          attempt_delay: 5000
          action: repo/some-action@main
          with: |
            option1: foo
            option2: bar
            option3: ...
            option4: ...

Was wondering if it is possible to access the outputs of other actions and if so any guidelines would be greatly appreciated.

Same issue here

I believe this PR  fixes it (I assume it was working previously, but doesn't work becauase of deprecation). It just needs to be approved by admin. Can any of the admins look into it? We are really dependent on this action in our project @Wandalen @kosgensys @dmvict

Hello, @karadikidd and @miran-hadz
In this PR https://github.com/Wandalen/wretry.action/pull/87 I updated core dependency @github/core it allows to save the outputs.
But I suppose the PR will not solve your problem because our action is a wrapper over the external actions. And wretry.action runs external action in separate thread. It is a reason why the external action has no access to the dependencies of wretry.action. I suppose that you need update external action, the external action should use the valid API.

Hello, @karadikidd and @miran-hadz
In this PR https://github.com/Wandalen/wretry.action/pull/103 I solved the issue with outputs. You can use it after the publish. I will notice you about publish.
Notice: how to use outputs from external action is described in the new Readme.md

Hello, @karadikidd and @miran-hadz
The new version is released. Please try it and give me a feedback about it.

Many thanks @dmvict! I will check and update with the new version.

@dmvict Thank you! Will try this on Monday and report back

I can confirm that everything works as expected. Many thanks @dmvict!!!
P.S.
A minor issue I've noticed in the README file under the Outputs section.
The code example is missing a "v" before the tag version.
uses<EMAIL_ADDRESS>=> uses<EMAIL_ADDRESS>

Thank you, @karadikidd.
I will fix it next time.

Worked as expected! Thank you for the swift update :)


Techie Activity: Sorting Error for absolute Hours

In the Techie Activity Page:
If the Techies are sorted after absoluted hours, the sorting is broking. It is sorted based on relative hours.

Moved to Notion


chore(anvil): fix anvil changeset

I know this also fixes the build of the entire project, but the main thing of the changeset is to introduce a new release of the anvil image. The changeset of the CLI comes later.

I'm using minor just because.
The anvil versioning itself is already messed up.


Updating new VirtualNetworkRules swagger with name change from VnetFirewallRules to VirtualNetworkRules

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Why we are making this change: originally we wanted "Vnet" in order to be concise, but we noticed that network API has resources named "VirtualNetwork", e.g. https://github.com/Azure/azure-rest-api-specs/blob/master/arm-network/2017-03-01/swagger/virtualNetwork.json#L85 , and we decided that it would be better to harmonize our resource naming with them.

@nathannfan

Hi There,
I am the AutoRest Linter Azure bot. I am here to help. My task to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:
File: arm-sql/2015-05-01-preview/swagger/virtualNetworkRules.json
Number of linter errors/warnings before the PR: 1
Number of linter errors/warnings after the PR: 1
Thanks for your co-operation.

@lmazuel looks like "Vnet" naming was released in azure-mgmt-sql 0.6.0, so this is a breaking change for python. We didn't yet release this in .net sdk so it's not a breaking change there. The customer impact should be none because this API is not fully deployed to production yet.

thanks for the heads up @jaredmoo!

Searching for vnet across the spec I see:

a type (VnetFirewallRuleListResult)
parameters
a description

Are those supposed to be updated too? 🙂

@olydis We basically just want to make sure that the Customer facing .Net SDK client code has the VirtualNetworkRules naming instead of VnetFirewallRules. Internal parameters if named different should be ok.

Spoke to @jaredmoo , we decided to make the naming changes throughout and then update. I will close this and send a new request in some time.


[web] Add a -w flag to felt test

Similar to felt build -w.
When added to the test command, the -w or --watch flag makes it so that the tests rerun automatically whenever a file is changed.
This is especially useful when running tests in the browser to preserve breakpoints and provide faster iteration.

Is this still a valid issue today?


Upgrading yarn for deployment to servers

Also adding .yarn directory and file
Ref #776

I believe this is no longer needed based on all the recent update


KAFKA_OPTS for broker config

Is your feature request related to a problem? Please describe.
I want to setup SASL_SSL auth on my cluster. It requires KAFKA_OPTS to
be adjusted for each broker. I see that some other opts could be declared in configuration:
	KafkaHeapOpts      string                        `json:"kafkaHeapOpts,omitempty"`
	KafkaJVMPerfOpts   string                        `json:"kafkaJvmPerfOpts,omitempty"`

However, I didn't find any way of how to pass KAFKA_OPTS to broker.
Describe the solution you'd like to see
Add KafkaOpts option for broker config, same as KafkaHeapOpts, KafkaJVMPerfOpts
Describe alternatives you've considered
I didn't find any way of how to pass KAFKA_OPTS to broker

Hi, you can use. the envs field for this purpose.
https://github.com/banzaicloud/kafka-operator/blob/daa4dd372e3510142b2e4afeae7c2f2cc0f3e7b5/pkg/sdk/v1beta1/kafkacluster_types.go#L62

@baluchicken thank you!


Fix test failures on Python 3.11 due to asyncio.coroutine being removed

Fixes: #180

fixed in:

https://github.com/crossbario/txaio/tree/v23.1.1
https://pypi.org/project/txaio/


ActionDispatch::Http::UploadedFile broken for Rails 3.2

When #243 was merged we used eof? to check file filters. That method was not added to ActionDispatch::Http::UploadedFile until 4.0.2.
http://apidock.com/rails/v4.0.2/ActionDispatch/Http/UploadedFile/eof%3F

Current workarounds include:
Go straight to the temp file:
file_filter_name: (file = params[:file]) && file.tempfile

Pass the upload as an object:
object :file_filter_name,
  class: ActionDispatch::Http::UploadedFile

ActionDispatch's uploaded file only has a few methods in version 3.2.0:

original_filename
content_type
tempfile
headers
read
open
path
rewind
size

Of those, #rewind seems like the most likely replacement for #eof?.


Invalid Credentials after switching networks

If I sleep my laptop at work and go home, my open notebooks error Invalid Credentials. There is nothing at the shell that indicates what is wrong. I'm assuming it's an expired session??? If I go to the Notebook Home tab and press the home icon it will eventually reload my drive folder but running notebooks won't ever come back by just pressing save after restoring the browsability in the Home tab. If I refresh the page it will reconnect but I fear I think I lose any unsaved changes. I need to test that as I notice before I make changes and don't do any changes until the connection is reestablished. I'm not sure there is a fix for this but thought I would bring it up as no one has reported it from what I can see. I cannot recreate the issue by simply disabling my connection and re-enabling but perhaps it is because I do not wait long enough for the session to be invalid.
Jupyter 4.2.1
Ubuntu 16.04
Metadata-Version: 1.1
Name: jupyterdrive
Version: 1.1.0
Summary: Integration of IPython/Jupyter with Google drive
Home-page: https://github.com/jupyter/jupyter-drive

So I did a bit of more investigation and I guess this all works as best as it can but it would be interesting to get some dev feedback on this. It is definitely a expired session issue, not sure what Google sets this as. What is interesting is it seems you need to take a few steps before you can get changes synced up again. First, upon reconnecting to the internet you must go to the Home tab and press the home folder icon to re-establish a listing of your drive folder. If you just do this, it seems that the notebook you have open still will not notice that you have made changes since it last synced and cannot sync. Perhaps I am still not waiting long enough but it I have waited several minutes after restoring the folder listing in the Home tab. But, if you open the same notebook file as another tab from the Home tab, then the notebook with the expired session will realize it has unsaved changes and you are prompted to 'reload', 'cancel' or 'overwrite'. Ideally, if possible, there would be a heartbeat for the notebook would determine it is out of sync without reloading another instance of the notebook but perhaps that is not possible.

I am experiencing the same issue but without running jupyterdrive.
I am having a server running in my server, and after changing from one network to another I am having the Invalid Credentials error.
It's funny that even though I lunched a new version of the server I am still having this error.


Adds blank subtitle track to media

I'm running manual.py on windows to batch convert some tv shows, I don't want to download any subtitles but if any exist in the files then I simply want to keep the English ones and have them remain encoded on the file.
So I ran the follow to test it before I batch convert over 100+ files.
python manual.py -i "D:\Input\TV\Series\Season\File.mkv" -a  -nt -nd
Once complete, despite that file not having any subtitles, a subtitle track is added, if I was to enable that subtitle track, I get a timecode (00:00:00.000) at the bottom.
Here is the output from the command line.
D:\Convert>python manual.py -i "D:\Input\TV\The Flash (2014)\Season 01\The Flash 2014 S01E01.mkv" -a -nt -nd
Manual processor started.
D:\Python27\python.exe
Audio bitrate was invalid, defaulting to 256 per channel.
Invalid external subtitle codec mov_text, ignoring.
No valid subtitle formats found, defaulting to 'srt'.
32bit Python.
No-delete enabled
No-tagging enabled
Reading video stream.
Video codec detected: h264.
Pix Fmt: yuv420p.
Video level 4.1.
Reading audio streams.
Audio detected for stream #1: ac3 [eng].
Creating audio stream 0 from source audio stream 1 [iOS-audio].
Audio track is number 0 setting disposition to default
Creating audio stream 1 from source stream 1.
Audio Track is number 1 setting disposition to none
Reading subtitle streams.
{
    "preopts": [
        "-fix_sub_duration"
    ],
    "subtitle": {},
    "format": "mp4",
    "postopts": [
        "-threads",
        "auto"
    ],
    "video": {
        "map": 0,
        "codec": "h264",
        "bitrate": 4000,
        "level": 4.0
    },
    "audio": {
        "0": {
            "map": 1,
            "language": "eng",
            "channels": 2,
            "codec": "aac",
            "disposition": "default",
            "bitrate": 256,
            "filter": null
        },
        "1": {
            "map": 1,
            "language": "eng",
            "channels": 6,
            "codec": "copy",
            "disposition": "none",
            "bitrate": 1536,
            "filter": null
        }
    }
}
Starting conversion.
[######### ] 99%D:\Output\The Flash 2014 S01E01.mp4 created.
Relocating MOOV atom to start of file.

Here are my config settings
[MP4]
ffmpeg = D:\Program Files (x86)\ffmpeg\bin\ffmpeg.exe
ffprobe = D:\Program Files (x86)\ffmpeg\bin\ffprobe.exe
threads = auto
output_directory = D:\Output
copy_to =
move_to =
output_extension = mp4
output_format = mp4
delete_original = False
relocate_moov = True
video-codec = h264,x264
video-bitrate = 4000
video-max-width =
h264-max-level = 4.0
use-qsv-decoder-with-encoder = True
ios-audio = True
ios-first-track-only = True
ios-audio-filter =
max-audio-channels =
audio-codec = ac3, aac
audio-language = eng
audio-default-language = eng
audio-channel-bitrate =
audio-filter =
subtitle-codec = mov_text
subtitle-language = eng
subtitle-default-language = eng
subtitle-encoding =
fullpathguess = True
convert-mp4 = True
tagfile = True
tag-language = en
download-artwork = False
download-subs = False
embed-subs = True
sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles
permissions = 0777
post-process = False
pix-fmt =
aac_adtstoasc = False

Just to add, I'm new, only started using this today but can't figure out why it keeps adding subtitles to files that don't have them, I thought I followed the instructions to the letter and set it up accordingly, I plan on having this run on my server but wanted to batch convert some of my media on my PC as it's a much faster system.
Also subtitle-encoding = is not in the readme but is in te configuration so I was not sure what to do with it, I just left it blank.

What playback program are you seeing a subtitle track in?
Can you post an ffprobe -show_streams output of one of these files that has the empty subtitle track? Based on what you're posting there shouldn't be any blank subtitle tracks

@mdhiggins  it's showing up in VLC, I even checked it with ffprobe and your script seems to add an extra track in the file codec_nam bin_data, it doesn't show on plex or windows media player, but I have my own basic command line script I used that would encode files including any subtitles but it never created an extra track.
index=3
codec_name=bin_data
codec_long_name=binary data
profile=unknown
codec_type=data
codec_tag_string=text
codec_tag=0x74786574
TAG:language=eng
TAG:handler_name=SubtitleHandler

I'm not familiar with python, I'm a novice at vbs, I can code in batch, bash, php and some javascripting but that's about it, so I took a look at some of the code to try and understand it, it appears where you add the subtitle setting in mkvtomp4, there is no clause for if the file doesn't contain subtitles, so it appears that regardless it still adds settings to ffmpeg for subtitles when it should technically be blank.

The subtitle setting by itself doesn't do anything if its empty and wouldn't create any additional parameters in the FFMPEG command line ultimately generated.
The only thing I can think of is that maybe the -fix_sub_duration flag that is by default added to every FFMPEG command may be causing FFMEPG to behave this way. I just pushed an update that will prevent this flag from being added to the final command when there are no subtitles present in the final generated option set. Download the update and give that a try and see if it makes any difference.
Another thing to try/consider as well would be trying a different build of FFMPEG and see if this problem persists across many versions or is perhaps a transient bug that made into your particular build of FFMPEG.

I'm running the command now, I'll report back asap

trying a different build of FFMPEG and see if this problem persists across many versions or is perhaps a transient bug that made into your particular build of FFMPEG.

I built my own FFmpeg using the latest open source, I had a similar issue with the script I wrote in batch, but that was an error on my part, my script was adding subtitles when there were none, which is what I thought the issue was here, but my own script works fine and doesn't add subtitles, the only issue with my script is that it's not as advanced as yours, where now I need a fully automated system to convert my files as they arrive.
Right now I am only testing your script before I implement it, but if omitting -fix_sub_duration resolves the issue then I can go ahead and batch convert a small portion of my files to test on plex before I batch convert all of them and fully automate onto my server.

@mdhiggins  I've tested ffmpeg as far back as February last year, I just downloaded a build instead of compiling my own, and they all have the exact same problem, so I can only assume that the video files have bad chapters, not sure if there is a way to detect such a thing but if that's the case it would explain why the first capture is being encoded as subtitles, only way around this for me at the moment "although I haven't tested it yet, would be to wipe all data from the file, which means no more subtitles, I could remake them with ffmpeg but I don't think I'll need chapters anyway, so I'll just have to learn a bit of python in order to make this script work for me lol, thank you for your time.


Provide a new cli command

Please make sure the below checklist is followed for Pull Requests.

[ ] Travis tests are green

[ ] Tests are added where necessary

[ ] Documentation is added/updated where necessary

[ ] Coding Rules & Commit Guidelines as per our CONTRIBUTING.md document are followed

@sahbi-ktifa
I push my first try to add a custom CLI command. I think all npm links are goods when I try to use it.
Can you take a look on it?

Hi @nonomoho, everything seems to be good to me! Keep going!

Yes but I still have the same error when I try jhipster --blueprint vuejs foo:
INFO! No custom command found within blueprint: generator-jhipster-vuejs
INFO! Using JHipster version installed globally
ERROR! foo is not a known command. See 'jhipster --help'.

Oh, that is related to npm links issues I guess. You have to use npm link on both blueprint and main generator while this is not released

Yes I use npm link on both blueprint. I try it with @hdurix and we doesn't understand what is wrong :disappointed:

Hi @nonomoho
I'm facing with the same issue on a blueprint and a generator (cd-myBlueprint).
There is how I can launch it on my own context:
npm i /Users/aviard/projects/jhipster-myBlueprint/generator-jhipster-myBlueprint
npm link generator-jhipster
jhipster cd-myBlueprint --blueprints c4

my commands.js :
module.exports = {
    'cd-myBlueprint': {
        desc: 'myBlueprint CD generator',
        blueprint: 'generator-jhipster-myBlueprint'
    }
};

Sometimes I can't figure out how npm works :s

Hi @avdev4j
I made some tests last week with @pascalgrimaud:
To make it works you need to run npm link your-blueprint and npm link generator-jhipster  in the directory where you want to create an application. I think it's not a good idea because you will have some conflicts between the generator you linked and the one imported with your blueprint.
I think we need to improve the loading of blueprint's commands and maybe rework https://github.com/jhipster/generator-jhipster/pull/9574.


clang-based generator

Hi,
This is not an issue rather a small improvement.
I found it very annoying to manually type template specialization for custom types so
I've implemented a simple clang-based generator that does it for you.
See https://github.com/w0land/metastuff-clang-generator.
thanks for a great library!

Wow, that's really amazing! I'll add a link to it in readme.
And as I start working on MetaStuff again, I'll probably break some stuff, so I'll be sure to notify you about breaking changes.

By the way, can it work with getters/setters somehow?

@eliasdaler not yet, as I need to figure out how to approach this ;)
Code documentation? What do you think?

I don't think it can be dealt with, to be honest. No way to easily identify which functions are getters/setters for a variable, unless it's specified in comments and then your tool will parse this comments.
But this feels very hacky!


3x CI slowdown

CI runs went from roughly 10mins to 30+ mins.
It's not really clear to me what happened, but the last good commit seems to be 5e6912a9093da6e7a4a511166d15506035f07056

THis has gone down after recent dependency updates. We're back to ~15mins


Barrier of entry

Hey there!
I've been wanting to step up my Rust security game for ages now. Therefore, I just decided to install cargo-crev, but I was immediately reminded as to why I had given up on it during earlier attempts: It doesn't just work. Upon the first step of the tl;dr in the getting started guide, I'm greeted by:
error: failed to run custom build command for `openssl-sys v0.9.75`

Caused by:
  process didn't exit successfully: `C:\Users\LeCyberDucky\AppData\Local\Temp\cargo\target\release\build\openssl-sys-6b7fc20198a5049a\build-script-main` (exit code: 101)
  --- stdout
  cargo:rustc-cfg=const_fn
  cargo:rerun-if-env-changed=X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR
  X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
  OPENSSL_NO_VENDOR unset
  running "perl" "./Configure" "--prefix=C:\\Users\\LeCyberDucky\\AppData\\Local\\Temp\\cargo\\target\\release\\build\\openssl-sys-fc4a11b1e1756f30\\out\\openssl-build\\install" "--openssldir=SYS$MANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-engine" "no-asm" "VC-WIN64A"

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: NotFound, message: "program not found" }', C:\Rust\cargo\registry\src\github.com-1ecc6299db9ec823\openssl-src-111.22.0+1.1.1q\src\lib.rs:488:39
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-crev v0.23.2`, intermediate artifacts can be found at `C:\Users\LeCyberDucky\AppData\Local\Temp\cargo\target`

The documentation at https://docs.rs/cargo-crev/latest/cargo_crev/doc/user/getting_started/index.html refers to the build instructions in case of compilation errors: https://docs.rs/cargo-crev/latest/cargo_crev/doc/user/getting_started/compiling.md
That page doesn't exist. Some Googling has lead me to believe that I need to install OpenSSL to fix things. See this post, for example:
https://www.reddit.com/r/rust/comments/uw5lhg/openssl_wont_compile_on_windows/
There, somebody also mentions that the hassles of OpenSSL could be avoided by using rust-tls instead. Before randomly installing OpenSSL, though, I decided to take a closer look at this repository, so I searched the closed issues for anything relevant, and I ended up finding https://github.com/crev-dev/cargo-crev/issues/372 which I believe is the issue that I'm facing. I haven't read through that issue carefully yet, because I wanted to write this issue before putting it off again.
I gave this project a try again just now, because I was just about to add a dependency to my project that I didn't feel entirely comfortable with. But, in all honesty, when faced with such issues, I'm more likely to just go ahead and add the random dependency than spending my evening trying to fix things. That's how things have gone in the past, and the only difference this time is that I decided to create this issue instead of just shrugging it off again. Now, I'm well aware that this may sound very entitled, but that's not my point at all. My point is just that I'm lazy. And I believe a lot of security issues arise because other people are lazy as well. Therefore, I think it's very unfortunate for such an important project to have such annoyances when trying to get started. I think that making this as user friendly as possible would be very valuable step towards the goal of the project. In that regard, I have three suggestions that I think would be helpful:

Prevent this compilation error from happening.
Document the problem better. If this is a known issue, I think the getting started guide should point it out.
Provide the Windows binaries as zip files (this is minor, but on Windows I can natively unpack zip files. I don't immediately know how to handle the provided tar.gz files).

I apologize in case this issue is completely uncalled for or has already been discussed. I don't currently have the time to do more research, but I have had this experience a couple of times already, and I didn't want to just ignore it again.

I apologize in case this issue is completely uncalled for or has already been discussed. I don't currently have the time to do more research, but I have had this experience a couple of times already, and I didn't want to just ignore it again.

No worries. I know it's a pain.
OpenSSL is a PITA. I wish we could not have to use it, but AFAIK libgit2 can't do rust-tls https://github.com/rust-lang/git2-rs/blob/3e0a6134634f7b5129b6dfeeb0db97ccc9510866/libgit2-sys/Cargo.toml#L33

Provide the Windows binaries as zip files

Noted. I think this shouldn't be too hard to fix. https://github.com/crev-dev/cargo-crev/blob/f44aed147a245d912126ef80f834609fb4641c38/appveyor.yml#L52
Maybe you want to give it a try?

I'm quite busy at the moment, but in about one week from now I should get some more free time. I'll be happy to give it a shot then!

Well, I downloaded 7zip in order to experiment with this. Following this description of the command line interface, I suppose the command should just be
7z a -tzip "${NAME}.zip" "${NAME}"
I think there's something wrong with my 7zip setup, though, because I get an error about an "Unsupported archive type" no matter which archive type I specify here. If I just do 7z a test.zip example.txt, I do get a zip file out, but only 7zip can unzip it again. Windows complains that the archive is broken  ¯\_(ツ)_/¯. Therefore, I'm not sure how to test this further

How about adding this to Cargo.toml?
[features]
default = ["vendored"]
vendored = ["git2/vendored-libgit2", "git2/vendored-openssl"]

Then it should work out of the box and advanced users wishing to dynamically link can still turn them on.
Also if crev is doing only basic git operations maybe it wouldn't be hard to rewrite them in Rust. I've seen a project that can already clone git repos (very fast) so maybe build it on top of that. Or maybe even just run git executable - slower but may work well enough?


Cppan does not work with spaces in user name

cc: @QuantumLiu

The cppan will automatically generate a .cppan folder in C:\Users#YourName#.cppan
Then you can find a file called cppan.yml and a folder called storage inside it. Open it and edit the line
"storage_dir: C:\Users#YouName#.cppan\storage"
to
"storage_dir: C:.cppan\storage"
Next, copy the .cppan folder to your root, which is C:
Maybe it will work.

This still seems to be an issue, Compiling locally to see if i can resolve it. Unless someone else already has a solution?

CMake side is the issue. There are so many unquoted paths there.
You could start it from there.

Please, proceed to sw https://github.com/SoftwareNetwork/sw


Update nvidia runtime to match dockerd upgrade

Tested on a AWS p2 machine

Tested on AWS and local. Merging this to fix edge. Please review when you have time.


Crop images

Description
Endpoint to crop image, not completely working yet. . . .
will continue from heere
Please include a summary of the change and which issue is fixed. Please also include relevant context. List any new dependencies that are required for this change.

Fixes #issueNumber

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no lint warnings

wrong


Add hhvm

Coverage remained the same at 90.494% when pulling 78bfd211bd2f5bd2ff3fde8d8c5e6f9f7dcceda0 on hhvm into 5ddb8efdc1ea6dbee6903b73e16c46446e48778f on master.

Coverage remained the same at 90.494% when pulling 78bfd211bd2f5bd2ff3fde8d8c5e6f9f7dcceda0 on hhvm into 5ddb8efdc1ea6dbee6903b73e16c46446e48778f on master.

Coverage remained the same at 90.494% when pulling 78bfd211bd2f5bd2ff3fde8d8c5e6f9f7dcceda0 on hhvm into 5ddb8efdc1ea6dbee6903b73e16c46446e48778f on master.

Snidel is only supported on PHP.


Fix spy on bounded function

Fixes #38

Coverage remained the same at 93.891% when pulling e2cb1d3811c015e31391934f2dd7eefa3ae77ac6 on andykog:fix-bounded into e0976d4e64377974419cc7da2a022341ce0f6792 on unexpectedjs:master.

This seems like a reasonable fix. @papandreou you have better insights on this code base by now. Does this look alright to you?

Very nice!

Released in 10.7.0.


Updated Readme

Going to reject this, because the changes are already present in the current README.md
Thanks anyway <3


Can I use VideoMamba as a video encoder?

Can I run VideoMamba as a video encoder? I want to feed VideoMamba some videos (custom dataset) and extract the embeddings, such as the feature vectors in the penultimate layer before classification.  If so, do you already have a script to run the model in pure inference, or could you guide me on how to do it?
Thanks!

I am also curious about this part.

I'm also interested about this!

Hi! I think you can directly adapt the evaluation code to do it~


Wallet not syncing

Tried both versions of the wallet on Windows and left it running for 2h...
The program still shows blockchain synchronized: 0.02%
up to 06/11/2016
0 Network Connections.
How to fix this?

@eksterVX
Consult https://github.com/bitcoinz-pod/bitcoinz/issues/1
Fixed it for me (adding active nodes)..


Plugins loaded in Alphabetical order.

Not as much an issue but more of an annoyance. You see because the plugins load in alphabetical order, if you have a plugin that depends on another plugin with a higher priority in terms of alphabetical order than the plugin it is depending on, you will get a error due to the plugin that is being depended on not being found, because the plugin that depends on it is loaded first. Not exactly sure if anyone else has had this happen to them, might just be me, but I thought that posting this would be an alright idea nevertheless.

What would you suggest is a good solution for this? I guess all plugins could have an optional "info" file which lists dependant plugins. Or something along these lines.

Dependent like how? I don't think what you say could cause error unless the plug-in your are trying to import doesn't exist

Some plugins in Houdini can depend on other plugins, by getting their instance like:
self.bot = self.server.plugins["Bot"]
Also: a solution to this would just to reference the dependancy plugin in the dependant plugin's ready method, no?
def ready(self):
    self.bot = self.server.plugins["Bot"]

ready() is invoked once ALL plugins are instantiated.

Fair enough. The way I got over this is by importing all plugins once, then creating instances of each plug-in class by taking account of their dependent plugins first (then call they method in plug-in which has the plug-in it depends on as arguments)
So importing all plugins first should do it, then create instances of it


feat: Felt252Wrapper with SCALE encoding support

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

Feature

What is the current behavior?
At the moment, we are using H256 and U256 types to use Substrate SCALE encoding supported types.
What is the new behavior?
We are now able to pass FieldElement from starknet-rs natively between client and runtime.
Does this introduce a breaking change?
YES
Other information
Madara: quick overview of this type refactoring
SCALE encoding constraint
Madara is using substrate, which is using
SCALE encoding for the
communication between the runtime and the client.
Native types from sp_core have
all those traits implemented.
Here are the traits (as there is few documentation about it) from
the
scale_codec
repository and
scale_info repository where
I found the definition and some implementation examples.
/// SCALE trait.
impl Encode for Felt252Wrapper {
    fn encode_to<T: Output + ?Sized>(&self, dest: &mut T) {
        dest.write(/* write the type in a byte array */);
    }
}

/// SCALE trait. Required to enable `FullEncode`
/// trait, which also support types like &Felt252Wrapper.
impl EncodeLike for Felt252Wrapper {}

/// SCALE trait.
impl MaxEncodedLen for Felt252Wrapper {
    /// Max size known in our case.
    fn max_encoded_len() -> usize {
        32
    }
}

/// SCALE trait.
impl Decode for Felt252Wrapper {
    fn decode<I: Input>(input: &mut I) -> Result<Self, Error> {
            let mut buf: [u8; 32] = [0; 32];
            input.read(&mut buf)?;

            // decode the type from byte array.
    }
}

/// SCALE trait.
impl TypeInfo for Felt252Wrapper
{
    type Identity = Self;

    // Define type info
    fn type_info() -> Type {
        Type::builder().path(...)
    }
}

Starknet felt252
For Starknet, we have a felt252 type which is know into several library
like FieldElement in
starknet-rs
, StarkFelt in
starknet-api
and finally Felt252Wrapper in
Madara
.
The latter being the wrapper we want to adapt for SCALE encoding.
For now, it's using U256 under the hood as this type is provided by
substrate and thus implements all SCALE encoding traits.
Madara is composing with all those implementations, each one in different
part of Madara.
First question here: Is this possible to homogenize the felt252
implementation or their use is to different?
Because we use starknet-rs under the hood for cryptography computation as
commitments
and hashes in the same module.
For starknet-api, it seems to be related to the cairo-vm stuff. But some
methods interesect starknet-rs (for computing class hash for instance).
But I don't have enough background to give more insights here.
Types rework
This second rework, after the one done by @EvolveArt, is proposing
the use of FieldElement from starknet-rs as the value passing via
SCALE encoding between client and runtime.
However, as we also use StarkFelt, we still need at some places
to convert back to bytes array. Which is I think disminuing the possible
performance improvment from SCALE encoded FieldElement.
Anyway, for code refactoring, it's helping as convertions are easier
for every place that derives from FieldElement, which is at least
the runtime output to then go out for RPC responses.

I pushed the PR to give @EvolveArt an overview of the refacto.
Except linters, I have an error related to the encoding. The sender_address on invoke transaction is 0x8000000000000000000000000000000000000000000000000000000000000000, which is out of range.
It's good we can't pass out of range value, now I have to find why.

To add some context:
When we want a felt from an array of bytes or U256, we always have to ensure that there is no overflow -> Felt252Wrapper::try_from(...).
The same applies to the two methods from strings (hex and decimal), where we have to ensure
no invalid characters are passed, or out of range again.
Felt252Wrapper::from_hex_be("0x1")
Felt252Wrapper::from_dec_str("1234")
Where overflow can't happen, if when we convert from u128 or an other felt implementation.
Felt252Wrapper::from(1991_u128)
Felt252Wrapper::from(FieldElement::ZERO)

@tdelabro @EvolveArt @ClementWalter I have tried to make a new revision with all your comments. Let me know if there is something missing.
I am still trying to understand why the tests are failing. It looks like the extrinsic is well submitted, but not added to the block. Is there something to force the execution of transaction in the mempool that is not happening?
I am still discovering TS testing with mocha and polkadot.js, I'll continue to hard try on that to understand how to fix it. If someone has ideas or knowledge, very welcome!
Sorry for not being to solve this more quickly, I'll do my best.


Support recursive type mappings

One thing that is currently missing is the ability to recursively resolve and/or generate schemas within a type mapping, akin to using { "$ref": "..." } within an actual schema definition. This obviously has significant overlap with mapping open generic types,  #1600 sort of takes a stab at this but only addresses cases where the schema for type parameters is known or can be ignored.
What is probably needed is a MapType overload with a context object that you can use to recursively resolve or generate additional schemas. Consider mapping an option type as an array:
interface ITypeMappingContext {
  ImmutableList<Type> TypeParameters { get; }
  OpenApiSchema SchemaFor(Type tpe);
  OpenApiSchema SchemaFor<T>() => ExampleFor(typeof(T));
  IOpenApiAny ExampleFor(Type tpe);
  IOpenApiAny ExampleFor<T>() => ExampleFor(typeof(T));
}

options.MapType<Option<>>(context => new OpenApiSchema {
  Type = "array",
  Items = context.SchemaFor(context.TypeParameters[0]),
  Example = new OpenApiArray { context.ExampleFor(context.TypeParameters[0]) }
});

Interestingly you can get pretty close using an ISchemaFilter because the SchemaFilterContext has most of what you need for re-entry. This approach appears to work with the caveat that the application hangs after (successfully) generating the first swagger and I have not been able to determine why:
class MySchemaFilter : ISchemaFilter {
  public void Apply(OpenApiSchema schema, SchemaFilterContext context) {
    var schemaId = GetSchemaId(context.Type);

    // Force registration of the schema
    context.SchemaRepository.GetOrAdd(context.Type, schemaId, () => GenerateSchema(_mapping, context));

    if(context.SchemaRepository.Schemas.TryGetValue(schemaId, out var registered) && !registered.Extensions.ContainsKey(MARK)) {
      context.SchemaRepository.Schemas[schemaId] = GenerateSchema(_mapping, context);
    }
  }

  private OpenApiSchema GenerateSchema(? mapping, SchemaFilterContext context) {
    // Recursive schema generation with re-entry using SchemaRepository.GetOrAdd
    var schema = ???;
    schema.Extensions[MARK] = new OpenApiObject();
    return schema;
  }
}

@domaindrivendev sorry to ping you but I wanted to follow up on this as I did manage to get this working, albeit in a very hacky way and with the caveat that I have not found a way to clean up junk schemas created by the initial generation process. I have removed my previous message because it was not adding anything to the discussion at this point.
I am hesitant to attempt a fix in the form of a pull request as it would likely involve substantial changes to the schema generation and mapping process.
The main problems with the existing schema mapping mechanism is that it fails to provide:

context information,
a means of re-entry into the schema generation process,
control over whether mapped schemas are inlined or referenced, and
control over the types accepted by a mapping (without explicitly registering all subtypes which may
or may not be known).

There is also some odd behavior in the SchemaGenerator, as it only checks for the existence of a registered schema after deciding whether or not a given type should be emitted as a reference.
The following class implements custom recursive/generic type mappings by implementing both the ISchemaFilter and IDocumentFilter interfaces, which actually provides most of what you need if you can tolerate the requisite contortions.
In my case a TypeMapping is a System.Text.Json.Serialization.JsonConverter which can also generate a OpenApiSchema, but for the purposes of this discussion it's close enough to an idealized ISchemaMapping interface.
public interface TypeMapping {
  bool CanConvert(Type type);
  OpenApiSchema GetSchema(SchemaMappingContext context);

  public interface SchemaMappingContext {
    Type Type { get; }
    OpenApiSchema SchemaFor(Type type);
  }
}

public class TypeMappingSwaggerFilter : ISchemaFilter, IDocumentFilter {
    private const string MAPPED_SCHEMAID_PREFIX = "__MAPPED__:";
    private const string MAPPEDTYPE_EXTENSION = "x-mappedType";

    public static string GenerateSchemaId(Type type) => string.Concat(
        type.FullName.Split("`")[0].Replace("+", "."),
        type.IsGenericType ? type.GenericTypeArguments.Select(GenerateSchemaId).MkString("<", ",", ">") : ""
    );

    private readonly TypeMapping[] _typeMappings;

    public TypeMappingSwaggerFilter(IEnumerable<TypeMapping> mappings) {
        _typeMappings = mappings.ToArray();
    }

    public void Apply(OpenApiSchema schema, SchemaFilterContext context) {
        if(schema.Extensions.ContainsKey(MAPPEDTYPE_EXTENSION))
            return;

        foreach(var typeMapping in _typeMappings.FirstOption(m => m.CanConvert(context.Type))) {
            ApplyMappedType(schema, context, typeMapping);
        }
    }

    public void ApplyMappedType(OpenApiSchema schema, SchemaFilterContext context, TypeMapping typeMapping) {
        var schemaId = GenerateSchemaId(context.Type);

        // Swashbuckle.AspNetCore.SwaggerGen.SchemaGenerator uses conventions to determine whether or not schemas
        // should be referencable, while in practice any custom mapping should result in a registered schema.
        // If the SchemaGenerator created an inline schema, we need to register the schema ourselves.
        if(!context.SchemaRepository.TryLookupByType(context.Type, out var referenceSchema))
            context.SchemaRepository.RegisterType(context.Type, schemaId);

        // If this is an inline schema, we also need to replace the schema with a reference.
        // We can't actually tell whether or not this is the case (a) because we registered the schema ourselves,
        // and (b) the SchemaGenerator only checks if there is a registered schema if its conventions would cause
        // the type to be handled as a reference in the first place, so this filter will run for every occurrence
        // of an inline type.
        // At this point the schema is either an inline schema or the unmapped definition for a reference schema,
        // so we can safely transform it into a reference in both cases.
        referenceSchema ??= new OpenApiSchema { Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = schemaId } };
        CopySchemaFieldwise(referenceSchema, schema);

        // The SchemaGenerator adds generated schemas to the repository using Dictionary.Add AFTER filters are
        // applied, so to avoid duplicate key exceptions we prefix the schema ids of our mapped schemas so that
        // we can identify and rename them by implementing IDocumentFilter as a cleanup phase.
        var prefixedSchemaId = string.Concat(MAPPED_SCHEMAID_PREFIX, schemaId);
        if(!context.SchemaRepository.Schemas.ContainsKey(prefixedSchemaId))
            context.SchemaRepository.Schemas[prefixedSchemaId] = GenerateMappedSchema(context.Type, typeMapping, context);
    }

    public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context) {
        // Search for prefixed mapped schemas and replace the corresponding generated schemas.
        var mappedEntries = context.SchemaRepository.Schemas.Where(e => e.Key.StartsWith(MAPPED_SCHEMAID_PREFIX)).ToList();
        foreach(var entry in mappedEntries) {
            context.SchemaRepository.Schemas.Remove(entry.Key);
            context.SchemaRepository.Schemas[entry.Key.Substring(MAPPED_SCHEMAID_PREFIX.Length)] = entry.Value;
        }
    }

    private static OpenApiSchema GenerateMappedSchema(Type type, TypeMapping mapping, SchemaFilterContext context) {
        var schema = mapping.GetSchema(new TypeMapping.SchemaMappingContext(type, SchemaProvider));

        schema.Extensions[MAPPEDTYPE_EXTENSION] = new OpenApiBoolean(true);
        return schema;

        // Provides the TypeMapping with a point of re-entry into the schema mapping process.
        OpenApiSchema SchemaProvider(Type type) =>
            // Check if there is a registered schema for this type, as GenerateSchema does not.
            context.SchemaRepository.TryLookupByType(type, out var referenceSchema)
            ? referenceSchema
            : context.SchemaGenerator.GenerateSchema(type, context.SchemaRepository);
    }

    private static void CopySchemaFieldwise(OpenApiSchema from, OpenApiSchema to) {
        var fields = typeof(OpenApiSchema).GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
        foreach(var field in fields)
            field.SetValue(to, field.GetValue(from));
    }
}

This can produce exciting schemas like the following:
"MyProject.Option<MyProject.Option<MyProject.Models.UserPrincipal>>": {
  "maxItems": 1,
  "type": "array",
  "items": { "$ref": "#/components/schemas/MyProject.Option<MyProject.Models.UserPrincipal>" }
},
"MyProject.Models.UserPrincipalSearchCriteria": {
  "type": "object",
  "properties": {
    "searchText": {
      "type": "string",
      "nullable": true
    }
  }
},
"MyProject.Models.SearchCriteria<MyProject.Models.UserPrincipalSearchCriteria>": {
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "$req": { "$ref": "#/components/schemas/MyProject.Models.UserPrincipalSearchCriteria" }
      }
    },
    {
      "type": "object",
      "properties": {
        "$not": { "$ref": "#/components/schemas/MyProject.Models.SearchCriteria<MyProject.Models.UserPrincipalSearchCriteria>" }
      }
    },
    {
      "type": "object",
      "properties": {
        "$and": {
          "type": "array",
          "items": { "$ref": "#/components/schemas/MyProject.Models.SearchCriteria<MyProject.Models.UserPrincipalSearchCriteria>" }
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "$or": {
          "type": "array",
          "items": { "$ref": "#/components/schemas/MyProject.Models.SearchCriteria<MyProject.Models.UserPrincipalSearchCriteria>" }
        }
      }
    }
  ]
}


add .github/ folder to npmignore

Changes:

add .github/ folder to npmignore

Context:
This should prevent publishing the contents of the .github/ folder when you create a new release with npm.

That folder is needed for Github Actions, between other things.

Nevermind, was thinking on gitigore.


Resizing images

Hello, thanks for the package, it is very easy to use.
My question, has anyone implemented any image resizing package, I took a look at the sharp (http://sharp.pixelplumbing.com/en/stable/api-resize/) but I find nothing of how to make it work along with or formidable.
If anyone knows anything, it's already a great help.
Thank you.

I'm using this: https://github.com/oliver-moran/jimp

Aaah, I forgot to respond, hehe.
In the end I used the same Jimp, I created a middleware to do the job, :)


Copy the modules and unlock them

Hi, to be able to use composite DSC resources I had to copy them to the program files \ modules folder. This is the only way I could get it to work.

Hi Matt, I added a sample DSC script with composite DSC resource.

Thanks Jonne, this is much appreciated. I'll take a look at this over the next few days and run it by a few colleagues.

Hi Jonne,
I have taken a look at this PR. Correct me if I'm wrong, but doesn't the current example already show the use of a Composite resource? The SimpleWebsite Configuration in the MyWebApp Module is a Composite resource used by the MyWebsite.ps1 manifest in much the same way as the CommonConfigModule.ps1 of your PR.
For me, I am able to vagrant up with this configuration with no problems. Are you using a different OS or WMF version? Perhaps the issue is portability across different Windows setups?

You are right, I didn't have the latest version, sorry for that. However if i try to run the latest version i get the following error:
The following WinRM command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mkdir c:\ -force
if ($?) { exit 0 } else { if($LASTEXITCODE) { exit $LASTEXITCODE } else { exit 1 } }
Stdout from the command:
Stderr from the command:
#< CLIXML
System.Management.Automation.PSCustomObjectSystem.Object1<PR N="Record"

Preparing modules for first use.0-1-1Completed-1 </
PR>mkdir : The path is not of a legal form.x000D__x000AAt line:1 char:1_x000D
x000A+ mkdir c:\ -force_x000D__x000A+ ~~~~~~~~~~~~~~~~x000D__x000A    + CategoryInfo          : InvalidArgument: (C::String) [New-Item], Argume x000D__x000A   ntEx
ception_x000D__x000A_    + FullyQualifiedErrorId : CreateDirectoryArgumentError,Microsoft.PowerShel x0
00D__x000A   l.Commands.NewItemCommand_x000D__x000A_ x000D__x000A

Hi Jonne, no worries at all.
Please see PR #13 for the latest changes, including a couple of bug fixes and the suggestion of yours in this PR to 'unblock' modules in advance.
For better tracking, of your specific problem, I've migrated the defect to issue #14.
For now, I will close this PR whilst we address the issue.


fix(witness): collect witness using sparse trie

Description
Closes https://github.com/paradigmxyz/reth/issues/12859

Verified this fixes the provided test case! I can open a PR with my test case if you want, but I wonder if we can fuzz it more generally:

insert some random values
generate witness inserting and deleting some of those values
verify that we can compute the new state root with only the witness

We could probably utilize the sparse tree implementation to do 3. Let me know if this makes sense and I'll work on creating a test like this, otherwise, I can just add the more simple test.


Problems with toogle Angular Material --> sidenav

I've a problem with sidenav, with the property "toogle" of md-sidenav
I've this code:
<md-sidenav-container class="example-container">
  <md-sidenav #sidenav class="example-sidenav">
    Jolly good!
  </md-sidenav>

  <div class="example-sidenav-content">
    <button type="button" md-button (click)="sidenav.toggle()">
      Open sidenav
    </button>
  </div>
</md-sidenav-container>

When I click to button with "toogle" function, sidenav doesn;t work, and my console is write:
AppComponent.html:7 ERROR TypeError: jit_nodeValue_8(...).toggle is not a function
at Object.eval [as handleEvent] (AppComponent.html:7)
at handleEvent (core.es5.js:12004)
at callWithDebugContext (core.es5.js:13465)
at Object.debugHandleEvent [as handleEvent] (core.es5.js:13053)
at dispatchEvent (core.es5.js:8602)
at core.es5.js:9213
at HTMLButtonElement. (platform-browser.es5.js:2651)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Object.onInvokeTask (core.es5.js:3881)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
this is my package.json
{
  "name": "food-calc",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^4.3.5",
    "@angular/common": "^4.0.0",
    "@angular/compiler": "^4.0.0",
    "@angular/core": "^4.0.0",
    "@angular/forms": "^4.0.0",
    "@angular/http": "^4.0.0",
    "@angular/material": "^2.0.0-beta.8",
    "@angular/platform-browser": "^4.0.0",
    "@angular/platform-browser-dynamic": "^4.0.0",
    "@angular/router": "^4.0.0",
    "core-js": "^2.4.1",
    "rxjs": "^5.1.0",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@angular/cli": "1.2.1",
    "@angular/compiler-cli": "^4.0.0",
    "@angular/language-service": "^4.0.0",
    "@types/jasmine": "~2.5.53",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "~6.0.60",
    "codelyzer": "~3.0.1",
    "jasmine-core": "~2.6.2",
    "jasmine-spec-reporter": "~4.1.0",
    "karma": "~1.7.0",
    "karma-chrome-launcher": "~2.1.1",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.1.2",
    "ts-node": "~3.0.4",
    "tslint": "~5.3.2",
    "typescript": "~2.3.3"
  }
}

Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.

I do have the same issue. How to clear those console errors?

I have the same issue, is there a bug created for this? if so any time line or status?


[AWS + graphql] Add registered users to database

Currently log in & sign up are handled by Amazon Cognito, where our users are resided in the user pool there. We want to add the user to our database once he/she registered successfully.

Found some resources on this topic:
https://github.com/vbudilov/cognito-to-dynamodb-lambda
https://aws.amazon.com/blogs/mobile/build-a-user-settings-store-with-aws-appsync/

https://stackoverflow.com/questions/55722489/how-to-connect-to-aws-appsync-using-cognito-identity-pools-and-amplify
Looks like you can add both an IAM role and a Cognito User Pool to for an AppSycn API's authentication method. I think this will serve our purpose?

https://stackoverflow.com/questions/55722489/how-to-connect-to-aws-appsync-using-cognito-identity-pools-and-amplify
Looks like you can add both an IAM role and a Cognito User Pool to for an AppSycn API's authentication method. I think this will serve our purpose?

Currently we use API key for Appsync API authentication since we want non-logged in users be able to play games also

https://medium.com/@dabit3/tackling-user-authorization-in-graphql-with-aws-appsync-7886aef60b4a
Implementation example of using identity token to restrict database access

Created post confirmation lambda trigger for our Cognito user pool. Users will be added to our User table automatically after they registered successfully.


add anti math style warnings

You may need to remove the examples that produce this warning.
But also, I wonder if these warning are necessary?

I guess probably not in Uiua's current state. I just hope for a Uiua with suggestions like clippy one day.


(WIP) Improving out of box experience for data source

Fixes #246
Bump up default parallelism to 1500, to handle large upserts
Add docs on s3 confuration & tuning tips with tested spark knobs
Fix bug to not duplicate hoodie metadata fields when input dataframe is another hoodie dataset
Improve speed of ROTablePathFilter by removing directory check
Move to spark-avro 4.0 to handle issue with nested fields with same name
Keep AvroConversionUtils in sync with spark-avro 4.0

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


Add new dev script to create ./kube/config from microk8s.config

Each time microk8s is started, it's IP address can change.
We need to write this configuration data to .kube/confit for kubectl to function correctly with mikrok8s.
Since skaffold uses kubectl, the make process will fail without a proper configuration.
Adding a script will be a convince for developers.
We provide directions on how

complete on demo fixes branch


Switch to Sidekiq Scheduler from whenever

Not reliant on Cron, distributed, better.
https://github.com/moove-it/sidekiq-scheduler

fixed in a5f644eacf321acdf064e4655f05ba72f13c31b9


Using mutate with optimisticData: typescript is giving me a hard time

Edit: Posted this as an issue as well as it seems that the types in the library are wrong
Hi there,
Was just upgrading from 1.x to 2.x. I love the Optimistic UI approach, it's removing a lot of our boilerplate. I have one issue though, related to typescript.
I'm using swr like this:
const useRequest = <Data = any, Error = unknown>(
  request: GetRequest | null,
  {
    fallbackData,
    revalidateOnEvent = null,
    shouldFetch = true,
    ...config
  }: Config<Data, Error> = {},
): Return<Data, Error> => {
  const {
    data: response,
    error,
    isValidating,
    mutate,
  } = useSWR<AxiosResponse<Data>, AxiosError<Error>>(
    shouldFetch ? request && JSON.stringify(request) : null,
    () => {
      const axiosConfig = api.getAxiosConfig() as unknown as AxiosRequestConfig;

      return api.axios({
        ...axiosConfig,
        ...request,
        headers: {
          ...axiosConfig.headers,
          ...request?.headers,
        },
      });
    },
    {
      revalidateOnMount: true,
      ...config,
      fallbackData: fallbackData && {
        status: 200,
        statusText: 'InitialData',
        config: request as AxiosRequestConfig,
        headers: {},
        data: fallbackData,
      },
    },
  );

Basically telling that we receive an AxiosResponse with a generic Data type inside it's data key. That's all good. Because of this, mutate is automatically inferred to this type:
const mutate: (data?: AxiosResponse<NotificationSettingApiResponse, any> | Promise<AxiosResponse<NotificationSettingApiResponse, any>> | MutatorCallback<...> | undefined, opts?: boolean | ... 1 more ... | undefined) => Promise<...>

And I mutate like this:
  const updateNotificationStatus = useCallback(
    async (isEnabled: boolean) => {
      await api.post('/direct-post/notification', {
        coinId: asset.id,
        isEnabled: isEnabled,
      });
    },
    [asset.id],
  );

  const handleEnableNotifications = useCallback(
    async (enabled: boolean) => {
      await mutate(updateNotificationStatus(enabled), {
        optimisticData: (response) => {
          if (!response) {
            return;
          }

          return {
            ...response,
            data: {
              ...response.data,
              notificationSetting: {
                ...response.data?.notificationSetting,
                isEnabled: enabled,
              },
            },
          };
        },
        populateCache: false,
        revalidate: true,
      });
    },
    [mutate, updateNotificationStatus],
  );

Code works perfectly, gets rolled back on error, all good. It's just that typescript is complaining that updateNotificationStatus is returning a Promise<void> whilst it expects Promise<AxiosResponse<NotificationSettingApiResponse, any>>
Anyone has found a way to tell typescript this is fine? Because if you set populateCache: false, it doesn't matter what updateNotificationStatus returns, it's not used anyway.
Hope this was clear 😅
Originally posted by @svenlombaert in https://github.com/vercel/swr/discussions/2358

@shuding I checked out https://pkg.csb.dev/vercel/swr/commit/b4df51d9/swr and indeed now, the updaterFn doesn't trigger TS errors anymore when I explicitly return undefined from it.
I do have a second issue, is there a reason why optimisticData can't be undefined? I have a pattern like this:
const updateNotificationStatus = useCallback(
    async (isEnabled: boolean) => {
      await api.post('/direct-post/notification', {
        coinId: asset.id,
        isEnabled: isEnabled,
      });

      return undefined;
    },
    [asset.id],
  );

  const handleEnableNotifications = useCallback(
    async (enabled: boolean) => {
      try {
        await mutate(updateNotificationStatus(enabled), {
          optimisticData: (response) => {
            if (!response) {
              return undefined;
            }

            return {
              ...response,
              data: {
                ...response.data,
                notificationSetting: {
                  ...response.data?.notificationSetting,
                  isEnabled: enabled,
                },
              },
            };
          },
          populateCache: false,
          revalidate: true,
        });
      } catch (e) {
        ErrorHandler.catch(e);
      }
    },
    [mutate, updateNotificationStatus],
  );

response inside the optimisticData function can be undefined, which means I can't mutate the response, thus I just want to return undefined again. Currently typescript throws an error on that because it expects an actual AxiosResponse

Is there an update on this? We're facing the exact same issue where we're unable to return undefined.
        optimisticData: (currentData) => {
          if (!currentData) {
            return undefined;
          }

          return {
            ...currentData,
            messages: currentData?.messages.map((message, index) => {
              if (index === currentData.messages.length - 1) {
                return {
                  ...message,
                  content: messageContent,
                };
              }

              return message;
            }),
          };
        },

However, not doing the initial check also throws a TS error since it's saying that currentData can be undefined. For now we're forced to add a @ts-ignore which never feels good.


resolve all changes and do as per instructor said

Related Issue

Info about Issue or bug

Fixes: #649
Describe the changes you've made
solved all bugs in the statistic calculator.
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.

Screenshots

Original
Updated

original screenshot
updated screenshot

@nik132-eng can u work on the reset button issue in statistic calculator? On clicking reset the fields are not reset as in other calculators.