bintray deployment

Heya, I'm not sure if you are aware of that but you can use bintray as a debian-source, i.e. add it to your /etc/apt/sources.list. Here are a few more details on that. I think there's something similar for rpm.
That would be great, because then you could even add a go-github-release package that just pulls in all your tools, and it would be insanely easy to set that up in my build environment. Btw. deploying to bintray is as easy as to github releases with travis/appveyor.

yup indeed its pretty cool!
And the OSS plan is really fair, https://bintray.com/signup/oss,
its definitely something to mention.
Thanks for that.

Yes, it would be great if you could post the go-bin-deb and go-bin-rpm to respective bintray repos.  IN the meantime I'll be adding them to my own so that I can use them in my travis build directly.

@mh-cbon any chance you would want to change this release process to be centered around publishing to Bintray repo's instead of creating repo's on GH-pages.  While a very clever use of GH-Pages, it seems like quite a bit of a hack to me.

If you want to add another release endpoint for Bintray, make it a plugin, so other release endpoints can also be implemented.

@mh-cbon any chance you would want to change this release process to be centered around publishing to Bintray repo's instead of creating repo's on GH-pages. While a very clever use of GH-Pages, it seems like quite a bit of a hack to me.

If you want to add another release endpoint for Bintray, make it a plugin, so other release endpoints can also be implemented.

deploying to bintray is as easy as to github releases with travis/appveyor.

https://docs.travis-ci.com/user/deployment/bintray/
very much like
https://github.com/mh-cbon/gh-api-cli/blob/master/.travis.yml#L46

That would be great, because then you could even add a go-github-release package that just pulls in all your tools, and it would be insanely easy to set that up in my build environment.

same idea as @suntong, he wanted to setup ppa so he could put all his programs into one repo.

anyhow, please consider there are two topics here,
1st is to update the procedure (this repo) to use bintray as release endpoints for source package repository (yum/apt).
2nd is to merge those tool under one repo to provide a simpler way to install them all. On that last topic i would like to bring your attention on a concern i have, neither yum/apt are strong dependency manager (AFAIK!). There are good to do forward follow up (take last version and apply it), to my knowledge they can also lock a version, but none of them will help you to lock version on a per project basis with fine selectors, which is a must have in my opinion for this kind of workflow. About windows i will not put too much hope into chocolatey to do it right.
https://github.com/GetStream/vg#advantages-over-vendor-directory

You can pin versions of executable dependencies, such as linting and code generation tools.

Please just let us know if you plan on setting up your tools to publish to Bintray repos (it really is easy).  We're already publishing your packages as binaries to our own Bintray repos, but everyone prefer's packaging from the author.
In either case, it's trivial to make a "go-github-release" package that pulls in the rest.   I would do it by adding appveyor/travis recipe's to this repository which generate rpm/deb/nupkg which contain nothing but perhaps the README and License.  Then, I would have each of those transitively depends on each of the relevant packages.  So...
go-github-release.rpm would depend on:
go-bin-rpm.rpm
changelog.rpm
emd.rpm
gump.rpm
go-github-release.deb would depend on:
go-bin-deb.deb
changelog.deb
emd.deb
gump.deb
go-github-release.nupkg would depend on:
go-msi.nupkg
changelog.nupkg
emd.nupkg
gump.nupkg
Also, as a side-note, I've found no value in releasing go-bin-rpm in .deb format since you can't actually build an RPM on a debian system, and vice-versa for packaging go-bin-deb in .rpm format.

Also, as a side-note, I've found no value in releasing go-bin-rpm in .deb format since you can't actually build an RPM on a debian system, and vice-versa for packaging go-bin-deb in .rpm format.

true!

Are those repo public ? I m ok to link to them in the quick terms, on longer terms,

the procedure includes bintray and is usable to generate those repo, thus link to a [bintray repo for this repo].
this repo has a travis file with the necessary scripts to generate all the things (? see questions)

Questions
How will the meta repo go-github-release.rpm be updated when emd.rpm is updated ?
Is it needed to trigger a re build of go-github-release.rpm after emd.rpm ?
Or maybe, there s a smart solution ?

Sure, I'll make some adjustments to the packages and post the links here when done.
I believe RPM/DEB/NUPKG all use latest version of a dependency if no version operators are defined.

you can now use those respective commands,
windows
  - choco source add -n=mh-cbon -s="https://api.bintray.com/nuget/mh-cbon/choco"
  - choco install changelog gh-api-cli go-msi -y
  - refreshenv

https://bintray.com/mh-cbon/choco
debian
  - sudo add-apt-repository 'deb https://dl.bintray.com/mh-cbon/deb unstable main'
  - sudo apt-get -qq update
  - sudo apt-get install --allow-unauthenticated changelog go-bin-deb fakeroot

https://bintray.com/mh-cbon/deb
redhat
- sudo curl -s -L https://bintray.com/mh-cbon/rpm/rpm > /etc/yum.repos.d/mh-cbon.repo
- sudo dnf install go-bin-rpm changelog rpm-build -y --quiet

https://bintray.com/mh-cbon/rpm
see also #21
HTH
ping @suntong

:+1:

all up to date. Happy if anyone gives any comments.

and thanks to all, is was a good idea.


Version 0.0.5 Not Available on Jitpack

I'm trying to upgrade from 0.0.3 to 0.0.5 but Gradle is unable to resolve the library, as if this version is not available on Jitpack. I get the following error when trying to synce Gradle Failed to resolve: com.github.VictorAlbertos.Jolyglot:jackson:0.0.5

There was a compile error in the auto-value module that stopped the build before building the jackson artifact. It is fixed now, please use: com.github.VictorAlbertos.Jolyglot:jackson:0.0.6


Corrected spelling of Bulgaria's capital

Sofia (София) is the name of the city.

Reference at wikipedia


BIGTOP-4034: Add python3 support in bigtop-select

Description of PR
Added python3 support in bigtop-select
How was this patch tested?
Applied changes on already installed ambari hadoop cluster
executed below commands, all got executed successfully
ambari-python-wrap /usr/lib/bigtop-select/distro-select versions
ambari-python-wrap /usr/lib/bigtop-select/distro-select packages
ambari-python-wrap /usr/lib/bigtop-select/distro-select status

For code changes:

[ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'BIGTOP-3638. Your PR title ...')?
[ ] Make sure that newly added files do not have any licensing issues. When in doubt refer to https://www.apache.org/licenses/

Thank you for your contribution, @arshadmohammad. Building RPM succeeded with your PR.
$ curl -sL https://github.com/apache/bigtop/pull/1203.diff | git apply
$ ./gradlew bigtop-select-clean bigtop-select-pkg repo

...
BUILD SUCCESSFUL in 9s

But after that, running *-select failed due to the lack of python3.
$ ./docker-hadoop.sh -d -dcp -C config_centos-7.yaml -G -L -k bigtop-utils -c 1
$ ./docker-hadoop.sh -dcp -e 1 bash
# yum install -y bigtop-select

...

Complete!
# /usr/lib/bigtop-select/conf-select
/usr/bin/env: python3: No such file or directory
# /usr/lib/bigtop-select/distro-select
/usr/bin/env: python3: No such file or directory

We should add a dependency on python3 to bigtop-select's spec file. Would you do that referring to other spec files such as Phoenix?

@arshadmohammad It seems you haven't taken action on the review for several months. Do you still want to continue with this PR? If you don't have time to continue maintaining it, you can close it for now, to ensure that this matter can continue to move forward.

@arshadmohammad
Hello, if you really don't have time, I can accept this PR in a week.


publish<EMAIL_ADDRESS>

Requested by: @hubertdeng123
Merge target: (default)
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Leave the #retract comment under this issue to retract the release (original issuer only).
Targets

[x] github
[x] registry
[x] gcs
[x] docker[release]
[x] docker[latest]

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

looks like relay has been released but there was a conflict while merging to master with the changelog
https://github.com/getsentry/relay/releases/tag/23.6.1


benchmark: Add SWIFT_BENCHMARK_UNOPTIMIZED_DRIVER option

Add an option to allow compiling the benchmark test utilities and driver
at -Onone. This is needed because lldb does not support stepping through
optimized swift code.

@swift-ci smoke test

cc @adrian-prantl @jimingham


[BUG] Write a title for your bug

Describe the bug
Cannot Sign up in hydra, when i try to, i have a message about saving PIN and after i click continue it's just taking me back to registration form
Steps to Reproduce

Try to register
Click Create account
Confirm recovery PIN
Go back to registration form

Expected behavior
Create a working account
Additional information and data
info.txt
pythoninstance.txt
error.txt
Operating System
Windows 10
Hydra Version
3.0.4
Before opening this Issue

[X] I have searched the issues of this repository and believe that this is not a duplicate.
[X] I am aware that Hydra team does not offer any support or help regarding the downloaded games.
[X] I have read the Frequently Asked Questions (FAQ).

Uninstall and Install again the Hydra Launcher

Saiu uma nova atualização Versão 3.0.5, tente atualizar, muitos problemas foram solucionados!


RTOS Update

Resolves comments from PR #59

While I would like to get this merged, I want to point out that it is a bit strange that the timer is not a child class of periph.

While I would like to get this merged, I want to point out that it is a bit strange that the timer is not a child class of periph.

@samparent97 its because the timer class is a software timer handled by FreeRTOS and its own tick system, not a hardware timer. Indeed, it might be wise to rename the timer class to SoftTimer or something like that.


/public/styleguide folder

I'm a little confused as to how this should work and hoping someone can clarify. Shouldn't this be generated every time the /core/builder.php script is run?
I assumed this and git ignored this whole folder from version control but now when other devs pull it down the repo and try to generate the Pattern Lab locally, they get an error saying this folder needs to be there and should be copied from core?

Shouldn't this be generated every time the /core/builder.php script is run?

The new version of PL will deal with this differently, but yes v1 of Pattern Lab is admittedly a bit confusing and inefficient. The styleguide directory doesn't come from source and instead is pulled from core


Added check and method for neovim api info

If this needs any changes, let me know

@kopischke the version numbers are semantic. The API level is more correct for comparing API capabilities. API level might not change between Nvim releases.

Looks good except for some minor whitespace issues in init.vim. I'll pull this in once that's addressed. Thanks for the PR, @bert88sta !

Thanks @bert88sta for the fix, and @kopischke & @justinmk for the feedback!


Add NUnit options for redirecting output

Nunit has options to redirect test stdout and stderr to a files. I made the options available in the NUnitSettings.

@RossHammer: Thanks! :+1:
The code per se looks good to me, except one thing which is minor. I left a comment in the code.

Output is just the long form and out is the short form. It doesn't matter what one is used so I just picked the long form version.
From nunit's help string

/output=STR             File to receive test output (Short format: /out=STR)

@RossHammer I understand! In that case, a suggestion would be to change err to error (if there's a long form for that as well). This would make it consistent with the other flags.
What do you think?

It's stupid but there is only one form for the argument otherwise I would have done that.

/err=STR                File to receive test error output
From nunit's help string

@RossHammer Then it all looks good to me! :smile:

Merged! :+1:
Thank you!


Fix LetExpr node not formatting correctly

Purpose
Fix issue in ballerina formatter.
Fixes #21904
Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #22444 into master will not change coverage by %.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #22444   +/-   ##
=======================================
  Coverage   14.59%   14.59%
=======================================
  Files          51       51
  Lines        1411     1411
  Branches      219      219
=======================================
  Hits          206      206
  Misses       1189     1189
  Partials       16       16

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 621defc...e717ba6. Read the comment docs.


Socket disconnects immediately after connect on iOS.

Hello.
I found a bug while playing with nativescript-socket.io, and I can't find a solution.
Every connection event to socket.io server from an iOS device, is followed by an 'disconnect event'. Every time.
It seems I get a Bad Request Error.
On Android devices works fine.
How can I solve this problem? Thanks!

hello @vladpre92,
iOS is not usable as is, and still in development.
nevertheless, I've managed to establish a sable connection with the plugin, otherwise nothing else can be done for now (listening, emitting events, ...)

Hi, I'm also having a similar issue. I haven't managed to debug, so I can't verify whether this is the case, but trying to connect to the server (or possibly it's checking socket.connected, I'm not sure) cause the app to freeze on iOS (both in the emulator and on my iPad), on Android it works perfectly.

We are also facing the same problem,i have pasted the logs as well.
Starting iOS Simulator
Jun 30 18:19:45 imac backboardd[1570]: SecTaskCopyDebugDescription: demo[4352]
Jun 30 18:19:45 imac backboardd[1570]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Jun 30 18:19:45 imac backboardd[1570]: SecTaskCopyDebugDescription: demo[4352]
Jun 30 18:19:45 imac backboardd[1570]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Jun 30 18:19:45 imac backboardd[1570]: SecTaskCopyDebugDescription: demo[4352]
Jun 30 18:19:45 imac backboardd[1570]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Jun 30 18:19:45 imac backboardd[1570]: SecTaskCopyDebugDescription: demo[4352]
Jun 30 18:19:45 imac backboardd[1570]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Jun 30 18:19:45 imac backboardd[1570]: SecTaskCopyDebugDescription: demo[4352]
Jun 30 18:19:45 imac demo[4352]: assertion failed: 15E65 13E230: libxpc.dylib + 71506 [6F98A9DA-B46E-3A2B-88D4-92F1EC77477F]: 0x7d
Jun 30 18:19:45 imac demo[4352]: LOG SocketIOClient: Adding engine
Jun 30 18:19:45 imac demo[4352]: LOG SocketEngine: Starting engine.
Jun 30 18:19:48 imac demo[4352]: LOG SocketEngine: Sending ws:  as type: 1
Jun 30 18:19:48 imac demo[4352]: LOG SocketEngine: Engine is being released

Found a solution for this issue.
In socket.ios.js file change the lines from
this.ios = SocketIOClient.alloc();
this.ios.initWithSocketURLOptions(NSURL.URLWithString(uri), options);
to
this.ios = SocketIOClient.alloc().initWithSocketURLOptions(NSURL.URLWithString(uri), options);
This will solve the problem.

makes sense. thanks @sowrabhbs
patched in https://github.com/naderio/nativescript-socket.io/commit/33a2fb490dcdbeb6dde49fadf4a9662cdc611c11

Awesome


i am getting localhost page for a long time and it is not getting loaded in console its showing i am getting 502 error (same 502 bad gateway while loading testsigma agent batch file)

Is there an existing issue for this?

[X] I have searched the existing issues

What is the current behavior?
i am getting localhost page for a long time and it is not getting loaded in console its showing i am getting 502 error (same 502 bad gateway while loading testsigma agent batch file)
What is the expected behavior?
https://discord.com/channels/724347395269329006/1108324749911785532/1108324749911785532
Steps To Reproduce
launch testsigma agent bat file its throwing 502  error bad gateway
installed via downloader package
Version
Testsigma Cloud

@AnuYohannan we are checking this. Can you attach full log of the console?

localhost-1685695467630.log

amitpersonal007 check the console log attached above

@AnuYohannan  - From the screenshot I guess the issue should be either the Testsigma server is not running or not reachable(if its running). The screenshot is from the agent side...can you check using curl if you are able to reach the https://local.testsigmaos.com url where you are supposed to start the Testsigma server. You can refer to https://testsigma.com/docs/getting-started/setup/downloadable-package/ link for setting up Testsigma server component

getting the same while accessing https://local.testsigmaos.com/
please find the console log captured
local.testsigmaos.com-1685802765595.log

@vikram-chaitanya @amitpersonal007  any update on the above issue its been a long


Add commentary to "user commit frequency" + improve layout

Add commentary to "user commit frequency" + improve layout

Moving to dashbaord and using charts to visualize!


Unpickling python2 crated binary file.

It is known that pickle fine created by python2 may not be loaded by python3 using "pickle.load"
Could your solution unpickle a binary file created by python2 involving Numpy arrays?

No, numpy arrays are pickled in a specialized format that is not readable by other programs at all.
(This has nothing to do with python 2 or python 3)
There has been some discussion about this in the past, see https://github.com/irmen/Pyrolite/issues/52


Azure DevOps Rest API document error on "create-a-fork-of-a-parent-repository"

https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories/create?view=azure-devops-rest-5.1#create-a-fork-of-a-parent-repository
Create a fork of a parent repository
POST https://dev.azure.com/{organization}/_apis/git/repositories?api-version=5.1
"name": "forkRepository",
"project": {
"name": "MyFirstProject"
},
"parentRepository": {
"name": "MyFirstRepo",
"project": {
"name": "MyFirstProject"
}
}
}
the example does not work!
I got exception ""innerException":null,"message":"The guid specified for parameter repositoryId must not be Guid.Empty.\r\nParameter name: repositoryId","
The problem is that for "parentRepository", the name property is not enough, id property should be provided as well.
the right request body should be something like:
{
"name": "forkRepository",
"project": {
"name": "MyFirstProject"
},
"parentRepository": {
"name": "MyFirstRepo",
"id": "aeb3259f-bc8c-4898-87e2-86354905c2d1",
"project": {
"name": "MyFirstProject"
}
}
}

I can confirm that the samples from here, does not work:
https://docs.microsoft.com/en-us/rest/api/azure/devops/git/repositories/create?view=azure-devops-rest-6.1#create-a-fork-of-a-parent-repository
Tried the format that was suggested above but it did not work.
400 Message "    "message": "A team project ID or name is required in the URL or request body.\r\nParameter name: ProjectReference",
Adding project reference does not seem to help.

@dylanw-oss Please move this issue to https://github.com/MicrosoftDocs/azure-devops-docs/issues

Just replace the name with ID of the project:
{
"name": "forkRepository",
"project": {
"id": "MyFirstProject_ID"
},
"parentRepository": {
"name": "MyFirstRepo",
"project": {
"id": "MyFirstProject_ID"
}
}
}


Backups get run before enabling them

In an app I just created, I see that there's already an automatic backup made (according to the backup tab), but I haven't enabled backups yet. Is it intended this way? Or is the backup scheduler started too early?

@michiels No this is not by design. I noticed it as well. Consider it a bug :-)

Cool thanks for quick clarification :)


Allow unicode chars in the login field

Putting this out there since it cropped up as an error on login. Adding basic support for unicode characters in login, however this may break @ - mentions in talk.
I'm voting yes especially to target non-ascii char based languages over the world. @mrniaboc thoughts?

I 100% disagree with this since this will make any @-ing system totally unworkable. The ASCII character set is the lowest common denominator in terms of computer input. Anyone can type it on pretty much any device.
As soon as we allow arbitrary unicode characters in login names, then we segregate who who can @ to people whose name characters are in a set you can easily type.
We have display names so people can already choose to be represented in their profile and in the larger name that appears next to their talk posts in whatever form they want to be.

I'm really with Ed on this one. We should do whatever Twitter already does here. They seem to have no issues with being global. :+1:

I addition, this would allow project URL spoofing to happen. If we allows any unicode character in URLs then users wouldn't know whether zooniverse.org/#/projects/zooniverse/Galaxy-Zoo takes them to our Galaxy Zoo page or another user's page who's using Cyrillic characters to look like zooniverse.

I’m with Ed. This will have all kinds of unpredictable security implications.

On 2 Jul 2015, at 16:20, Edward Paget<EMAIL_ADDRESS>wrote:
I addition, this would allow project URL spoofing to happen. If we allows any unicode character in URLs then users wouldn't know whether zooniverse.org/#/projects/zooniverse/Galaxy-Zoo takes them to our Galaxy Zoo page or another user's page who's using Cyrillic characters to look like zooniverse.
—
Reply to this email directly or view it on GitHub https://github.com/zooniverse/Panoptes/pull/1065#issuecomment-118065766.

Ah - The latter point about mimicking other accounts is alarming, that will open up a can of worms. I going to close this and we'll deal with existing users on a case by case basis.


added git submodule instruction

Fixes #1, realized that the cos-gpu-installer submodule was empty and I was getting the path errors.

Added to readme for clarity

@googlebot I signed it!


Remove unused ignore statements

If a line has had type: ignore added to it and the code changed mypy can give an error that the ignore is no longer needed. This change ensures that these can be removed automatically.

Nice! Thanks for doing this

Thank you will try it out later this week


Kushagra |  LongestCommonPrefix.cpp

Created LongestCommonPrefix.cpp

@all-contributors please add @CoderGhost37 for his code


Review example

The provided example notebook seems outdated and necessary files are missing.

The examples have been updated and the use cases of the pipline for different files are now in different notebooks with links to dedicated pages in the docs.


zip was not found, exiting...

i have a debian 11 system, installed spotify through apt when running the command its showing this

SpotX-Linux install.sh script has 3 dependencies it checks for before running, perl, unzip and zip.
The output indicates that you are missing at least the zip package on your system -- install it via apt or however else you install things.

thanks for the help, i thought it was not finding the path of the spotify app and i did something wrong during the installation


feat: START initial component with wds

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Move IDE to Angular framework

Allow resizing of all panes
Allow individual panes to be added/droppped
Allow any pane to be full-screen, with Esc) to revert

Duplicate of #691


Migrate from Spot2 to Doctrine 2 ORM

The Spot 2 looks very shitty with it's magic inside. I don't like it and I would like to maintain the project in Doctrine 2.

Done.


Upstream proxy feature

Any plan to upstream proxy support?
Sometimes we want access another proxy to connect some host, but it's not secure and it might be blocked, use a secure & hidden proxy to connect is useful.

@sergeyfrolov
It's very nice for "passthrough" feature. I think it's useful for #12
I think what @l5h5t7 is a proxy chain, the traffic must forward by forwardproxy to upstream proxy

@jim3ma passthrough is introduced exactly to allow you to forward the traffic, if combined with default proxy like I mentioned in https://github.com/caddyserver/forwardproxy/issues/17#issuecomment-360555777

I have tried the passthrough directive.
Unfortunately, the proxy did not support CONNECT method( it treats CONNECT as a common method like GET and did not hijack the underlay connection)

@jim3ma
That's too bad. It would have been nice to chain them together and keep changes to forwardproxy minimal, which is one of our priorities. Apparently, proxy only hijacks the websocket connections and doesn't do transparent proxying in the same way squid does.
I'll close #22 to avoid overloading forwardproxy with features. We don't need it for #12, but we can always reopen the PR, if we find good use-cases for it in future.

I'd rather have smaller, independent middlewares that work together rather than making a big middleware that does everything; perhaps there is a (simple) change to proxy that could work.
Or, better yet, what if it was a straight-up TCP proxy? Caddy has one of those. 😎  https://caddyserver.com/docs/net

Implementing the upstream proxy requires to connect a proxy server such as socks5, http/https proxy.
I'm afraid the https://caddyserver.com/docs/net is not ok for this.

If we put simple net plugin after forwardproxy, that should cover http proxy upstreaming.
If said plugin is able to establish tls connections, that should cover https proxy upstreaming.
I'd guess developers would be happy to add https(which is a trivial change: swap net.Dial for tls.Dial if Scheme == "https"), and might be open to ssh and socks targets. We can ask.

Out of curiosity, how is the Caddy-as-client proxying being conducted?  My understanding is that Go's built-in capacity for HTTP proxies doesn't support an arbitrary bytestream for HTTP CONNECT but is instead closely tied to an individual request.
E.g. if a go client opens an HTTPS connection to a remote server over a proxy, you can do:
Arbitrary Data over HTTPS over HTTP CONNECT over TLS
but not:
Arbitrary Data over HTTP CONNECT over TLS
It seems like the latter is what you'd need for this

@cjhenck I'm not sure I understand your question, sorry.
@l5h5t7 @jim3ma Wouldn't it be simpler to just use iptables or something to forward all the bytes on port 443 (or whatever) upstream to your proxy? Then you get probe resistance because the proxy acts exactly like the upstream.

@mholt It's about the protocol.
E.g. upstream is a http proxy, when client requests come in, caddy forwardproxy will connect to upstream proxy with CONNECT method and set correct domain or ip with port. we can't just forward the data.

Okay. But what is the goal again? The OP says:

Sometimes we want access another proxy to connect some host, but it's not secure and it might be blocked, use a secure & hidden proxy to connect is useful.

So it looks like the goal is indirection. If one proxy is inaccessible, and you have to proxy through a proxy to get to another proxy, why not just configure that "middle" proxy to be "the" (only) proxy? Like, why do you need two?
You'll have to forgive me, I don't personally have much experience with needing to use proxies that get blocked, but I do want to understand this thoroughly as possible, especially since I'm speaking about it at Internet Freedom Festival in less than a month!

@mholt I think the most common scenario which needs this feature is surfing internet under China GFW. In China, if you want to access Google, Facebook and Twitter, you need other VPN or proxy.
The upstream feature sounds like squids parent proxy or nghttp2 proxy with backend. The squid ACL and parent proxy support is very powerful, HTTP/2 with TLS is easy with caddy. If we can chain these two features in caddy, it would be great.
Currently, nghttp2 + squid or cow can archive the upstream feature without caddy.

One case:
I run a caddy with forwardproxy in my mac for debugging some web site or ip such as google.com in China mainland. While my mac cannot connect with google.com due to GFW. I need upstream proxy to enable connective with google.com
Another case:
    low speed
A <-----------> X

    low speed
A <---------> C(with caddy)

    high speed
C <---------> X

    high speed               low speed
A <---------> B(with caddy) <-----------> X

    high speed               high speed                            high speed
A <---------> B(with caddy) <-----------> C(with upstream caddy) <------------> X

some additional info about @billryan 's cow mode.
browser -> cow ->  caddy(forward proxy) -> internet
vs
browser -> caddy(forward proxy) -> internet
In the later mode, we enjoy full http/2 support,  you'll find very few connections to caddy server. (Can test with netstat -an)
But with cow in middle, you'll found cow established many connections to caddy, one for each request.
I hope the new feature can also have full http/2 support.

I use Caddy as a forward proxy specifically for the http/2 support.  Also, squid and others tend to spawn separate processes for each request.  This is untenable in today's https environment with some sites requiring connections to 3-5 other sites just to show a page.  Performance requires a big beefy box, but with Caddy, I'm able to run the same amount of connections on a much smaller platform.
As for the need for an upstream directive, a considerable number of corporate environments run a proxy for filtering sites, and do not allow outgoing connections from anything other than the proxy.  With an upstream in this plugin this would allow testing and debugging behind any proxy.

Okay, I can see why this would be useful. I don't have time to do it, unfortunately. Maybe somebody else does.

I have an existing pr in for a different function of forwardproxy, but @jim3ma was very close to having this solved.  Once I clear that pr, I can fork his changes and integrate them.

Alright. It seems like both #22 and #26 do the same thing, but #26 also supports multiple upstream IPs. I like #22 more than #26, since it adds ~6 times less lines of code, and is, as a result, cleaner. We certainly don't aim to be a cutting edge squid replacement, which may lag behind on http/2 support, but it's on their roadmap.
That being said, we can add multiple upstream IPs, as long as the code is small and easily testable (I'd like to have at least a very simple sanity check for everything). @jeddytier4 is there a compelling reason to have so many policies? It would be substantially neater if we had just one. Do you have any suggestions on which policy would be best? Hashing IPs?

@sergeyfrolov #26 changes the outgoing IP address on the host, instead of letting the local system choose the best route based on the target IP, it does not allow for an upstream proxy request.  I will trim the policies down to ip_hash and random, as these are the only 2 that I have seen any benefit from using.  Any other suggestions for cutting the code back would be greatly appreciated.

My bad, got confused and thought #26 is your fork of #22, and didn't look too much into it. I checked it out by now, and left some comments: let's continue discussion of #26 in PR.
Regarding #22 : I cleaned it up a bit, and added tests. I want to get another pair of eyes to look at it, but it should be good to go soon.

We are trying to make decision about which schemes are we going to support.
Current PR has support for https, http and socks5 upstreams, but it concerns me how horribly insecure the latter two are: both http and socks5 leak everything in plaintext including all requests made and credentials to upstream proxy. They also allow any adversary on the network to redirect your requests, inject arbitrary responses and do other sorts of Man-in-The-Middle attacks. To reiterate, it's a bad idea to use unencrypted http or socks5 in general, and even more so for GFW jumping.
Because of that, I'd like to disable insecure schemes. But before I do that, I'd like to consult with the users: do you have any good use-cases, for which you'd want to use insecure schemes, and absolutely cannot spin up https upstream? I don't want to do any harm to people who may use those schemes without realizing how bad they are, and I'd rather not provide a gun for people to shoot themselves in the foot.
We will merge after this discussion settles.
cc: @l5h5t7 @jim3ma @billryan @bash99 @jeddytier4
If https works for your use-case well, you can just give this comment a :+1:

@billryan I agree with your point on localhost upstreaming: it should allow insecure schemes. This will be implemented as part of https://github.com/caddyserver/forwardproxy/issues/29
Note, however, that with private network, forwardproxy may just choose the public one, which you also have for hosting, so it is dangerous to have it this way. After #11 and #29 are implemented, you would be able to tunnel it through localhost:port with either an explicit tunnel or a simple IP table rule.

Implemented in #27.
Supported schemes to remote host: https.
Supported schemes to localhost: socks5, http, https(certificate check is ignored).


feat(blob): allow for more than one blob to be sumbmitted via the CLI

Context
https://github.com/celestiaorg/celestia-app/pull/2411/files#r1316337240
The blob CLI only allows one blob to be submitted.
Proposal
Add the ability to submit multiple blobs via the CLI

hey @rootulp can i work on this

Sure! I think multiple blobs via the CLI may be an interesting UX problem so we may want to design the expected user experience before we start working on code.

yes absolutely, right now the simplest way i came up with are just allow a bunch of hex blob as arguments but this could be improve by accept file path as input, this file can contain multiple blob data in json format or hex string

oh sorry for the late reply didn't see your reaction, i will try the file path implementation


Bug in v1.2.0 ?

Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.
For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io
Description
Mxnet v1.2.0 gpu training failed on my computer.
Environment info (Required)
Here is my environment:
Dell T630
Gtx 1080 (x4)
Python 3.6.4 (anaconda3)
Error Message:
I run the following code under mxnet v1.2.0.

import mxnet as mx
a = mx.nd.ones(1,mx.gpu()) #this line of code will cause python.exe crash
b = mx.nd.ones(1) #works well only using cpu

What have you tried to solve it?
I have solved it just by using mxnet v1.1.0 instead.

@DuCheng2018 Do you get any particular error? Can you paste stacktrace?
@sandeep-krishnamurthy Could you add label: PendingRequestorInfo

What platform are you running on(I am assuming Windows since I python.exe)?
What version of MXNet are installing ?  Do you have the corresponding version of CUDA installed in place? ie., pip install mxnet-cu92 requires CUDA 9.2

The error message is "cudaErrorCudartUnloading : device kernel image is invalid"

When I train mnist dataset by :
python train_mnist --network lenet --gpus 0
#ERROR MESSAGE:
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\mxnet\symbol\symbol.py", line 1513, in simple_bind
ctypes.byref(exe_handle)))
File "C:\Anaconda3\lib\site-packages\mxnet\base.py", line 149, in check_call
raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [16:46:29] c:\jenkins\workspace\mxnet-tag\mxnet\src\storage./pooled_storage_manager.h:108: cudaMa
lloc failed: device kernel image is invalid
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train_mnist.py", line 96, in
fit.fit(args, sym, get_mnist_iter)
File "D:\MXNet\apache-mxnet-src-1.2.1-incubating\example\image-classification\common\fit.py", line 307, in fit
monitor=monitor)
File "C:\Anaconda3\lib\site-packages\mxnet\module\base_module.py", line 484, in fit
for_training=True, force_rebind=force_rebind)
File "C:\Anaconda3\lib\site-packages\mxnet\module\module.py", line 430, in bind
state_names=self._state_names)
File "C:\Anaconda3\lib\site-packages\mxnet\module\executor_group.py", line 265, in init
self.bind_exec(data_shapes, label_shapes, shared_group)
File "C:\Anaconda3\lib\site-packages\mxnet\module\executor_group.py", line 361, in bind_exec
shared_group))
File "C:\Anaconda3\lib\site-packages\mxnet\module\executor_group.py", line 639, in _bind_ith_exec
shared_buffer=shared_data_arrays, **input_shapes)
File "C:\Anaconda3\lib\site-packages\mxnet\symbol\symbol.py", line 1519, in simple_bind
raise RuntimeError(error_msg)
RuntimeError: simple_bind error. Arguments:
data: (1, 1, 28, 28)
softmax_label: (1,)
[16:46:29] c:\jenkins\workspace\mxnet-tag\mxnet\src\storage./pooled_storage_manager.h:108: cudaMalloc failed: device ker
nel image is invalid

No one answer my question?

I have had the same problem as you and tried many times without success. I think it might be a bug

@DuCheng2018 @hitdongfeng have you tried with 1.3 builds. Is this issue reproducible there?

Yeah, I have tried v1.3 which also didn’t work.
On 10/20/2018 06:49, Lanking wrote:
@DuCheng2018@hitdongfeng have you tried with 1.3 builds. Is this issue reproducible there?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@mxnet-label-bot update [Bug, Build, Pending Requester Info]
Can you run our diagnostic script and comment with the output?
What to do:
1. Download the diagnosis script from https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py
2. Run the script using `python diagnose.py` and paste its output here.

The bug is fixed after I update mxnet. Thx a lot.


test: fix ESM tests

Regarding to the jest documentation we should use --experimental-vm-modules command-line option for enabling ES modules.
Closes #1571

Actually, I'm going to close this without a merge because I don't think this is an issue anymore.
Please, reopen and correct me if I'm wrong here.


Implement named args for prepared statements

@RangelReale I finally have some time to take a look at implementing named binds.
In my implementation, named arguments can only be used with prepared statements.
This is because being able to have named arguments is primarily for ease of reusing queries, and that is what prepared statements should be for.
Here is what I have so far:
// How it will be used

func main1(ctx context.Context, exec bob.Preparer) {
	query := psql.Select(
		sm.From("users"),
		sm.Where(psql.Quote("id").In(bob.NamedGroup("in1", "in2", "in3"))),
		sm.Where(psql.Raw("id >= ?", bob.Named("id1"))),
	)

	// USING A map[string]any
	mappedStmt, err := bob.PrepareMapped(ctx, exec, query)
	if err != nil {
		panic(err)
	}

	_, err = mappedStmt.Exec(ctx, map[string]any{
		"id1": 400,
		"in1": 15,
		"in2": 200,
		"in3": 300,
	})
	if err != nil {
		panic(err)
	}

	// USING A struct
	type vals struct {
		ID1 int
		In1 int
		In2 int
		In3 int
	}

	boundStmt, err := bob.PrepareBound[vals](ctx, exec, query)
	if err != nil {
		panic(err)
	}

	_, err = boundStmt.Exec(ctx, vals{
		ID1: 400,
		In1: 15,
		In2: 200,
		In3: 300,
	})
	if err != nil {
		panic(err)
	}
}

SELECT
*
FROM users
WHERE ("id" IN ($1, $2, $3)) AND (id >= $4)

0: 15
1: 200
2: 300
3: 400

SELECT
*
FROM users
WHERE ("id" IN ($1, $2, $3)) AND (id >= $4)

0: 15
1: 200
2: 300
3: 400

I'll take a look today, but don't you think that using Named() may confuse users with databases that have native named arguments?

I'll take a look today, but don't you think that using Named() may confuse users with databases that have native named arguments?

It may, but I could not think of a different name to use.

NamedArg would suffer from the same confusion since database/sql has Named and NamedArg
Bind is often used to bind query results to objects
NamedPlaceholder would be the most accurate, but it looks too long.

I was thinking maybe BoundArg, or BindArg, but it is not perfect also.

One problem that I found is that I need to have a way to make tx.Stmt work, when using transactions we call DB.Prepare to create an Stmt, then when running in a transaction I must convert the Stmt to a transaction-specific one, but for this strongly-typed Stmt, we will need some way to wrap this statement.

The statement storage declaration also is not very readable, for some reason I had to declare all generics parameters, and need to know beforehand which type each query would use, including the case of the struct is used as the parameter.
type storage struct {
	preparedSelectStatement         *bob.MappedQueryStmt[entity.Role, []entity.Role]
	preparedSelectByRoleIDStatement *bob.MappedQueryStmt[entity.Role, []entity.Role]
	preparedDeleteByRoleIDStatement *bob.MappedStmt
	preparedUpdateStatement         *bob.BoundQueryStmt[entity.Role, entity.Role, []entity.Role]
	preparedInsertStatement         *bob.BoundQueryStmt[entity.Role, entity.Role, []entity.Role]
	preparedSelectPolicyStatement   *bob.MappedQueryStmt[entity.RolePolicy, []entity.RolePolicy]
	preparedDeletePolicyStatement   *bob.MappedStmt
}

One problem that I found is that I need to have a way to make tx.Stmt work, when using transactions we call DB.Prepare to create an Stmt, then when running in a transaction I must convert the Stmt to a transaction-specific one, but for this strongly-typed Stmt, we will need some way to wrap this statement.

I had not thought of this before. This definitely has to be made easier.

The statement storage declaration also is not very readable, for some reason I had to declare all generics parameters, and need to know beforehand which type each query would use, including the case of the struct is used as the parameter.

This is as-designed.

The Statements need to know the type to scan results into
The struct-bound statements also need to know the struct to expect as an arg.

While this feels limiting, when using it anywhere in the code, it gives a certain level of confidence that the query will work as expected.
It could be less strict, but I kind of like it this way.

One problem that I found is that I need to have a way to make tx.Stmt work, when using transactions we call DB.Prepare to create an Stmt, then when running in a transaction I must convert the Stmt to a transaction-specific one, but for this strongly-typed Stmt, we will need some way to wrap this statement.

I have added InTx methods to the Statements to make it possible to use create transaction-specific variants. Try it out and let me know.

One problem that I found is that I need to have a way to make tx.Stmt work, when using transactions we call DB.Prepare to create an Stmt, then when running in a transaction I must convert the Stmt to a transaction-specific one, but for this strongly-typed Stmt, we will need some way to wrap this statement.

I have added InTx methods to the Statements to make it possible to use create transaction-specific variants. Try it out and let me know.

I think it should work, I was having some difficulties because we use some repository transaction pattern so I didn't have an *sql.Tx instance available, but the interface wasn't really good anyway.

I'm still not sure about the amount of complexity added just to be able to set the parameter values after the query generation. It is now not possible to use only the query builder for prepared queries, you are required to use the library Stmt type and Prepare calls, which ties it to a specific DB implementation.

See #104


Feature/ss 515 build and publish studio and ingress images

Status

[X] Ready
[ ] Draft
[ ] Hold

Description
JIRA

I've deleted a workflow where Jupyterlab image was created. This is done in the serve-images repo instead.
I've added a publish step to build-and-test-studio.yaml as a second job. This job is triggered with the same logic, but if the event is a pull_request, it does not push the image to ghcr. The job basically just builds and publish studio:<branch>-<YYYYMMDD> and  ingress:<branch>-<YYYYMMDD>. So if you push to staging on 24/8 2023 you get studio:staging-20230824.
Note: It did not work to flip the order (DDMMYYYY) unfortunately. We can look into this more later if neccessary
I've created a file called publish-studio.yaml which does the same thing but is triggered on push tag and release. It builds and publish studio:<tag>, studio:latest, ingress:<tag>, ingress:latest.
Note: The tag must adhere to semantic versioning otherwise the workflow fails

We can combine 2 and 3 to one single file, but then step 3 with also include the tag studio:<branch>-<YYYYMMDD>
THUS, we must tag significant commits with a git tag. Say that commit 9fabb04 is of some significance, then we tag this using
git tag -a <tag> 9fabb04 -m "some message explaining the awesomeness of the commit". Then you push the tag using
git push origin <tag>
Types of changes
What types of changes does your code introduce to STACKn?

[ ] Hotfix (fixing a critical bug in production)
[ ] Bugfix
[X] New feature
[ ] Documentation update

Checklist
If you're unsure about any of the items below, don't hesitate to ask. We're here to help!
This is simply a reminder of what we are going to look for before merging your code.

[x] This pull request is against develop branch (not applicable for hotfixes)
[X] I have included a link to the issue on GitHub or JIRA (if any)
[ ] I have included migration files (if there are changes to the model classes)
[x] I have read the CONTRIBUTING doc
[ ] I have included, reviewed and executed tests (unit and end2end) to complement my changes
[ ] I have updated the related documentation (if necessary)
[ ] I have updated the release notes (docs/releasenotes.md)
[x] I have added a reviewer for this pull request
[x] I have added myself as an author for this pull request

1 Approval, 24 hours passed. Consider this baby merged.


I found it helpful

[I found this page helpful]

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

ID: 599c7424-e0df-94a4-411b-19bbfa724998
Version Independent ID: 1700c6a6-b6f8-3801-7302-fefae242b032
Content: SQL Server Import Extension - Azure Data Studio
Content Source: docs/azure-data-studio/extensions/sql-server-import-extension.md
Product: azure-data-studio
Technology: azure-data-studio
GitHub Login: @yualan
Microsoft Alias: alayu

@ParinitaChakraborty -- Parinita, thank you for your kind words.
cc @yualan, @rothja for awareness

Thank you for the feedback, @ParinitaChakraborty!


[NuGet.org Bug]: FAQ goes to client FAQ, not server FAQ

Impact
It bothers me. A fix would be nice
Describe the bug
The FAQ page on nuget.org redirects to https://learn.microsoft.com/en-us/nuget/resources/nuget-faq
There is however a better FAQ about NuGet.org that's located here: https://learn.microsoft.com/en-us/nuget/nuget-org/nuget-org-faq
Repro Steps

Open https://www.nuget.org/
Click on "FAQ" at the bottom
Directed to https://learn.microsoft.com/en-us/nuget/resources/nuget-faq

Expected Behavior

Open https://www.nuget.org/
Click on "FAQ" at the bottom
Directed to https://learn.microsoft.com/en-us/nuget/nuget-org/nuget-org-faq

Screenshots
No response
Additional Context and logs
No response

Fixed!


Update 02-Ray-Serve-Example.ipynb

import sklearn to run sklearn.utils.shuffle

Merged! Thanks for your contribution!


return partition and clustering keys for tables through get_indexes

pybigquery does not return information about partitioning / cluster key on a bigquery table. this PR adds that support. so consumers like superset can use this information.
CC: @mistercrunch @tswast @mxmzdlv

For the record, this will allow Superset and other SQLAlchemy tools to get a handle on partitioning and segmentation keys easily. This way we can expose it to the users and apply predicates when fetching samples.
Also not that pyhive uses this same method for the same purpose for both Presto and Hive

LGTM


Stream 827/add max batch rows opt

Enables setting MAX_BATCH_ROWS udf config for UDF's

Adds API_INTEGRATION_OPTIONS var to dbt_project.yml, sets to None as default
Adds API_INTEGRATION_OPTIONS attribute to _live.yaml config and macro
Creates tag v1.4.0

Closing PR since livequery-models defaults to not specifying MAX_BATCH_ROWS for _live.udf_api and if needed for other repo we need to implement this ticket https://team-1612274056224.atlassian.net/browse/STREAM-852 in fsc_utils


Dead links

Links to DispatchCreate and DispatchCreateClose routines lead to a 404.

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

ID: 77adb1c5-e373-51b8-ed29-cb70efa37b02
Version Independent ID: fa6f2ac7-1746-e71e-3e1d-9aeec8ae6112
Content: IRP_MJ_CREATE
Content Source: windows-driver-docs-pr/kernel/irp-mj-create.md
Product: windows-hardware
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

Thanks, @denniskupec
@PageWriter-MSFT the MSDN links are not redirecting. This occurs on at least https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/dispatchcreate--dispatchclose--and-dispatchcreateclose-routines and below, as well.

Hello,
Thanks for reporting this broken links. These should now be fixed.
Page Writer


If there is not enough funds, should lucenenet consider: opening up to receive funding from the community or industry ?

The development of lucenenet seems to be very slow. If there is not enough funds, should lucenenet consider: opening up to receive funding from the community or industry. I believe there should be some support.
If you are lucky, it will greatly improve the development of lucenenet. There are so many projects under the Apache Foundation, I guess the support that Apache can give should be very limited.
lucene.net is a crucial link in building the .net community ecology, but it lags far behind Java. Of course, this is not only because lucene.net lags behind lucene, but also because of the great success and influence of elastic search. So maybe lucene.net should do something.

Thank you for sharing your concerns and for recognizing the importance of Lucene.NET in the .NET community. Your feedback provides valuable insight into the sentiments and aspirations of our user base.
It's accurate that Lucene.NET's development pace has been slower compared to its Java counterpart. Our team, comprised of dedicated volunteers, is doing its best with the resources we have.
Regarding funding and support: The Apache Software Foundation (ASF), which oversees Lucene.NET among many other projects, emphasizes neutrality and independence in all its projects. While the ASF accepts donations, these are channeled into benefiting the broader foundation rather than specific projects. This means individual projects, such as Lucene.NET, do not and cannot directly solicit or receive funds.
However, it's worth mentioning that many Apache committers, across various projects, do receive compensation, but not from the ASF directly. Some, for example, are sponsored by their employers to work on Apache projects, as these projects may align with the company's interests or products.
Despite many companies utilizing Lucene.NET in commercial products, there's been a noticeable lack of companies supporting their employees to contribute to Lucene.NET compared to the Java ecosystem. We're hopeful this will shift as the .NET landscape increasingly embraces open-source.
Lucene.NET holds an important role in the .NET ecosystem, and we are continuously exploring ways to ensure it remains competitive and relevant. We warmly welcome and encourage collaboration, insights, and any form of contribution that can further the project's growth.
Thank you again for your feedback, if you have any specific suggestions or insights on how to fund more resources for this project while keeping true to the Apache way, we are all ears.

thanks for your reply


Liner notes functionality

What is the problem you are trying to solve?
Make it possible to automatically generate PDF-ready liner notes
What solution would you like?
Liner notes build target which will generate an HTML bundle from the lyrics and track information, and which also allows you to insert text fragments like an intro and a preamble, ideally formatted in Markdown.

Some ideas about how this can work:
The album.json can get a section called "notes" which is a key->value mapping to Markdown files or stringlists, and a slot for a Jinja template (with a reasonable default provided, and examples given in documentation).
At encode time, the metadata gets parsed into a keystore with track info and the "notes" map, with all Markdown and lyrics pre-processed into HTML, and this is passed along to Jinja.
Jinja is also provided with some basic image rendition stuff, so that album and track artwork can be formatted into the resulting output.
At the end, the user has a liner notes directory with index.html and images in it, and then can save to PDF for bundling on Bandcamp/itch/etc.


Extended String match functionality

While I was solving task of search occurrences highlighting, inspired with existing SwifterSwift solution, I've created this String's extension
extension String {

    /// Verify if string matches the regex pattern and return corresponding parts of string
    ///
    /// - Parameter pattern: Pattern to verify.
    /// - Returns: Matching pattern parts of string.
    func matches(for regex: String) -> [String] {
        do {
            let regex = try NSRegularExpression(pattern: regex)
            let results = regex.matches(in: self, range: NSRange(startIndex..., in: self))
            return results.compactMap { textCheckingResult -> String? in
                guard let stringRange = Range(textCheckingResult.range, in: self) else { return nil }
                return String(self[stringRange])
            }
        } catch {
            print("invalid regex: \(error.localizedDescription)")
            return []
        }
    }

@DimaZava Nice one, could you please open a new PR for this 🚀

Closing due inactivity ... also this is similar to #901


Add Cloud Marketplace Integration - Azure Marketplace Integration

Summary
Now that Rancher Prime is available in the Microsoft Azure Marketplace, update the documentation to reflect this.
Details

Update "This integration only supports AWS" to "This integration supports Amazon Web Services and Microsoft Azure." on https://ranchermanager.docs.rancher.com/pages-for-subheaders/cloud-marketplace
Add an equivalent for Azure of the subsection, https://ranchermanager.docs.rancher.com/pages-for-subheaders/aws-cloud-marketplace

Possible duplicate of https://github.com/rancher/rancher-docs/issues/987. @LucasSaintarbor to confirm.

@btat & @LucasSaintarbor : This does indeed appear to be a duplicate of #917.  Thank you for identifying it.  Feel welcome to close this issue.

Thank you for the confirmation.


Creating your first Google web story

Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Proposed title of article
Creating your first Google web story
Introduction paragraph(s):
Web Stories are a web-based version of the popular "Stories" format that blend video, audio, images, animation and text to create a dynamic consumption experience. This visual format lets you explore content at your own pace by tapping through it, or swiping from one piece of content to the next.
This tutorial on how content creators, bloggers, advertisers, website owners e.t.c can leverage on Google web stories to build short consumable content on the web using code and NoCode web story builder like Make story or WordPress.
Key takeaways:

what is a web story
how to create a web story using NoCode
how to create a web story with code
web stories best practices

References:

https://www.google.com/amp/s/stories.google/
https://amp.dev/documentation/guides-and-tutorials/start/create_successful_stories/
https://www.google.com/amp/s/blog.google/web-creators/10-web-stories-and-whats-great-about-them/amp/

Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Thank you for the topic suggestion @Jethro-magaji, however the description that you've provided is rather sparse and doesn't allow us to fully assess the quality and substance of your proposed article. We are unable to accept this topic as proposed, but please feel free to spend some time expanding on this topic suggestion - we suggest writing the first 3 paragraphs of your article and including that in your submission. When you are ready, you may request that this issue be reopened. Thank you.

Hi @ninjaginja
Thanks for the corrections, I have just updated the description.
can you please check it out?


Recompile specific files in source set

Common workflow of debugging a problem in IDE involves recompiling and hot-swapping a single (or small number) of classes, potentially ignoring set modified set of other sources.
Expected Behavior
Gradle :compile task allows specifying exact recompile target, e.g. --single com/example/MyClass.java
Current Behavior
End user is forced to do incremental compilation of the whole module, including all modified files, potentially denying the hot swap (e.g., if some unrelated file can not be compiled)
Context
Context is commonly used "Recompile file" action in IntelliJ IDEA with "Delegate build/run operations to Gradle" enabled

I do a lot of hacking, which requires some checks in working app. So recomilation of single file with following hot swap to check something is very important usecase for me.
Not compiled other files generally it's not the only case when I want to recompile ony single file. Problem can be if too much files changed so recompilation will be slow. Or it can be in case when I'm sure hot swap will not work because of new methods, in this case I want to recompiler single file, which I know changes just method bodies.

This doesn't fit Gradle's model of a task at all, so I'm highly doubting that we'll ever do this. It would require fundamental changes, not just a quick hack in the Java plugin.
I'd propose a solution on the IDEA side instead: Stash the changes that you don't want, then call Gradle as usual.


Useless error messages when bundler can't connect

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/

This error is not useful in any way. It should at least specify whether connection was closed, refused, timed out or had HTTP error code

I believe running with --verbose will give you more information on the specific errors

I know how to debug root of the problem but "fill screen with stacktraces
to extract one line about the actual problem" is not exactly very user
friendly way to do it.
--verbose prints very nice and useful line
Gem::RemoteFetcher::FetchError: Errno::EHOSTUNREACH: Failed to open TCP connection to rubygems.org:443 (No route to host - connect(2) for " rubygems.org" port 443), shouldn't that be "normal" message instead of "it
didn't work because I wont tell you" ?
On 12 April 2017 at 17:12, Samuel Giddins<EMAIL_ADDRESS>wrote:

I believe running with --verbose will give you more information on the
specific errors
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bundler/bundler/issues/5577#issuecomment-293609255,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI_wg2bVxTum2mgzTZIx-4fk2sCTipfks5rvOnAgaJpZM4M7cQb
.

--
Mariusz Gronczewski (XANi<EMAIL_ADDRESS>GnuPG: 0xEA8ACE64

Maybe!
I agree we could have better output, I just wanted to make sure you weren't waiting on us to release a new version to work around the issue you're experiencing :)
A PR improving the error message in the fetcher would be greatly appreciated!

I know how to debug root of the problem but "fill screen with stacktraces
to extract one line about the actual problem" is not exactly very user
friendly way to do it.
--verbose prints very nice and useful line
Gem::RemoteFetcher::FetchError: Errno::EHOSTUNREACH: Failed to open TCP connection to rubygems.org:443 (No route to host - connect(2) for "rubygems.org" port 443)

shouldn't that be "normal" message instead of "it didn't work because I wont tell you why" ?

I'm sysadmin, not a ruby developer. I posted a bug because I occasionally get reports from our ruby devs  (not saying it's often with bundler, plenty of other tools have bad error messages sadly) with very cryptic error messages and got tired of doing the "okay, I've started the tcpdump, now run the thing that doesnt work" dance.
If thing like that happens to me I usually just strace it as it is easier than checking whether this particular app uses -v, -vvvvvv, --verbose, -d, --debug, env variable or config option to enable detailed errors. I actually tried -v with bundler, saw unknown switches error and just straced it


Callable function in react: Response for preflight is invalid (redirect)

Following the "Call Functions from Your App" documentation and the source code provided here, I am getting this error:

Failed to load https://us-central1-(redacted).cloudfunctions.net/secondAddMessage: Response for preflight is invalid (redirect)

This is a react app hosted on Firebase Hosting. It is using httpsCallable to call a Cloud Function with onCall. It's my understanding that I don't need to do any CORS configuration when using httpsCallable. Is this feature broken? Am I missing something?

The firebase config on the react app had the wrong authDomain value.

Could you please elaborate on this?


implement hashCode() for InMemoryElement

Let me know if https://github.com/v5analytics/vertexium/pull/71 works for you.

merged, thanks


Host the documentation

it took me a while to realize that this repo had docs because I couldn't see a link for it anywhere. Where should we put documentation like this? A few ideas:

docs.2i2c.cloud/low-touch-hubs
readthedocs.io
docs/2i2c.org/low-touch-hubs

Any thoughts?

I take it all back as I have just discovered https://2i2c-low-touch-hubs.readthedocs.io/en/latest/ :-)


Draft: Migrate Sphinx and API documentation automatic build and upload to main repo

Don't merge this for now. I will rebase this before the next release.
I have added the following changes and repository configuration

[x] Github Actions for building and linting the Sphinx docs. (PR and master branch only)
[x] GA for building the Doxygen docs. (PR and master branch only)
[x] Upload built API Doxygen docs to github-pages branch. (master branch only)
[ ] Readthedoc Github Webhook setup.
[ ] Readthedoc PR build.
[ ] branch-off github-pages branch to ensure linear history.

* Upload built API Doxygen docs to github-pages branch. (master branch only)

Something to take into account: this repository is now approx 300MB, which starts to take noticeable time when git cloneing.
As was noted in https://github.com/ros-industrial-consortium/tesseract/issues/603, pushing documentation to gh-pages branches in the same repository as the code can substantially increase download times.
Using a separate repository for hosting such documentation may be a better alternative.

Something to take into account: this repository is now approx 300MB, which starts to take noticeable time when git cloneing.

Noted on this, we had some back-and-forth on adding and removing the docs. I think we will stick to hosting it on a separate repo then.


Pull to proper branch

Changes / Comments
Modified the sheet mainly in the CSS file, to improve it's readability. Tables, rows, and inputs now have background colors to facilitate visual navigation and identification of elements. Improved the vertical alignment of inputs and other elements within the table rows, to further ease the user's eyes path across them.
The sheet has been modified to use CSS variables, so that, if need be, the color scheme may be easily modified by altering a few variables on the beginning of the sheet. Using this feature, I've added an array of "Sheet Styles", preset combinations of colors that can be selected via a setting in the appropiate tab of the sheet.
Added Styles:

Green
Blue
Beige
Gray
Classic White

Added variables:

main-text: Controls main text color.
highlight-text: Controls highlighted, formerly darkred, text color.
secondary-highlight: Controls the secondary highlighted text color used mainly in the Attribute table.
point-label-text: Controls the text color for the points label with a hover info box.
header-text: Controls the text color for headings.
sheet-bg: Controls base background color for the sheet.
box-bg: Controls background color for tables.
header-bg: Controls background color for table and other headings.
row-bg: Controls background color for even table rows.
odd-row-bg: Controls background color for odd table rows.
input-disabled-bg: Controls background color for the disabled inputs.
border-color: Controls main border color.

Not all instances of color within the sheet have been retrofited into this system, to avoid generating too many variables for specific elements.

Excellent, thank you @TamedFlame

I'm going to shoot for getting this update for this Tuesday's pull into roll20. I have to work today, so I'm going to check it out tonight.

Hi @TamedFlame I found a few display bugs, but I don't have time to identify all of them, but here are a few of them.

On the Traits tab, the show/hide arrow buttons are missing.
On the Bio/Misc tab, the text areas for Background History & Notes, Training boxes are too short.
Skills tab. Both technique tables, the show/hide button and checboxes are missing
Combat tab.  Active defenses. The show/hide button and checkboxes are off. Need to click the exact spot to work.
Combat tab. Combat Tools - Thrown box. Show/hide button is missing
Options tab. Looks like the rows and columns for the options are not lining up correctly. The horizontal rulers are also out of place.

@MadCoder253 modified my code so that all the changes you noted were fixed. Additionally, made it so the new styles will color the options page, so the user gets instant feedback for the changes. (Classic White remains as before). Also improved my bordered expands, so when doing so from ones with no highlight checkbox, their border is properly aligned to the input's left border.
I could not replicate your issue with Active Defenses, on my browser the toggle and checkbox are both switched, and they respond to being clicked on, with no misalignment.

Thanks for all the hard work @TamedFlame looks great. I just merged into my branch and it should go live on Tuesday.

Ken, I am working to fix up the design complaints on the forum, as well as doing a few touchups and adding new styles.
Do you have an instant messaging service you'd be comfortable using for the sake of easier communication?

Sounds good, here's the current branch that I will be doing a pull request for the 5/5/2020 updates.
https://github.com/MadCoder253/roll20-character-sheets/tree/GURPS-2.3.4
Mike W and I use discord. My account is TheMadCoder#4254
Ken

@TamedFlame I found an issue, are you able to fix this?
https://github.com/MadCoder253/roll20-character-sheets/issues/157


feat: Retry pending nodes

Checklist:

[a] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[x] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[ ] I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
[ ] Optional. I've added My organization is added to the README.
[x] I've signed the CLA and required builds are green.

Please hold off on merging this for a bit, want to take another look

@simster7 how is it going?

I would suggest refactoring the code so that an attempt to recreate the pod is considered as a full retry.

@simster7,  these two use cases are different: to retry a failed pod, and retry the submission of the pod, so it isn't related to retryStrategy.limit, as semantic is different.
Suppose we have another parameter under retryStrategy to limit the number of resubmissions. Then imagine you have two pods, both of them require full namespace resources. Then there would be no way to tell when the first one is completed, thus making impossible to limit the number of resubmissions upfront.
Therefore, it's not a refactoring per se, but rather completely different functionality, and this is not what we want to have.

@simster7, to me the difference is substantial: in one case pod exists (=consumes resources), and in another pod doesn't exist (=no resources allocated). I remember once our cluster went down because it had unlimited retries in retryStrategy, and there were an error in pod itself, so I definitely do not want to retry resubmission the same way I want to retry failed pods.
To make it perfect we need to have specific error, like QuotaError, and this requires to understand the error returned by Kubernetes API in more detail (=not how it is right now), and I sort of implemented it by passing forbidden to caller side, instead of wrapping it into argo error losing the details required.
To lump together submission errors (forbidden) and all other errors will make it unusable for our case (we have namespaces with limits by default for all our teams).
Please help me understand why do you want to limit the number of resubmissions due to forbidden reason. The only problem I see here it can overload Kubernetes API, but in that case I would prefer to rate limit resubmissions instead of limiting the number of them. However, it requires a different strategy (workflow controller needs to receive periodic updates somehow), and afaik this is not available as of now.
So, the approach suggested is not a perfect solution, but rather a practical compromise, as this issue is really a show-stopper for us (and it seems not only for us).

@simster7 @alexec, so you have a slack, zoom or similar available? I really think it makes sense to discuss it live.

@simster7, wrt to script tasks, here is the definition: https://github.com/argoproj/argo/blob/master/examples/retry-script.yaml
It looks custom to me (e.g. no way to set resource limits), unlike workflow template definition (=standard kubernetes pod type with resource limits available).

@simster7 @alexec, so you have a slack, zoom or similar available? I really think it makes sense to discuss it live.

Sure! I'm @simon on the Argo slack

@simster7, wrt to script tasks, here is the definition: https://github.com/argoproj/argo/blob/master/examples/retry-script.yaml
It looks custom to me (e.g. no way to set resource limits), unlike workflow template definition (=standard kubernetes pod type with resource limits available).

I see, sorry I had confused "ResourceQuotas" with "ResourceLimits"

Do you see this as a problem?

@simster7, I do, I'd suggest having a feature toggle for now, and make it default in future releases.

@simster7, I do, I'd suggest having a feature toggle for now (I'm thinking workflow label/annotation?), and make it default in future releases (because tbh this is what I would expect from pod orchestrator). What do you think?

Let's do it then! Perhaps as a label in retryStrategy? Something like retryStrategy.recreatePendingPods: true?
Once this feature toggle is set and https://github.com/argoproj/argo/pull/2385#discussion_r391817108 is addressed we can merge this in.

Hey @jamhed. I just made three changes:

I moved the flag out of retryStrategy (and renamed it to resubmitPendingPods) and into the template spec. The logic for this is simple (and based on your comments): resubmitting pods is different than retrying nodes. Suppose you are a user who does not want to retry a failed pod, but wants to resubmit a pod under resource quotas. If the flag to do so is inside retryStrategy, you will inadvertently also be enabling retry logic, which you may not want. If you do not want retry logic, you will also be forced to add a limit: 1 flag to avoid your container from being retried indefinitely (I can see you had to resort to that in your test). This is not obvious to the user and could result in a user accidentally allowing their container to be retried indefinitely, which is dangerous.

I greatly simplified the resubmission logic. Now all of it fits inside executeContainer (thanks in part by moving this out of retryStrategy).

I edited your test to reflect this, and changed the E2E testing fixture to accommodate resourcequotas now being part of tests.

Could you please take a look at the PR now and let me know of any comments you may have? If you OK this, we'll merge it in.

@simster7 it was there for a reason :) i'm quite certain it won't work this way for templates with retryStrategy.limit = 1


Added ECOP token

[x] I will not ping the Discord about this pull request.

https://github.com/solana-labs/token-list/pull/216


webpack-dev-server could not start

Steps to Reproduce

Fresh install, created project (into a folder that was already created outside of the app), and then error appears.
Screenshot: https://cdn.discordapp.com/attachments/417259940734959616/442844480077561866/unknown.png
Error
'webpack-dev-server' is not recognized as an internal or external command,
operable program or batch file.
Editor Details
Version: 1.0.0
Mixer User ID: 930

Node: 8.2.1
NPM: 5.7.1

Thanks for the report! Can you list what's in the node_modules/.bin folder of your project?

node_modules folder does not generate.

Ok, thanks. Running npm install again within your project folder should fix this (and will be done automatically in #102). Assuming you created your project with the "New Project" wizard, did you notice any errors in that process?

PS D:\RainbowSix-mixer\joyfully-exhausted-cow> npm -v
5.7.1
PS D:\RainbowSix-mixer\joyfully-exhausted-cow> node -v
v8.11.1
PS D:\RainbowSix-mixer\joyfully-exhausted-cow> npm install
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.

up to date in 0.05s
PS D:\RainbowSix-mixer\joyfully-exhausted-cow>

Output after updating node to LTS, still didn't generate a node_modules.

Chatted a bit more with Nick. We determined it was the NODE_ENV set to production which skips installing dev dependencies. Perhaps we can force install dev dependencies since we do it automatically anyway 😄


how to get the F and B in kitti2015

Can you tell me how to parse the calibration files to get the F and B in kitti2015？Thanks a lot.

Hi, @chenglong0313
You mean baseline b, focal length f?
The baseline b=0.54 in Kitti
As for focal length, it corresponds to the first number of  P_rect_0x in calibration files, where x is the camera id. i.e. f=721.5377

Thanks  a lot.
I just searched in github again， then I find it here.
https://github.com/mrharicot/monodepth/blob/b76bee4bd12610b482163871b7ff93e931cb5331/utils/evaluation_utils.py#L146
OK, the focal length is the same as your.
Baseline is a little different, but almost the same


Display the total number of "My links"

Deleting a link dynamically updates this total on the "My links" page.
Also contains a bugfix for cl.apiErrorMessage whereby the JSON body of an error response wasn't parsed, causing xhrOrErr.response.err to result in a cryptic "Cannot read property 'replace' of undefined" error message.

Coverage increased (+0.03%) to 98.061% when pulling 1538d375271f485beb1a03d5e5c73010877cd24c on count-links into 9a895a9aa9ba5d2ccd0ba003c9e638ef30ed1cfb on master.

Coverage increased (+0.03%) to 98.061% when pulling 1538d375271f485beb1a03d5e5c73010877cd24c on count-links into 9a895a9aa9ba5d2ccd0ba003c9e638ef30ed1cfb on master.


ARROW-13239: [Python] [Doc] Expose signatures in pyx modules

Shell we include other directives too, similarly to lib.pyx? Perhaps there is a way to set those globally from setup.py, though I'm not sure.

Shell we include other directives too, similarly to lib.pyx? Perhaps there is a way to set those globally from setup.py, though I'm not sure.

That's an interesting idea, there might be a way to pass it as a compiler option, in general providing them to Extension is the way to go, but the fact that we use CMake to cythonize files is something I'm not much familiar with so I'd have to investigate a bit how to pass compiler options through CMake

@kszucs I pursued your idea and now the signatures are generated for all .pyx files independently from the directives applied at the top of the file. That should address the issue and prevent future problems from occurring again.

@jorisvandenbossche @kszucs do you mind double checking this one to confirm it's the way to go? I think it would be great to fix the api reference for 5.0.0


chore: Re-write debugger/debugger-basics.md links

This is already redirect on the site through the redirection.json, this just makes it nicer for when you're navigating on GitHub or in the IDE

@nschonni : Thanks for your contribution! The author, @gewarren, has been notified to review your proposed change.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/debugger/debug-using-the-just-in-time-debugger.md
:white_check_mark:Succeeded

docs/debugger/debugger-security.md
:white_check_mark:Succeeded

docs/debugger/debugger-windows.md
:white_check_mark:Succeeded

docs/debugger/debugging-basics-registers-window.md
:white_check_mark:Succeeded

docs/debugger/debugging-managed-code.md
:white_check_mark:Succeeded

docs/debugger/debugging-native-code.md
:white_check_mark:Succeeded

docs/debugger/debugging-preparation-visual-cpp-project-types.md
:white_check_mark:Succeeded

docs/debugger/debugging-preparation-windows-forms-applications.md
:white_check_mark:Succeeded

docs/debugger/debugging-web-applications.md
:white_check_mark:Succeeded

docs/debugger/edit-and-continue.md
:white_check_mark:Succeeded

docs/debugger/how-to-restore-hidden-debugger-commands.md
:white_check_mark:Succeeded

docs/debugger/just-in-time-debugging-in-visual-studio.md
:white_check_mark:Succeeded

docs/debugger/managing-exceptions-with-the-debugger.md
:white_check_mark:Succeeded

docs/debugger/using-the-parallel-stacks-window.md
:white_check_mark:Succeeded

docs/debugger/using-the-tasks-window.md
:white_check_mark:Succeeded

docs/debugger/viewing-data-in-the-debugger.md
:white_check_mark:Succeeded

docs/debugger/walkthrough-debugging-a-parallel-application.md
:white_check_mark:Succeeded

docs/debugger/walkthrough-debugging-at-design-time.md
:white_check_mark:Succeeded

docs/ide/reference/immediate-window.md
:white_check_mark:Succeeded

docs/ide/step-2-run-your-program.md
:white_check_mark:Succeeded

docs/xml-tools/debugger-user-interface-xslt.md
:white_check_mark:Succeeded

docs/xml-tools/how-to-start-debugging-xslt.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Country locales

Country based fallback
It is now possible to use country based locales. For example, you can have the following locales:

English: en
Spanish: es
Mexican Spanish: es-MX
Colombian Spanish: es-CO

To configuration for these locales looks like this:
    'locales' => [
        'en',
        'es' => [
            'MX',
            'CO',
        ],
    ];

We can also configure the "glue" between the language and country. If for instance we prefer the format es_MX instead of es-MX,
the configuration should look like this:
   'locale_separator' => '_',

What applies for the fallback of the locales using the en-MX format?
Let's say our fallback locale is en. Now, when we try to fetch from the database the translation for the
locale es-MX but it doesn't exist,  we won't get as fallback the translation for en. Translatable will use as a
fallback es (the first part of es-MX) and only if nothing is found, the translation for en is returned.
Fixes #154.

Pretty cool stuff, digging the fallback mechanism. I'm currently using this project with a separate locales table, and so far I've not had to hack anything to make it work. Hopefully I can use this new feature without a hiccup. Thanks for your hard work. It's been a blessing not having to implement all this on my own.

@goyote Glad this helped mate. If you update your config file properly, this should work out of the box.


Add architecture diagram for final, deployed product

Ideally, the README.md would include a diagram of the final (end-result) architecture that users can use this tool to produce/deploy.
I imagine the diagram will looks like:
[ GitHub repo [application code + app.json] ]  --- New commit to branch <--- GitHub Action ---> Cloud Run service
(Just an idea. I'm sure you'll come up with something better.)
A diagram will help a user immediately decide whether this tool is for them (i.e., does this solves my problem?).

This project has barely been spell checked, let alone have full documentation and architecture diagrams 😅
I'll update the README to include a link to the Action docs to satisfy this request.


active directory integration

HI ,
i want to use the docker-openldap  as proxy to active directory .
this option not available , can u add this option in the docker file ?

@eliyahu77 Did you manage to set up the docker container as a proxy?

Any luck getting this openldap container to work like active directory?


Trouble trying using the exported .pb frozen graph

Hello,
I was wondering if you have already been able to test the exported .pb files (especially the frozen graph) within the C++ TensorFlow API?
In short, I recently developed some tools to use the typical TensorFlow exported frozen graph for classification problems and they work. I tried using them with the .pb file I exported with your provided tools, and kept producing 0 outputs (without crashes). I checked the output and input layer names and they are the same in my program and the .pb file. This is what I've done so far:
In your code, I changed the "input_image_as_bytes" input, so that instead of expecting png data it expects already decoded image data (i.e. I deleted the decode_png step and simply added a input with shape [None, None, 3] as placeholder). It doesn't seem to produce any output when I try to retrieve the "prediction" layer.
Si if you have any insights about how to use it that would be very helpful.
Thanks,
Aurélien

I don’t have any insights right off the bat, so anything else you could try might help.
Have you tried the Saved Model? Does it work, or is there no result as well?
On Jul 5, 2018, 21:16 +0700, Rayndell<EMAIL_ADDRESS>wrote:

Hello,
I was wondering if you have already been able to test the exported .pb files (especially the frozen graph) within the C++ TensorFlow API?
In short, I recently developed some tools to use the typical TensorFlow exported frozen graph for classification problems and they work. I tried using them with the .pb file I exported with your provided tools, and kept producing 0 outputs (without crashes). I checked the output and input layer names and they are the same in my program and the .pb file. This is what I've done so far:
In your code, I changed the "input_image_as_bytes" input, so that instead of expecting png data it expects already decoded image data (i.e. I deleted the decode_png step and simply added a input with shape [None, None, 3] as placeholder). It doesn't seem to produce any output when I try to retrieve the "prediction" layer.
Si if you have any insights about how to use it that would be very helpful.
Thanks,
Aurélien
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Actually I tried to export the saved model, and freeze the graph with the standard TensorFlow "freeze_graph.py" tool: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/freeze_graph.py
When this program tries to read the saved_model.pb file a reading error pops up (both in binary and text format, but the error is different). Here are the errors:
In binary format: google.protobuf.message.DecodeError: Truncated message.
In text format: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd7 in position 3: invalid continuation byte
It seems that TensorFlow (at least the current version) is not able to read your .pb files. Is it possible that it might be incompatible with the current version of the protobuf library?

OK, some update here is needed. I was able to make things work.
Basically, I created my own Python script to export a .pb file with the input I needed (i.e. an already decoded image instead of a filename). I simply copied/pasted the code contained in model.py (the constructor of the Model class and the prepare_image method) and modified it to use it as a function instead of a class. This function takes the input (a 3-dimensional tensor which contains the image data) and the model parameters (same as yours) and produces the prediction and probability input nodes. I then wrapped this function call into the standard TensorFlow export tools and this produces a .pb saved model. I rthen use the standard TensorFlow freeze-graph tools with the checkpoint produced by your training program, and the final .pb I obtain works with the TensorFlow C++ API.
I think the problem resides in the method you used in your exporter class, but I wasn't able to locate the error source. I can provide the Python export script if it can be helpful.

Please do, that would actually be super useful. I'll look at the working
script and try to figure out what the difference is.
On July 9, 2018 at 16:50:44, Rayndell<EMAIL_ADDRESS>wrote:
OK, some update here is needed. I was able to make things work.
Basically, I created my own Python script to export a .pb file with the
input I needed (i.e. an already decoded image instead of a filename). I
simply copied/pasted the code contained in model.py (the constructor of the
Model class and the prepare_image method) and modified it to use it as a
function instead of a class. This function takes the input (a 3-dimensional
tensor which contains the image data) and the model parameters (same as
yours) and produces the prediction and probability input nodes. I then
wrapped this function call into the standard TensorFlow export tools and
this produces a .pb saved model. I rthen use the standard TensorFlow
freeze-graph tools with the checkpoint produced by your training program,
and the final .pb I obtain works with the TensorFlow C++ API.
I think the problem resides in the method you used in your exporter class,
but I wasn't able to locate the error source. I can provide the Python
export script if it can be helpful.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/emedvedev/attention-ocr/issues/102#issuecomment-403506086,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAI3QjziWJwWaz5P6Tdgmp_Me0eWXhUNks5uE23EgaJpZM4VD-CH
.

Here it is.
The interesting part is located between lines 214 and 236, where I create a placeholder for my data, pass it to the build_graph function with the model parameters, and create an output node for each of the prediction and probability nodes. Afterwards I serialize the graph def in a pretty standard way.
export-graph.zip

hi, @Rayndell
follow your step, i got a wrong output  ['0000000', 0.5003086850925088] by the following code . not sure why. Do you have any suggestion?
`from skimage import io, transform
import cv2
def recognize(jpg_path, pb_file_path):
with tf.Graph().as_default():
output_graph_def = tf.GraphDef()
    with open(pb_file_path, "rb") as f:
        output_graph_def.ParseFromString(f.read())
        _ = tf.import_graph_def(output_graph_def, name="")

    with tf.Session() as sess:
        #init = tf.global_variables_initializer()
        #sess.run(init)

        input_x = sess.graph.get_tensor_by_name("input:0")
        print("sess.graph", sess.graph)
        print("input_x", input_x)
        out_softmax = sess.graph.get_tensor_by_name("prediction:0")
        print (out_softmax)
        out_label = sess.graph.get_tensor_by_name("probability:0")
        print(out_label)

        img = io.imread(jpg_path)

        height = 32
        width = 128
        #io.imwrite("a.jpg", img)
        img = transform.resize(img, (height, width, 3))

        img_out_softmax = sess.run([out_softmax,out_label], feed_dict={input_x:np.reshape(img, [height, width, 3])})

        print ("img_out_softmax: ", img_out_softmax)

recognize("./1_000809.jpg", "./freeze_graph.pb")`


deleted node_modules from docker-compose.yml, because of docker volum…

…e conflicts
What kind of a pull request is this?

Code Checklist

[x] The code is ready to be merged

(Possible) Breaking Changes

[x] The changes are backwards compatible

[x] I have updated the build configuration

Description of changes
read commit message
Screenshot(s) if appropriate

This is actually a sneaky hack we use to cache node_modules in docker without installing them in the local directory. It also reduces the overhead of sending the full node_modules folder to docker every time it builds.


Display all the images of a category together using FastCCI

Summary:
Suppose an image is present in a particular subcategory which corresponds to a particular category. Currently, the app would show the image only in that subcategory and not in the list of images of the category.
If some image is in a subcategory, it should also be shown in the parent category of that subcategory. This can be implemented using FastCCI.
Steps to reproduce:

Go to Explore.
Search for something.
Go to a category. Media tab would show the images.
Click on the subcategories tab and then go to a subcategory.
Not all images of the subcategory would have been present in the category.

Commons app version:
Latest master
Would you like to work on the issue?
Yes

I totally agree!
Using FastCCI you could even display the best (featured/etc) images first.

Tentatively sounds good to me. However, the use of FastCCI would require a complete overhaul of our current Commons query, right? Do we know how reliable the database is?

Last year it was not reliable, with months-long downtimes :-/

We'll need to set a mechanism where it would use the current system if the FastCCI servers go down, although I think that would rarely happen.


create Authentication with API or Keycloak

id rather say to implement it as feature in the end if time is left
for now authorize on gateway, as it per se is an microservice

i complete agree with you

we will create a microservice for authentication #38


debian-elasticsaearch7: Use fluent-plugin-elasticsearch 4.4.1

Signed-off-by: Hiroshi Hatake<EMAIL_ADDRESS>fluent-plugin-elasticsearch v4.1.1 can handle logstash_format as true and enable_ilm circumstances.

But I'm not sure debian-elasticsearch7 image should support ILM feature parameters....


Replace deprecated CordovaWebView.sendJavascript with alternate method

The CordovaWebView.sendJavascript method is deprecated, and using it in pre KitKat devices with the latest Cordova 5.1 version throws an error during plugin initialization. The error is not observable in Lollipop and newer devices, and never happened when using previous Cordova versions (3.7).

Thanks for this pull request. I'm closing #323 fixes the same problem.


fix: lets ignore by default the preview chart from releases

fixes https://github.com/jenkins-x/jx/issues/7739

/approve

@jstrachan: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr
ba5fc2c0219dcffe8f14c0b17500471caf43b972
link
/test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jstrachan: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

pr
1ff29cd1703e74512f3e4083c9de65d75f9e0424
link
/test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.


enable crawler

Rationale
Fix searchTests
Changes
Enable the search crawler for the duration of the Test(s) -- this is needed due to files being queued into the crawler for reindexing after a folder move

I think those errors were from deleting the search index immediately after enabling the crawler. I just swapped those lines (and added some logging in https://github.com/LabKey/testAutomation/pull/356)


Allow tests to run in .net framework 4.8

This is a minimal fix to allow the test project to run in .net framework 4.8. In visual studio 2019 this edit seems to give a nice side by side view of both frameworks.

At this moment 300 of the total of 1512 tests are failing

As a follow up - I can imagine two things need to be done for this request to be useful.
[ ] Debugging in dotnet 48
[ ] Get travis to work with dotnet 48

As a follow up - I can imagine two things need to be done for this request to be useful.
[ ] Debugging in dotnet 48
[ ] Get travis to work with dotnet 48

thanks @arendvw.  The test failures are from #329.  An update to VS or R# changed the name of the process used in assertions.  I need to think about how I want to fix it so it also continues to work in Travis.

thanks @arendvw.  The test failures are from #329.  An update to VS or R# changed the name of the process used in assertions.  I need to think about how I want to fix it so it also continues to work in Travis.

thanks @arendvw. The test failures are from #329. An update to VS or R# changed the name of the process used in assertions. I need to think about how I want to fix it so it also continues to work in Travis.

There is also another issue, which is that AppInfo.Instance throws an exception:
For travis:
This should install .net 4.8:
choco install dotnetfx

Apparently xunit supports testing multiple frameworks
dotnet test CommandDotNet.Tests/CommandDotNet.Tests.csproj
dotnet test --framework net48 CommandDotNet.Tests/CommandDotNet.Tests.csproj

thanks @arendvw. The test failures are from #329. An update to VS or R# changed the name of the process used in assertions. I need to think about how I want to fix it so it also continues to work in Travis.

There is also another issue, which is that AppInfo.Instance throws an exception:
For travis:
This should install .net 4.8:
choco install dotnetfx

Apparently xunit supports testing multiple frameworks
dotnet test CommandDotNet.Tests/CommandDotNet.Tests.csproj
dotnet test --framework net48 CommandDotNet.Tests/CommandDotNet.Tests.csproj

In travis the .net the .net frameworks seem to work pretty well ("failed successfully"). May be worthwhile to test separately from dotnet core on windows.

In travis the .net the .net frameworks seem to work pretty well ("failed successfully"). May be worthwhile to test separately from dotnet core on windows.

I haven't forgotten about this PR.  I'm working on #329 and updating the pattern for overriding AppInfo.  I should have it done by the weekend.  Once that's done, I'll follow up on these changes.

I haven't forgotten about this PR.  I'm working on #329 and updating the pattern for overriding AppInfo.  I should have it done by the weekend.  Once that's done, I'll follow up on these changes.

I've updated the tests.  They should all pass for you locally now.

I've updated the tests.  They should all pass for you locally now.

I've updated the tests. They should all pass for you locally now.

Thanks for the update, I will update and verify this PR next monday

I've updated the tests. They should all pass for you locally now.

Thanks for the update, I will update and verify this PR next monday

closing as we've moved to .net5.0


Test coverage

We are at about 66% test coverage as of today. It would be nice to be able to be somewhere >90% code coverage, or even 100% if possible (though it may not be). One of the specific points that is currently missing a test is surrounding filtering GET /resources by updated_after query param.

The above screenshot is current coverage after #111 was merged. It would be nice to get some more coverage around the CLI before we close this (if done comprehensively, I believe that will push us over 90% because there are 35 untested statements in that file). If whoever picks this up would like to increase coverage in the other files, please feel free!
I did everything I can do at this point in my PR, so I'll leave this open for someone else. I might circle back around to it if enough time passes...

We're at 98% as of #142 so I'm going to go ahead and close this. Thanks!


Adjusted element styles when exporting to docx

Adjusted table styles such as centered td content, table width and tds width, background, borders, list type, document margins, page break and checkbox.

96d69e97552e400494210b410eadc494.docx
用这个文档测试还是有问题

Hello, when you export the document, the font appears correct in wps, but it is too large in Microsoft word. When you change size: ${(element.size || 16) / 0.75}pt to size: ${(element.size || 16) * 0.75}pt, it works in Microsoft word but fails in wps