installation pb   versus  python

luis@luis-ThinkPad-E570:~$ sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   384  100   384    0     0    678      0 --:--:-- --:--:-- --:--:--   678
luis@luis-ThinkPad-E570:~$ sudo chmod a+rx /usr/local/bin/youtube-dl
luis@luis-ThinkPad-E570:~$ youtube-dl 'https://www.youtube.com/watch?t=4&v=BaW_jenozKc'
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading player 43bc9526
ERROR: BaW_jenozKc: Traceback (most recent call last):
File "/home/luis/.local/lib/python3.8/site-packages/youtube_dl/extractor/youtube.py", line 1434, in _n_descramble
self._player_cache[player_id] = self._extract_n_function(video_id, player_url)
File "/home/luis/.local/lib/python3.8/site-packages/youtube_dl/extractor/youtube.py", line 1407, in _extract_n_function
funcname = self._extract_n_function_name(jscode)
File "/home/luis/.local/lib/python3.8/site-packages/youtube_dl/extractor/youtube.py", line 1394, in _extract_n_function_name
return self._search_regex(
File "/home/luis/.local/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 1012, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player n function name\x1b[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
luis@luis-ThinkPad-E570:~$

Checklist

[ ] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.12.17
[ ] I've checked that all provided URLs are alive and playable in a browser
[ ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ ] I've searched the bugtracker for similar bug reports including closed ones
[ ] I've read bugs section in FAQ

Verbose log

PASTE VERBOSE LOG HERE

Description

WRITE DESCRIPTION HERE

[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.8.10 (CPython) - Linux-5.4.0-189-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7, rtmpdump 2.4

Finaly, the solución is to install the new version 2024.08.06-1
Following https://forums.linuxmint.com/viewtopic.php?t=417452
That means uninstall 2<IP_ADDRESS>  version and to get the new one add new repository:
sudo add-apt-repository ppa:tomtomtom/yt-dlp    # Add ppa repo to apt
sudo apt update                                 # Update package list
sudo apt install yt-dlp                         # Install yt-dlp
After that everything runs ok.


adding dco.txt

Signed-off-by: Ramesh Reddy<EMAIL_ADDRESS>

removed the verbiage of semantic/atomic commits, Also left out merge commit, only left submit single squashed commit for PR before merging as guideline.

@MikeEdgar you may have to merge as I do not have merge privileges


UrlResolutionTagHelper does not handle srcset attributes correctly

UrlResolutionTagHelper shorts out if the URL being parsed in does not start with "~/", however for img and source tags using the srcset attribute, the URL may not always be at the beginning. E.g:
<img src="~/logo.png" srcset="~/logo.png 1x<EMAIL_ADDRESS>2x" />

Expected result:
<img src="logo.png" srcset="logo.png 1x<EMAIL_ADDRESS>2x" />

Actual Result:
<img src="logo.png" srcset="logo.png 1x<EMAIL_ADDRESS>2x" />

Moving this to backlog.
My recommendation would be to use  as a workaround.
The actual fix for this is I think a bit more complex than the associated PR because it has to properly parse the full syntax as opposed to just splitting on commas. It has to split on commas, then also on the first space, and resolve only the URL portion (and not pass the optional specifier to the URL resolution logic).

@Eilon All good, I was scratching my own itch.
In the case where encodeWebRoot is true, the full app path just chops off ~/ and prefixes the application path, so that should be OK. However when it's false, the URL and specifier do get passed to Url.Content and I'm not sure on the full impact there. All the tests pass but I didn't dig any deeper.
Anyway, glad this feature is on the radar now that all modern browsers support srcset.

Yeah it's a good feature to have, for sure. Thinking about it again, if you want to update the PR with the updated parsing logic then we could certainly re-evaluate. We're trying to focus on just code stability and not features so that's why I closed it earlier, but now that I think about it again, this is important from a standards compatibility perspective.

Hi @Eilon, dredging this one back up and am looking to re-implement, obviously a fair bit of cheese has been shuffled around since then.

"Thinking about it again, if you want to update the PR with the updated parsing logic then we could certainly re-evaluate."

"The actual fix for this is I think a bit more complex than the associated PR because it has to properly parse the full syntax as opposed to just splitting on commas. It has to split on commas, then also on the first space, and resolve only the URL portion (and not pass the optional specifier to the URL resolution logic)."

Digging into the URL resolution logic, I can't see any issue with passing more than the URL, as all it does is send back the application path and the URL with the leading ~ removed. Relevant bits:
https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc.Core/Routing/UrlHelper.cs#L197
Seems we can avoid doing any more in-depth parsing?

@ctolkien unfortunately that just happens to be the current implementation. I've seen apps where the URL resolution logic is overridden to support more advanced scenarios (e.g. CDNs, other custom lookups, etc.), so I don't think it's safe to assume it's just simple logic with the ~ char...

Somewhat related, asp-append-version="true" also does not apply to srcset on img tags.


Unable to upload a file in create version

Observed/problematic behavior
Unable to create version using an uploaded file. External URL worked but not uploading directly. File seems to have disappeared when I went back to the page shortly after completing the rest of the version information.
Expected behavior
Expected the file to upload and stay throughout the duration of the version update being written and posted
Steps to reproduce
Create a version on your project, upload a file, try to save/publish the version and it won't work
Other

MiniDigger | Martin — Today at 09:33
Make an issue, I need to look at that flow anyway because of file size system
Somebody tried uploading a 25mb jar and undertow wasn't happy about it 😂

lemme summaries my thoughts here so I don't forget til next week:

files are kept for 30min, LOCALLY
if instance count > 1, it becomes a gamble if your first request to upload the file and the second request to create the version both hit the same instance
only option is we need to move pending files into s3 too

Possibly probably fixed by https://github.com/HangarMC/Hangar/commit/e3520d55783fff698e09dba44d53f18fea4bbb85

Possibly probably fixed by e3520d5

It allows me to upload a file if I fill out the form at lightspeed thereafter :)
There still seems to be a very fast expiry on the file upload

Expiry is days now, what exactly do you see?

The default branch is staging at hangar.papermc.dev; only once the master branch is rebased do you see these fixes on our main site

Thanks, I was using the production branch, I'll check if it's fixed on my end soon

Confirmed resolved on my end. Thanks guys!


Code for Edit Distance problem in Dynamic Programing

Is your feature request related to a problem? Please describe.
Yes, my code is related to the famous dp problem edit distance which somehow hasn't been added to this repository.
Describe the solution you'd like
I would like to add the c++ code for Edit Distance to the repository under the folder DP. I have already raised a PR for it.
Describe alternatives you've considered
Iterative dp may be a better option in some cases, but the overall time complexity remains the same.
Additional context
Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2.

your pr was reviewed and some changes were required before merging it.
pls do look into it

if you still have any doubts pls continue else the issue will be closed after 24 hrs of inactivity.

No more doubts. Thanks for the clarification. Working on the request.
Thanks !


NEWS: add v3.1.10, v3.2.3

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@858938e). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #8265   +/-   ##
=========================================
  Coverage          ?   76.32%
=========================================
  Files             ?      346
  Lines             ?    26995
  Branches          ?        0
=========================================
  Hits              ?    20605
  Misses            ?     4911
  Partials          ?     1479

Continue to review full report at Codecov.

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

@heyitsanthony All fixed. PTAL.


refreshing every time because of zone interfaces

My firewalld is getting refresh on every run:
# puppet agent --verbose --no-daemonize --onetime
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for ????.????.????.????
Info: Applying configuration version '1499432079'
Notice: /Stage[main]/Firewalld/Firewalld_zone[public]/interfaces: interfaces changed [] to 'vlan3000'
Info: /Stage[main]/Firewalld/Firewalld_zone[public]: Scheduling refresh of Exec[firewalld::reload]
Notice: /Stage[main]/Firewalld/Firewalld_zone[trusted]/interfaces: interfaces changed [] to 'vlan1000'
Info: /Stage[main]/Firewalld/Firewalld_zone[trusted]: Scheduling refresh of Exec[firewalld::reload]
Notice: /Stage[main]/Firewalld/Exec[firewalld::reload]: Triggered 'refresh' from 2 events
Notice: Applied catalog in 8.67 seconds

My hiera is like this:
firewalld::zones:
  public:
    interfaces:
      - vlan3000
    ensure: present
    target: 'DROP'
    purge_rich_rules: true
    purge_services: true
    purge_ports: true
  trusted:
    interfaces:
      - vlan1000
    ensure: present

[root@???? ~]# /usr/bin/firewall-cmd --permanent --zone=public --list-interfaces

[root@???? ~]# /usr/bin/firewall-cmd --zone=public --list-interfaces
vlan3000

relates to: https://github.com/firewalld/firewalld/issues/195

Probably we should parse this from NetworkManager:
# nmcli -f name -c no -t con show | xargs nmcli -t -f connection.interface-name,connection.zone con showconnection.interface-name:vlan1000
connection.zone:trusted

connection.interface-name:vlan3000
connection.zone:public

connection.interface-name:em1
connection.zone:--

connection.interface-name:em2
connection.zone:--

connection.interface-name:vlan4000
connection.zone:--

I'll confirm I have the same issue.  My zone interface assignments are coming from facts.d.  My facts.d file is populated by a script run at provision of my systems.  So on the Puppet server, in my hiera files, I have every firewalld::zones: interface configuration populated with this facter variable.  Everytime the agent runs it does a firewalld reload for each interface.
i.e.:
Info: /Stage[main]/Firewalld/Firewalld_zone[mgmt]: Scheduling refresh of Exec[firewalld::reload]
I see you accepted the bug, and I'm not sure if that makes much of a difference but I wanted to note it here for your consideration.  Thank you.

@trunet The firewalld issue you mentioned is resolved in a fairly widely available release - is this still a valid issue against the puppet module or can this ticket be closed now?

Hello, just deployed latest 3.3.2 version, but the problem is still there:
# puppet agent --verbose --onetime --no-daemonize
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for ????.????.????.????
Info: Applying configuration version '1501835418'
Notice: /Stage[main]/Firewalld/Firewalld_zone[public]/interfaces: interfaces changed [] to 'vlan3000'
Info: /Stage[main]/Firewalld/Firewalld_zone[public]: Scheduling refresh of Exec[firewalld::reload]
Notice: /Stage[main]/Firewalld/Firewalld_zone[trusted]/interfaces: interfaces changed [] to 'vlan1000'
Info: /Stage[main]/Firewalld/Firewalld_zone[trusted]: Scheduling refresh of Exec[firewalld::reload]
Notice: /Stage[main]/Firewalld/Exec[firewalld::reload]: Triggered 'refresh' from 2 events
Notice: Applied catalog in 9.09 seconds

@trunet - sorry - to clarify - the link you gave to https://github.com/firewalld/firewalld/issues/195 says that this is an issue that is fixed in a widely available release of firewalld itself, not this module....  So should this be considered an issue for the module or is the recommended fix to upgrade firewalld?

ahh, I see... yes, my firewalld is fully updated but the issue is still there on this module. I think the fix should be done on the module because I'm unaware how firewalld will deal with this.

@trunet - can you confirm what OS version you are running (and with what version of the firewalld package)

cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
rpm -qa firewalld
firewalld-<IP_ADDRESS>-8.1.el7_3.3.noarch

@trunet comments on #159 ?

@crayfishx - I just hit this issue the other day on rhel. After doing some research, and going through some official documentation, it looks like the expected behavior for zone bindings for devices controlled by network manager is to not apply changes to the firewalld configuration. This is an excerpt from the security guide:

All options to change the zone binding for interfaces that are under control of NetworkManager are forwarded to NetworkManager. These changes are not applied to the firewalld configuration if the request for NetworkManager succeeds. This is also the case with the --permanent option.

Hi @crayfishx :
I'm using this module and thanks for your work. So far I have upgraded firewalld up to the latest version available for Centos 7:
[root@ts-visitsim-01 ~]# firewall-cmd --version
<IP_ADDRESS>
However, the issue still there, you cannot query for interfaces being managed by NetworkManager, but why do you need to query firewalld with the permanent option?. So far the --permanent option is to apply a configuration to the firewalld, then is useful, but to query I think without the --permanent option will still being ok.
Same as reported above, every time the puppet agent runs, the module is not able to find the interface and therefore re-apply the configuration.
[root@ts-visitsim-01 ~]# firewall-cmd --list-interfaces --permanent
[root@ts-visitsim-01 ~]# firewall-cmd --list-interfaces
eth0
[root@ts-visitsim-01 ~]#

I can confirm that I am also seeing this issue with the following versions:
puppet-firewalld-3.4.0
firewall-cmd --version
<IP_ADDRESS>

Log:
 Notice: Example/Firewalld_zone[internal]/interfaces: interfaces changed ['ppp0', 'enp0s8'] to ['enp0s8', 'ppp0']

Manual command output:
firewall-cmd --list-interfaces --zone=internal
ppp0 enp0s8
firewall-cmd --list-interfaces --zone=internal --permanent
ppp0 enp0s8

Any news on this matter? Experiencing the same issue on centos 7.6/RHEL 7.6 with firewalld v. 0.5.3

Ok, nvm, disabling NetworkManager on our interfaces solved the issue. :)

I just got notification from RH that the issue has been fixed in 0.6.3-2.el7. I upgraded my firewalld and it seems to be functioning as expected.


fix regression-test/suites/show_p0/test_show_statistic_proc.g…

…roovy
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


EXIT/SCRIPT in a GO-file terminates the calling REPEAT loop

Reported by Andrew Wittenberg on 30 Jul 2005 00:08 UTC
In the first example, an EXIT/SCRIPT inside a go-file terminates the loop that
called the go-file, instead of returning control to the loop.
    NOAA/PMEL TMAP
    FERRET v5.81
    Linux(g77) 2.4.18 - 07/14/05
    29-Jul-05 20:03

yes? can mode verify
yes? sp echo "say \\i\\\\\; exit/script\; say script" > a.jnl
yes? rep/i=1:3 (go a; say loop)
1
yes?
But the output should have been:
1
loop
2
loop
3
loop
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1304

Comment by<EMAIL_ADDRESS>on 12 Mar 2007 17:38 UTC
Fixed in xeq_exit.F: when exit/script is requested, only pop the command stack
until the next level of go-script is reached.


Issues with integers

When I try to do searches where the query column is an integer I receive errors that I must use cast. I am not sure where to place the case if at all, even if I did it would cause another issue as two of my other search columns are strings. DB: postgresql, laravel 5.6
Edit: So my question is what is the proper way to search when the column is an integer.

Please make a pull request with the fix

Yes. It seems there is no problem searching integer/bigint columns in MySQL or SQLite, but Postgresql will give an error.


imported and not used: "sync"

https://github.com/urfave/negroni/blob/master/logger.go#L9
Just got this error when rebuilding one of my Docker containers. Saw that the file was updated 2 hours ago.

same here, build broke.

Looks good now. Thanks a lot.


feat/oooCommand: added basic ooo command changes

Closes: https://github.com/Real-Dev-Squad/discord-slash-commands/issues/108
have added /ooo command take will give us the data of out-of-office user.
using https://github.com/Real-Dev-Squad/website-backend/pull/1411 will get the userData using discordId, then will be using userId to get the status of the data.
if user has current/future status as OOO then it will show the message in the following format.
July 8 - July 9
Attending React Nexus confernce

(additional notes: Will be checking in from time to time)

(Upcoming)
July 28 - Aug 10
Vacation to Bahamas```

Otherwise, it will show, "No data found!"

Add test coverage of your changes and link issue ticket as well.

Also please write some proper description, add screenshots and demo video for the reference


Fix typo in error message

Previously read: "has some a package constraint", now: "has some package constraint".

Thank you!


490 saas connector oauth2 authentication strategy

❗ Contains a DB migration
Purpose
Implementation of the OAuth2 authorization strategy for SaaS connectors. Includes the authentication strategy logic and associated API endpoints.
Changes

New API endpoints

/api/v1/connection/{connection_key}/authorize
/api/v1/oauth/callback

New schema for OAuth2 configuration
OAuth2 authentication strategy
Create logic inside of new oauth2_authentication_strategy to create the various OAuth2 endpoints from the new schema

authentication request
token request
refresh request

Additional Details
Authentication request
This request is generated and returned by calling the /api/v1/connection/{connection_key}/authorize endpoint. The state value added as a query param to the authorize URL is stored in the authenticationrequest table along with the connection_key. When the OAuth2 workflow posts the auth code back to the /api/v1/oauth/callback endpoint we look up the request by the state and associate the code to the correct connection config.
Token request
This request is called automatically as part of processing the auth code for the /api/v1/oauth/callback endpoint. The access and refresh tokens returned from this request are stored in the connection config secrets.
Refresh request
This request is called automatically once the access token expires (by checking the expires_at value in the connection config secrets). The new access and refresh tokens are stored in the connection config secrets.
Checklist

[ ] Update CHANGELOG.md file in appropriate sections
[ ] Applicable documentation updated (guides, quickstart, postman collections, tutorial, fidesdemo, database diagram.
If docs updated (select one):

[ ] documentation complete, or draft/outline provided (tag docs-team to complete/review on this branch)
[ ] documentation issue created (tag docs-team to complete issue separately)

[ ] Good unit test/integration test coverage
[ ] This PR contains a DB migration. If checked, the reviewer should confirm with the author that the down_revision correctly references the previous migration before merging
[ ] The Run Unsafe PR Checks label has been applied, and checks have passed, if this PR touches any external services

Ticket
Fixes #490

Starting review -

I made the requested changes and I just left one last comment regarding the creation of new database sessions.


Go to File includes files from history

VSCode Version: 1.43.2
OS Version: MacOS Catalina 10.15.4

Steps to Reproduce:

add this settings to try to exclude files from quick open:

"files.exclude": {
    "**/node_modules/**": true,
},
"search.quickOpen.includeHistory": false,
"task.quickOpen.history": 0

Open an excluded file using "Open File"
Close the file
Trigger quick open using cmd + p: recently opened file are suggested (but they disappear when I start writing), marked as recently opened

Does this issue occur when all extensions are disabled?: Yes

Yes, this setting is only for when you start searching, hence the name search in the setting.


Update typespec to support all Terraform Recipe Providers and Env

Description

Updated TypeSpec by adding Providers and EnvVariables to Environment resource (w/o Secrets)
Updated Data Models by adding Providers and EnvVariables to Environment resource (w/o Secrets)
Updated the Environment Conversion logic and its tests
Updated RecipeConfigProperties

Note: Secrets for both Providers and EnvSecrets will be added in another PR.
Design doc: https://github.com/radius-project/design-notes/pull/39
Type of change

This pull request adds or changes features of Radius and has an approved issue (issue link required).
Fixes: part of #6539

Should the original PR #7199 be closed now?

Yes, I will close that.


darwin.opencflite: fix build

Motivation for this change
ZHF-18.03: #36453
See: https://hydra.nixos.org/job/nixos/release-18.03/nixpkgs.darwin.opencflite.x86_64-linux
Please backport to 18.03.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build darwin.opencflite

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: darwin.opencflite
Partial log (click to expand)
Cannot nix-instantiate `darwin.opencflite' because:
error: while evaluating the attribute 'configureFlags' of the derivation 'opencflite-476.19.0' at /private/var/lib/ofborg/builds/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/stdenv/generic/make-derivation.nix:148:11:
value is null while a set was expected, at /private/var/lib/ofborg/builds/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/os-specific/darwin/opencflite/default.nix:12:37

Success on x86_64-linux (full log)
Attempted: darwin.opencflite
Partial log (click to expand)
make[1]: Leaving directory '/build/opencflite-476.19.0/examples'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/rqd0vwspgik9aiqak2bn1k566wwfzgmd-opencflite-476.19.0
shrinking /nix/store/rqd0vwspgik9aiqak2bn1k566wwfzgmd-opencflite-476.19.0/lib/libCoreFoundation.so.476.0.19
shrinking /nix/store/rqd0vwspgik9aiqak2bn1k566wwfzgmd-opencflite-476.19.0/lib/libCoreFoundation_debug.so.476.0.19
shrinking /nix/store/rqd0vwspgik9aiqak2bn1k566wwfzgmd-opencflite-476.19.0/lib/libCoreFoundation_profile.so.476.0.19
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/rqd0vwspgik9aiqak2bn1k566wwfzgmd-opencflite-476.19.0/lib
patching script interpreter paths in /nix/store/rqd0vwspgik9aiqak2bn1k566wwfzgmd-opencflite-476.19.0
checking for references to /build in /nix/store/rqd0vwspgik9aiqak2bn1k566wwfzgmd-opencflite-476.19.0...

Failure on aarch64-linux (full log)
Attempted: darwin.opencflite
Partial log (click to expand)
 ^
CFRunLoop.c: In function '__CFRunLoopIsSleeping':
CFRunLoop.c:441:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[1]: *** [Makefile:1821: libCoreFoundation_debug_la-CFRunLoop.lo] Error 1
make[1]: Leaving directory '/build/opencflite-476.19.0'
make: *** [Makefile:2541: all-recursive] Error 1
builder for '/nix/store/6847lf5ilyr6bnnnbjc3am9xndvhjy32-opencflite-476.19.0.drv' failed with exit code 2
error: build of '/nix/store/6847lf5ilyr6bnnnbjc3am9xndvhjy32-opencflite-476.19.0.drv' failed

Not sure what the aarch64 error is. We might need to mark it as broken for aarch64.

Ok- we can fix that in another PR.

I didn't merge this yet because of the build failure, was that fixed?

Well this fixes it on x86_64-linux. It was broken on all linux so it’s at least an improvement.

Oh, I didn't realise this was for the linux build 😄


Directory structure and some pertinent files

Hi @ekopylova,
I reworked a bit of the Python script to:

Integrate the Bash commands directly into the Python script (no need for a separate .sh file)
Removed all hard-links
Added a getopts module to allow I/O arguments to be passed via the command line (note: must consist of full paths to the directories)
Added a progress bar for Pandas concatenation operations
Gave clearer onscreen explanations as the script operates and added a "Tips" comment at the top of the script describing its dependencies.

I'll work on making the test file after getting the CGC API to work.
Greg

@gregcaporaso sounds great, thanks!
Could you also update the code to use Python 3? You can create a conda environment for this project requirement Python 3 and any other software/library dependencies.

@ekopylova I'll work on that after the API for the QIIME mapping file. Which brings me to another point: I tried doing it in CGC's R API today (more familiar for me than Python), but apparently there is a 100 file limit placed on the calls... I'm going to try again with Python tomorrow, but do note that their tutorial specifically states that not all of the code is compatible with Python 3.x (see "Requirements" section under http://docs.cancergenomicscloud.org/docs/api-quickstart). Jad and I also tried making a tool on CGC to extract out metadata with no other operations, but it took way too long (6-7 min for 4 BAM files). I'll try to get the Python/R API working tomorrow and we'll go from there.

@gregcaporaso thanks for the new metadata parsing scripts. Could you write unit tests for these and we will merge this PR? PRs should focus on one issue at a time for rapid co-development (e.g., fast reviews, dependent code). If there are additional methods, you can create issues for them and resolve in the next PR.

@ekopylova, I tested the scripts with Python 3.5 and they function normally. I'm working on writing the testing scripts now. Given that this is my first shot at this, your feedback will be helpful...
Sorry for the multiple file additions on one PR. This is my first time using GitHub extensively for code dev, so it's a learning experience!

@ekopylova: I'm having some trouble with the test files but I'll keep working on it tomorrow


Fix ip addresses in etcd member list output example

I believe the IP addresses are wrong in the example etcdctl --endpoints=http://<IP_ADDRESS>,http://<IP_ADDRESS> member list output.

/approve
/lgtm


[tool_crash] DartDevelopmentServiceException

Command
flutter run

Steps to Reproduce

...
...
...

Logs
DartDevelopmentServiceException
#0      DartDevelopmentServiceImpl.startService (package:dds/src/dds_impl.dart:130:7)
<asynchronous suspension>
#1      DartDevelopmentService.startDartDevelopmentService (package:dds/dds.dart:88:5)
<asynchronous suspension>
#2      DebugService.startDartDevelopmentService (package:dwds/src/services/debug_service.dart:152:12)
<asynchronous suspension>
#3      DevHandler._createAppDebugServices (package:dwds/src/handlers/dev_handler.dart:442:7)
<asynchronous suspension>
#4      DevHandler.loadAppServices (package:dwds/src/handlers/dev_handler.dart:229:25)
<asynchronous suspension>
#5      Dwds.debugConnection (package:dwds/dwds.dart:91:9)
<asynchronous suspension>
#6      WebDevFS.connect.<anonymous closure> (package:flutter_tools/src/isolated/devfs_web.dart:686:15)
<asynchronous suspension>

[✓] Flutter (Channel stable, 2.10.4, on macOS 11.6.5 20G527 darwin-x64, locale en-AU)
    • Flutter version 2.10.4 at /Users/820525/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (2 weeks ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/820525/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version openjdk version "11.0.10" 2021-01-19
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version openjdk version "11.0.10" 2021-01-19

[✓] VS Code (version 1.66.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.38.1

[!] Proxy Configuration
    • HTTP_PROXY is set
    • NO_PROXY is localhost,127.0.0.*,10.*,.thenational.com,.thenational.com.au,.bnz.digital,.national.com.au,crl.bnz.co.nz,jamf.bnz.co.nz,sts.bnz.co.nz, time.apple.com,
      time-macos.apple.com, deviceenrollment.apple.com, deviceservices-external.apple.com, *.business.apple.com, isu.apple.com, crl.apple.com, crl.entrust.net, crl3.digicert.com,
      crl4.digicert.com, ocsp.apple.com, ocsp.digicert.com, ocsp.entrust.net, ocsp.verisign.net
    • NO_PROXY contains localhost
    ! NO_PROXY does not contain <IP_ADDRESS>
    ! NO_PROXY does not contain ::1

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 100.0.4896.75

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: c860cba910319332564e1e9d470a17074c1f2dfd

Duplicate of #97604


It would be great to extend the method to clamped

Dear Stebbing
It is a wonderful code and very robust. Thank you for sharing.
I have a question regarding the interpolation. Some of the original point locations were missing in the interpolated point set, on both sides of the curve. Is there a way that I can interpolate completely (all the input data point locations) or till the second last control points on both sides.
This project implements both 'Closed' and 'Open' curves. It would be great to also have 'Clamped'. I failed to add it in few trials.

Hi @rsbandaru,
Apologies for the delayed response! Just to clarify, what do you mean by "missing"? With regards to README-2.png, for example, are you referring to the fact that, for the leftmost and rightmost input data points, the model has not extended far enough so that the error between the model and these data points is perpendicular?

I think this is what is meant:
Cubic spline not clamped. This is how it is implemented:

Clamped cubic splines. Here the curve touches the first and last control point. This is usually how it is implemented in most application and also shown on Wikipedia.

The difference is the knots vector.
knots_unclamped = [0, 0.167, 0.333, 0.5, 0.667, 0.833, 1]
knots_clamped = [0, 0, 0, 0.5, 1, 1, 1]

Here is the website I took the screenshots from:
http://nurbscalculator.in/
I agree with rsbandaru that it would be good to have this feature.


adapter encode WriteRaw("\n")

func (adapter *Encoder) Encode(val interface{}) error {
	adapter.stream.WriteVal(val)
	adapter.stream.WriteRaw("\n")
	adapter.stream.Flush()
	return adapter.stream.Error
}

why always write "\n"
if val is nil, response will be null, it's too ugly

maybe
func (adapter *Encoder) Encode(val interface{}) error {
        if val == nil {return nil}
        ...
}

@linger1216   The behavior of the func is consistent with the standard library.


ah yeah btw

music commands don't work cuz ytdl broke
so gotta wait for it to unbreak

actually i didn't update the package correctly
but still doesn't work kekw

still broken lol

looks like my life but in worse lmao

Oh okay actually ytsr broke
I could find an alternative but I have other things to worry about lol
So well rip music for an undefined duration
Anyway is the day going good ?
Mine is good

Nobody asked


Add CF constitution to the governance page

In https://github.com/cf-convention/cf-convention.github.io/pull/87 I have made a modification to the governance page to create a link to the existing constitution from the white paper, which I converted to adoc. When this is merged, I will propose some small changes from the CF governance panel.

Thanks, Jonathan.
I see that the PR comes with an error from the website build process, but I don't think that it's related to your new document (but I'm no expert!).
I would be happy to merge the PR.

@ethanrd has merged it now, but the website build is still failing.

@JonathanGregory - The website is actually built automatically by GitHub Pages under the covers and appears to be working well. The PR related to this issue did get merged in and the change can be seen on the governance page has a link to the constitution.
The old Travis build does not do anything useful (it builds old DocBook versions) and is failing for reasons related to missing files that we no longer need. I have a PR (#93) that removes that Travis build but haven't merged that in yet, I'll merge that in later today. Another PR (#90) that set up a new build using GitHub Actions has been merged and appears to be working well.

So it is! Thanks, and well done. I was misled by the error messages. In that case I will now prepare modifications.

PR #87 has been merged which I believe should close this issue.
I will close but feel free to reopen if I'm wrong on this.

Closed by #87


Execute wrapped process once and exit

I think maybe this issue has been filed before, but it got closed and I don't know why - it seems like a valid feature with a good use case.
I have a command line installer that reads a config file and installs some software.
I am writing a web UI to make the installer more friendly. My installer web UI collects information from the user, generates the config file and then executes the existing command line installer.
The command line installed emits a standardized set of log messages that I want to deliver to the web UI via websocketd so I can parse and display a progress bar with appropriate messages. This is similar to the Cloudera Hadoop installer.
The ReconnectingWebSocket library reconnects to the web socket every time it gets a DISCONNECT signal which triggers websocketd to rerun the wrapped process. This would be a PITA to have the install re-run. I would like it to run once and exit. Since I'm wrapping websocketd in another more featured webby framework (revel in this case).
Now I guess i could stop using ReconnectingWebSocket, but if the websocket gets called for any reason after it exits, it will restart the install.
I propose (and will develop a PR for, if you ok it) a --runOnce param which will run the process once and then quit.

Hi @mattbaird
Thanks for the offer of help. We've discussed this scenario a few times, see #50, #84, #95 and in particular https://github.com/joewalnes/websocketd/issues/95#issuecomment-63680034
While we could easily add a flag for the single use-case you describe, there are lots of edge cases that arise from it, such as:

what happens to output that is generated by the process in between reconnection attempts? is it discarded, stored somewhere, replayed upon connection, etc?
what if a client never reconnects? how long should the process live for?
what if multiple clients connect? is the output sent to all processes? do clients need to catchup on missed data?
how does the process authenticate separate clients that are connected? (with one connection per process websocketd sets headers in environment variables, but this doesn't work with multiple connection per process)
what happens if the process dies? how does a client attempt to restart it?
when does the process start? should it happen when websocketd starts, or when the first connection happens?
if multiple clients are sending data to the process, how can the process know which client its coming from?

These are things that your use-case may not need to worry about, but others will. Rather than designing for a single use-case I would prefer to think of websocketd as one of the building blocks, and other blocks can be added to support different cases.

To implement what you want, you can create a program that wraps your installer and launch the wrapper from websocketd. The wrapper would run for each connection so it would be its responsibility to launch the actual installer process if needed, replay log files, provide any access controls, etc. You could do this as a one-off script for your own needs, or build a separate tool that may be of interest to the wider websocketd community.


Web integration wiki content gone

Content formerly on https://wiki.creativecommons.org/wiki/Web_Integration is gone? Know where I can find it?

I think we have someone maliciously deleting content on the Wiki. Investigating.

Yes this is back. A particularly vicious spammer and vandal. I've blocked them and reverted their changes. The content is back.


Update the Python and Rollbar versions used for lamba functions

Overview
On September 1 2022 our terraform provisioning began failing with the following message

The runtime parameter of python3.6 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.9) while creating or updating functions.

The lambda functions are used to post errors to Rollbar. The latest version of the Rollbar library only lists support up to Python 3.8, so we use that rather than the version recommended in the error message.
Connects #2116
Demo
After deploying this branch to OS Hub staging I submitted a list and canceled the parse job through the AWS batch console. The failed job notifications appeared in Rollbar

Notes
I felt confident about the version upgrades because the What's New documentation for Python 3.7 and 3.8 did not mention any breaking syntax changes that applied to our lambda code and the CHANGELOG for the Rollbar library did not mention any backward incompatible changes.
Testing Instructions
This was tested on OS Hub staging. See the Demo section above.
Checklist

[x] fixup! commits have been squashed
[x] CI passes after rebase
[x] CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines
[x] This PR is targeted at the correct branch (develop vs. ogr/develop)
[ ] If this PR applies to both OAR and OGR a companion PR has been created

Thanks for the review.


修改 readme 文件中的跳转

修改跳转链接并优化格式

 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.zsj01191894 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


ipfs uri validation

Hello,
Thanks for this awesome library.
I just want to report a tiny issue regarding uri validation:
import validators
uri = "ipfs://someRandomProprietaryAACFile"
validators.url(uri)

The above code returns a ValidationFailure despite the fact that the uri is a valid ipfs uri.
Probably validation does not take into account the ipfs protocol.
Is it possible to add it to validators.url?
Thanks

related #40 #55


[WIP] Backward compatibility for the query prop

Tracking issue: #121.
This is a work in progress.
Todo:

[x] ensure we have SSR tests for both query, as well as queries
[ ] update docs (coordinate with #119, :wave: @tstirrat15)

Motivation
As per the comment in #119, this allows the use of both the query, as well as the queries prop.
The queries prop was introduced in #72, and first discussed in #69. It's been available in the next branch for a while now, and after giving it some thought, I think there is significant value in keeping the query prop in a backward-compatible manner:

It will allow us to publish all of the changes currently waiting in next under a minor version bump. The current changes include a bugfix for SSR, so it would be nice for people to be able to get these change in a minor version increment.
Accordingly, it will allow consumers to update to this new version without having to change their use of this library. Most notably, without this backward compatibility, one would be forced to rewrite all <Media query=...> occurences to <Media queries=...>. I can imagine this would be sufficiently painful for larger codebases that it will deter people from upgrading.

Discussion
Allowing both query as well as queries does add some complexity to both the implementation and the API. I'm not too worried about the implementation, but for the API it means that ideally, we would require either query or queries to be defined.
I've currently implemented this constraint manually, but I suppose this could be done in a bit of a cleaner manner using PropTypes. If anyone knows how to implement such a constraint properly, do let me know :nerd_face: (@tstirrat15 ?). Quick note, I'm aware of airbnb-prop-types, and think we'd probably need something like this. I'm just not comfortable with including that lib as a dependency here, it feels a bit overkill.
Next steps
My motivation of shipping all of the current changes under a minor version are described above. What I'd really like to do is to implement a v2 based off of hooks. In this v2, I'd suggest we implement the business logic with hooks, and additionally expose the old component API (<Media>) which would then use the hooks internally. The only actual reason for making such an update a major version bump would be because us using hooks would require consumers to ensure they have a version of React installed that ships with hooks. Read: we'd bump the React peerDependency.

Regarding your point on queries XOR query, I don't currently know how to do that with PropTypes off the top of my head.
It looks like you could write a pair of custom validators where each prop checks the other to make sure that they're not both defined:
const propTypes = {
  // You can also specify a custom validator. It should return an Error
  // object if the validation fails. Don't `console.warn` or throw, as this
  // won't work inside `oneOfType`.
  customProp: function(props, propName, componentName) {
    if (!/matchme/.test(props[propName])) {
      return new Error(
        'Invalid prop `' + propName + '` supplied to' +
        ' `' + componentName + '`. Validation failed.'
      );
    }
  },
}```

@tstirrat15 thanks for taking a look :). I'll leave the prop checking as is for now. Might clean it up later on.


Unable to get Web API 2 to debug using MSBuild.SDK.SystemWeb

I have the following ASP.NET Web API 2 project set up that has been converted over to the Sdk style using the MSBuild.SDK.SystemWeb.
<Project Sdk="MSBuild.SDK.SystemWeb/4.0.79">
  <Import Sdk="Microsoft.NET.Sdk.Publish" Project="Sdk.props" />
  <PropertyGroup>
    <TargetFramework>net472</TargetFramework>
    <UseIISExpress>true</UseIISExpress>
    <Use64BitIISExpress></Use64BitIISExpress>
    <IISExpressSSLPort />
    <IISExpresAnonymousAuthentication>disabled</IISExpressAnonymousAuthentication>
    <IISExpressWindowsAuthentication>enabled</IISExpressWindowsAuthentication>
     <IISExpressUseClassicPipelineMode></IISExpressUseClassicPipelineMode>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
  </PropertyGroup>
  <ItemGroup>
    <ProjectCapability Include="Web" />
    <ProjectCapability Include="DotNetCoreWeb" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNet.Cors" Version="5.2.7" />
    <PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.7" />
    <PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
    <PackageReference Include="Microsoft.AspNet.WebApi.Core" Version="5.2.7" />
    <PackageReference Include="Microsoft.AspNet.WebApi.Cors" Version="5.2.7" />
    <PackageReference Include="Microsoft.AspNet.WebApi.Own" Version="5.2.7" />
    <PackageReference Include="Microsoft.AspNet.WebApi.WebHost" Version="5.2.7" />
    <PackageReference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" Version="2.0.1" GeneratePathProperty="true" />
    <PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
    <PackageReference Include="Microsoft.Net.Http" Version="2.2.29" />
    <PackageReference Include="Microsoft.Owin" Version="4.0.1" />
    <PackageReference Include="Microsoft.Owin.Cors" Version="4.0.1" />
    <PackageReference Include="Microsoft.Owin.Host.SystemWeb" Version="4.0.1" />
    <PackageReference Include="Microsoft.Owin.Security" Version="4.0.1" />
    <PackageReference Include="Microsoft.Owin.Security.Jwt" Version="4.0.1" />
    <PackageReference Include="Microsoft.Owin.Security.OAuth" Version="4.0.1" />
    <PackageReference Include="Owin" Version="1.0" />
    <PackageReference Include="System.Buffers" Version="4.5.1" />
    <PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
    <PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
    <PackageReference Include="System.Memory" Version="4.5.4" />
    <PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
    <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" />
    <PackageReference Include="System.Security.AccessControl" Version="4.7.0" />
    <PackageReference Include="System.Security.Permissions" Version="4.7.0" />
    <PackageReference Include="System.Security.Principal.Windows" Version="4.7.0" />
    <PackageReference Include="System.ValueTuple" Version="4.5.0" />
    <PackageReference Include="ValueInjecter" Version="3.1.3" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="System.Net" />
    <Reference Include="System.Net.Http" />
    <Reference Include="System.Net.Http.WebRequest" />
    <Reference Include="System.Security" />
    <Reference Include="System" />
    <Reference Include="System.Web.Entity" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Web" />
    <Reference Include="WindowsBase" />
  </ItemGroup>
    <ProjectExtensions>
      <VisualStudio>
        <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
          <WebProjectProperties>
           <UseIIS>True</UseIIS>
           <AutoAssignPort>True</AutoAssignPort>
           <DevelopmentServerPort>56462</DevelopmentServerPort>
           <DevelopmentServerVPath>/</DevelopmentServerVPath>
           <IISUrl>http://localhost:56462/</IISUrl>
           <NTLMAuthentication>false</NTLMAuthentication>
           <UseCustomServer>False</UseCustomServer>
           <CustomServerUrl>
           </CustomServerUrl>
           <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
          </WebProjectProperties>
        </FlavorProperties>
      </VisualStudio>
    </ProjectExtensions>
  <Import Sdk="Microsoft.NET.Sdk.Publish" Project="Sdk.targets" />
</Project>

The problem I'm running into is when I try to debug (Debug -> Start New Instance), I get the following error:

Unable to run your project. The "RunCommand" property is not defined.

A few questions:

Does MSBuild.SDK.SystemWeb support ASP.NET Web API 2 projects?
If so, what am I missing in order to have it debug through Visual Studio?

Yes it supports webapi2.
I'm not sure the exact issue you are encountering - but depending on how you have converted it, you are probably missing the launchsettings.json file from your properties directory.
Remove the ProjectExtensions section and all the *IISExpress* properties from the project. All of that is handled by launchsettings.json.
Also, you don't need any ProjectCapability entries. The ones supported/required are automatically applied by the SDK.
Look at the empty web sample for the minimum required.
https://github.com/CZEMacLeod/MSBuild.SDK.SystemWeb/tree/main/samples/ExampleEmptyWebApplication
There is also an Owin example here https://github.com/CZEMacLeod/OwinStaticFilesUsingCore - note that it was a small experiment to wrap the aspnetcore StaticFiles IContentTypeProvider into an Owin version due to some filetypes being missing in Owin. The references to Microsoft.AspNetCore should not normally be used in this system.
Also Microsoft.CodeDom.Providers.DotNetCompilerPlatform is not automatically included by the SDK.
By default it is version 3.6.0. There are some issues with the older versions in this scenario which are resolved in this version.
You can move to a newer version by setting the property <MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version></MicrosoftCodeDomProvidersDotNetCompilerPlatform_Version>
You may need to adjust the system.codedom section of your web.config to match the assembly version:
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
    </compilers>
  </system.codedom>

I doubt you need most of the Reference items either. System.Web is automatically included by the SDK, and System, and System.Drawing are included by the base SDK.
You also (unlike in the original packages.config or legacy project format) do not need to include the complete hierarchy of packages (unless you want to use a newer version of a referenced package).
Including Microsoft.AspNet.WebApi will include Microsoft.AspNet.WebApi.WebHost which will include Microsoft.AspNet.WebApi.Core which will include Microsoft.AspNet.WebApi.Client which will add the framework reference to System.Net.Http as well as Newtonsoft.Json
You might want to include the Newtonsoft.Json package directly to use a newer version - e.g. 12.0.3 or 13.0.1. See the ExampleFullWebApplication for more information.
I recommend playing with the example templates which are available for c# and vb as either empty or a full stack to understand more.
You also appear to have misspelt Microsoft.AspNet.WebApi.Own - it should be Microsoft.AspNet.WebApi.Owin and as far as I can remember you should only have 1 of Microsoft.AspNet.WebApi.Owin or Microsoft.AspNet.WebApi.WebHost depending on whether you are running WebAPI2 directly on System.Web or under Owin, regardless of whether Owin is selfhosted (Microsoft.Owin.SelfHost) or running under System.Web (Microsoft.Owin.Host.SystemWeb).
I created a MVP of WebAPI2 in Owin on MSBuild.SDK.SystemWeb here - https://github.com/CZEMacLeod/WebAPI2-Owin
Hope this helps.

@CZEMacLeod  This is wonderful work, thank you.  Far above and beyond my expectations.  I'm still getting

"Unable to run your project. The "RunCommand" Property is not defined."

There's a workaround here that I'll try: https://github.com/dotnet/sdk/issues/833

Interestingly; what ended up fixing it was going into the project debug settings (through "properties" in visual studio) and ensuring the appropriate start up options were chosen. For whatever reason they were all blanked out and it wasn't picking it up from the launchSettings.json.

@gortok Great that you found a solution. My testing showed the RunCommand error shows if the launchSettings.json file is missing (or corrupted).
I'm guessing it was either in the wrong location, had a spelling mistake, or had bad content - all easily done.
I might try and add some more examples to the project here, and possibly extend the templates with more options, maybe to more closely match the options for the built-in ASP.Net 4 Web Application templates.

@gortok Regarding Publish - I don't think there is any good solution to publish from within VS.
I noticed that your project file had includes for Microsoft.NET.Sdk.Publish which should not be used with this SDK.
The original publish mechanism for ASP.NET4 Web Application Projects does work though if you invoke it from the command line.
There is some discussion of this in issue #12.
msbuild "path\to\your\solution.sln" /t:rebuild ^
				    /p:Configuration=Release ^
				    /p:DeployOnBuild=True ^
				    /p:DeployDefaultTarget=WebPublish ^
				    /p:WebPublishMethod=FileSystem ^
				    /p:DeleteExistingFiles=True ^
				    /p:publishUrl="path\to\your\output\folder"

If you create the publish profiles on a legacy project then copy them into your project, they should work.
msbuild /t:Rebuild /p:DeployOnBuild=true /p:PublishProfile=FolderProfile.pubxml

Note that I would recommend that you always do a nuget restore command before.
This should also work with CI/CD e.g. Azure DevOps.
I'm closing this here - if you want to open a specific issue regarding publish, open a new issue.


Python: isConnected() returns True after the scanner is turned off / in stand-by

I recently noticed that isConnected() does not work how I thought it would behave.
Behaviour:
-I connect to the scanner with cast.connect(ip, 5828, "research")
-I check for cast.isConnected() status every 10sec. in a thread
-If the ultrasound probe is going to stand-by or is turned off by holding down the power button: the app shows "Casting information not available". To my understanding the connection is closed.
Expected:
If I check with isConnected() I should get True if there is an active connection between scanner and my software
If I check with isConnected() I should get False if there is no active connection between scanner and my software
What happens instead:
After the scanner is turned off/ in stand-by and the app shows "Casting information not available" I still receive True when checking cast.isConnected().
Also sometimes during scanning I receive False when checking cast.isConnected() in a seperate thread.
Data:
Device: C3HD3 Firmware 11.2.0
App: 11.2.0
Python Software CAST: 11.2.0 (cast.dll, cast.lib), pyclariuscast.pyd from last available release
Question:
Is this a bug or am I wrong on the expected behaviour?

Maybe the Issue can be resolved with a 11.2. pyclariuscast.pyd? The release files are missing the pyd.

Hi we do not provide .pyd files, we provide .so files in the release artifacts. I will try to reproduce the issue.

Any progress with this? I'm having the same issue

no, we have not investigated this issue, but will look to see if it's still reproducable


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 732

Questions ?
Please refer to the Backport tool documentation


Profiler in 3.0.6 not always working and sometimes does't update graph

Godot version:
3.0.6 (it works with GLES 3 in 3.1 master)
OS/device including version:
Windows 10
Issue description:
When I run Profiler and game, sometimes profiler freeze in some frame.
Sometimes update current frame counter but graph is frozen.
Steps to reproduce:

Create node2D
Run this scene
Run profiler

Can anyone still reproduce this bug in Godot 3.2.3 or any later release?
If yes, please ensure that an up-to-date Minimal Reproduction Project (MRP) is included in this report (a MRP is a zipped Godot project with the minimal elements necessary to reliably trigger the bug). You can upload ZIP files in an issue comment with a drag and drop.

Profiler still have a lot of issues, but this seems to be fixed.


Export XY-Grid components in src/index.js

This should fix #48. In my local copy (inside node_modules) I modified both lib/index.js & src/index.js and it fixed the issue referenced in #48. However I only see src/index.js in the repo, so I guess the other is generated later?
Fixes #48.
Changes proposed in this pull request:

Export XY-Grid components in src/index.js

If this looks good to the everyone, could we get it merged and a new release pushed soon? I'm trying to use XY-Grid and currently cannot.

@brentdodell thanks, I'll make a release soon when I get on the computer.

We should probably add test cases for the index.js file as well.

A good rule of thumb is to only merge things that  include tests.

This is included in version 0.9.1.

Thanks @crisu83!


azdls behavor test list_empty_dir failed

PermissionDenied (permanent) at List::next, context: { uri: ***/***?resource=filesystem&recursive=false&directory=***/96b1b2a5-cf7a-4b00-a178-1ec0e455ad25&continuation=VBa5h7fagomJqxsYKRgkNTUzYTA2MmItYTZjZS00MTY4LWFlZWUtZGYwNzRlMjYzNGUwFgAAAA==, response: Parts { status: 403, version: HTTP/1.1, headers: {"content-length": "695", "content-type": "application/json;charset=utf-8", "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", "x-ms-error-code": "AuthenticationFailed", "x-ms-request-id": "9df5bf89-501f-004a-36c3-42e888000000", "x-ms-version": "2022-11-02", "date": "Tue, 09 Jan 2024 06:20:10 GMT"} }, service: azdls, path: / } => {"error":{"code":"AuthenticationFailed","message":"Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:9df5bf89-501f-004a-36c3-42e888000000\nTime:2024-01-09T06:20:11.0614140Z","detail":{"AuthenticationErrorDetail":"The MAC signature found in the HTTP request 'p4msxLYcokI9p+6Nuj33SqUej588HY3V9AkYbLob284=' is not the same as any computed signature. Server used following string to sign: 'GET\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Tue, 09 Jan 2024 06:20:11 GMT\nx-ms-version:2022-11-02\n\/***\/***\n:\ndirectory:***\/96b1b2a5-cf7a-4b00-a178-1ec0e455ad25\nrecursive:false\nresource:filesystem'."}}}

failures:
    behavior::***_list_empty_dir

Workflow run: https://github.com/apache/incubator-opendal/actions/runs/7457391851/job/20289554245

Azdls returns 403 while continuation contains =


Carousel doesn't display until I click on where the slide would be

I am using "vue-carousel": "^0.18.0", and Carousel doesn't display until I click on where the slide would be. I were looking for the answers and I believe that @quinnlangille said this issue already fixed in the recent update. But it is still happening for my case. Below is my code.
Here is my code:
<template>
<carousel :perPage="4" :navigationEnabled="true" :paginationEnabled="false">
                <slide v-for="(product, i) in products" :key="i" class="w-full md:w-1/4 px-3">
                    <product-item :key="i" :product="product"></product-item>
                </slide>
            </carousel>
</template>

<script>
    import ProductItem from './ProductItem';
    import {mapGetters, mapActions} from 'vuex'
    import {Carousel, Slide} from 'vue-carousel';

    export default {
        computed: {
            ...mapGetters({
                products: 'product/bestseller',
            })
        },
        mounted() {
            this.$store.dispatch('product/getProducts', 'bestseller');
        },
        components: {
            ProductItem,
            Carousel,
            Slide
        }
    }
</script>

ProductItem component:
<template>
    <div class="bg-white border border-transparent hover:border-gray-200 p-3 mb-3 group relative h-auto">
......
</div>
</template>

<script>
    export default {
        props: ['product']
    }
</script>

Hey @phuclh, yeah we fixed an issue related to this a few versions ago! Your code looks fine, so mind sending a working reproduction of the issue on a jsFiddle or else so we can debug further? Thanks! :octocat:

Its happening with me too. I am using 0.6.5. Please help

@rishabhgoel9797 this issue was fixed after 0.6.5, so you'll need to upgrade

@quinnlangille I already fixed, it conflicted with tailwind grid, I just simple removed tailwind classes and used the default grid of this plugin.
I have another question. Is it possible to make the vertical carousel? I tried to find some options, but there was nothing that related to that. Thank you.

Hey @phuclh, we currently don't support a vertical carousel, we've talked about it in a few issues in the past but adding it isn't in the immediate roadmap.
Also, thanks for reporting in that this issue is in fact resolved, I'll close this now!


Security issue with @file-type dependency

Laravel Mix Version: 6.0.49
Node Version (node -v): 16.13.1
NPM Version (npm -v): 8.1.2
OS: MacOS 12.4

Description:
Security Issue found for NPM package dependency currently using<EMAIL_ADDRESS>issue affects versions
< 16.5.4

= 17.0.0, < 17.1.

https://github.com/advisories/GHSA-mhxj-85r3-2x55
currently NPM Audit fix --force recommends downgrading to laravel-mix 4... should upgrade file-type if possible.
# npm audit report

file-type  <16.5.4
Severity: moderate
file-type vulnerable to Infinite Loop via malformed MKV file - https://github.com/advisories/GHSA-mhxj-85r3-2x55
fix available via `npm audit fix --force`
Will install<EMAIL_ADDRESS>which is a breaking change
node_modules/file-type
  imagemin  5.2.0 - 8.0.0
  Depends on vulnerable versions of file-type
  node_modules/imagemin
    laravel-mix  >=4.0.11
    Depends on vulnerable versions of imagemin
    node_modules/laravel-mix

3 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Steps To Reproduce:
npm i laravel-mix

I think can be resolved by bumping @imagemin package to V8.0.1

FWIW it looks like advisory has been updated from saying:
file-type package before 16.5.4

to saying:
file-type package from 13.0.0 until 16.5.4

... which at least on my setup has made npm audit not complain anymore since the latest version of Laravel Mix still indirectly forces use of file-type v12.


The document of this repository does not work properly

The document of this repository does not work properly
http://laravel-admin.org/docs/#/en/

Same here, some document just display blank page

@alihastam @barayuda It's ok now.
The docs page uses the latest version of prism.js to highlight the code, and the latest release of prismjs has some syntax matching issues, the earlier version is fine.


Translate function not working??

I have this from a tutorial:
vec = glm.vec4(1.0,0.0,0.0,1.0)
id_matrix = glm.mat4()
trans_matrix = glm.translate(id_matrix, glm.vec4(1.0, 1.0, 0.0))
vec = trans_matrix * vec
printing vec gives 0.0,0.0,0.0 and I was expecting 2.0,1.0,0.0
Please help! Thanks

Hi nasser225,
you are indeed correct - the translate() function was not working as intended, however that is actually not the reason why the code above is not functional.
In gtruc/glm (the original glm) there has been a change to the way matrices are initialized (or rather - they removed the initialization completely) https://github.com/g-truc/glm/commit/4cf8a10af2bba678c2ad136006e6ec41118b6746 .
This results into glm.mat4() returning an uninitialized (empty) matrix:
[0, 0, 0, 0]
[0, 0, 0, 0]
[0, 0, 0, 0]
[0, 0, 0, 0]

That's why the translation doesn't work.
You have to use glm.mat4(1.0) instead.
I'm trying to get gtruc to revert this change (because I ran into the same problem as you did).

I also noticed that translate (and scale) don't seem to be working, but unrelated to the matrix initialization issue you mentioned from the original GLM.  As a simple example:
    M = glm.translate(glm.mat4(1.0), glm.vec3(2.0, 2.0, 2.0))
    print("M:\n{}".format(M))

produces:
M:
[            1 |            0 |            0 |            0 ]
[            0 |            1 |            0 |            0 ]
[            0 |            0 |            1 |            0 ]
[            0 |            0 |            0 |            1 ]

If I change translate to scale I get:
M:
[            0 |            0 |            0 |            0 ]
[            0 |            0 |            0 |            0 ]
[            0 |            0 |            0 |            0 ]
[            0 |            0 |            0 |            1 ]

Something here is clearly not right.  For a sanity check, I confirmed that in C++ the translate and scale functions do the right thing, and they do.

I accidentally screwed up the macro that generates the two of these functions, resulting in them always using empty arguments.
I'll release a fix soon


Add possibility to use simple docker executor and multiple subnets for gitlab runner

Hello,
as we are only running some lightweight tasks on AWS with gitlab-runners, we need a more simplified setup by simply using the docker executor, rather than using the full-blown docker+machine solution.
Therefore I made the executor configurable and left the default with docker+machine.
In addition I had to install docker on the gitlab-runner instance.
If this gets merged, there probably should be 1-2 sentences about this in the readme, as this is not using spot instances, and only a single gitlab-runner instance with docker. For lightweight use-cases this would be perfect though. Let me know what you think!
As we also need AZ failover, I adapted subnet_id_gitlab_runner to use an array of subnets. This worked fine on our instance. I also adjusted the examples accordingly, however I did not test them.

Thanks for taking the time to submit the change. I will do my best to review the PR in the next week. Please can you check the build failure as well. The build only verify the formatting and validate the terraform (aka lint).

Oh thanks a lot for your work here! I will have a little bit more time in a few days if this needs additional work.
Thanks a lot!

Thanks for the contribution. Your PR is merged manually into develop. I will close the PR


Tab completions on General

Added tab completion on general commands

I have one question and objection.
The question: why do we have general binary in repository?
The objection: @ntunin @Tublad sory guys, but I cannot properly review this PR because it's really huge and seems like this PR contains something not related to tab completions. Can you please divide it into separate PRs?


KeyError: 'traffic' in get_systems

In a recent Google API update, I am seeing the following error:
Traceback (most recent call last):
  File "/home/huangwe/Projects/github.com/huangw5/interrupt-wifi-bot/interrupt-wifi-bot.py", line 260, in <module>
    main()
  File "/home/huangwe/Projects/github.com/huangw5/interrupt-wifi-bot/interrupt-wifi-bot.py", line 174, in main
    bot = Bot(args.wifi_token)
  File "/home/huangwe/Projects/github.com/huangw5/interrupt-wifi-bot/interrupt-wifi-bot.py", line 67, in __init__
    for system in asyncio.run(gw.get_systems()).values():
  File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/home/huangwe/.local/lib/python3.7/site-packages/googlewifi-0.0.17-py3.7.egg/googlewifi/__init__.py", line 190, in get_systems
  File "/home/huangwe/.local/lib/python3.7/site-packages/googlewifi-0.0.17-py3.7.egg/googlewifi/__init__.py", line 290, in structure_systems
KeyError: 'traffic'

Looks like the key was removed in the response.

Seeing same setting up homassistant googlewifi integration, can't load devices:
This error originated from a custom integration.

Logger: custom_components.googlewifi
Source: custom_components/googlewifi/__init__.py:171
Integration: Google WiFi (documentation, issues)
First occurred: 13:40:28 (10 occurrences)
Last logged: 13:49:44

Unexpected error fetching GoogleWifi data: 'traffic'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/googlewifi/__init__.py", line 171, in _async_update_data
    system_data = await self.api.get_systems()
  File "/usr/local/lib/python3.9/site-packages/googlewifi/__init__.py", line 191, in get_systems
    return await self.structure_systems(response)
  File "/usr/local/lib/python3.9/site-packages/googlewifi/__init__.py", line 291, in structure_systems
    devices[this_station["station"]["id"]]["traffic"] = this_station["traffic"]
KeyError: 'traffic'

Fixed in 0.0.18


Can we run demo/restoration_video_demo.py on a video file?

I only see a series of image files are being used for the inference demo. Can't we run on a video file or webcam frames?
Is there any workaround for this?
Thank you.

The usual practice is to first convert the video to a sequence of images. You may need to convert the video to images first. The tool ffmpeg may help.

Supporting video input is not hard, we can do it next month

Supporting video input is not hard, we can do it next month

If you can give a suggestion on which library to poke around I'll give it a try.

See https://github.com/open-mmlab/mmaction2/blob/master/demo/long_video_demo.py and https://github.com/open-mmlab/mmaction2/blob/master/demo/webcam_demo.py

Now we are support run demo/restoration_video_demo.py on a video file
https://github.com/open-mmlab/mmediting/blob/master/demo/restoration_video_demo.py


Update to new version of the mod for exenode.ks.

Update to new version of the mod for exenode.ks, which works in <IP_ADDRESS> version of KOS.

I probably missed the set npd to np:direction, as I started with older version of the script than in the repository here. I will double check and reopen the pull request if necessary. Sorry about that.


test: enable stress test again

We no longer test on the platform (Clear Linux) which had problems
passing the test, so now it may be possible to use it again.
Another issue was that the increased usage of the PMEM data files on the build host caused it to run out of filesystem space. This was fixed by increasing the VM's disk.
Fixes: https://github.com/intel/pmem-csi/issues/685

The test itself finishes in roughly three minutes, which is okay: https://cloudnative-k8sci.southcentralus.cloudapp.azure.com/blue/organizations/jenkins/pmem-csi/detail/stress-test-enable/1/tests


Refactor macros to better support functions

Coverage decreased (-0.5%) to 96.396% when pulling 1458ca3d79936507011c4c284da6c0a3e45e2f06 on refactor-macros into 166ff05455326e59fe077837859e21f8b39279ce on master.


Don't use .cargo for custom CARGO_HOME

Users changing cargo's home directory expect it to be used as top path
instead of there being a .cargo hidden dir in it. There are some cases
following this pattern one of them is python's virtualenvwrapper, which
uses WORKON_HOME as a home dir for everything.
This patch removes the extra .cargo and assumes that CARGO_HOME is the
real path a user wants to use as a homedir for cargo.

@brson r?

I think we need @alexcrichton's review here.

:+1:

(Aren't we meant to be using XDG etc. per https://github.com/rust-lang/cargo/pull/148 anyway?)

@huonw My only concern is that for Servo, we need to be able to not write any files outside of the enlistment directory.

@larsberstrom, yeah, that would only be the default (rather than ~ as it seems to be today?), not replacing the ability to customise it with CARGO_HOME.

I think the order of precedence we would have (in theory) would be:

CARGO_HOME
XDG variables
$HOME/.cargo

Which is to say that I think we can still fit in the XDG specification here.

@bors: r+ bef8095

:hourglass: Testing commit bef8095 with merge b9a80db...

:broken_heart: Test failed - cargo-win-64

@bors: retry

:hourglass: Testing commit bef8095 with merge ed06187...

:broken_heart: Test failed - cargo-win-64

@bors: retry

:hourglass: Testing commit bef8095 with merge cff6aad...

:sunny: Test successful - cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-32, cargo-win-64


doc: fix grammar in docs/guidelines.md

Is it a grammar problem or you feel we need to be less agressive?
LGTM anyways

"must to" is wrong anyway.

Yep, I know but it could be "must add",
But anyways I am with you. :+1:


notify sensu-api when check config is changed

I'm new to Sensu but I think that sensu-api should be restarted when check config changes. Otherwise, I cannot see my updated check command in the dashboard.
I expected that if $api is true, sensu_check would notify Class['sensu-api'] based on $::sensu::check_notify and the sensu-api service would be restarted when checks are changed or added. This is not happening.
From what I can tell, the notify targets are actually set in sensu_check.rb. I added sensu-api to the list and it is now working correctly for me. If there is a better way to fix this problem, please reject this request and I will file an issue.
thanks,
Joe

The api doesn't need to be refreshed when checks change, just the server and client.  Thanks for the PR though!


Add dynamic permalinks example

The fact that the order of the data cascade necessitates using Computed Data is unintuitive. A good example of this should help.

Shipped, thank you! Note that eleventyComputed is not explicitly required here, permalink is implied eleventyComputed by default.


Wpf hex editor mvvm

.net core 3.0 support added.

Hoo wow my friend!
I will check this tomorrow :)
Have a good night
Le jeu. 19 déc. 2019 01 h 01, JanusTida<EMAIL_ADDRESS>a écrit :

.net core 3.0 support added.

Reply to this email directly, view it on GitHub
https://github.com/abbaye/WpfHexEditorControl/pull/58?email_source=notifications&email_token=AECPEO5RPALOA7ODGEKP463QZME25A5CNFSM4J44NCC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IBRHSFQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AECPEOZZ7LWX7KC3TBOAZXDQZME25ANCNFSM4J44NCCQ
.

Feel free to contact me if you have any problems.

Thank Janus I will include also the .net core 3 support in master branch


fix: fix the condition that check valid in option

Proposed changes
the valid in option should
! (op.min > expr.max or op.max < expr.min)
=============>
op.min <= expr.max and op.max >= expr.min

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run p1

run buildall


--binary with relative fails

I'm seeing an issue that I didn't see in a previous version.
git clone https://github.com/openshift-evangelists/Wild-West-Backend
cd Wild-West-Backend
mvn clean package
odo login
odo project create ododemo
odo create java backend --binary target/wildwest-1.0.jar
gives this error:
✗  Rel: can't make target/wildwest-1.0.jar relative to /Users/jkleiner/Downloads/Wild-West-Backend
I did not get that error in odo v1.0.0-beta6 (0cdcc908)
Originally posted by @jankleinert in https://github.com/openshift/odo/pull/2265#issuecomment-540116066

/kind bug
/priority medium

I can take a look at this

/unassign

@prietyc123 Is it the same issue you are facing while validating the command in doc steps ?

@amitkrout Yes I am facing the same issue while validating the docs.
$ odo create java test3 --binary target/*.jar
 ✗  Rel: can't make target/spring-petclinic-2.1.0.BUILD-SNAPSHOT.jar relative to /Users/pkumari/spring-petclinic


Branch - develop-old

[ ] Have owners review branch to identify functionality to include in HOPP
[ ] Back-merge dev/refactor into respective branches
[ ] Remove extraneous code
[ ] Merge branch and delete old branch

I renamed this branch from develop -> develop-old to make way for the new protected branch develop off of current master


Re: 'Prerequisites for Macs'

Problem with 'Prerequisites for Macs' (https://tdt-documentation.london.cloudapps.digital//install_macs.html)
<EMAIL_ADDRESS>email no longer exists.

The page no longer links to the<EMAIL_ADDRESS>email. It was changed to link to the GDS Web Help Desk instead.


Validate license's names

The datapackage schema says:

The value of the string version SHOULD be an Open Definition license ID (preferably one that is Open Definition approved.

So we can't require a certain pattern to the license names, but we could log it, so the user knows.

There's a suggestion on how to validate the names in https://github.com/trickvi/datapackage/issues/43. We could cache that list the same way we cache the registry.

MERGED
https://github.com/frictionlessdata/datapackage-py/issues/131


review lab 1 and proposed changes CRG

Hi @willu47 this is the PR for my branch discussed in #2

@camiloramirezgo - thanks again for your suggestions (and for implementing them all.
Really my only comment is regrading the checkers.  Hiding the error message means that you get no hint of what the problem is and what type of error is returned.  How about we pass the errors back to the student like this:
def checker_lcoe(value, capital_costs, operational_costs, electricity_generation, discount_rate, technical_lifetime):
    try:
        year = np.arange(technical_lifetime)
        crf = (1 + discount_rate) ** - year
        lcoe = (capital_costs + sum(crf * operational_costs)) / sum(crf * electricity_generation)
        if value == lcoe:
            return 'Your answer is correct!'
        else:
            return f'That is not right, try again!'
    except as ex:
        return f'That is not right, try again!' + str(ex)

Excellent, I think that is much better.

We will need to change the CRF one too to something like:
def checker_crf(value, discount_rate, year):
     try:
        crf = (1 + discount_rate) ** - year
        if sum(crf == value) == len(crf):
            return 'Your answer is correct!'
        else:
            return f'That is not right, try again!'
    except :
        return f'That is not right, try again!' + str(ex)


Custom Space Names

Currently getting the following error running the redis smoke tests
Creating space cf-redis-smoke-tests-1-SPACE-09f61cc0310c2175 in org system as admin...
OK
Assigning role SpaceManager to user admin in org system / space cf-redis-smoke-tests-1-SPACE-09f61cc0310c2175 as admin...
The user exists in multiple origins. Specify an origin for the requested user from: 'uaa', 'ldap'
FAILED
To resolve am trying to set the space name to be a specific space name. However recently it seems this option has been made non-configurable - https://github.com/pivotal-cf/cf-redis-release/blob/2ac76cb681c41c5dfb326e22e75df9cd14e9b684/jobs/smoke-tests/templates/config.json.erb#L16
Can this be updated back to
'use_existing_space' => p('cf.space_name') ?

Hi,
We've done exactly this. You should be able to specify an org and space for the smoke tests to run in now. Sorry for the slow response.
Best,


How To Pass a JavaScript Function to rowStyle or getRowStyles Property

Is it possible to somehow pass a JavaScript function to the rowStyle or getRowStyles attribute, similarily to the way I can pass a JavaScript function to the cellStyle attribute?
I'm trying to dynamically update the row styles based on the data in that row and I cannot use the styleConditions mechanism since the rowStyle is a continuous function of my row data.
I'm trying to achieve something of the likes:
dag.AgGrid(rowStyle={'function': 'getMyRowStyle(params)'})
I'm trying to dynamically set the css background property of the rows like in the image attached. I currenty solved it by updating the individual cell styles but it is a lot more complex and very problematic when feeding the grid live data since only the cells that change redraw. This is why I'm trying to find a solution using the row styles instead of the cell styles.

Hello @quecksilberio,
This should be available using the getRowStyle, rowStyle is for static assignment.

@quecksilberio - If you haven't solved this, please feel free to post your question on the Dash community forum and include a minimal example to show what you've tried so far.  Here's a related post you might find helpful.


version: release 1.3.0

Tried out and latest snapshot is publishing as expected now.

can you update readme and changelog as well

Closes https://github.com/krux/stubborn/issues/16


[KARAF-6460] Create ClassLoader that recognize bundle-classpath in ca…

…se of no OSGi usage e.g. shell/shell.bat

retest this please


Support for Terraform 0.12

Hello!
I tried using this module with Terraform 0.12 and I got errors due to the syntax change:
Error: Unsupported block type

  on .terraform/modules/bastion/main.tf line 6, in resource "aws_security_group" "bastion":
   6:   tags {

Blocks of type "tags" are not expected here. Did you mean to define argument
"tags"? If so, use the equals sign to assign it a value.

Error: Unsupported block type

  on .terraform/modules/bastion/main.tf line 51, in data "template_file" "user_data":
  51:   vars {

Blocks of type "vars" are not expected here. Did you mean to define argument
"vars"? If so, use the equals sign to assign it a value.

Apparently it's just a matter of adding the = sign ? (sorry, terraform noob here)

I've made a PR for this here: https://github.com/terraform-community-modules/tf_aws_bastion_s3_keys/pull/56
For others needing 0.12 support right now, you can use the branch from the PR:
  source        = "github.com/eliasdorneles/tf_aws_bastion_s3_keys?ref=tf-012-support"

+1

v2.0.0 of this module is Terraform 0.12 ready.
Thanks to @eliasdorneles and others who was involved on #56


Prevent Tinkers Slime Islands etc from generating in the machine dimension

It looks like this is not currently possible and the dimension (144 by default) has to be blacklisted in the Tinkers Construct configuration.
Best solution would probably be a PR to forge with an event that allows skipping a IWorldGenerator as it does not look like this exist. PopulateChunkEvent does not help.


dotnet 8 Docker Image:  System.DllNotFoundException: Unable to load shared library 'libdl.so' or one of its dependencies

As stated here: https://github.com/googleapis/google-cloud-dotnet/issues/5828#issuecomment-1956118634
Environment details

OS: mcr.microsoft.com/dotnet/aspnet:8.0.2 container image, so Debian 12 Bookworm.
.NET version: 8.0.2
Package name and version: Possibly google.cloud.storage.v1/4.8.0 or serilog.sinks.googlecloudlogging/3.4.0, error happens runtime on GCP Cloud Run and GCP App Engine.

Steps to reproduce
We have two dotnet projects deployed as Docker images to GCP App Engine for the first, GCP Cloud Run for the second.
After updating the container images from dotnet 7 to dotnet 8 (both SDK and runtime) we're getting
System.DllNotFoundException: Unable to load shared library 'libdl.so' or one of its dependencies.
from both projects.
Stacktrace

```
ERROR: (gcloud.app.deploy) Error Response: [9] An internal error occurred while processing task /app-engine-flex/flex_await_healthy/flex_await_healthy>2024-02-21T08:44:03.417Z8257.wa.2: Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.DllNotFoundException: Unable to load shared library 'libdl.so' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
/app/runtimes/linux/native/libdl.so: cannot open shared object file: No such file or directory
/app/runtimes/linux-x64/native/libdl.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.2/libdl.so: cannot open shared object file: No such file or directory
/app/libdl.so: cannot open shared object file: No such file or directory
/app/runtimes/linux/native/liblibdl.so: cannot open shared object file: No such file or directory
/app/runtimes/linux-x64/native/liblibdl.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.2/liblibdl.so: cannot open shared object file: No such file or directory
/app/liblibdl.so: cannot open shared object file: No such file or directory
/app/runtimes/linux/native/libdl.so.so: cannot open shared object file: No such file or directory
/app/runtimes/linux-x64/native/libdl.so.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.2/libdl.so.so: cannot open shared object file: No such file or directory
/app/libdl.so.so: cannot open shared object file: No such file or directory
/app/runtimes/linux/native/liblibdl.so.so: cannot open shared object file: No such file or directory
/app/runtimes/linux-x64/native/liblibdl.so.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.2/liblibdl.so.so: cannot open shared object file: No such file or directory
/app/liblibdl.so.so: cannot open shared object file: No such file or directory
   at Grpc.Core.Internal.UnmanagedLibrary.Linux.dlopen(String filename, Int32 flags)
   at Grpc.Core.Internal.UnmanagedLibrary.LoadLibraryPosix(Func`3 dlopenFunc, Func`1 dlerrorFunc, String libraryPath, String& errorMsg)
   at Grpc.Core.Internal.UnmanagedLibrary.PlatformSpecificLoadLibrary(String libraryPath, String& errorMsg)
   at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives)
   at Grpc.Core.Internal.NativeExtension.LoadUnmanagedLibrary()
   at Grpc.Core.Internal.NativeExtension.LoadNativeMethods()
   at Grpc.Core.Internal.NativeExtension..ctor()
   at Grpc.Core.Internal.NativeExtension.Get()
   at Grpc.Core.Internal.NativeMethods.Get()
   at Grpc.Core.GrpcEnvironment.GrpcNativeInit()
   at Grpc.Core.GrpcEnvironment..ctor()
   at Grpc.Core.GrpcEnvironment.AddRef()
   at Grpc.Core.Channel..ctor(String target, ChannelCredentials credentials, IEnumerable`1 options)
   at Google.Api.Gax.Grpc.GrpcCore.GrpcCoreAdapter.CreateChannelImpl(String endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
   at Google.Api.Gax.Grpc.GrpcAdapter.CreateChannel(String endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
   at Google.Api.Gax.Grpc.ClientBuilderBase`1.CreateChannel(String endpoint, ChannelCredentials credentials)
   at Google.Api.Gax.Grpc.ClientBuilderBase`1.CreateCallInvoker()
   at Google.Cloud.Logging.V2.LoggingServiceV2ClientBuilder.BuildImpl()
   at Google.Cloud.Logging.V2.LoggingServiceV2ClientBuilder.Build()
   at Serilog.Sinks.GoogleCloudLogging.GoogleCloudLoggingSink..ctor(GoogleCloudLoggingSinkOptions sinkOptions, MessageTemplateTextFormatter messageTemplateTextFormatter)
   at Serilog.Sinks.GoogleCloudLogging.GoogleCloudLoggingSinkExtensions.GoogleCloudLogging(LoggerSinkConfiguration loggerConfiguration, GoogleCloudLoggingSinkOptions sinkOptions, Nullable`1 batchSizeLimit, Nullable`1 period, Nullable`1 queueLimit, String outputTemplate, LogEventLevel restrictedToMinimumLevel, LoggingLevelSwitch levelSwitch)
   at Serilog.Sinks.GoogleCloudLogging.GoogleCloudLoggingSinkExtensions.GoogleCloudLogging(LoggerSinkConfiguration loggerConfiguration, String projectId, String resourceType, String logName, Dictionary`2 labels, Dictionary`2 resourceLabels, Boolean useSourceContextAsLogName, Boolean useJsonOutput, Boolean useLogCorrelation, String googleCredentialJson, String serviceName, String serviceVersion, Nullable`1 batchSizeLimit, Nullable`1 period, Nullable`1 queueLimit, String outputTemplate, LogEventLevel restrictedToMinimumLevel, LoggingLevelSwitch levelSwitch)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Serilog.Settings.Configuration.ConfigurationReader.CallConfigurationMethods(ILookup`2 methods, IList`1 configurationMethods, Object receiver)
   at Serilog.Settings.Configuration.ConfigurationReader.ApplySinks(LoggerConfiguration loggerConfiguration)
   at Serilog.Settings.Configuration.ConfigurationReader.Configure(LoggerConfiguration loggerConfiguration)
   at Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)
   at Serilog.ConfigurationLoggerConfigurationExtensions.Configuration(LoggerSettingsConfiguration settingConfiguration, IConfiguration configuration, String sectionName, DependencyContext dependencyContext)
   at Serilog.ConfigurationLoggerConfigurationExtensions.Configuration(LoggerSettingsConfiguration settingConfiguration, IConfiguration configuration, DependencyContext dependencyContext)
   at Application.Reserve.Web.Program.InitLogging(IConfiguration configuration) in /app/Web/Program.cs:line 59
   at Application.Reserve.Web.Program.Main(String[] args) in /app/Web/Program.cs:line 18

If Grpc.Core package is referenced in both runtime-projects, the problem goes away - Grpc.Net.Client does not help.
The Dockerfile used for GCP App Engine :
FROM node:14-alpine AS frontend-build
WORKDIR /app

COPY ./frontend/package.json ./
COPY ./frontend/yarn.lock ./
RUN yarn install --frozen-lockfile

COPY ./frontend ./
RUN yarn build

FROM mcr.microsoft.com/dotnet/sdk:8.0.201 AS dotnet-build

WORKDIR /app
COPY ./backend/Directory.Build.props ./

COPY --from=frontend-build /app/dist ./Web/wwwroot
RUN dotnet publish Web/Web.csproj -c Release -o out

FROM mcr.microsoft.com/dotnet/aspnet:8.0.2 AS runtime
WORKDIR /app
RUN apt update && apt install -y apt-utils libgdiplus libc-dev

COPY --from=dotnet-build /app/out .
ENTRYPOINT ["dotnet", "Application.Reserve.Web.dll", "--urls", "http://<IP_ADDRESS>:8080"]

The only "pure" Google Cloud packages we depend on are
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.8.0" />
<PackageReference Include="Serilog.Sinks.GoogleCloudLogging" Version="3.4.0" />

The answer was staring me in the face 🤦 I forgot to bump the Serilog.Sinks.GoogleCloudLogging package and the stacktrace pointed to it. After upgrading to version 5.0.0 and removing Grpc.Core, the problem went away. Closing.


Ryoshida internal comp event

Description
Added Internal Competition Event
TODOs

[ ] Link Google Form for resume/metadata info
[ ] Any other relevant links need to be added (such as competition links)

Questions

[ ] Do we want to mention the resume books in the event post?

Status

[x] Ready to go

Looks great! We can mention the resume book after the Google Form is made


docs: Fix the annotation name in affinity examples

The affinity annotation name was incorrect, the correct name should start with resource-policy.nri.io

This is related to issues found in #65


Make Nebula API simpler for fading

The <Nebula> API is now simpler. You only pass with colors you want to see and the nebula automatically and smoothly transitions.
This also fixes that the color change when going from intro to settings is now smooth.

LGTM over all. One thing, when you start game then hit back button, nebula stays as danger mode (red) color for the top page view. (we can track this in other issue tho.)

when you start game then hit back button, nebula stays as danger mode (red) color for the top page view

Good catch. Will fix.


Upgrade to Polkadot 0.9.20

https://github.com/paritytech/substrate/compare/polkadot-v0.9.19...polkadot-v0.9.20
There's no notable upstream change

[x] Check pending Substrate migrations

No pending migrations

I'm going to merge this after CI paasd.
cc @h4x3rotab


Karma - Add media library with images and videos

Summary
Adds media library with both images and videos to the karma runner for tests:

Relevant Technical Choices
Images and videos taken from NASA's public library. Should be under some open license, but not sure if compatible actually. @swissspidy?
Added ogg videos, as normal mp4 video formats aren't supported in Chromium. Videos are short (6 and 8 seconds) to save space.
To-do

[x] Done

User-facing changes
None
Testing Instructions
None

Fixes #

Images and videos taken from NASA's public library. Should be under some open license, but not sure if compatible actually

should be fine, especially because these are only used for tests and not shipped with the final plugin.


Dialogs in Zelda mess up

Everything else seems fine, but load Zelda and page through dialogs and there are boxes on them where "black" space should be.  The dialog is rendered by the background.
I did a quick test and "tinted" tileNumber 0x00.  Oddly, there was one box (that matched theses) on the left side of the exit hallway.  It tinted as expected.. but it was ALSO the same "box" that showed up in the dialogs and it was tinted too! So, I'm guessing these are not mapped correct.
Tinted hallway:

Tinted dialog:

This appears fixed by pull request #104


[Bug?]: Could not parse content as FormData on AWS Lambda

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
When deploying to AWS Lambda and submitting a form in an application the submission fails and returns at HTTP 500.
This occurs even with a simple form and corresponding action
import {formAction} from '~/server';

export default function FormPage() {
  return (

Form

      <form action={formAction} method='post'>
        Name
        <input type="text" name="name" id="name-input" />
        Password
        <input type="password" name="name" id="password-input" />
        <button type="submit">
          Submit
        </button>
      </form>

  );
}

export async function formTest(formData: FormData) {
    const name = String(formData.get('name'));
    const password = String(formData.get('password'));
    console.log(name, password);
    throw redirect('/');
}

...

export const formAction = action(formTest, 'form-action');

The form fails and responds with a HTTP500 and the following error:
_Request.formData: Could not parse content as FormData.
The full traceback

at webidl.errors.exception (node:internal/deps/undici/undici:1432:14)    at _Request.formData (node:internal/deps/undici/undici:4505:33)    at async Object.D$2 [as handler] (./server/chunks/nitro/aws-lambda.mjs:7596:14)    at async Object.handler (./server/chunks/nitro/aws-lambda.mjs:3471:19)    at async toNodeHandle (./server/chunks/nitro/aws-lambda.mjs:3660:7)    at async Runtime.handler (./server/chunks/nitro/aws-lambda.mjs:8890:13) | 2024-01-28T16:03:43.140Z ec66aefc-a464-426b-a65b-a99ae9dbcfdd ERROR [nitro] [request error] [unhandled] _Request.formData: Could not parse content as FormData. at webidl.errors.exception (node:internal/deps/undici/undici:1432:14) at _Request.formData (node:internal/deps/undici/undici:4505:33) at async Object.D$2 [as handler] (./server/chunks/nitro/aws-lambda.mjs:7596:14) at async Object.handler (./server/chunks/nitro/aws-lambda.mjs:3471:19) at async toNodeHandle (./server/chunks/nitro/aws-lambda.mjs:3660:7) at async Runtime.handler (./server/chunks/nitro/aws-lambda.mjs:8890:13)

The form data fields appear to passing to the body correctly. Perhaps there is something in the Lambda node runtime that im missing?
Forms work fine in the local development server and when building to node.
Expected behavior 🤔
Forms should submit normally.
Steps to reproduce 🕹
An minimal reproducible example repo is available here:
https://github.com/russbiggs/solid-start-form-lambda
This include AWS CDK for deploying to AWS lambda and generating an public URL.
Context 🔦
Attempting to deploy a solid-start application with forms on AWS lambda.
Your environment 🌎
System:
    OS: MacOS Ventura 13.1
    Arch: Apple M1 arm64
Binaries:
    Node: v18.15.0
    npm: 9.8.1
npmPackages:
    vinxi: 0.1.10
    solid-js: 1.8.12
    @solidjs/meta: "^0.29.2",
    @solidjs/router: "^0.10.10",
    @solidjs/start: "^0.4.11",

This issue seems to be have been resolved somewhere between vinxi 0.1.10 and 0.3.10 and/or solid start 0.4.11 and 0.7.5.  Running the demo repo listed above on lambda with the updated version does seem to submit as expected.

Awesome. Thanks.