Do you any another example?

Hello @theKlanc , thanks for sharing!
I am trying to figure out how to use it...
I don't know how to "redirect" or to get notified on customCommand1 function:
It's not being called  (when a new line is entered).
Even when instantiated the object as :
myCustomConsole c = { true };
	void customCommand1(std::stringstream args, customType data) {
		cout << "customCommand1" << endl;
	}

--
BTW, I also edited 'processCommand' to fill the upper text, but I am not sure if I am doing it well...
	void processCommand(T data) {
		cout << "processCommand(T data)" << endl;

		std::string command(_textEntryBuffer.data());
		std::fill(_textEntryBuffer.begin(), _textEntryBuffer.end(), '\0');
		_commandHistory.emplace_back(command);
		while (_commandHistory.size() > _maxHistoryLines) {
			_commandHistory.pop_front();
		}
		std::cout << command << std::endl;
		auto cmdName = command.substr(0, command.find(' '));
		auto cmd = _commandList.find(cmdName);
		if (cmd != _commandList.end()) {
			cmd->second(std::stringstream(command.substr(command.find(' ') + 1, command.size() - command.find(' ') - 1)), data);
		}

		//TODO:?
		_terminalBuffer += (string)(command);
		_terminalBuffer += "\n";
	};

Thanks

Hi @moebiussurfing ! Thanks for trying the library! :D
Could you show me your myCustomConsole definition?
You just need to overload the constructor and call BIND(customCommand1) in its body, like in the example.
Here's an example of its usage in my own project: https://gitea.ledgedash.com/klanc/Spaceworks/src/branch/master/source/gameConsole.cpp

Thanks for your code.
That helped. I understood a bit more.
I learn to use the data as pointer, to allow modifying backwards.
customType* data
I also some of your argument's catcher/filter snippets.
--
PS
Here's my code:
https://github.com/moebiussurfing/ofxSurfingImGuiExtra/blob/master/0_NewExamples WIP/00_ConsoleWidget/src/console/surfingConsole.h
What I don't understand is that when instantiating as redir = true,
myCustomConsole c = { true };
all the console app is handled on the imgui window..
but if redir = false, all the console goes through the Windows window.
I should check better.
Thanks!


Roll back FITS to working version. Upgrade when https://github.com/ha…

…rvard-lts/fits/issues/256 is included in the next release.

After reviewing within the tech call we have decided to merge.

Looks like 1.5.3 may have been released that fixes an issue that fixed this in 1.5.2?
https://github.com/harvard-lts/fits/issues/316#issuecomment-1115017149


BanUnknownTypedClassPropsReferences spurious false positives under NTI

I've a feeling this is a known limitation but couldn't find any hard evidence of this (e.g. existing issue).
I'm needing to disable this conformance check because I'm now getting a number of false positives where type information is categorically known for all values involved in an expression. This only happens when NTI is on. When OTI only is running, the check runs fine.
A version around mid summer did not have this issue.
I've not been able to put together a test case for this yet. If this is a known limitation, I'll leave it at that.

Not a known issue. We definitely don't want to lose type information in NTI, so if you find a repro, please post it here and I'll fix. Closing for now since we can't do anything without a repro.

https://closure-compiler-debugger.appspot.com/#input0%3Dclass%2520ST%2520%257B%250A%250A%2520%2520%2520%2520constructor()%2520%257B%250A%2520%2520%2520%2520%2520%2520%2520%2520window.setTimeout(()%2520%253D%253E%2520console.log(%2522a%2522)%252C%25200)%253B%250A%2520%2520%2520%2520%257D%250A%250A%257D%250A%250Aexport%2520default%2520new%2520ST()%253B%250A%26input1%26conformanceConfig%3Drequirement%253A%2520%257B%2520type%253A%2520CUSTOM%2520java_class%253A%2520'com.google.javascript.jscomp.ConformanceRules%2524BanUnknownTypedClassPropsReferences'%2520error_message%253A%2520'Unknown%2520typed%2520class%2520props%2520reference'%2520%257D%250A%26externs%26refasterjs-template%26includeDefaultExterns%3D1%26CHECK_SYMBOLS%3D1%26CHECK_TYPES%3D1%26CHECK_TYPES_NEW_INFERENCE%3D1%26CLOSURE_PASS%3D1%26MISSING_PROPERTIES%3D1%26PRESERVE_TYPE_ANNOTATIONS%3D1%26PRETTY_PRINT%3D1%26TRANSPILE%3D1

@dimvar Here's one case where the unknown type is setTimeout on window from the default exterrns
I also had many more internal cases not related to externs, but hopefully this is the same problem. Should this be reopened or is this test case a different issue and known limitation?

@dimvar did you get a chance to look at the new debugger link above? and perhaps reopen? I've currently disabled all benefit of this conformance check because of this issue.

I didn't get a chance to look at this again yet. Will do. Hopefully this week.

Thanks!
On 28 Nov 2016 8:02 p.m., "Dimitris Vardoulakis"<EMAIL_ADDRESS>wrote:

Reopened #2167 https://github.com/google/closure-compiler/issues/2167.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/closure-compiler/issues/2167#event-874206538,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJzfHmNDVbANsV0r5N6WvSLwBz0z23VPks5rCzM9gaJpZM4K7C2g
.


Route entry lost

I have 3 master nodes where maser03 restarts due to hardware failure. After master03 is started, it is found that a routing table to master01 and master02 is lost, the function of this route is mainly coredns, may I ask why this route is lost?
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment

Calico version: v3.14.1-4
Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes v1.20.1-20
Operating System and version:  ubuntu 18.04.4
Link to your project (optional):

@jumpsre can you share the content of main route table and also point which ones are being lost?


⚠ T:Riza Api has degraded performance

In 259fe7c, T:Riza Api (https://infra.triza.dev/api) experienced degraded performance:

HTTP code: 200
Response time: 2889 ms

Resolved: T:Riza Api performance has improved in 42c8d09.


Update hardcoded references to 2019-09-17 index

Description

I found 2 hardcoded references to "2019-09-17". They're not very important but I'll add a note about them to the index update guide.

Notes

The docker-compose.yml default gets overwritten as long as the env variables are loaded from Parameter Store.
DEFAULT_S3_NT_INFO_DB_PATH looks like an edge case based on the comment.

Changed one reference 👍 not sure what to do about the docker-compose one b/c it should never be used in a deployed env but I think it does need a value for local development.


Updated bitballs doc to reflect the 3.0 changes

Changes to the documentation based on the latest BitBalls 3.0 update. Code snippets have been updated along with references to can.Map and can.List.

Coverage remained the same at 96.262% when pulling 4c5e2651a2e794c205ec57cbf60c005f86aed036 on updating-bitballs-doc into c300e8464de36f17aec46f259d979e556d87ea0c on master.

LGTM. @justinbmeyer any reason not to merge?

I haven't reviewed it for completeness, but nevertheless, it should be merged.
Sent from my iPhone

On Feb 14, 2017, at 7:15 AM, Matthew Phillips<EMAIL_ADDRESS>wrote:
LGTM. @justinbmeyer any reason not to merge?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Hovering over the edit option displays as test

It is in the professor dashboard, in the applications tab.

Removed the tooltip all together


change recording (noun) to 'recording session' throughout app.

recording (verb), as in the mode you're in when you're recording, stays unchanged.

Keep 'Recording' in UI labels, but refer to as 'Recording Session' in documentation.


⚠ Cioos National CKAN has degraded performance

In 7e46e57, Cioos National CKAN (https://catalogue.cioos.ca/) experienced degraded performance:

HTTP code: 200
Response time: 5221 ms

Resolved: Cioos National CKAN performance has improved in fd33c78 after 8 minutes.


mac

1、安装了brew工具
2、安装了ffmpeg工具
3、安装了python工具
依然无法使用，显示command not found

The shell outputs command not found to any command it can't find locally or on the PATH, so I'm not sure what's going wrong exactly.
If the shell can't find auto-editor, You need to install it with pip. pip install auto-editor
If the shell can't find pip, but can find python3, run: python3 -m pip install auto-editor. The shell still won't be able to find auto-editor since the shell still can't find pip but it can find python3 -m auto_editor and you can use that instead of auto-editor

Closing because it's stale


electron-rebuild fails with electron v8

I was using electron v7.1.10 and all was fine.  I just updated electron to v8.0.0 and now when I try to run electron-rebuild I get the following error message:
An unhandled error occurred inside electron-rebuild
Could not detect abi for version 8.0.0 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

Error: Could not detect abi for version 8.0.0 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    at Object.getAbi (C:\main\node_modules\node-abi\index.js:30:9)
    at new Rebuilder (C:\main\node_modules\electron-rebuild\lib\src\rebuild.js:126:28)
    at rebuildWithOptions (C:\main\node_modules\electron-rebuild\lib\src\rebuild.js:404:23)
    at Object.doRebuild [as rebuild] (C:\main\node_modules\electron-rebuild\lib\src\rebuild.js:427:16)
    at C:\main\node_modules\electron-rebuild\lib\src\cli.js:120:33
    at Generator.next (<anonymous>)
    at fulfilled (C:\main\node_modules\electron-rebuild\lib\src\cli.js:6:58)

I tried adding the latest version of node-abi to my project but I still get the same error

never mind.  I discovered I had node-abi v2.13.0 installed.  When I updated it to v.2.14.0, everything started working again.


CI: /tmp/vagrant-install-runc: line 5: GOPATH: unbound variable

Run vagrant up --provision-with=selinux,install-runc,test-integration
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'fedora/33-cloud-base' version '33.20201019.0' is up to date...
==> default: Running provisioner: install-runc (shell)...
    default: Running: inline script
    default: /tmp/vagrant-install-runc: line 5: GOPATH: unbound variable

Observed in https://github.com/containerd/containerd/pull/5157/checks?check_run_id=2083879992

Seems to have disappeared. Probably the CI disk image was temporarily unstable.


Minor improvements to clear cache

:x: Build NanoPyx 263 failed (commit https://github.com/HenriquesLab/NanoPyx/commit/e684c5c597 by @paxcalpt)

:x: Build NanoPyx 264 failed (commit https://github.com/HenriquesLab/NanoPyx/commit/f2e147749c by @paxcalpt)

:white_check_mark: Build NanoPyx 268 completed (commit https://github.com/HenriquesLab/NanoPyx/commit/bdbec3bd7a by @paxcalpt)

:white_check_mark: Build NanoPyx 265 completed (commit https://github.com/HenriquesLab/NanoPyx/commit/bdbec3bd7a by @paxcalpt)

:x: Build NanoPyx 266 failed (commit https://github.com/HenriquesLab/NanoPyx/commit/1757151df1 by @paxcalpt)

:white_check_mark: Build NanoPyx 270 completed (commit https://github.com/HenriquesLab/NanoPyx/commit/9d6dffc580 by @paxcalpt)

:white_check_mark: Build NanoPyx 267 completed (commit https://github.com/HenriquesLab/NanoPyx/commit/9d6dffc580 by @paxcalpt)

:white_check_mark: Build NanoPyx 268 completed (commit https://github.com/HenriquesLab/NanoPyx/commit/82a9402ae8 by @paxcalpt)

:white_check_mark: Build NanoPyx 271 completed (commit https://github.com/HenriquesLab/NanoPyx/commit/82a9402ae8 by @paxcalpt)


Sigv4a signing region set config bugfix

Fixes a bug where the sigv4a_signing_region_set configuration in the config file and the corresponding environment variable would be ignored

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.08%. Comparing base (0e229ae) to head (6f9adef).
Report is 106 commits behind head on develop.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3279      +/-   ##
===========================================
- Coverage    93.17%   93.08%   -0.10%
===========================================
  Files           66       66
  Lines        14339    14345       +6
===========================================
- Hits         13361    13353       -8
- Misses         978      992      +14

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix start-local for get-started examples and test apps

Coverage remained the same at 62.289% when pulling 80059ba2fa2f91de7937b63147809c1eec4a6eab on x/local-config into 033546b69a5f97865d85a4f03a2e1dac0b3f522b on master.


JetBrains Mono Ligatures not working

Environment
Microsoft Windows [Version 10.0.19041.208]

Steps to reproduce

Install JetBrains Mono

Add the line

"fontFace" : "JetBrains Mono Regular"

to a profile or the profile defaults in settings.json
Expected behavior
JetBrains Mono works with ligatures
Actual behavior
Ligatures aren't working

Was a mistake on my part, removing the Regular fixed it

still not working

@stackgik Try using Windows Terminal Preview v1.18. (And please write more information when reporting issues in the future. 🙂)

i use Linux

this the settings i currently have @lhecker  and Ligature is still not working

If you have an issue with Windows Terminal (= not macOS, not VS Code) you can report your issue here: https://github.com/microsoft/terminal/issues/new/choose
If you have an issue with VS Code on macOS you can report it here: https://github.com/microsoft/vscode/issues/new/choose


[DO NOT MERGE] Edits to External participants in Yammer

Made requested edits to the article.
Added an intro sentence to the body to describe why an admin would want this list. I leveraged it from add-external-participants.md,  but the author should verify that it accurately describes the reason.
Moved content in step 2 to a note above the image, and indented info and the image that's directly part of step 2.
Minor edits for clarity.
@tiburd

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

Copy review - just two minor styling edits.

Is this PR ready to merge? Title says do not merge.


Serve appshell.html from Rails

See: https://github.com/ticketsolve/ticketsolve/pull/2509
Mainly since we already have the index loaded from Redis

Parsing to remove CSP is done in Rails controller already
Rails controller will also remove manifest attribute from <html> tag

Bootloader needs to fetch appshell.html with revision key because when the manifest becomes obsolete, the dom is replaced by appshell. Visiting a revision would replace the dom with the current activated html otherwise.

OK to merge, I don't have write access to do so :(

I'll self-merge for now


Proposition: Remplace "scalar" keyword by the scalar types on PhpDocs

TL;DR: I proposed to replace all scalar keywords to string|float|int|bool. ⚠
🔗 Description
As the PHP documentation says, there are four scalar types in PHP:

boolean
integer
float
string

Also, there is a is_scalar() method, but the scalar type doesn't exist per see. 🎯

Example 1 🌜
I attach one picture of PHPStorm from this project which the scalar keyword appears highlight, which means it doesn't exist, and bottom the same method with the "correct" implementation.

Example 2 🌛
You can see in this second picture the PhpDoc returns an AbstractType, null and scalar, the method itself (L115) returns a string (but string is not a "scalar"), the program works as expected, but sometimes you see this kind of IDE "warnings/error/whatever".

What do you think? 💯

Pros:

IDE help
No annoying messages

Cons:

PhpDoc too long (which is not a real problem in my opinion)

Yes we can do this. Just create a pull request and I can merge it!

Fixed with PR #120


Fix missed fields in EVP_PKEY_meth_copy

I bumped in to these while working on the libp11 PKCS#11 engine.
Checklist

[x] tests are added or updated

This issue is in a state where it requires action by @openssl/committers but the last update was 52 days ago

This pull request is ready to merge

Merged. Thanks!


[Feature Request] Save to specific folder, and only certain files to cover

Hi,
Great work on the pupeteer-to-instanbul work - first found this repo after watching a Google IO talk.
It would be nice to:

Save the files to a specific folder (rather than a .nyc_output)
Some kind of filter/callback function so that files can be renamed (or ignored) before saving. This is especially useful if a site includes tracking scripts which do not need to have a coverage report

Thanks!

Great suggestions! I don't think I'll be able to take this on myself in the near future, but I've labelled it to hopefully allow it to get some attention

After https://github.com/istanbuljs/puppeteer-to-istanbul/pull/25, You can provide options to change outputFile and give a function that filters files.


[EUWE] Add Openstack Panko Events support

Openstack Panko service is about to take over Events login from Ceilometer.
Adding support for Panko service with fallback to Ceilometer for Events capture.
Euwe backport of https://github.com/ManageIQ/manageiq-gems-pending/pull/57

@miq-bot add_label euwe/yes,blocker
Tested manually on current euwe with OSP11.

Travis failures are propably caused by pending https://github.com/ManageIQ/manageiq/pull/14510 and https://github.com/ManageIQ/manageiq/pull/14511 backports.

Backported https://github.com/ManageIQ/manageiq/pull/14510 and https://github.com/ManageIQ/manageiq/pull/14511.  Re-starting Travis..

@simaishi Thanks!

@Ladas @blomquisg please approve if ok to merge


Help: how to setup port forwarding on static port

I'm running the latest image in a simple docker compose -- I'd like to understand how to deal with port-forwarding and static ports.
generally, I have always seen Docker images being built with ports that, internally, are static.
that's because the way of doing things in Docker, of course, makes it trivial for the user to specify what to do with those ports.
for example, we could have a docker-compose with 10 different containers/services, all publishing a different website on port 80.
the user could easily remap those ports, e.g. remapping 81:80 for service 1, 82:80 for service 2, and so on, or even add yet another container to really expose port 80 like a reverse proxy, leaving all the other ports internal in the docker-compose-specific private network.
I have successfully played around with https://github.com/qdm12/port-checker and port forwarding, but that container has been specifically built with a dynamic port, which is great but in general is not the case.
NOTE:
on this, I think there is some confusion between the environment variable PORT and LISTENING_PORT.
e.g. https://github.com/qdm12/private-internet-access-docker/issues/53#issuecomment-541997132 and https://github.com/qdm12/port-checker#setup vs. https://github.com/qdm12/port-checker#environment-variables ...
so my question is: how should I deal with static ports and remapping, if I want to exploit this gluetun service?
I cannot exploit the Docker way of remapping ports if I'm specifying a network_mode: "service:gluetun".
as an example, we could think of https://github.com/linuxserver/docker-nginx/ which exposes static port 80 internally, and expects the user the remap it to a different port, if needed.
I hope my question is clear. thanks!

Hi there, thanks for the detailed question. There is quite a few instructions / examples here in the readme. Actually let me know if you haven't noticed them, maybe it's time to make them more obvious.
You should map the ports in gluetun for the other containers. So specify - 80:80/tcp in gluetun even though it's nginx connected to gluetun (because under the hood they share the same network stack so are the same host).

Actually let me know if you haven't noticed them, maybe it's time to make them more obvious.

I'm positive I read all of them at first, but I might have skipped the last one in my earlier re-reading before opening the issue.
of course, that seems to be the answer. I'll try it out!

And yes it was PORT before and now LISTENING_PORT

well, I liked PORT more! there's only a single noteworthy port there, right? why complicate the variable?

although it should be retrocompatible.... should.

unless I was mistaken, it was not. :man_shrugging:

oh wait, maybe I closed this too soon.
what if I have two containers in the docker-compose, both using port 80 internally?
I would be able to remap only one of those ports in the ports section of the gluetun service.

Yeah I like PORT too but I preferred to make it obvious it was a listening port and not whatever other port that could be. Maybe a bit too paranoid though, I'll eventually revisit (I need to add a static ui too, that white page is just horrible) it.
Regarding your question on two containers listening on the same port, well you can't haha. Just change the internal listening port of one of the connected containers. On a side note, make sure to set EXTRA_SUBNETS to be able to reach those published ports. See #82 which should be fixed sometime soon.

Yeah I like PORT too but I preferred to make it obvious it was a listening port and not whatever other port that could be. Maybe a bit too paranoid though, I'll eventually revisit (I need to add a static ui too, that white page is just horrible) it.

yeah, fair enough. I was just confused because I was setting PORT and it was still listening on 8000, so... FYI.

Regarding your question on two containers listening on the same port, well you can't haha.

that's unfortunate. quite often, as I was saying, container maintainers assume as a fact that the user can remap the ports at will, but in this case it's not always possible.
I think I was reading this comment of yours, and I was hoping there would have been some new developments in the meantime:

Run the following (i assume your container is named pia)
docker exec -it pia /bin/sh
# get your forwarded port, say 6901 for example
port=`cat $PORT_FORWARDING_STATUS_FILE`
iptables -t nat -I PREROUTING -s 0/0 -d <IP_ADDRESS> -p tcp --dport 8000 -j REDIRECT --to-ports $port
iptables -t nat -I PREROUTING -s 0/0 -d <IP_ADDRESS> -p udp --dport 8000 -j REDIRECT --to-ports $port
exit

That basically redirects port 8000 to port 6901 ($port) in the container with protocols TCP and UDP.
Please then try it is accessible through port 8000 and report back? 😃
Sorry I haven't used port forwarding really, and I don't want to change all my infrastructure to test 😆
If this works, I'll add it to the port-forward.sh script and change the readme, so that you could even just publish port 8000 to access the forwarded port, no matter which one is forwarded. Note however that from an external point of view, it will still be 6901 or any port PIA assigns you.

Originally posted by @qdm12 in https://github.com/qdm12/private-internet-access-docker/issues/53#issuecomment-553670809
if it might be of help, I could reopen and rename this issue to signal the fact that with some clever iptables routing you could gain the feature of publishing two static ports to different external ports.

another question on the same argument: is there a way to publish a forwarded port?
as I see it, I need gluetun to start in order to establish a vpn connection and get assigned a forwarded port.
but, on the other hand, I cannot publish the port on my webserver container -- I would need to publish it on gluetun, instead.
doing that would require to recreate and restart the container, thus dropping the connection and the forwarded port together with it.

You would want to have the web server accessible through the vpn server side and on your vpn client right? Actually that would be a great addition, some iptable rule 'pinning' the port forwarded. So you could listen on port 9000 for example across reboots, and that would listen on whatever port you get forwarded by pia, using some redirection somehow. I'll dig into it.

Also one last FYI, I need to work on instructions to setup the vpn container as your default gateway. That way, you should be able to just specify it in the network configuration of a container. I'm not too sure of disadvantages/consequences yet though, but it will be an interesting alternative nonetheless.

I tried to run the container in a digitalocean server and access it from outside, it was failing for the whole time. Doing all kind of ufw allow PORT magic failed. Disabling the firewall did not work at all. :(
It allowed my connection when I put my own IP address as EXTRA_SUBNETS.

@entrptaher oh nice, thanks for letting us know! Putting your vpn ip address in EXTRA_SUBNETS right? (it's a routing issue). I'll fix it/test it now

Also, it takes extra 6 seconds to reach the port from outside. I tested 100+ times, from inside the server it's 10-100ms, from outside 6s or more.

I don't think the latency has something to do with the container though. But good to know. Again, what ip address did you set in EXTRA_SUBNETS? Your local public ip address? Or your vpn ip address? That may relate to #82 (another issue but it might be the same solution).

we are getting a bit off-topic, here! my fault as well. as I see it, the issues are:

how to do classic Docker remapping stuff with gluetun,
how to remap multiple static ports,
how to remap port-forwarded port.

@qdm12 let me know if I should open separate issues, instead.

Let's close this issue soon and create new ones as it's indeed hard to follow.
@entrptaher Can you please just let me know what IP address you put in EXTRA_SUBNETS to make the port forwarding work? Thanls!
@piramiday :

what if I have two containers in the docker-compose, both using port 80 internally?

I'm quite sure there is no way to do that as the Docker daemon will complain (out of the container control). You could however add some rules to redirect the port

how to do classic Docker remapping stuff with gluetun

That's mentioned in the readme, I don't think you can due to the nature of the networking here. Feel free to clarify if I misunderstood

how to remap multiple static ports,

That is about 1. right?

how to remap port-forwarded port.

Let's continue the conversation on #203

My static public/client IP from where I am accessing the proxy. So assume <IP_ADDRESS> is my IP,
Then I put,
EXTRA_SUBNETS=<IP_ADDRESS>/24

This is not my private IP like <IP_ADDRESS> or anything else.

@entrptaher I do not see how your docker compose and tinyproxy config is relevant to this issue -- I suggest you to mark your messages as off-topic and open up another issue.
@qdm12

what if I have two containers in the docker-compose, both using port 80 internally?

I'm quite sure there is no way to do that as the Docker daemon will complain (out of the container control). You could however add some rules to redirect the port

of course one can have a single docker compose with multiple containers, each exposing port 80.
with that "that", do you mean that you cannot expose both ports 80 from the gluetun container with a simple docker remapping?
if not, please elaborate.

how to do classic Docker remapping stuff with gluetun

That's mentioned in the readme, I don't think you can due to the nature of the networking here. Feel free to clarify if I misunderstood

I don't get it, why would exposing port 80 on the gluetun container work, as opposed to exposing it in the original, say, nginx container?
I might be missing docker networking basics, here, so feel free to link to some docker guide.

how to remap multiple static ports,

That is about 1. right?

it seems to me the answer is: you cannot do it without internal remapping.

how to remap port-forwarded port.

Let's continue the conversation on #203

great. closing this for now.

Thanks piramiday. Indeed @entrptaher is out topic, but thanks for trying to help nonetheless.
When you specify "service:gluetun" or "container:gluetun" as the network mode of other containers, they basically are processes running using the network stack of gluetun. So they're not hosts on their own, and therefore the only host here is gluetun. For some reason, docker/docker-compose decided that you should list your published port in the host container (gluetun) instead of in the 'only process' child containers, but it would result in the same anyway. That's a bit of a bummer indeed, I myself like having expose ports block for documentation in compose files.
Because there is only one host gluetun, you cannot have two processes (=connected containers) listening on the same port (as any host/machine would say).
I agree it's a bit annoying the way it works, especially documentation wise it is confusing to have ports published/exposed on gluetun for other containers.

understood, thanks for the explanation.
so effectively the first container/service/process to bind to port 80 would succeed, while the second would complain that somebody is already listening on port 80.
I thought they kept their independence as hosts and that they would both succeed.
okay, so this issue is really closed:

if you have a single port you want to publish, publish it on the gluetun container;
if you have multiple ports, you are out of luck.

Sorry for making this mistake, I had this problem and saw this was somehow related to port forwarding to a specific port. Specially the proxy ports were not reachable from outside the network provided by this docker image. I should create a new issue then.

@piramiday yeah indeed you are out of luck. I had two Deluge instances with their web ui listening on port 8112. I had to fiddle with the files of the container (not possible through env variables) to change the second one to 8113 for example. So not the best UX but still feasible most of the time.
@entrptaher It's indeed annoying to have to specify subnets in EXTRA_SUBNETS to allow to access through your LAN and/or outside your LAN.  On a related note, #82 has to be addressed. One way is to add routes to all IP addresses except the vpn ones (similar to specify all IPs in EXTRA_SUBNETS). The only thing is I'm not sure of the security implications (i.e. could anyone access your LAN through the vpn server end? Especially using a port forwarded... But I'll fix that up relatively soon.

As for multiple ports, not sure if this is helpful, but I used the compatibility mode with deploy replica.
version: '3.7'
services:
  Api:
    ports:
      - 8001-8005:8000
    deploy:
      - replicas: 5

Then ran it using this,
docker-compose --compatibility up


beta2 seems stuck in initial splash screen on firefox (46.0.1)

looks fine on chrome

Fixed in bf8d294bb4db9f73aa34fc921e8c1715bd0a6822.

I think this might be happening again - what was the underlying issue and resolution?

looking at the commit, the current issue might be a different reason, but having trouble loading https://augur-dev.firebaseapp.com/

SSL certificate is invalid so Firefox makes you run a wrongly signed site

Sorry, I forgot to push to augur-dev after making the fix.  Should be ok now.

Confirmed - it's fine now.


identical columns detected as diff

|--+ field 'xyz' parameters differ: db='varchar(40)', model='varchar(40)'
tested with django 1.10 & 1.11
django-extensions 1.9.8
how to fix this?

Would need to debug why it “Thinks” there is a difference. Might be something like the database having multiple versions or options to a varchar.
If you can dive into the code and prepare a PR (with a test case please if you can).
Otherwise we would need a reproducible test case in our test suite and I will try to look at it as soon as I can.

Django Model:
number = models.CharField(max_length=40, null=True,verbose_name='Chargennummer')
creator = models.CharField(max_length=20, null=True, blank=True)
Postgres:
Column      |         Type          |                              Modifiers
-----------------+-----------------------+---------------------------------------------------------------------
number          | character varying(40) |
creator       | character varying(20) |
But only number is detected as difference

Could you please create a PR with test case or a gist or repo with reproducible test case please ?

I looked into the code. It looks like something is unclear or someone made a mistake in merging a branch. The if which is the problem had changed from and to or, back to and and then merged back to or.

https://github.com/django-extensions/django-extensions/blob/master/django_extensions/management/commands/sqldiff.py#L438
If i change it back to and, it looks like it is working as expected.
Because we do not use Unittest or SQLite i am not able to write a test.
But i tryed to change the test so i can debug the code. (with Postgres and pytest)
model_check is None, but db_check not.


New version: Alibaba.DingTalk version 6.3.35-Release.3179104

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 454
Microsoft Reviewers: Open in CodeFlow

/azp run


Smoothness Priors vs Basis Truncation

The basis truncation should normally be along level lines of the smoothness prior. At the moment this is extremely confusing. More generally I think the connection between these two needs a serious overhaul. Maybe this can be done in conjunction with the smoothness paper.
CC @wcwitt @JPDarby

This has now become a basic principle of the new implementation in #188


Fixed error when class name was specified

I corrected the error in this case.
$this->addBehavior('Upload', [
    'className' => 'Josegonzalez\Upload\Model\Behavior\UploadBehavior',
    'field' => []
]);

Coverage remained the same at 100.0% when pulling 73d9cc97bb83b42d1a8a6f13add4f32a21f55df5 on slywalker:fix-error-when-class-name into 90f3f8ae5c44c5639b33338b9f24c81811bb7647 on josegonzalez:master.


Update nodesetboot.ronn

Changes made for Option chapter:

updated -m command
added -h command

Synopsis chapter was reduced to single line

Cannot be merged


Update SQL Server versions to include 2022

Updating documentation to let readers know that SSMS 19 can work with SQL Server 2022.

@jBarrineau : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@erinstellato-ms
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
#assign:@MicrosoftDocs/public-repo-pr-review-team

The following users don't have valid GitHub IDs, or are not collaborators on this repo: microsoftdocs/public-repo-pr-review-team


How can this be used in conjunction with django-filter?

import django_filters
class ProductFilter(django_filters.FilterSet):
class Meta:
model = Product
fields = ['name', 'price', 'manufacturer']
def product_list(request):
filter = ProductFilter(request.GET, queryset=Product.objects.all())
return render(request, 'my_app/template.html', {'filter': filter})

Hi,
you can declare your filters the same way as in DRF https://www.django-rest-framework.org/api-guide/filtering/#djangofilterbackend
Like so
class ProductService(generics.GenericService):
    filter_backends = [DjangoFilterBackend]
    filterset_class = ProductFilter

Hi, you can declare your filters the same way as in DRF https://www.django-rest-framework.org/api-guide/filtering/#djangofilterbackend
Like so
class ProductService(generics.GenericService):
    filter_backends = [DjangoFilterBackend]
    filterset_class = ProductFilter

I saw that the source code does not handle the filterset_class logic. Do I need to add this logic
filter_queryset = BookFilter({'min_price': 100}, queryset=querysrt)?
from django_filters import rest_framework as filters
from book.models import Book

class BookFilter(filters.FilterSet):
    min_num = filters.NumberFilter(field_name="num", lookup_expr='gte')
    max_num = filters.NumberFilter(field_name="num", lookup_expr='lte')

    class Meta:
        model = Book
        fields = ['name', 'pub_date']

    async def List(self, request, context):
        """
        List a queryset.  This sends a message array of
        ``serializer.Meta.proto_class`` to the client.

        .. note::

            This is a server streaming RPC.
        """
        queryset = await sync_to_async(self.get_queryset)()
        queryset = await self.afilter_queryset(queryset)
        queryset = await self.filterset_class({'min_num': 100}, queryset=queryset)
        page = await sync_to_async(self.paginate_queryset)(queryset)
        if page is not None:
            serializer = await self.aget_serializer(page, many=True)
            message = await serializer.amessage
            if hasattr(message, "count"):
                message.count = self.paginator.page.paginator.count
            return message
        else:
            serializer = await self.aget_serializer(queryset, many=True)
            return await serializer.amessage

@lzy350593418 Not sur about what is your issue here.
the filter is done by queryset = await self.afilter_queryset(queryset) you should not call an other queryset = await self.filterset_class({'min_num': 100}, queryset=queryset)
But you indeed need to set you filters into a metadata filter key name FILTERS.
See here for a  python example: https://github.com/socotecio/django-socio-grpc/blob/master/django_socio_grpc/tests/test_filtering.py

This might also answer my question, @AMontagu (in the examples repo) :) - I will test it.


Use an alternate doxygen download link

Looks like doxygen.nl is down otherwise.

https://www.doxygen.nl loads fine for me.

@bjorn3 it appears to be back up now but it was down for a few hours at least.

(And, actually, is still down at least for some CI jobs, perhaps due to DNS caching or other issues; see e.g. here just a few minutes prior to this comment)


Create pasu.yml

hi @pasumps1 you will need to enroll for the course and complete all the tests before you can request the completion certificate.
Thanks!


Added extension summary guidelines to docs

Codecov Report

Merging #6610 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##           dev   #6610   +/-   ##
===================================
  Coverage    0%      0%
===================================
  Files       11      11
  Lines      145     145
  Branches    11      11
===================================
  Misses     145     145

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 436185a...09c9430. Read the comment docs.


[LIVE-9074][LLD][Stax Onboarding] Infinite loading when trying to onboard LNX through Stax onboarding

📝 Description
Fix an infinite loop on select ledger stax while LNX plugged during onboarding
❓ Context

Impacted projects: LLD
Linked resource(s): LIVE-9074

✅ Checklist

[ ] Test coverage
[x] Atomic delivery
[x] No breaking changes

📸 Demo
https://github.com/LedgerHQ/ledger-live/assets/145363160/98374c99-f372-42a4-8c02-5bbfee910cd3

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

The demo scenario is:

click on Stax onboarding with LNX plugged -> redirection to LNX onboarding
go back
click on Stax onboarding with Stax plugged -> continue with Stax onboarding

/generate-screenshots


I set git bash as a default terminal, but it is still opening powershell

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

VS Code Version: 1.60.0 -insider
OS Version: Windows 7 32 bit

Steps to Reproduce:
Before this, i said git bash is not working. But after i installing it in Program files it started working well. But after updating it. It is not working
my extensions are vim, latex workshop, bracket pair colorizer, code spell checker and material icon them
See this video:
https://user-images.githubusercontent.com/85733811/128548670-19562e60-b7ec-4476-9081-828af97d1ced.mp4

Most likely duplicate of #128763

valid bug, duplicate of https://github.com/microsoft/vscode/issues/130268 that will be fixed in insider's tomorrow


ENH: Try pip on CircleCI [circle front]

Let's see if things are easier with pip.

This seems to be a tiny bit faster than conda but not a ton. Good to know we should use pip, but I'm thinking we shouldn't switch CircleCI until our install instructions switch.


Client-side memory leak of inactive channel

[Abstract]
Although server and client both have idle connection management, we found client-side memory leak of inacvite channels associated with port 10909, which, actually, is hard to described as a corner case.
[Detail]
Here is a case in point.

A high occupation of heap memory by NettyRemotingClient is shown above. Normally, a singleton instance should not be like this. Analyse the heap dump with MAT, it's easy to find a memory leak of channelTables.

Too many closed channels are still alive in channel table preventing garbage collection of themselves and other relative objects such as instances of ChannelWrapper, SelectionKeyImpl.

Use OQL,
select * from sun.nio.ch.SocketChannelImpl t where t.state = 4 // ST_KILLED
select * from sun.nio.ch.SocketChannelImpl t where t.state = 4 and toString(t.remoteAddress).endsWith(":10909")
The entries count are almost the same, and is much larger than the num of acvite channels (ST_CONNECTED). This indicates that the application creates many socket connections and never clean the resources. Server port-10909 is used as fast remoting port, especially, of those 10909 tcp sockets, there are one active socket connection and many inactive connections with the same remote broker address.
Is the channel reuse not working?
No, the anwser is obvious, the created channel is somehow closed and the client has to recreate one and thus results in a memory leak. This situation only happens when a channel IdleStateEvent triggered in broker and it closes the channel directly, for example, a producer connects to the broker but sends message not frequently, the broker will close the channel which has not performed read, write operation for 120 seconds by default.
So the reproduce procedure is simple, start a local producer and send messages every 125 seconds, FGC occurs eventually, that's why we say it's not a corner case but can only cause serious result after a long period of running.
[Bug Fix]
The root reason is that inactive event is an inbound event, the channel of the ChannelHandlerContext was registered is now inactive and reached its end of lifetime, channelInactive(ChannelHandlerContext ctx) is invoked when a channel leaves active state and is no longer connected to its remote peer.
So the solution is to implement the channelInactive() method and close the channel on the client side.
[Furthermore]
What about the client channel connections with name server?
Not the same, client instance will update topic route every 30 seconds even if no messages sent at all.

@imzs Thanks for your feedback, we will check this issue.

I don't reproduce the problem
The channel can be closed when stay long time and enable vipChannel
so i think maybe not the problem which the channel didn't close

Hello @imzs ,
Can you please provide more info,such as RocketMQ version, OS, jdk version and so on?

@Oliverwqcwrw HI, sorry to reply so late, let me explain it, the leak is a result of this issue combined with epoll cpu 100% bug, once the selector is rebuilt, channel and key leak occurs.


train AffectNet and get best acc:0.6094. What did I do wrong?

There is my settings,
bs                                       : 256
dataset_root_path              : /root/data/dataset/AffectNet_NEW/
lr                                         : 0.0001
num_class                           : 8
num_head                           : 4
num_workers                      : 24
rand_seed                           : 63079
save_path                           : checkpoint/train_DAN_ORIGN/63079
test_list                               : ['process_data/affectNet/AffectNet_Validation.list']
total_epoch                        : 40
train_list                              : ['process_data/affectNet/AffectNet_Train.list']
[Epoch 40] Training accuracy: 0.6057. Loss: 1.850. LR 0.000000
[Epoch 40] Validation accuracy:0.6036. Loss:1.867
best_acc:0.6094
The only code different is that I do not using datasets.ImageFolder to read data.
In your implementation details, i find that "On RAF-DB and AffectNet datasets, we use the official aligned images samples directly.".  I train Affectnet data using "Manually_Annotated" dir.
I find that your affectnet.csv is different from mine on image file name and your affectnet.csv is preprocessed.
I test affecnet8_epoch5_acc0.6209.pth using my validation list, but get acc is 0.6039.
so, What dataset are you using? how do you process affectnet?
What did I do wrong?

Thanks for your interest! I think it's a dataset issue. The standard AffectNet already contains the cropped facial images and you don't need to do any extra manual annotation. The only thing you should do is to parse the label information.

thanks for your reply.
i find your train image name is ****.jpg affectnet.csv. Do you change the image name in making a csv file?  Do you use "Manually_Annotated" Folders data in AffectNet? or Can you share your orign validation.csv?

The affectnet.csv file just for faster dataset loading, including the training and validation label info, I don't change the dataset. In fact, I also provide the orginal data loading method in the code, you can try this way to train the model.

Did you download your dataset from the official address?

Did you download your dataset from the official address?

No, I download from BaiduNetdisk. I don't find file name is '*_exp.npy'.

I suggest you download it from the official website.

I suggest you download it from the official website.

can you share your orign validation.csv to me for diffing, thanks very much

Please check the column 2 from affectnet.csv, I have split the dataset with "train" and  "val" masks.

Please check the column 2 from affectnet.csv, I have split the dataset with "train" and "val" masks.

i find that you rename the image file name, the csv file is different from downloading official website file.


{core} aaz: Ignore empty folders while loading aaz in modules

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

core


Python keywords cause errors when used as tag names

$ samsift -i filtered.sam -f 'is>50'
...


Setup CI / CD and basic tests for enable-contracts

I'm a bit OCD about these things, but they really improve development velocity after a while
CI Pipeline

[x] Set up Travis or Circle CI for tests before merge

Completed. CircleCI logs are here: https://circleci.com/gh/enabledao/enable-contracts


is that anyway to add the Stop button?

i couldn't add the Stop button ,
would you please let me know how to add the stop button?

Just set IsBusy property as false [IsBusy = false]


Research on Adding Waits for API requests

This can be used -> https://shirishams.medium.com/replace-thread-sleep-6b12def3c2e1


Simplify Stringifier.toString call in Java

Currently, when you write some complicated log message with several Messages, you should always call Stringifier.toString(...). You can't statically import this toString method. As a result, the code doesn't look well.
Some possible solutions:

Rename the method to stringify(...) so it's possible to import it statically;
Add some Spine-specific logging facade that accepts Message and automatically applies Stringifier.toString(...).

Add some Spine-specific logging facade that accepts Message and automatically applies Stringifier.toString(...).

@dmytro-kashcheiev, the first part is clear. I'm not quite sure about the second one. Please explain in more details. Give us  code snippets on what currently looks not so good, and how you'd like it to see.

@alexander-yevsyukov I've added more details to issue explanations with examples.


graph-node postgres db takes a lot of space

Do you want to request a feature or report a bug?
Yes seems like a logical problem to me
What is the current behavior?
I expect data base to only index data i need regarding the contracts i've mapped and it grows to 100gb in matter of days
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
setup a graph-node with BSC mainnet RPC : https://bsc-dataseed.binance.org/
What is the expected behavior?
Only index needed data related to my contracts

Try setting GRAPH_ETHEREUM_CLEANUP_BLOCKS=true, see the docs here https://github.com/graphprotocol/graph-node/blob/master/docs/environment-variables.md.

Thanks @leoyvens ,  i missed that doc there is not integrity in documents that points to different sections of it . Thank you anyway saved me a lot of time.


(maint) update to clj-parent 7.3.15

This changes the major version to 2.0.0 to indicate the major version change of clj-parent from 3.0.0 to 7.3.15.
It also adds in the i18n plugin and the resources needed for the CI pipeline to function correctly with the plugin.

There's a failure in the tests around cwd OMM, but it happens on the tip of master too:
FAIL in (sets-cwd-correctly) (shell_utils_test.clj:110)
sets current working directory correctly
expected: (= (str tmpdir "\n") (:stdout (sh-utils/execute-command (script-path "echo_cwd") {:cwd tmpdir})))
  actual: (not (= "/var/folders/dh/ccmxd9mn1kggz9stfrm04vyh0000gn/T/\n" "/private/var/folders/dh/ccmxd9mn1kggz9stfrm04vyh0000gn/T\n"))

Might be a MacOS thing. In any event, not related to this PR.


Error 404 in Mac for Safari

Describe the issue
When I open classifai with Safari, Error 404 pops up...
Desktop:

OS: Mac
Browser: Safari

@amalsyahmi-certifai i believe you forget to attached the link to the solution?

Solution: https://github.com/CertifaiAI/CertifAI-Knowledge-Base/wiki/Supported-Operating-System-and-Browsers


Tooltip does not scale with a lot of text

When the content of the tooltip is large, the container width keeps expanding beyond the viewport.
There are some design implications to define the max width of the tooltip so the text wraps around once that limit is hit.

That's funny; last week I almost jokingly assigned this to you saying, "I have faith in your ability to fix this"  ;)

PR fixed this.


Tensorflow Fused Batchnorm to Pytorch?

Hi,
I'm currently trying to convert a custom ResNet18 from tensorflow to pytorch.
At the step of using mmconvert I ran into the following error:
IR network structure is saved as [ef6477f3b60b4424a909088cf082a038.json].
IR network structure is saved as [ef6477f3b60b4424a909088cf082a038.pb].
IR weights are saved as [ef6477f3b60b4424a909088cf082a038.npy].
Parse file [ef6477f3b60b4424a909088cf082a038.pb] with binary format successfully.
Target network code snippet is saved as [tf16.py].
Target weights are saved as [ef6477f3b60b4424a909088cf082a038.npy].
  File "/home/eyyub/mmdnn/venv/bin/mmconvert", line 11, in <module>
    sys.exit(_main())
  File "/home/eyyub/mmdnn/venv/local/lib/python2.7/site-packages/mmdnn/conversion/_script/convert.py", line 112, in _main
    dump_code(args.dstFramework, network_filename + '.py', temp_filename + '.npy', args.outputModel, args.dump_tag)
  File "/home/eyyub/mmdnn/venv/local/lib/python2.7/site-packages/mmdnn/conversion/_script/dump_code.py", line 32, in dump_code
    save_model(MainModel, network_filepath, weight_filepath, dump_filepath)
  File "/home/eyyub/mmdnn/venv/local/lib/python2.7/site-packages/mmdnn/conversion/pytorch/saver.py", line 5, in save_model
    model = MainModel.KitModel(weight_filepath)
  File "tf16.py", line 28, in __init__
    self.convolution_layer_block_layer1_batch_normalization_FusedBatchNorm = self.__batch_normalization(2, 'convolution_layer/block_layer1/batch_normalization/FusedBatchNorm', num_features=64, eps=0.0010000000475, momentum=0.0)
  File "tf16.py", line 173, in __batch_normalization
    layer.state_dict()['running_mean'].copy_(torch.from_numpy(__weights_dict[name]['mean']))
RuntimeError: The expanded size of the tensor (64) must match the existing size (0) at non-singleton dimension 0

I also got the same error (except for the tensor size) for a pretrained ResNet50 (not the one available in mmdownload. It seems to be related to FusedBatchnorm, I would like to know if mmdnn supports conversion of this op from tensorflow to pytorch and if it does, do you have any idea about where the issue could come from?
Thanks,
Platform (like ubuntu 16.04/win10):
Ubuntu 16.04
Python version:
2.7
Source framework with version (like Tensorflow 1.4.1 with GPU):
Tensorflow 1.8.0 GPU
Destination framework with version (like CNTK 2.3 with GPU):
Pytorch 0.4.0 (GPU)
Pre-trained model path (webpath or webdisk path):
Running scripts:
mmconvert -sf tensorflow -iw resnet-18_train.pb --inNodeName "input_x" --inputShape 224,224,3 --dstNodeName "output/BiasAdd" -df pytorch -om tf16.pth

Hey @namizzz thank for so much to have fixed this issue so fast!
I'm sorry to ask again but after pulling the master and running the same command line I have the current runtime error
  File "/usr/local/bin/mmconvert", line 9, in <module>
    load_entry_point('mmdnn==0.2.3', 'console_scripts', 'mmconvert')()
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/_script/convert.py", line 112, in _main
    dump_code(args.dstFramework, network_filename + '.py', temp_filename + '.npy', args.outputModel, args.dump_tag)
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/_script/dump_code.py", line 32, in dump_code
    save_model(MainModel, network_filepath, weight_filepath, dump_filepath)
  File "/usr/local/lib/python2.7/dist-packages/mmdnn/conversion/pytorch/saver.py", line 5, in save_model
    model = MainModel.KitModel(weight_filepath)
  File "tf16.py", line 28, in __init__
    self.convolution_layer_block_layer1_batch_normalization_FusedBatchNorm = self.__batch_normalization(2, 'convolution_layer/block_layer1/batch_normalization/FusedBatchNorm', num_features=64, eps=0.0010000000475, momentum=0.0)
  File "tf16.py", line 173, in __batch_normalization
    layer.state_dict()['running_mean'].copy_(torch.from_numpy(__weights_dict[name]['mean']))
RuntimeError: the given numpy array has zero-sized dimensions. Zero-sized dimensions are not supported in PyTorch

If you think the error not because I did something wrong and that it is worth to create a new issue to not pollute this one please let me know!
Thanks

Hi @Eyyub ,your running scripts is wrong, you need to add -dw pytorch.npy, because pytorch needs a converted weight file:
mmconvert -sf tensorflow -iw resnet-18_train.pb --inNodeName "input_x" --inputShape 224,224,3 --dstNodeName "output/BiasAdd" -df pytorch  -dw pytorch.npy -om tf16.pth -dw pytorch.npy

Hi @namizzz, sorry for disturbing again I tried using your command line and it didn't work :/
The model I'm trying to convert is the ResNet50 v1 SavedModel that I froze. By any chance did you try to convert this one to pytorch?

Hi @namizzz, my bad! I did it but still have an issue, as I understand it is very hard for you to detect the issue without knowing the commands I used, I made a script to reproduce the error:
pip install -U git+https://github.com/Microsoft/MMdnn.git@master
mkdir /tmp/issue362 && cd /tmp/issue362
wget http://download.tensorflow.org/models/official/20180601_resnet_v1_imagenet_savedmodel.tar.gz
tar -xvf 20180601_resnet_v1_imagenet_savedmodel.tar.gz
freeze_graph --input_saved_model_dir=20180601_resnet_v1_imagenet_savedmodel/1527888778 --output_graph=resnet50v1_frozen.pb --output_node_names="ArgMax,softmax_tensor"
mmconvert -sf tensorflow -iw resnet50v1_frozen.pb --inNodeName "input_tensor" --inputShape 224,224,3 --dstNodeName "softmax_tensor" -df pytorch -dw pytorch.npy -om resnet50v1.pth

Hi @namizzz, sorry to disturb again but do you have any about this issue?

Hi @Eyyub , thanks for your issue, we have fixed it !

Hi @namizzz excellent it seems this particular issue was fixed I can convert it now! I have an other issue though but I will open a new issue to not pollute this one.
Thanks!


revised regex pattern for darwin to detect decimal and other chars

on Darwin type machine, 'ng wp' would trim off the '.0' in my ssid:  'ATTPfD7hfi_5.0'
In [11]: match.groups('ssid')
Out[11]: ('ATTPfD7hfi_5',) <-- missing .0
Throwing this error:
b''b'security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n'
Therefore I modified the regex so it captures all chars after SSID: up until the \n in the pattern.

Nice work!


Updates needed to remove DeprecationWarnings

Some housekeeping is needed to respond to multiple DeprecationWarnings that are raised during testing.

DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

Read more about it in the FastAPI docs for Lifespan Events.
I will submit a PR for this.

DeprecationWarning: product is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use prod instead.

I will submit a PR for this.

DataFrame._data is deprecated and will be removed in a future version. Use public APIs instead.

This comes from the cachey dependency. It will likely require an upstream PR.

Submitted PR https://github.com/bluesky/tiled/pull/676 for the FastAPI lifespan events

Submitted PR https://github.com/bluesky/tiled/pull/677 to use numpy.prod() rather than numpy.product().

DataFrame._data is deprecated and will be removed in a future version. Use public APIs instead.

This comes from the cachey dependency. It will likely require an upstream PR.

It looks like Pandas wants to remove its BlockManager. The roadmap is not yet clear on what the replacement will look like, and there is not suggested alternate for accessing the blocks.  This access has remained stable for several years, and discussions suggest there is no hurry to change that.
So our best option here is probably to just ignore this warning.  We could specifically filter it with action: ignore:DataFrame._data is deprecated and will be removed in a future version. Use public APIs instead.:DeprecationWarning.
References

..
https://github.com/pandas-dev/pandas/issues/17302

Submitted PR https://github.com/bluesky/tiled/pull/682 to ignore the warnings from cachey.nbytes().

Maybe we can solve the cachey problem by simply dropping the dependency.


ci: Stop using most actions-rs actions.

This leaves a usage of their grcov. The actions from this organization aren't maintained and result in warnings within the GitHub Actions UI.

One difference is that the matchers in this toolchain action won't annotate the PR with warnings from clippy, etc.

Codecov Report
Patch coverage has no change and project coverage change: +0.69% :tada:

Comparison is base (966faaf) 79.33% compared to head (140f3bb) 80.02%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #108      +/-   ##
==========================================
+ Coverage   79.33%   80.02%   +0.69%
==========================================
  Files          27       27
  Lines        5217     5217
==========================================
+ Hits         4139     4175      +36
+ Misses       1078     1042      -36

see 5 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Where do you see it is unmaintained?

This is a good start: https://github.com/actions-rs/toolchain/issues/216
The actions-rs actions are using deprecated functionality within GitHub Actions that is planned to go away. For examples of that, scroll down on the right panel in https://github.com/foundationdb-rs/foundationdb-rs/actions/runs/6038305182 and everything about set-output and node12.

Perfect, thanks for the links and the contribution :tada:


WEBSITE_CONTENTSHARE app setting value should be 57 characters or less

Could we inform the customer that when using the WEBSITE_CONTENTSHARE app setting value should be 57 characters or less.
The reason being is that for slots we add an identifier to the end of the content share name.
More details can be found on ICM 223710369
https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata#share-names

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

ID: 18aa54fd-3aa1-37c5-925c-51a0195b1030
Version Independent ID: 60198016-1ea9-e7ae-b00b-2c665d5ad8ca
Content: App settings reference for Azure Functions
Content Source: articles/azure-functions/functions-app-settings.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Hello @nelroosevelt,
Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

@nelroosevelt I believe that the current doc recommends not setting WEBSITE_CONTENTSHARE so that it's generated during creation. If too long names are being generated (considering slot names) maybe this is a code bug somewhere in site creation. If you think that there is somewhere we can stop customers from accidentally creating a too long string here, please reach out to me over IM. #please-close


chore: added a list of supported platforms

Changes
added a list of supported platforms in pubspec.yaml

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (36fd61b) 100.00% compared to head (7f539a3) 100.00%.

:exclamation: Current head 7f539a3 differs from pull request most recent head b215b2b. Consider uploading reports for the commit b215b2b to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #29   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines          176       176
=========================================
  Hits           176       176

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


folder "cropped_videos_ant" for Hand Movement DataLoader

Hi,
In the Ego4D Hand Movement Prediction Baseline, the procedure needs rescaled input videos in the folder "cropped_videos_ant".
Are these videos generated from the code of this baseline or do they need to be downloaded?
I downloaded the dataset with ego4d --output_directory="~/ego4d_data" --datasets annotations clips --metadata --benchmarks FHO
but it seems that these scaled video are not there.
Moreover, it seems that the baseline don't have the script to generate the rescaled videos.
Thanks

Hi, thank you for opining the issue and apologies if there has been no reply yet. Maybe @VJWQ can help?

Hi @Marchetz , we hope our user can choose their desired resolution and encourage them to explore the ego4d dataset freely instead of being restricted by the limited clips we used to build this benchmark, so we didn't provide rescaled videos. You can always use ffmepg and the annotation file we provided to construct the cropped clips that fit your model design best.

Hello @VJWQ! I am curious if you already have the script that can used directly on the dataset to get the benchmark results as stated in the paper. Do you mind sharing it? Thanks!


Peering Request

Full Name
SpeedLinks
ASN
149058
PeeringDB Integration

[X] My PeeringDB Entries are current
[ ] Peer at ALL EXCHANGES (and skip the Peer Address(es) field below)

Peer Address(es)
<IP_ADDRESS>
<IP_ADDRESS>
Multihop

[X] Multihop Peering Request

Code of Conduct (TODO)

[X] I agree to follow this project's Code of Conduct

Hi there,
Could you have any news about this ticket?
Lupael

Peering has been configured for your router.
    Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
    <IP_ADDRESS>   4     149058         0         2        0    0    0    never       Active        0 Speed Links

Our router information is as follows:
hostname: route-views5.routeviews.org
asn: 6447
ip4: <IP_ADDRESS>
Route Views collects routing data which is freely made available.
For reference, real-time monitoring of the data you are contributing to
this collector can be examined using the BGPStream/bgpreader toolkit.
example 1. live data
bgpreader -l -p routeviews -R  -j
example 2. data past 24 hours
bgpreader -I 24h -c  -j
For more information, please see: http://www.routeviews.org/routeviews/index.php/faq/
and https://bgpstream.caida.org/
If you have any questions, please contact us at<EMAIL_ADDRESS>


Section 1: Deploying the Infrastructure hygiene. Multiple minor fixes.

[x] remove   "boot_object": "bootstrap300Resiliency.sh",

Title: 1. Deploying the infrastructure

[x] Capitalize the I in infrastructure to be consistent with the rest of the titles
[x] Include hyperlink for Service linked roles https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html
[x] "AWS requires “Service-Linked” Roles for AWS Auto Scaling, Elastic Load Balancing, and Amazon RDS to create the services and metrics they manage."
[x] "Roles" does not need to be capitalized

Change wording:

[x] In the past, these Roles may have been created automatically for you, or we may need to create them. Here is how to find which roles you need to create.  Suggestion:  These roles may already exist in your account as they would have been automatically created for you or you may need to create them. See steps 1.1 to check if these roles exist.
•	Switching between we and you
•	Lowercase roles
•	Some rewording
~Images use boxes instead of drawing tool?  Boxes look more tidy~ <- moved to #43

[x] 1.1 number 3

o	the filter box, type “Service”
•	Often use code formatting for anything you want them to type or copy/paste
o	look for “AutoScaling,” “ELB” or “ElasticLoadBalancing,” and “RDS.”
•	Make bullet list?  Would be easier to read
o	Make this a block quote to draw attention to it.
•	"Note which roles will need to be created as you will use this information when performing the next step."

[x] Formatting on 1.1 Step 4
o	In the AWS Services Search Box, type “CloudFormation” and click enter.
•	Standard for panes and boxes to look for?  Often it is italic.  Some formatting should be done to draw the eye to it.
•	Code format for Cloudformation
•	Bold for Enter
•	Add:  "At the top of the console, click on Services." before the sentence.

[x] 1.1. step 5
o	"You will need to download the CloudFormation template that will deploy the lambda functions and step functions state machine. Change the region to Ohio and navigate to the CloudFormation console."
•	Starting off by saying "you will need to download…" makes the reader start to look for what they should be downloading because it feels like they may have missed a step.  You are also having them reference a S3 object, not downloading locally.
•	I like that you are giving them context ahead of time (download, but they should not have too), but adding it as a block quote will let them know that it is additional information for context.
•	This may be a good spot to add an architecture diagram so they understand what they deployed
•	Start with telling them to change the region, then add any context for the next steps as a block quote.

[x] 1.1 Step 6
o	Cloudformation screen shot needs to be updated to the new console
o	Italic for Cloudformation Console

[x] 1.1. Step 7
o	Update screen shot for cloudformation console
o	Click "Next" (bold) instead of click enter
o	For each option (single vs. multi), make collapsible to make it more obvious that there are 2 choices ( )
o	"There are two versions that can be deployed. You can deploy in one AWS region, which will allow you start testing sooner, or you can deploy into 2 AWS regions, which will enable you to test some additional aspects of S3, as well as as simulation a regional failure of your application"
•	Make this a list. I.e.
	1. You can deploy in …
	2.You can deploy into 2…
o	Instead of copy and paste a link to S3 (which works) and paste to launch the template, consider using a Quick-Create link.  This avoids copy and paste errors.  It is also easier to click rather than copy and paste.

[ ] 1.1 Step 8
o	Make the 2 options collapsible, this will be easier for them to pick the right one
o	Formatting of parameters and values.  Parameters in Italic, Values as code format
o	Make a comment (block quote) on the default parameters.  With additional callouts on the Service Linked Roles.  A specific callout that the template WILL fail if they try to create a resource (SLR) that exists.
o	Remove numbering for each parameter, maybe bullets instead?

[x] 1.1 step 29
o	"Configure stack options" instead of Options
o	Formatting for clicking

[x] 1.1. step 30- consistency with directing them to click on services (like you did in Step 4)  Alternatively, you can also just link them to the console.

[x] 1.1 Step 31- formatting.
o	Bold where they should click, italic where they should look
o	Avoid paragraph of instructions

[ ] 1.1 step 31
o	Give some context of what they are doing before they start the execution
o	A lot of customers also do not understand step functions.  Links to docs would be good   to include in the context

•	After step 32 you start over at 14

[x] Step 15 "If you are in a workshop, the instructor will have some background information to share while this is created. "  what is this?

@RodneyLester you said

Make the 2 options collapsible...

I would love to make use of collapsible regions, but GitHub does not natively support that AFAIK -- do you know otherwise?  We could get this to work on the website, but I would like to maintain integrity of the instructions on BOTH GitHub and the website


feat: more filtering options

Is your feature request related to a problem?
Filter

I want to be able to show / hide events based on the level they occur at.

e.g CONSTRUCTOR_ENTRY on occurs at a log level of FINE.
If I filter to DEBUG on apex I should not see CONSTRUCTOR_ENTRY on the timeline.

I would also like to be able to filter based on the log event type

e.g Show only events of type Apex Code or DB or show both Apex Code and DB only et.
Grouping
being able to group would be great too, for example
Group by type on analysis to see what takes most time? e.g flow, apex, db. maybe group by package, or namespace too?
Describe the solution you'd like
It would be great if the filtering applied to the timeline + calltree views.
We could possibly use the log level info at the top and change them into pickers to edit the log levels shown.
As for the log event types would could may use the key at the bottom and click the ones to show/hide?

We have had an upvote for namespace grouping
"Separate out database results by namespace. Since SOQL and DML has its own limits for certified managed packages, it's useful to see how this is split. "


Fixed grammar on primary dropdown menu.

Saw that "I want to..." should be followed by a verb and not a noun. Changed "recovery" to "recover".

Says this: "Merging is blocked
Merging can be performed automatically with 1 approving review."
Approve?

Says this: "Merging is blocked
Merging can be performed automatically with 1 approving review."
Approve?

Needs maintainers approve


can't build

go build
# munin_exporter
./munin_exporter.go:262: counterPerMetric[name].WithLabelValues(hostname, graph, key).Set undefined (type prometheus.Counter has no field or method Set)

thx


Enable GDB port

Is your feature request related to a problem? Please describe:
Currently in order to attach GDB to a VM the options are; nested virtualization (first VM with KVM installed, sub VM with GDB port exposed, first VM attaches to GDB port of sub VM), or a sidecar container.
Describe the solution you'd like:
Enable exposing the GDB port of a VM using annotations.
One annotation to enabled exposing of the GDB port, and a second optional annotation which specifies the port to use.
EG
gdb.vm.kubevirt.io/GDBEnabled=true
gdb.vm.kubevirt.io/GDBPort=1235

Describe alternatives you've considered:

sidecar container which uses hooks to modify the domain xml.
nested virtualization

Additional context:
There are multiple methods to enable exposing GDB, the -s flag could be passed through the virt-launcher, which exposes GDB on the default port 1234.
GDB can also be enabled by manipulating the domain xml by adding qemu:commandline. This option is more configurable as you can specify the port number.
  <qemu:commandline>
        <qemu:arg value='-gdb'/>
        <qemu:arg value='tcp::1235'/>
  </qemu:commandline>

https://www.kernel.org/doc/html/v4.11/dev-tools/gdb-kernel-debugging.html
https://qemu-project.gitlab.io/qemu/system/gdb.html
https://www.redhat.com/en/blog/debugging-kernel-qemulibvirt

Added to mailing list https://groups.google.com/g/kubevirt-dev/c/kzDrNo0IYMU

I tend to favor your second proposed approach (manipulating the VM's dom xml) given its advantages.
I see value in this enhancement proposal.

/remove-lifecycle stale

This feature request is being monitored downstream.
Unsure if it needs to remain open here or not

/remove-lifecycle stale

This is also being tracked by https://access.redhat.com/support/cases/#/case/03255000

Here is the downstream epic https://issues.redhat.com/browse/CNV-19887

Hi, didn't see this ticket open otherwise I'd have added a reference to it at https://github.com/kubevirt/kubevirt/pull/9166
I've basically added -s to QEMU command line to test gdb. Adding -s -S also works fine. It is documented in the README of that sidecar.

No worries. It is a fairly old ticket 🙂


feat(longrunning): generate library

Also get the top-level .sidekick.toml file to use this library wherever it is needed.

I will merge #508 and #509 first, but this is read for review if you skip those commits.


Folding column printer

this results in:
[majopela@bluehat submariner-operator]$ ./bin/subctl show connections --kubeconfig ../submariner/output/kubeconfigs/kind-config-cluster3

Showing information for cluster "cluster3":
GATEWAY          CLUSTER   REMOTE IP   NAT  CABLE DRIVER  SUBNETS                    STATUS     RTT avg.
cluster1-worker  cluster1  <IP_ADDRESS>  no   libreswan     <IP_ADDRESS>/16, <IP_ADDRESS>/16  connected  526.654µs
cluster2-worker  cluster2  <IP_ADDRESS>  no   libreswan     <IP_ADDRESS>/16, <IP_ADDRESS>/16  connected  506.85µs

while before the output would look like:
majopela@bluehat submariner-operator]$ ~/.local/bin/subctl show connections --kubeconfig ../submariner/output/kubeconfigs/kind-config-cluster3

Showing information for cluster "cluster3":
GATEWAY                         CLUSTER                 REMOTE IP       CABLE DRIVER        SUBNETS                                 STATUS
cluster1-worker                 cluster1                <IP_ADDRESS>      libreswan           <IP_ADDRESS>/16, <IP_ADDRESS>/16               connected
cluster2-worker                 cluster2                <IP_ADDRESS>      libreswan           <IP_ADDRESS>/16, <IP_ADDRESS>/16               connected

Depends on #1243

@maayanf24 and still more continuation on the subctl show work I was doing friday ^
This is used only on the connections show, but once merged we can apply it to the other commands too.

Thanks @aswinsuryan  :bow:


Docker jaxrs dockerfile

Added a docker example where the image is built from a Dockerfile. Intended to compliment to the docker-jaxrs example as many prefer to provide Dockerfiles instead of declaring it in their pom.xml.

Can one of the admins verify this patch?


Part 1 Step 22 Not Available should be reported as such

Start Step 1.22. DM29: Regulated DTC counts

10:56:50.5593 Global DM29 Request
10:56:50.4370 18EAFFF9 [3] 00 9E 00 (TX)
10:56:50.4390 189EFF00 [8] 00 FF 00 00 02 00 00 00
DM29 from Engine #1 (0):
Emission-Related Pending DTC Count                               0
All Pending DTC Count                                           -1
Emission-Related MIL-On DTC Count                                0
Emission-Related Previously MIL-On DTC Count                     0
Emission-Related Permanent DTC Count                             2
FAIL: <IP_ADDRESS>.b - An ECU did not report pending/all pending/MIL on/previous MIL on/permanent = 0/0xFF/0/0/0
10:56:50.7918 Destination Specific DM29 Request to Engine #1 (0)
10:56:50.6680 18EA00F9 [3] 00 9E 00 (TX)
10:56:50.6785 189EF900 [8] 00 FF 00 00 02 00 00 00
DM29 from Engine #1 (0):
Emission-Related Pending DTC Count                               0
All Pending DTC Count                                           -1    // NA to -71 is preferred //
Emission-Related MIL-On DTC Count                                0
Emission-Related Previously MIL-On DTC Count                     0
Emission-Related Permanent DTC Count                             2

End Step 1.22. DM29: Regulated DTC counts

(-1) is an accepted representative value for an un-available module.  Updating the label is an enhancement. This ticket's label is being adjusted.

(-1) is an accepted representative value for an un-available module.  Updating the label is an enhancement. This ticket's label is being adjusted.


Update README.md

yes, there are good free hosts

Added google cloud compute engine link

No. Google and AWS both require a valid credit card, and their installation and activation is not "free", their cost is a high level of technical knowledge no one has.
Also, your mention of "don't use AWS under any circumstance" clearly paints your PR as being opinionated, so no, I'm not adding that to the readme of a thing no one should ever use because it's against the terms of service and remains here only and specifically for archiving purposes.


Fantasy wish list for features?

@dmhacker how would you WANT THIS SKILL to work / be architected, if you could do anything?    I wonder if using a 3rd party MP3 censersion service would make the setup and deploy easier?

That would be nice and certainly is possible. The only issue with using a 3rd party service is that they may not have very clean API's and may enforce rate limits. The server that I'm using right now to convert people's videos to audio doesn't have those restrictions. Additionally, the audio transforming step with ffmpeg is necessary so that Alexa can play the mp3 file. Without this step, Alexa wouldn't be able to play the audio; this was actually an issue for a while. Do you know of anything that could be used to circumvent this though?

Hi.  How can I setup a slot (or any other way of doing this) so that YouTube plays a particular playlist (for example, my YouTube favorites playlist)?. I have tried giving my playlist a unique name on YouTube, but a can't get it to work.  Thanks for your help.

@dionbreg There is not currently functionality for this. I will consider adding at a later date. Perhaps make a new issue with this specifically?

I did.  Thanks David.
On Sat, Nov 25, 2017 at 2:53 PM, David Hacker -<EMAIL_ADDRESS><
<EMAIL_ADDRESS>wrote:

@dionbreg https://github.com/dionbreg There is not currently
functionality for this. I will consider adding at a later date. Perhaps
make a new issue with this specifically?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dmhacker/alexa-youtube-skill/issues/11#issuecomment-346971576,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AcUrdYVCBgXQMenC3Qf1WFIwOzCWlV6kks5s6JqGgaJpZM4O8lu5
.

Intermediate conversion between video and audio files has been removed. ffmpeg directly processes the stream.
See https://github.com/dmhacker/dmhacker-youtube/commit/7a17c75386afea0010f89fd4e08e7fef6eee8774.

It would be nice to treat the search results itself as a playlist and allow for continuous play back of the results. This should include support for next, previous, repeat, loop, etc.

The revised instructions work! Thanks! Before I could get 'test' to work, I had to first go to the build section and make sure everything under 'skill builder checklist' was green. For me, 'build a model' was not green and I had to click it first.
I also could use lambda_basic_execution for the role name as it was also used by another function, so I simple used lambda_basic_execution_youtube.

It would be nice to treat the search results itself as a playlist and allow for continuous playback of the results. This should include support for next, previous, repeat, loop, etc.


add snapshot while context , default configs updates

Problem
Record for config's history after every cac_config changes,
we also encountered problem regarding generating snowflake_id, we were not dropping the acquired mutex lock,
and when generating another snowflake_id , it gets stuck in deadlock kind of situation
Solution
Created config_versions table which will store the config's snapshot after every updates which affect the configs.
Fetch contexts and default_configs and insert into config_Versions table after any updates within the same transaction.
we are explicitly dropping acquired lock after snowflake_id generation
Also accepting tags parameters in every update request so that user can tag every versions
Environment variable changes
NA
Pre-deployment activity
Create db changes
Post-deployment activity
NA
API changes
get_config apis we will now provide priority inside context objects
adding optional tags field in every context, default_config and experiments updates
accepting version queryparam in every get_config apis
Possible Issues in the future
NA

Can we squash all commits into one?

What happens when someone tries to update tags? Is that possible?

@Datron currently this is not supported , a different api will be needed
also we need to have list versions api with filter support
these changes can be added later on , this pr already has lot of changes


X-JWT-Assertion not working as expected to send backend endpoint

WSO2 apim 3.0.0-
Steps to re-produce-
enabled the JWT in deployment toml file.
Call the API and check the JWT is sending in header to backend or not.
JWT is not sending to backend endpoint.

This is not reproducible in 3.1.0 latest built pack.

Hi @arun-1983,
I tried the same scenario and able to see the JWT assertion being sent to backend. You need to add following configurations in deployment.toml to send JWT to backend:
[apim.jwt]
enable = true
encoding = "base64" # base64,base64url
generator_impl = "org.wso2.carbon.apimgt.keymgt.token.JWTGenerator"
claim_dialect = "http://wso2.org/claims"
header = "X-JWT-Assertion"
signing_algorithm = "SHA256withRSA"
enable_user_claims = true
claims_extractor_impl = "org.wso2.carbon.apimgt.impl.token.DefaultClaimsRetriever"

More information can be found in [1]. Can you verify whether these configurations are added properly?
[1] https://apim.docs.wso2.com/en/latest/learn/api-gateway/passing-end-user-attributes-to-the-backend/passing-enduser-attributes-to-the-backend-using-jwt/#configuring-jwt


source command fails / not found

I am trying to install nvm on an Ububntu 14.04 image but the source command fails. I have this Dockerfile:
FROM  ubuntu:14.04

RUN apt-get update && \
    apt-get install build-essential libssl-dev -y && \
    apt-get install curl -y && \
    curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh && \
    # The next command should change the shell from dash to bash
    rm /bin/sh && ln -s /bin/bash /bin/sh && \
    source ~/.profile
# RUN nvm install 6.9.1
# RUN nvm use 6.9.1

When I run these commands inside the container everything works out just fine. But when I build this Dockerfile, fails with an error:
......
=> Appending source string to /root/.bashrc
=> Close and reopen your terminal to start using nvm
/bin/sh: 1: source: not found
....

Actually the rm  command that changes the shell is not even needed in the first case.
After that the nvm install and use should work (but couldn't test them with the Dockerfile).
Docker version:
Client:
 Version:      1.12.4
 API version:  1.24
 Go version:   go1.6.4
 Git commit:   1564f02
 Built:        Mon Dec 12 23:50:16 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.4
 API version:  1.24
 Go version:   go1.6.4
 Git commit:   1564f02
 Built:        Mon Dec 12 23:50:16 2016
 OS/Arch:      linux/amd64

Docker info:
Containers: 6
 Running: 0
 Paused: 0
 Stopped: 6
Images: 33
Server Version: 1.12.4
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 83
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor
Kernel Version: 4.4.0-38-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 11.73 GiB
Name: at-b-vc01
ID: 5A7H:IMBZ:EXFZ:HCFN:3NDH:7S75:AMAC:OZPY:O7YR:TTZK:R3KX:NBZ2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 <IP_ADDRESS>/8

That will not change the shell which you are running in. If you move the source to a different RUN line it should work.
In 1.13 you can change the shell with the SHELL Dockerfile command.

This does not look like a bug, so i'll close this issue, but feel free to continue the conversation

I added one command to my Dockerfile to silence some warnings.
FROM  ubuntu:14.04

RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections

RUN apt-get update && \
    apt-get install build-essential libssl-dev -y && \
    apt-get install curl -y && \
    curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh

# 1. Fails with the exact same error
# RUN source ~/.profile

# 2. Fails with "stdin: is not a tty"
# RUN ["/bin/bash", "-c", "source ~/.profile"]

# 3. Fails with "/bin/bash: nvm: command not found"
# RUN ["/bin/bash", "-c", "nvm install 6.9.1"]

# 4. Fails with "stdin: is not a tty"
SHELL ["/bin/bash", "-c"]
RUN source ~/.profile

# 5. Fails with "/bin/bash: nvm: command not found"
# SHELL ["/bin/bash", "-c"]
# RUN nvm install 6.9.1

@justincormack check senario 1.  Also, I tried the SHELL command but unfortunately I was unable to find related info so maybe my tests are wrong.

@stavros-liaskos what @justincormack meant is to do the ln -s in one RUN, and the source ~/.profile on another one.
Take into account though, that ~/.profile or ~/.bash_profile are not automatically loaded during build; you'll have to do that yourself at each build step.
Try this Dockerfile;
FROM ubuntu:14.04

# Use "bash" as replacement for	"sh"
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

# Create a .profile
RUN echo 'PATH=$PATH:/foo/bar' > ~/.profile

# Create a .bash_profile
RUN echo 'PATH=$PATH:/hello-world' > ~/.bash_profile

# Source profile, and print the result.
# These	environment variables are ONLY set
# for this RUN instruction, but not for other
# RUN instructions in the Dockerfile
RUN source ~/.profile && echo $PATH

# Don't source profile, and see that
# none of .profile or .bash_profile are
# used.
RUN echo $PATH

And see the results;
$ docker build -t test --no-cache .

Sending build context to Docker daemon  12.8 kB
Step 1 : FROM ubuntu:14.04
 ---> 3f755ca42730
Step 2 : RUN rm /bin/sh && ln -s /bin/bash /bin/sh
 ---> Running in a6035d0c041c
 ---> e8357eac98f7
Removing intermediate container a6035d0c041c
Step 3 : RUN echo 'PATH=$PATH:/foo/bar' > ~/.profile
 ---> Running in ce71d59aabdf
 ---> 16ff77782b88
Removing intermediate container ce71d59aabdf
Step 4 : RUN echo 'PATH=$PATH:/hello-world' > ~/.bash_profile
 ---> Running in db9d8b562264
 ---> dd54ab5edbbf
Removing intermediate container db9d8b562264
Step 5 : RUN source ~/.profile && echo $PATH
 ---> Running in e44a812e4eed
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/foo/bar
 ---> 0a971181a9ae
Removing intermediate container e44a812e4eed
Step 6 : RUN echo $PATH
 ---> Running in 2a2ddf458b22
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 ---> 65b724f9acc6
Removing intermediate container 2a2ddf458b22
Successfully built 65b724f9acc6

@thaJeztah Although this is a very nice answer I couldn't fix this issue. If understand well, in my case I would need a configuration like that:
ROM  ubuntu:14.04

RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections

# Use "bash" as replacement for    "sh"
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN apt-get update && \
    apt-get install build-essential libssl-dev -y && \
    apt-get install curl -y && \
    curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh

# Create a .profile
RUN echo 'PATH=$PATH:~/' > ~/.profile
# RUN echo 'PATH=$PATH' > ~/.profile

# Create a .bash_profile
RUN echo 'PATH=$PATH:~/' > ~/.bash_profile
# RUN echo 'PATH=$PATH' > ~/.bash_profile

RUN source ~/.profile && \
    nvm install 6.9.1

Which fails with /bin/sh: nvm: command not found.
I guess I am wrong regarding the .profile ?

looks like because nvm is installed in ~/.nvm by default; https://github.com/creationix/nvm/blob/v0.16.1/install.sh#L10-L12
and you don't need all the source stuff. This should work;
FROM  ubuntu:14.04

ENV NVM_DIR=/usr/bin
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update && \
    apt-get install build-essential libssl-dev -y && \
    apt-get install curl -y && \
    curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh

RUN . "$NVM_DIR/nvm.sh" && nvm install 6.9.1

Nice! So every RUN command starts a new subcontainer. Without other bugs in between is crystal clear!

Correct; you can find some description of that here; https://gist.github.com/thaJeztah/e6f00c7ef51897358103e1496f572ae1
FWIW; nvm.sh seems to be intended as a tool to quickly switch between node versions on a development machine. For developing a node application on Docker, you may want to consider using the official Node image as a base image. Keep in mind that containers are not VMs, and (if your application allows it), using the Alpine based versions can make your image a lot smaller.


Fixed point interest

Attempts to replace usage of u128 for storage and computation of interest rates with FixedU128. Looks like this causes overflows to occur if someone mints more than 5 million DOT. I need to further check if this can somehow be avoided.
Closes https://github.com/interlay/interbtc/issues/755

Closing as this approach will not be used


Initial image similarity search

Implemented a crude image similarity search using the lpips similarity metric. I could use some eyes on this at this point. Performance needs to be improved and should be integrated into the chatbot workflow.

Wow! Great work! I will take a look later!


How to predict ranking on new data?

Hello again! I've posted here before (https://github.com/wildltr/ptranking/issues/18), but my explanation of the issue was not good enough, and as the issue was closed (and not solved), I had no other option than to submit a new issue.
What I'm trying to understand, is how to rank a "new" dataset, that wasn't used for training, validation or testing.
What I mean is that I can run the code, and I believe a ranking model is created (.pkl file), but that is based on the data that was used for training. What if I want to rank new data, that I can't even use for training because I don't know the "right" rank order? Or is this not possible with ptranking?
I hope I could explain myself better now, and thanks in advance!

@supercar1 Based on my understanding of your question, if your "new" dataset has the same format as the testing data's format, you can use the trained model for generating the ranking results.

Yes, that's exactly what I want to do :)
However, I don't understand how to do it, is there any specific function I should call? Or should I give an extra input on the command line?
Thank you!

@ii-research-yu, any update to previous question by @supercar1?


Update actions/checkout action to v3

This PR contains the following updates:

Package
Type
Update
Change

actions/checkout
action
major
v2.5.0 -> v3.1.0

Release Notes

actions/checkout
v3.1.0
Compare Source

Use @actions/core saveState and getState
Add github-server-url input

v3.0.2
Compare Source

Add input set-safe-directory

v3.0.1
Compare Source

Fixed an issue where checkout failed to run in container jobs due to the new git setting safe.directory
Bumped various npm package versions

v3.0.0
Compare Source

Update to node 16

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.


MacOS + python 3.6 users

Font not found

Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/init.py", line 1699, in call
return self.func(*args)
File "wuxiaworld2ebook.py", line 59, in button_press
getify.cover_generator(raw_info[4], s_chapter, str(e_chapter))
File "/Users/stan170/Desktop/wuxia/Wuxiaworld-2-eBook/getify.py", line 101, in cover_generator
thefont = ImageFont.truetype("arial.ttf", 75)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PIL/ImageFont.py", line 259, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PIL/ImageFont.py", line 143, in init
self.font = core.getfont(font, size, index, encoding, layout_engine=layout_engine)
OSError: cannot open resource

PIL.ImageFont.truetype doesn't search in Mac font folder unlike Windows..
Soln: drop Arial.ttf in working dir/ change dir

SSL: CERTIFICATE_VERIFY_FAILED for python 3.6

URL: http://www.wuxiaworld.com/novel/7-killers/7k-chapter-1, URLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)
URL: http://www.wuxiaworld.com/novel/7-killers/7k-chapter-2, URLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)
Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/init.py", line 1699, in call
return self.func(*args)
File "wuxiaworld2ebook.py", line 85, in button_press
getify.generate(file_list, raw_info[0], raw_info[3], raw_info[2], reset, str(e_chapter), cleanup=cleanup)
File "/Users/stan170/Desktop/wuxia/Wuxiaworld-2-eBook/getify.py", line 172, in generate
epub.write(html, "OEBPS/"+basename)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/zipfile.py", line 1594, in write
zinfo = ZipInfo.from_file(filename, arcname)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/zipfile.py", line 484, in from_file
st = os.stat(filename)
FileNotFoundError: [Errno 2] No such file or directory: '7 Killers/7k-chapter-1.xhtml'

"Python 3.6 on OSX has no certificates at all, and can't validate any SSL connections"
due to sql + ulrlib.error
Run the Install Certificates.command in python folder

Thought it might be useful for OSx noobs like me so that they don't have to google.
Thanks for all your work

I'm sorry for your mediocre experience with this script.
I'm currently working on an implementation of this script in a django webapp as a side project. That will fix the inconsistencies in quality between operating systems and make the whole process more user friendly.
For now I'll leave this issue open and mention it in the ReadMe. If I find the time I'll do some QA on a mac.
Tha is for reporting the issue!